.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 0;
    z-index: 100;
    opacity: 0;
    transform: translateY(-110%);
    pointer-events: none;
    transition: opacity 280ms var(--ease-standard), transform 280ms var(--ease-standard);
}

.site-header.is-visible,
.site-header.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.site-header.is-scrolled .header-shell,
.header-shell {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(8, 16, 24, 0.74), rgba(8, 16, 24, 0.48));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(222, 200, 161, 0.92), rgba(147, 179, 201, 0.64));
    color: #07111b;
}

.brand-text small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    transition: background-color 240ms var(--ease-standard), color 240ms var(--ease-standard), transform 240ms var(--ease-standard), box-shadow 240ms var(--ease-standard);
}

.site-nav a.is-active,
.site-nav a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.nav-toggle-bars {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.96);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.96);
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

.page-hero-home {
    min-height: 100vh;
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
}

.hero-overlay,
.hero-content-wrap {
    position: absolute;
    inset: 0;
}

.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background {
    background-image:
        linear-gradient(180deg, rgba(3, 7, 12, 0.22) 0%, rgba(3, 7, 12, 0.46) 42%, rgba(3, 7, 12, 0.74) 100%),
        url("../assets/backgrounds/home-hero.JPG");
    background-size: cover;
    background-position: center center;
    transform: translate3d(0, var(--parallax-offset, 0px), 0) scale(1.08);
    will-change: transform;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(6, 10, 17, 0.36) 0%, rgba(6, 10, 17, 0.6) 42%, rgba(6, 10, 17, 0.88) 100%),
        radial-gradient(circle at top center, rgba(147, 179, 201, 0.1), transparent 34%),
        radial-gradient(circle at 50% 78%, rgba(0, 0, 0, 0.42), transparent 40%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(8, 19, 28, 0), rgba(8, 19, 28, 0.92));
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrap {
    position: relative;
    display: grid;
    place-items: center;
    z-index: 1;
}

.hero-copy-centered {
    max-width: 860px;
    margin: 0 auto;
    padding: 170px 20px 88px;
    text-align: center;
}

.page-hero-projects h1 {
    max-width: 16ch;
}

.page-hero-projects {
    padding-top: 200px;
    padding-bottom: 90px;
}

.hero-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
    gap: 20px;
    align-items: end;
    width: var(--container);
    margin: 0 auto;
    min-height: 100vh;
    padding-top: 132px;
}

.hero-text {
    position: relative;
    z-index: 3;
    max-width: 620px;
    padding: 0 0 132px;
}

.hero-title {
    font-size: clamp(5rem, 10vw, 8.9rem);
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    color: #f8fbff;
    text-wrap: balance;
    max-width: 8ch;
    line-height: 0.9;
    text-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.hero-subheading {
    color: var(--accent-warm);
    font-size: clamp(0.72rem, 1.4vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 18px;
    text-align: left;
}

.hero-tagline {
    max-width: 30ch;
    margin: 0;
    font-size: clamp(1.08rem, 1.9vw, 1.34rem);
    color: rgba(244, 247, 251, 0.88);
    text-wrap: balance;
}

.hero-actions {
    margin-top: 32px;
}

.hero-subject {
    position: relative;
    z-index: 2;
    justify-self: end;
    align-self: end;
    width: min(100%, 720px);
    transform: translate3d(0, var(--parallax-offset, 0px), 0);
    will-change: transform;
}

.hero-subject::before {
    content: "";
    position: absolute;
    inset: 8% 22% 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(222, 200, 161, 0.28) 0%, rgba(147, 179, 201, 0.12) 48%, transparent 74%);
    filter: blur(24px);
    z-index: -1;
}

.hero-subject-glow {
    position: absolute;
    inset: 24% 16% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(147, 179, 201, 0.07) 40%, transparent 70%);
    filter: blur(30px);
}

.hero-subject img {
    width: 100%;
    max-height: calc(100vh - 104px);
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.36));
}

.hero-actions-centered {
    justify-content: center;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-metric {
    padding: 18px 18px 20px;
    border-radius: 20px;
}

.hero-metric span,
.hero-layer-caption span,
.timeline-item span {
    display: inline-block;
    color: var(--accent-warm);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-metric strong,
.hero-layer-caption strong,
.timeline-item strong {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.hero-scene {
    position: relative;
    min-height: 620px;
}

.hero-layer-card {
    position: absolute;
    overflow: hidden;
    padding: 0;
    border-radius: 28px;
}

.hero-layer-card img {
    height: 100%;
    object-fit: cover;
}

.hero-layer-main {
    inset: 34px 24px 0 92px;
}

.hero-layer-main::after,
.hero-layer-secondary::after,
.hero-layer-accent::after,
.gallery-teaser-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 10, 17, 0.02), rgba(6, 10, 17, 0.32));
}

.hero-layer-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(7, 17, 27, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-layer-secondary {
    width: 220px;
    height: 270px;
    top: 0;
    left: 0;
    transform: rotate(-6deg);
}

.hero-layer-accent {
    width: 210px;
    height: 250px;
    right: 0;
    bottom: 28px;
    transform: rotate(7deg);
}

.professional-summary-section {
    padding-top: 108px;
}

.professional-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
    grid-template-areas:
        "main copy"
        "side side";
    gap: 42px;
    align-items: start;
    padding: 18px 0 0;
}

.professional-summary-main {
    grid-area: main;
    max-width: 700px;
}

.professional-summary-main h2 {
    max-width: 18ch;
    margin-bottom: 24px;
}

.professional-summary-copy {
    grid-area: copy;
    width: 100%;
    max-width: 680px;
    justify-self: end;
    padding-top: 60px;
}

.professional-summary-copy p {
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
    line-height: 1.82;
    max-width: 53ch;
}

.professional-summary-copy p + p {
    margin-top: 14px;
}

.professional-summary-side {
    grid-area: side;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.summary-side-block {
    height: 100%;
    padding: 26px 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.summary-side-block h3 {
    margin-bottom: 12px;
}

.summary-points {
    list-style: none;
    display: grid;
    gap: 12px;
}

.summary-points li {
    position: relative;
    padding-left: 20px;
    color: var(--muted-strong);
    line-height: 1.7;
}

.summary-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent));
}

.accounting-skills-section {
    padding-top: 36px;
}

.skills-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    align-items: stretch;
}

.skills-category-panel {
    height: 100%;
    padding: 30px;
    border-radius: calc(var(--radius-lg) + 4px);
    background:
        radial-gradient(circle at top left, rgba(147, 179, 201, 0.12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(222, 200, 161, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.skills-category-head {
    max-width: 560px;
    margin-bottom: 22px;
}

.skills-category-head h3 {
    margin-bottom: 0;
}

.skills-grid.accounting-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.skills-grid.accounting-skills-grid .skill-card {
    min-height: 232px;
    height: 100%;
}

.technology-tools-section {
    padding-top: 28px;
}

.technology-tools-wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
    padding: 28px 30px;
    border-radius: calc(var(--radius-lg) + 4px);
    background:
        radial-gradient(circle at top right, rgba(147, 179, 201, 0.1), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.technology-tools-copy {
    max-width: 500px;
}

.technology-tools-copy h2 {
    max-width: 18ch;
}

.technology-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.tech-tool-card {
    height: 100%;
    min-height: 188px;
    padding: 22px 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tech-tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(147, 179, 201, 0.2), rgba(222, 200, 161, 0.06), rgba(147, 179, 201, 0.12));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0.7;
}

.tech-tool-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(222, 200, 161, 0.14), rgba(147, 179, 201, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-warm);
}

.tech-tool-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.tech-tool-card h3 {
    margin-bottom: 8px;
}

.tech-tool-card p {
    font-size: 0.95rem;
    line-height: 1.72;
}

.gallery-hero .container {
    max-width: 760px;
}

.gallery-page-section {
    padding-top: 100px;
    background: transparent;
}

.gallery-page-section .container {
    position: relative;
}

.gallery-overview {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition: opacity 280ms var(--ease-standard), transform 280ms var(--ease-standard), filter 280ms var(--ease-standard);
}

.gallery-overview[hidden],
.gallery-album-grid[hidden] {
    display: none;
}

.gallery-overview.is-transitioning-out {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(2px);
    pointer-events: none;
    position: absolute;
    inset: 0 0 auto;
    width: 100%;
    z-index: 2;
}

.gallery-page-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 20px;
    align-items: end;
}

.gallery-page-copy {
    max-width: 700px;
}

.gallery-page-copy h2 {
    max-width: 18ch;
}

.gallery-page-copy > p {
    max-width: 70ch;
}

.gallery-page-note {
    padding: 12px 0 12px 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-page-note p {
    font-size: 0.96rem;
}

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

.gallery-album-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at top right, rgba(147, 179, 201, 0.14), transparent 44%);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 280ms var(--ease-standard), box-shadow 280ms var(--ease-standard), border-color 280ms var(--ease-standard), background-color 280ms var(--ease-standard);
}

.gallery-album-cover {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-album-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 10, 16, 0.06) 0%, rgba(5, 10, 16, 0.34) 100%);
    pointer-events: none;
}

.gallery-album-cover img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 320ms var(--ease-standard);
}

.gallery-album-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: 12px 8px 6px;
    min-height: 64px;
    align-content: start;
}

.gallery-album-meta strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.06;
}

.gallery-album-meta small {
    color: rgba(231, 238, 245, 0.74);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.gallery-album-card:hover .gallery-album-cover img,
.gallery-album-card:focus-visible .gallery-album-cover img,
.gallery-album-card.is-active .gallery-album-cover img {
    transform: scale(1.02);
}

.gallery-album-card.is-active .gallery-album-cover,
.gallery-album-card:focus-visible .gallery-album-cover {
    border-color: rgba(147, 179, 201, 0.3);
}

.gallery-album-card:hover,
.gallery-album-card:focus-visible,
.gallery-album-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(147, 179, 201, 0.28);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.gallery-album-viewer {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    background: transparent;
    opacity: 0;
    transform: translateY(14px);
    filter: blur(2px);
    transition: opacity 280ms var(--ease-standard), transform 280ms var(--ease-standard), filter 280ms var(--ease-standard);
    position: relative;
    z-index: 1;
}

.gallery-album-viewer[hidden] {
    display: none;
}

.gallery-album-viewer.is-open {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.gallery-album-viewer-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(147, 179, 201, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-md);
}

.gallery-album-back {
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
}

.gallery-album-viewer-copy h3 {
    margin: 6px 0 10px;
}

.gallery-album-viewer-copy p {
    width: 100%;
    max-width: none;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    background: transparent;
    align-items: stretch;
}

.gallery-photo-card {
    position: relative;
    height: 100%;
    background: transparent;
    contain: layout style;
    transform: translateY(0);
    transition: transform 260ms var(--ease-standard);
}

.gallery-photo-card:hover {
    transform: translateY(-4px);
}

.gallery-photo-button {
    display: grid;
    gap: 12px;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    isolation: isolate;
}

.gallery-photo-button img {
    display: block;
    width: 100%;
    aspect-ratio: 0.84;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    background: linear-gradient(180deg, rgba(14, 24, 34, 0.95), rgba(11, 20, 29, 0.9));
    opacity: 1;
    filter: blur(0);
    transition: opacity 260ms var(--ease-standard), filter 260ms var(--ease-standard);
}

.gallery-grid-image.is-deferred,
.gallery-grid-image.is-loading {
    opacity: 0.01;
    filter: blur(10px);
}

.gallery-grid-image.is-loaded {
    opacity: 1;
    filter: blur(0);
}

.gallery-photo-meta {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 0 4px;
}

.gallery-photo-meta strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.24rem;
    font-weight: 600;
    color: var(--text);
}

.gallery-photo-meta small {
    color: rgba(228, 236, 244, 0.7);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    padding: 32px;
    background: rgba(4, 9, 14, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    z-index: 160;
}

body.gallery-lightbox-mode .site-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
}

body.gallery-lightbox-mode main {
    z-index: 220;
}

.gallery-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-dialog {
    width: 100%;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    gap: 18px;
}

.gallery-lightbox-dialog img {
    width: auto;
    max-width: min(92vw, 1200px);
    max-height: 72vh;
    object-fit: contain;
    border-radius: 14px;
    background: transparent;
}

.gallery-lightbox-caption {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.gallery-lightbox-caption .meta-line {
    margin-bottom: 10px;
}

.gallery-lightbox-caption h3 {
    margin-bottom: 10px;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    z-index: 3;
}

.gallery-lightbox-icon {
    font-size: 1.24rem;
    line-height: 1;
    font-weight: 600;
}

.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 5;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: relative;
    z-index: 2;
}

body.lightbox-open {
    overflow: hidden;
}

.development-section-wrap {
    padding-top: 32px;
}

.development-board {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    padding: 40px;
    border-radius: calc(var(--radius-lg) + 8px);
    background:
        radial-gradient(circle at top left, rgba(147, 179, 201, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(222, 200, 161, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.development-copy {
    max-width: 620px;
}

.timeline-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.timeline-item span {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item p {
    margin-top: 8px;
}

.development-panel {
    display: grid;
    gap: 18px;
    align-self: stretch;
}

.focus-card,
.supporting-card,
.project-preview-card,
.contact-cta {
    position: relative;
    overflow: hidden;
}

.focus-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.focus-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted-strong);
    line-height: 1.7;
}

.focus-list li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-warm), var(--accent));
}

.supporting-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 18px;
}

.projects-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.project-preview-card {
    min-height: 250px;
    height: 100%;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
}

.project-preview-card h3 {
    font-size: clamp(1.42rem, 1.55vw, 1.8rem);
    margin-bottom: 12px;
}

.project-preview-card p:not(.meta-line) {
    flex-grow: 1;
    font-size: 0.95rem;
    line-height: 1.7;
}

.tech-tool-card p {
    flex-grow: 1;
}

.project-preview-card .project-tech-list {
    margin-top: 16px;
    min-height: 72px;
    align-content: flex-start;
}

.section-actions {
    margin-top: 24px;
}

.gallery-teaser {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.gallery-teaser-copy {
    max-width: 520px;
}

.gallery-teaser-frame {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 420px;
}

.gallery-teaser-frame img {
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.contact-cta-section {
    padding-top: 32px;
}

.contact-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
    padding: 34px 36px;
}

.contact-cta > div {
    grid-column: 1 / -1;
}

.contact-cta .button {
    grid-column: 1;
    justify-self: start;
}

.hero-copy p {
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.section-heading {
    max-width: 1040px;
    margin-bottom: 40px;
}

.section-heading p:last-child {
    max-width: 78ch;
}

.contact-cta h2 {
    max-width: none;
}

.card-grid {
    display: grid;
    gap: 22px;
}

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

.skill-card {
    min-height: 208px;
    height: 100%;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(132, 199, 255, 0.22), rgba(255, 224, 178, 0.06), rgba(132, 199, 255, 0.12));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0.7;
}

.skill-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 224, 178, 0.16), rgba(132, 199, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--accent-warm);
    font-size: 1.35rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-icon svg {
    width: 23px;
    height: 23px;
    display: block;
    fill: currentColor;
    flex-shrink: 0;
}

.skill-card h3 {
    margin-bottom: 8px;
}

.skill-card p {
    flex-grow: 1;
}

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

.stack-grid {
    display: grid;
    gap: 20px;
}

.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 12px;
    padding-bottom: 8px;
    margin-top: -12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.projects-grid:active {
    cursor: grabbing;
}

.project-showcase-card {
    flex: 0 0 clamp(320px, 34vw, 420px);
    min-height: 444px;
    height: auto;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-showcase-card p:not(.meta-line) {
    flex-grow: 1;
}

.project-showcase-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(147, 179, 201, 0.24), rgba(222, 200, 161, 0.08), rgba(147, 179, 201, 0.14));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    pointer-events: none;
    opacity: 0.75;
}

.project-card-header {
    margin-bottom: 14px;
}

.project-card-header h3 {
    font-size: clamp(2rem, 3vw, 2.65rem);
    line-height: 0.98;
    min-height: 2.35em;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    min-height: 78px;
    align-content: flex-start;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-size: 0.88rem;
}

.project-link {
    margin-top: 28px;
    align-self: flex-start;
}

.content-card {
    padding: 28px;
}

.feature-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.gallery-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    padding: 14px 16px;
}

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

.form-status {
    min-height: 1.5em;
    color: var(--accent-warm);
}

.contact-center-wrap {
    display: block;
}

.contact-composed-section {
    padding-top: 105px;
    padding-bottom: 64px;
}

.contact-spread {
    width: min(100%, 1180px);
    margin: 0 auto;
    min-height: clamp(500px, 58vh, 660px);
    display: grid;
    grid-template-columns: minmax(320px, 0.94fr) minmax(440px, 1.06fr);
    gap: 30px;
    padding: 34px 36px;
    border-radius: calc(var(--radius-lg) + 8px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022)),
        radial-gradient(circle at top left, rgba(147, 179, 201, 0.08), transparent 36%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.contact-spread-info {
    max-width: 520px;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 0;
}

.contact-spread-info h1 {
    max-width: 10ch;
    margin-bottom: 2px;
}

.contact-info-list {
    display: grid;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-row {
    display: grid;
    grid-template-columns: minmax(140px, 172px) minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info-row.is-priority .contact-info-label,
.contact-info-row.is-priority .contact-info-icon {
    color: var(--accent-warm);
}

.contact-info-row.contact-info-row-meta {
    opacity: 0.84;
}

.contact-info-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-top: 2px;
}

.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--text);
    flex-shrink: 0;
    opacity: 0.9;
}

.contact-info-icon i {
    font-size: 0.86rem;
}

.contact-info-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: currentColor;
}

.contact-info-label {
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.contact-info-body {
    display: grid;
    gap: 4px;
}

.contact-info-body a,
.contact-info-body span {
    color: var(--text);
    font-size: 1.06rem;
    font-weight: 500;
    line-height: 1.35;
}

.contact-info-body a {
    text-decoration: none;
    text-underline-offset: 0.18em;
}

.contact-info-body a:hover,
.contact-info-body a:focus-visible {
    text-decoration: underline;
}

.contact-form-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    align-self: stretch;
    padding: 2px 0 0 28px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form-panel p {
    max-width: 50ch;
}

.contact-form-panel h3 {
    font-size: clamp(1.42rem, 2.2vw, 1.72rem);
    margin-bottom: 0;
}

.contact-form-centered {
    width: 100%;
    max-width: none;
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 8px 10px 0 0;
    box-shadow: none;
    background: transparent;
    border: 0;
}

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

.contact-submit {
    box-shadow: none;
    justify-self: start;
}

.contact-submit:hover,
.contact-submit:focus-visible,
.contact-form-centered:hover,
.contact-form-centered:focus-within {
    box-shadow: none;
}

.site-footer {
    padding: 0 0 40px;
}

.footer-shell {
    width: var(--container);
    margin: 0 auto;
    padding: 24px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0;
    fill: currentColor;
}

@media (max-width: 900px) {
    .hero-shell,
    .development-board,
    .gallery-teaser,
    .three-columns,
    .gallery-grid,
    .feature-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-shell {
        min-height: auto;
        padding-top: 128px;
        padding-bottom: 48px;
    }

    .hero-text {
        max-width: none;
        padding-bottom: 0;
    }

    .hero-subject {
        justify-self: center;
        width: min(100%, 560px);
    }

    .hero-scene {
        min-height: 520px;
        width: 100%;
    }

    .hero-layer-main {
        inset: 36px 28px 0 78px;
    }

    .hero-metrics,
    .projects-preview-grid {
        grid-template-columns: 1fr;
    }


    .professional-summary {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "copy"
            "side";
        gap: 28px;
    }

    .professional-summary-copy {
        max-width: none;
        justify-self: stretch;
        padding-top: 0;
    }

    .professional-summary-side {
        grid-template-columns: 1fr;
    }

    .gallery-page-intro,
    .skills-category-grid,
    .technology-tools-wrap {
        grid-template-columns: 1fr;
    }

    .gallery-page-note {
        padding: 12px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .gallery-overview,
    .gallery-album-viewer {
        gap: 16px;
    }

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

    .gallery-album-grid,
    .gallery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .gallery-album-viewer-head {
        grid-template-columns: 1fr;
    }

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

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

    .contact-spread {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px;
    }

    .contact-info-row,
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-spread-info {
        grid-template-columns: 1fr;
    }

    .contact-form-panel {
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .contact-form-centered {
        max-width: none;
    }

    .contact-cta {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .contact-cta > div,
    .contact-cta .button {
        grid-column: 1;
    }

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

@media (max-width: 768px) {
    body[data-page="home"] .project-preview-card {
        min-height: 0;
        padding: 18px 16px 14px;
    }

    body[data-page="home"] .project-preview-card .project-tech-list {
        margin-top: 10px;
        min-height: 0;
    }

    .site-header {
        padding: 10px 0;
    }

    .site-header.is-scrolled .header-shell,
    .header-shell {
        width: calc(100% - 20px);
        padding: 10px 12px;
        gap: 10px;
    }

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

    .brand-badge {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
    }

    .brand-text small {
        letter-spacing: 0.08em;
        font-size: 0.64rem;
    }

    .hero,
    .page-hero-home {
        min-height: 100svh;
    }

    .hero-shell {
        gap: 12px;
        width: min(100%, 720px);
        min-height: auto;
        padding-top: 92px;
        padding-bottom: 22px;
        padding-left: 16px;
        padding-right: 16px;
        align-items: start;
        grid-template-columns: 1fr;
    }

    .hero-subject {
        order: -1;
        width: min(100%, 495px);
        margin-inline: auto;
    }

    .hero-text {
        order: 1;
    }

    .hero-title {
        font-size: clamp(4rem, 17vw, 6rem);
        max-width: none;
    }

    .hero-tagline {
        max-width: none;
    }

    .hero-actions {
        width: 100%;
        margin-top: 20px;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .hero-actions .button {
        flex: 1 1 0;
        min-width: 0;
        min-height: 40px;
        padding: 0 10px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .hero-subject img {
        max-height: min(58.5svh, 450px);
    }

    .hero-copy-centered {
        padding-top: 148px;
        padding-bottom: 68px;
    }

    .hero-title {
        max-width: none;
    }

    .hero-subheading {
        font-size: 0.7rem;
        letter-spacing: 0.14em;
        line-height: 1.2;
    }

    .hero-tagline {
        max-width: none;
    }

    .hero-metrics {
        gap: 12px;
    }

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

    .hero-layer-main {
        inset: 44px 10px 0 52px;
    }

    .hero-layer-secondary {
        width: 154px;
        height: 188px;
    }

    .hero-layer-accent {
        width: 144px;
        height: 178px;
        bottom: 18px;
    }

    .development-board {
        padding: 26px;
    }

    .timeline-item {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .timeline-item span {
        width: 48px;
        height: 48px;
    }

    .timeline-item p {
        margin-top: 6px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-toggle i {
        display: none;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        right: 20px;
        flex-direction: column;
        padding: 12px;
        border-radius: 22px;
        background: rgba(10, 18, 28, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-header.is-open .site-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .site-nav a {
        width: 100%;
        text-align: center;
    }

    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .gallery-teaser-frame,
    .gallery-teaser-frame img {
        min-height: 320px;
    }

    .about-portrait-frame img {
        min-height: 360px;
    }

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

    .accounting-skills-grid,
    .technology-tools-grid {
        grid-template-columns: 1fr;
    }

    .gallery-album-grid,
    .gallery-photo-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-overview,
    .gallery-album-viewer {
        gap: 14px;
    }

    .gallery-album-viewer-head {
        padding: 18px;
    }

    .gallery-album-back {
        width: fit-content;
    }

    .gallery-lightbox {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 72px 16px 24px;
    }

    .gallery-lightbox-dialog img {
        max-height: 56vh;
    }

    .gallery-lightbox-nav {
        display: inline-flex;
        justify-self: center;
    }

    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        display: none;
    }

    .skills-category-panel,
    .technology-tools-wrap {
        padding: 24px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card {
        min-height: 144px;
        padding: 16px 12px;
        border-radius: 16px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 10px;
        border-radius: 12px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-icon svg {
        width: 16px;
        height: 16px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card h3 {
        margin-bottom: 5px;
        font-size: 1rem;
        line-height: 1.2;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card p {
        font-size: 0.8rem;
        line-height: 1.35;
        flex-grow: 0;
        margin-bottom: 0;
    }

    .contact-spread {
        padding: 28px 24px;
    }

    .contact-form-centered {
        padding: 8px 0 0;
    }

    .contact-submit {
        width: 100%;
        justify-self: stretch;
    }

    .contact-cta {
        padding: 28px 24px;
    }

    .section-actions .button,
    .gallery-teaser-copy .button {
        min-height: 38px;
        padding: 0 14px;
        font-size: 0.78rem;
    }

}

@media (max-width: 480px) {
    body[data-page="home"] .project-preview-card {
        padding: 16px 14px 12px;
    }

    body[data-page="home"] .project-preview-card .project-tech-list {
        margin-top: 8px;
    }

    .site-header.is-scrolled .header-shell,
    .header-shell {
        width: calc(100% - 12px);
        padding: 10px 10px;
        border-radius: 22px;
    }

    .footer-shell {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 8px;
        padding: 12px 14px;
    }

    .footer-shell p {
        font-size: 0.62rem;
        white-space: nowrap;
        margin: 0;
        line-height: 1.1;
    }

    .footer-socials {
        gap: 4px;
        flex-shrink: 0;
    }

    .footer-socials a {
        width: 24px;
        height: 24px;
    }

    .footer-socials svg {
        width: 11px;
        height: 11px;
        transform: translateX(-0.5px);
    }

    .brand {
        gap: 8px;
    }

    .brand-badge {
        width: 36px;
        height: 36px;
    }

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

    .brand-text small {
        letter-spacing: 0.07em;
        font-size: 0.6rem;
    }

    .hero-shell {
        padding-top: 84px;
        padding-bottom: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .hero-title {
        font-size: clamp(2.9rem, 14vw, 4.1rem);
        line-height: 0.92;
    }

    .hero-tagline {
        font-size: 1rem;
        line-height: 1.62;
    }

    .hero-subject {
        width: min(100%, 435px);
    }

    .hero-subject img {
        max-height: min(51svh, 375px);
    }

    .hero-actions {
        margin-top: 16px;
        gap: 6px;
    }

    .hero-actions .button {
        min-height: 36px;
        padding: 0 8px;
        font-size: 0.74rem;
    }

    .section-padding {
        padding: 80px 0;
    }

    .content-card,
    .skills-category-panel,
    .technology-tools-wrap,
    .development-board,
    .contact-spread,
    .contact-cta {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-actions .button,
    .gallery-teaser-copy .button {
        min-height: 34px;
        padding: 0 11px;
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    body[data-page="projects"] .projects-grid {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: none;
        gap: 8px;
        padding-top: 8px;
    }

    body[data-page="projects"] .project-showcase-card {
        flex-basis: clamp(219px, 57vw, 312px);
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
        padding: 14px 12px;
        scroll-snap-align: start;
    }

    body[data-page="projects"] .project-card-header {
        margin-bottom: 8px;
    }

    body[data-page="projects"] .project-card-header h3 {
        font-size: clamp(0.88rem, 2.6vw, 1rem);
        line-height: 1.12;
        min-height: 0;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body[data-page="projects"] .project-showcase-card .meta-line {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body[data-page="projects"] .project-showcase-card p:not(.meta-line) {
        font-size: 0.64rem;
        line-height: 1.28;
        display: -webkit-box;
        line-clamp: 2;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    body[data-page="projects"] .project-tech-list {
        gap: 4px;
        margin-top: 6px;
        min-height: 0;
        max-height: 44px;
        overflow: hidden;
    }

    body[data-page="projects"] .tech-pill {
        min-height: 19px;
        padding: 0 5px;
        font-size: 0.56rem;
        white-space: nowrap;
    }

    body[data-page="projects"] .project-link {
        margin-top: 6px;
        min-height: 20px;
        padding: 0 7px;
        font-size: 0.58rem;
        line-height: 1;
    }
}

body[data-page="home"].is-mobile-phone .tech-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.66rem;
}

body.is-mobile-phone .site-nav a {
    padding: 12px 16px;
}

body.is-mobile-phone .accounting-skills-section {
    padding-top: 18px;
}

body.is-mobile-phone .accounting-skills-section .section-heading {
    margin-bottom: 18px;
}

body.is-mobile-phone .skills-category-grid {
    gap: 10px;
}

body.is-mobile-phone .skills-category-panel {
    padding: 12px;
    border-radius: 16px;
}

body.is-mobile-phone .skills-category-head {
    margin-bottom: 10px;
}

body.is-mobile-phone .skills-category-head .meta-line {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
}

body.is-mobile-phone .skills-category-head h3 {
    font-size: 1.2rem;
    line-height: 1.2;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card {
    min-height: 120px;
    padding: 10px 8px;
    border-radius: 14px;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 8px;
    border-radius: 10px;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-icon svg {
    width: 14px;
    height: 14px;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card h3 {
    font-size: 0.99rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card p {
    font-size: 0.6rem;
    line-height: 1.25;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 480px) {
    body.is-mobile-phone .skills-category-grid {
        gap: 8px;
    }

    body.is-mobile-phone .skills-category-panel {
        padding: 10px;
    }

    body.is-mobile-phone .skills-category-head {
        margin-bottom: 8px;
    }

    body.is-mobile-phone .skills-category-head .meta-line {
        font-size: 0.75rem;
    }

    body.is-mobile-phone .skills-category-head h3 {
        font-size: 1.11rem;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid {
        gap: 6px;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card {
        min-height: 104px;
        padding: 8px 7px;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
        border-radius: 8px;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-icon svg {
        width: 12px;
        height: 12px;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card h3 {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }

    body.is-mobile-phone .skills-grid.accounting-skills-grid .skill-card p {
        font-size: 0.6rem;
        line-height: 1.25;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card {
        min-height: 128px;
        padding: 12px 10px;
        border-radius: 14px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-icon svg {
        width: 14px;
        height: 14px;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card h3 {
        margin-bottom: 4px;
        font-size: 0.92rem;
    }

    body[data-page="home"] .technology-tools-grid .tech-tool-card p {
        font-size: 0.74rem;
        line-height: 1.3;
        flex-grow: 0;
        margin-bottom: 0;
    }

    body[data-page="projects"] .project-showcase-card {
        flex-basis: clamp(198px, 54vw, 273px);
        aspect-ratio: 1 / 1;
        min-height: 0;
        height: auto;
        padding: 12px 10px;
    }

    body[data-page="projects"] .project-card-header h3 {
        font-size: clamp(0.82rem, 2.4vw, 0.94rem);
    }

    body[data-page="projects"] .project-showcase-card .meta-line {
        font-size: 0.54rem;
    }

    body[data-page="projects"] .project-showcase-card p:not(.meta-line) {
        font-size: 0.6rem;
        line-height: 1.24;
    }

    body[data-page="projects"] .tech-pill {
        min-height: 18px;
        font-size: 0.52rem;
        padding: 0 4px;
    }

    body[data-page="home"].is-mobile-phone .tech-pill {
        min-height: 22px;
        font-size: 0.62rem;
        padding: 0 7px;
    }

    body[data-page="projects"] .project-link {
        margin-top: 5px;
        min-height: 19px;
        padding: 0 6px;
        font-size: 0.54rem;
    }
}