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

:root {
    --neon: #9ec138;
    --hero-pad: max(20px, 2.5vw);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #121212;
    color: #ffffff;
    overflow-x: hidden;
}

::selection {
    background-color: var(--neon);
    color: #000;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    padding: 40px calc(var(--hero-pad) - 16px) 10px;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.3, 0, 0, 1), background-color 0.3s ease, padding 0.3s ease;
}
.nav .nav-btn { pointer-events: auto; }
.nav.is-scrolled {
    padding-top: 10px;
    background: rgba(18, 18, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #1f1f1f;
    pointer-events: auto;
}
.nav.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .nav { transition: none; } }
.nav-btn {
    background: transparent;
    color: #888;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.nav-btn.active { color: #fff; }
.nav-btn:not(.active):hover { color: var(--neon); }
.nav-btn:focus { outline: none; }
.nav-btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.section { display: none; }
.section.active { display: block; }

.hero {
    position: relative;
    min-height: 100vh;
    background: #121212;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 92px var(--hero-pad) 64px;
}

.hero-name,
.hero-subtext { position: relative; z-index: 1; }
.scroll-label { z-index: 1; }

.hero-name {
    margin: 0 calc(-1 * var(--hero-pad)) 0.48em;
    text-align: left;
    font-family: 'League Gothic', 'Arial Narrow', Impact, sans-serif;
    font-weight: 400;
    font-size: 15vw;
    line-height: 0.8;
    color: #ffffff;
    white-space: nowrap;
    text-transform: uppercase;
    transform: scaleY(1.6);
    transform-origin: top left;
    user-select: none;
}
.hero-name span { display: inline-block; }
.hero-name > span { position: relative; word-spacing: -0.08em; }

.hn-letter {
    position: relative;
    color: rgb(255 255 255 / calc(1 - var(--hn-a, 0)));
    cursor: default;
}
.hn-canvas { position: absolute; display: block; pointer-events: none; opacity: 0; }

.name-break { display: none; }

.hero-subtext {
    font-size: clamp(1.1rem, 2.5vw, 2.1rem);
    font-weight: 600;
    line-height: 1.8;
    color: #b3b3b3;
}

.bracket-highlight,
.hero-line { display: block; }

.bracket-highlight::before { content: "["; color: #4a4a4a; margin-right: 1px; font-weight: bold; }
.bracket-highlight::after { content: "]"; color: #4a4a4a; margin-left: 1px; font-weight: bold; }

.pill-highlight {
    position: relative;
    background: #222222;
    color: var(--neon);
    padding: 5px 14px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin: 0 6px;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 85% 100%, 0% 100%, 0% 0%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}
.pill-highlight:hover {
    transform: rotate(1deg) translateY(-3px) scale(1.05);
    background: var(--neon);
    color: #222222;
}

.target-highlight {
    position: relative;
    color: #d9d9d9;
    padding: 0 15px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    width: fit-content;
    max-width: 100%;
    transition: all 0.3s ease;
    cursor: default;
}

.target-highlight::after {
    content: "";
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: 0;
    right: 0;
    border-left: 4px solid #4a4a4a;
    border-right: 4px solid #4a4a4a;
    transition: all 0.3s ease;
}
.target-highlight:hover::after {
    left: 5px;
    right: 5px;
    border-color: var(--neon);
    filter: drop-shadow(0 0 5px rgba(158, 193, 56, 0.5));
}
.target-highlight:hover {
    color: var(--neon);
    letter-spacing: 0.1em;
}

.scroll-label {
    position: absolute;
    bottom: 22px;
    left: var(--hero-pad);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #6b6b6b;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.3s ease;
}
.scroll-label::before {
    content: "";
    width: 2px;
    height: 12px;
    background: var(--neon);
    display: inline-block;
}
.scroll-label:hover { color: #ffffff; }

.hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: clamp(16px, 2.2vw, 40px);
}
.hero-previously {
    flex-shrink: 0;
    text-align: left;
    font-size: clamp(13px, 1.1vw, 17px);
    line-height: 1.45;
    margin-right: 0;
    margin-bottom: 0;
}
.hero-previously-label {
    font-weight: 700;
    color: #ffffff;
}
.hero-previously ul { list-style: none; }
.hero-previously li {
    color: #b3b3b3;
    transition: color 0.2s ease;
}
.hero-previously li:hover { color: var(--neon); }
.hero-previously a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.hero-previously a:hover { color: var(--neon); }
.hero-previously a:focus { outline: none; }
.hero-previously a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

@media (max-width: 700px) {
    .hero { padding-top: 110px; }
    .scroll-label { display: none; }
    .hero-bottom { flex-direction: column; align-items: flex-end; gap: 24px; }
    .hero-subtext { align-self: stretch; }
    .hero-previously { font-size: 13px; margin-right: 8px !important; margin-bottom: 0; }
}

.projects {
    background: #121212;
    padding: 0;
}

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

.project-card {
    position: relative;
    cursor: pointer;
    min-width: 0;
}
.project-card:nth-child(5n+1),
.project-card:nth-child(5n+2),
.project-card:nth-child(5n+3) { grid-column: span 2; }
.project-card:nth-child(5n+4),
.project-card:nth-child(5n+5) { grid-column: span 3; }


.project-card .slider-wrapper { border-radius: 0; }

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 25vw;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    background: #1c1c1c;
    isolation: isolate;
}

.projects-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px var(--hero-pad) 32px;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6b6b6b;
}
.projects-footer a {
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s ease;
}
.projects-footer a:hover { color: var(--neon); }
.projects-footer a:focus { outline: none; }
.projects-footer a:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }

.slide-item {
    min-width: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    filter: brightness(0.9);
    transition: transform 0.6s cubic-bezier(0.2, 0, 0, 1), filter 0.3s ease;
}
.project-card:hover .slide-item,
.project-card:focus-visible .slide-item {
    transform: scale(1.03);
    filter: brightness(1);
}

.project-card {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease;
}

.slider-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 45%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.project-card:hover .slider-wrapper::before { opacity: 1; }

@media (hover: hover) {
    .project-card { opacity: 0.5; }
    .project-card:hover,
    .project-card:focus-visible { opacity: 1; }
}

.slider-wrapper > .slide-item:not(:first-child) { display: none; }

#cetos-card .slide-item {
    object-position: right center;
    transform-origin: right center;
}

#bouquet-card .slider-wrapper,
#bouquet-card .phone-tile-slide,
#bouquet-card .phone-tile-slide .phone-container { background: #000; }

.phone-tile-slide { display: flex; width: 100%; height: 100%; background: #000; position: relative; }
.phone-tile-slide .card-bg { position: absolute; top: 0; left: 0; width: 60%; height: 100%; z-index: 0; filter: brightness(0.5); object-fit: cover; }
.phone-tile-slide .phone-container { position: absolute; right: 0; top: 0; width: 40%; height: 100%; background: #0d0d0d; display: flex; justify-content: center; align-items: center; z-index: 5; }
.phone-tile-slide .phone-img { width: 85%; height: 85%; object-fit: contain; }

.project-description { display: none; }

.project-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 32;
    padding: 64px 28px 24px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.8));
    pointer-events: none;
}

.project-title {
    display: block;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: #ffffff;
    text-wrap: balance;
}

.project-caption {
    display: block;
    margin-top: 6px;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #c4c4c4;
}

.project-info::after {
    content: "View project";
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--neon);
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.project-card:hover .project-info::after,
.project-card:focus-visible .project-info::after {
    max-height: 24px;
    margin-top: 10px;
    opacity: 1;
}

.project-card:focus { outline: none; }
.project-card:focus-visible .slider-wrapper { outline: 2px solid var(--neon); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
    .slide-item, .project-card { transition: none; }
    .project-card:hover,
    .project-card:focus-visible,
    .project-card:hover .slide-item,
    .project-card:focus-visible .slide-item { transform: none; }
}

@media (max-width: 1000px) {
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-grid .project-card:nth-child(n) { grid-column: span 1; }
    .project-card .slider-wrapper { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 600px) {
    .project-grid { grid-template-columns: 1fr; }
    .project-info { padding: 56px 20px 20px; }
    .project-info::after { display: none; }
}

.about-section {
    min-height: 100vh;
    background: #121212;
    color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.about-hi-again {
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.about-image-stack {
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #121212;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    width: 100%;
    gap: 0;
}

.image-grid img {
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: cover;
    display: block;
    border: none;
    filter: brightness(0.7);
    transition: transform 0.4s cubic-bezier(0.3, 0, 0, 1), filter 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-content {
    position: relative;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
    overflow: hidden;
}

.hero::before,
.about-content::before,
.extras-content::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(158, 193, 56, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 60%, rgba(158, 193, 56, 0.06) 0%, transparent 40%);
    animation: mesh-flow 20s linear infinite;
    z-index: 0;
}

@keyframes mesh-flow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .about-content::before,
    .extras-content::before { animation: none; }
}

.content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
}

#about-greeting {
    margin-bottom: 40px;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.bio-text p {
    font-size: 14px;
    line-height: 1.85;
    margin-bottom: 25px;
    color: #b3b3b3;
}
.bio-text .soft {
    color: #808080;
    text-decoration: none;
    transition: color 0.2s ease;
}
.bio-text a.soft:hover { color: #ffffff; }
.bio-text a.soft:focus-visible { outline: 2px solid #d4d4d4; outline-offset: 2px; border-radius: 2px; }

.github-contrib { margin-top: 40px; }

.github-contrib-count {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #b3b3b3;
    margin-bottom: 12px;
}
.github-contrib-count:empty { display: none; }

.github-contrib-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #282828;
    padding: 26px 28px;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.3,0,0,1), border-color 0.3s;
}
.github-contrib-card:hover { transform: scale(1.02); border-color: #3a3a3a; }

.contrib-graph {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 6px;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 8px;
    font-weight: 400;
    color: #8b8b8b;
}

.contrib-months {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    column-gap: 2px;
    line-height: 1;
}
.contrib-months span { white-space: nowrap; }

.contrib-days {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 2px;
    height: 0;
    min-height: 100%;
}
.contrib-days span { display: flex; align-items: center; line-height: 1; }

.contrib-grid {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 2px;
}

.contrib-cell { aspect-ratio: 1; border-radius: 1px; background: #262626; }
.contrib-cell.is-pad { background: transparent; }
.contrib-cell[data-level="1"] { background: color-mix(in srgb, var(--neon) 34%, #000); }
.contrib-cell[data-level="2"] { background: color-mix(in srgb, var(--neon) 48%, #000); }
.contrib-cell[data-level="3"] { background: color-mix(in srgb, var(--neon) 64%, #000); }
.contrib-cell[data-level="4"] { background: color-mix(in srgb, var(--neon) 85%, #fff); }

.github-contrib-card:has(.contrib-grid:empty) { display: none; }

.contact-links { display: flex; gap: 30px; margin-top: 35px; align-items: center; }

.contact-links a {
    color: var(--neon);
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}
.contact-links a:hover {
    color: #ffffff;
    border-bottom: 2px solid var(--neon);
}

.scroll-hint {
    margin-left: auto;
    padding-left: 20px;
    border-left: 1px solid #282828;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8b8b8b;
}

.extras-section {
    position: relative;
    border-top: 1px solid #1a1a1a;
}

.extras-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.extras-image-stack {
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
    position: sticky;
    top: 0;
}

.ball-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    width: 100%;
    gap: 0;
}

.ball-grid img {
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    object-fit: cover;
    display: block;
    filter: brightness(0.75);
    transition: transform 0.4s cubic-bezier(0.3, 0, 0, 1), filter 0.3s ease;
}

.ball-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1);
    z-index: 10;
}

.ball-grid-tooltip-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.ball-grid-tooltip-wrap:hover { z-index: 10; }
.ball-grid-tooltip-wrap:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.ball-grid-tooltip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(10, 10, 10, 0.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 20;
}
.ball-grid-tooltip-wrap:hover .ball-grid-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.extras-content {
    position: relative;
    background: #121212;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
}

.extras-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
}

.extras-header { margin-bottom: 32px; }
.extras-col + .extras-col { margin-top: 36px; }

.extras-title {
    font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: var(--neon);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.extras-col-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--neon);
    margin-bottom: 0;
}

.extras-col-items {
    border-top: 1px solid #282828;
    margin-top: 12px;
}

.extras-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 16px;
    border-bottom: 1px solid #282828;
    font-size: 13px;
    color: #b3b3b3;
    border-radius: 5px;
    transition: background 0.2s;
    cursor: default;
}
.extras-item-link:hover { background: rgba(255, 255, 255, 0.07); }

.extras-item-link {
    text-decoration: none;
    cursor: pointer;
}
.extras-item-link:focus-visible {
    outline: 2px solid var(--neon);
    outline-offset: -2px;
    background: rgba(255, 255, 255, 0.07);
}

.extras-item-name {
    font-size: 13px;
    color: #b3b3b3;
    line-height: 1.4;
}
.extras-item-name strong { color: #ffffff; }

.extras-item-detail {
    color: #7a7a7a;
    font-weight: 400;
}

.extras-item-meta {
    font-size: 13px;
    color: #b3b3b3;
    white-space: nowrap;
    margin-left: 24px;
    flex-shrink: 0;
}

.site-footer {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, calc(100% - 160px));
    z-index: 1;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #6b6b6b;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.site-footer a { color: #6b6b6b; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--neon); }
.site-footer a:focus { outline: none; }
.site-footer a:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }

.project-detail-overlay {
    --pd-line: #1f1f1f;
    --pd-text: #a6a6a6;
    --pd-page: 1100px;
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #0a0a0a;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.4s cubic-bezier(0.3,0,0,1), transform 0.4s cubic-bezier(0.3,0,0,1), visibility 0.4s;
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    .project-detail-overlay { scroll-behavior: smooth; }
}

.project-detail-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pd-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(10,10,10,0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pd-line);
}

.pd-crumbs {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.pd-back {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 6px 0;
    color: #8b8b8b;
    font: inherit;
    cursor: pointer;
    transition: color 0.2s;
}
.pd-back:hover { color: #fff; }
.pd-back:focus { outline: none; }
.pd-back:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }
.pd-back svg { width: 11px; height: 11px; }

.pd-crumb-sep { color: #444; }
.pd-crumb-current {
    color: #e8e8e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-link-top {
    flex-shrink: 0;
    margin-left: 20px;
    color: var(--neon);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.2s;
}
.pd-link-top:hover { border-bottom-color: var(--neon); }

.pd-page {
    max-width: var(--pd-page);
    margin: 0 auto;
    padding: 0 40px 100px;
}

.pd-header { padding: 96px 0 40px; }

.pd-title {
    max-width: 22ch;
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
    text-wrap: balance;
    margin-bottom: 56px;
}
.pd-title-org, .pd-title-project { display: block; }
.pd-title-project { color: #8b8b8b; }

.pd-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px 32px;
    padding-top: 20px;
    border-top: 1px solid var(--pd-line);
}
.pd-fact dt {
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6b6b;
    margin-bottom: 8px;
}
.pd-fact dd {
    font-size: 14px;
    line-height: 1.5;
    color: #e8e8e8;
}

.pd-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.06);
}
.pd-cover:empty { display: none; }
.pd-cover > img,
.pd-cover > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-cover > .phone-tile-slide { height: 100%; }
#project-detail-overlay[data-card="cetos-card"] .pd-cover img { object-position: right center; }

.pd-body {
    display: grid;
    grid-template-columns: 180px minmax(0, 680px);
    gap: 80px;
    align-items: start;
    padding-top: 80px;
}

.pd-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pd-sidebar a {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.35;
    color: #6b6b6b;
    text-decoration: none;
    transition: color 0.2s;
}
.pd-nav-num {
    flex-shrink: 0;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.6;
    color: #444;
    transition: color 0.2s;
}
.pd-sidebar a:hover { color: #b3b3b3; }
.pd-sidebar a.active { color: #fff; }
.pd-sidebar a.active .pd-nav-num { color: var(--neon); }
.pd-sidebar a:focus { outline: none; }
.pd-sidebar a:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

.pd-section {
    scroll-margin-top: 90px;
    padding-bottom: 64px;
}
.pd-section + .pd-section {
    padding-top: 40px;
    border-top: 1px solid var(--pd-line);
}

.pd-h2 {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: #fff;
}
.pd-h2-label {
    color: var(--neon);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}
.pd-h2-label:only-child { font-size: 22px; letter-spacing: -0.015em; }
.pd-h2-text { color: #fff; }

.pd-tldr {
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #e8e8e8 !important;
    padding-bottom: 24px;
    margin-bottom: 24px !important;
    border-bottom: 1px dashed #2a2a2a;
}

.pd-section p { color: var(--pd-text); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.pd-section p:last-child { margin-bottom: 0; }
.pd-section p strong { color: #ddd; font-weight: 600; }
.pd-section code {
    font-family: inherit;
    font-size: 13px;
    color: #ddd;
    background: #161616;
    padding: 2px 6px;
    border-radius: 4px;
}

.pd-rows {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    margin: 4px 0 24px;
    border-top: 1px solid var(--pd-line);
}
.pd-rows:last-child { margin-bottom: 0; }
.pd-rows dt,
.pd-rows dd {
    padding: 18px 0;
    border-bottom: 1px solid var(--pd-line);
}
.pd-rows dt {
    padding-right: 20px;
    font-family: inherit;
    font-size: 11px;
    line-height: 2.3;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b6b6b;
}
.pd-rows dd {
    font-size: 15px;
    line-height: 1.75;
    color: var(--pd-text);
}
.pd-rows dd strong { color: #ddd; font-weight: 600; }

.pd-section ol,
.pd-section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.pd-section ul { list-style: disc; }
.pd-section li { color: var(--pd-text); font-size: 15px; line-height: 1.75; }
.pd-section li::marker { color: #555; }
.pd-section li strong { color: #ddd; font-weight: 600; }

.pd-code {
    margin: 20px 0 24px;
    padding: 18px 22px;
    background: #000;
    border: 1px solid var(--pd-line);
    border-radius: 6px;
    overflow-x: auto;
}
.pd-code pre {
    margin: 0;
    font-family: 'Geist Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #d4d4d4;
    white-space: pre;
}
.pd-code-label {
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #6b6b6b;
    margin-bottom: 12px;
}

.pd-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 24px 0 28px;
    border-top: 1px solid var(--pd-line);
    border-bottom: 1px solid var(--pd-line);
}
.pd-stat {
    display: flex;
    flex-direction: column-reverse;
    gap: 6px;
    padding: 22px 20px 22px 0;
}
.pd-stat + .pd-stat { padding-left: 20px; border-left: 1px solid var(--pd-line); }
.pd-stat-label {
    font-family: inherit;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #6b6b6b;
}
.pd-stat-value {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--neon);
}

.pd-constraints {
    margin: 28px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--pd-line);
}
.pd-constraints-label {
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b6b6b;
    margin-bottom: 16px;
}
.pd-section .pd-constraints ol {
    list-style: none;
    counter-reset: tradeoff;
    gap: 18px;
    padding: 0;
}
.pd-section .pd-constraints ol li {
    counter-increment: tradeoff;
    position: relative;
    padding-left: 32px;
}
.pd-constraints ol li::before {
    content: counter(tradeoff, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.15em;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--neon);
}

.pd-full-bleed { width: 100%; }
.pd-full-bleed-section.pd-section { padding: 40px 0 64px; border-top: 1px solid var(--pd-line); }
.pd-gallery-head { margin-left: calc(180px + 80px); }

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.pd-gallery-item {
    width: 100%;
    height: 80vh;
    max-height: 720px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255,255,255,0.06);
}
.pd-gallery-item img,
.pd-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-gallery-item img.gallery-crop-left { object-position: right center; }

.pd-gallery-item.pd-gallery-item-natural { height: auto; max-height: none; }
.pd-gallery-item.pd-gallery-item-natural img,
.pd-gallery-item.pd-gallery-item-natural video {
    height: auto;
    object-fit: contain;
}

.pd-gallery.pd-gallery-grid,
.pd-gallery.pd-gallery-grid-5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.pd-gallery.pd-gallery-grid-5 { grid-template-columns: repeat(5, 1fr); }
.pd-gallery.pd-gallery-grid .pd-gallery-item,
.pd-gallery.pd-gallery-grid-5 .pd-gallery-item {
    height: auto;
    max-height: none;
    aspect-ratio: 1 / 1;
}

.pd-gallery.pd-gallery-row {
    flex-direction: row;
    gap: 8px;
}
.pd-gallery.pd-gallery-row .pd-gallery-item {
    flex: 1 1 0;
    height: 42vh;
}
.pd-gallery.pd-gallery-row .pd-gallery-item.pd-gallery-item-natural {
    flex: 0 0 auto;
    width: auto;
    height: 42vh;
}
.pd-gallery.pd-gallery-row .pd-gallery-item.pd-gallery-item-natural video {
    width: auto;
    max-width: none;
    height: 100%;
    object-fit: contain;
}

.pd-more {
    padding-top: 40px;
    border-top: 1px solid var(--pd-line);
}
.pd-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.pd-more-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.pd-more-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #161616;
    margin-bottom: 8px;
}
.pd-more-thumb img,
.pd-more-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: transform 0.6s cubic-bezier(0.2,0,0,1), filter 0.3s;
}
.pd-more-card:hover .pd-more-thumb img,
.pd-more-card:hover .pd-more-thumb video { transform: scale(1.04); filter: brightness(1); }
.pd-more-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
}
.pd-more-project { display: block; color: #8b8b8b; font-weight: 500; }
.pd-more-meta {
    font-family: inherit;
    font-size: 11px;
    color: #6b6b6b;
}
.pd-more-card:focus { outline: none; }
.pd-more-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
    .pd-more-thumb img, .pd-more-thumb video { transition: none; }
    .pd-more-card:hover .pd-more-thumb img,
    .pd-more-card:hover .pd-more-thumb video { transform: none; }
}

@media (max-width: 900px) {
    .pd-body { grid-template-columns: 1fr; gap: 0; padding-top: 56px; }
    .pd-sidebar { display: none; }
    .pd-gallery-head { margin-left: 0; }
    .pd-gallery-item { height: 70vh; }
    .pd-gallery.pd-gallery-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .pd-gallery.pd-gallery-row { flex-direction: column; }
    .pd-gallery.pd-gallery-row .pd-gallery-item,
    .pd-gallery.pd-gallery-row .pd-gallery-item.pd-gallery-item-natural { width: 100%; height: 45vh; }
    .pd-gallery.pd-gallery-row .pd-gallery-item.pd-gallery-item-natural video { width: 100%; object-fit: contain; }
    .pd-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .pd-topbar { padding: 14px 20px; }
    .pd-page { padding: 0 20px 72px; }
    .pd-header { padding: 56px 0 32px; }
    .pd-title { margin-bottom: 36px; }
    .pd-facts { grid-template-columns: 1fr 1fr; }
    .pd-cover { aspect-ratio: 4 / 3; }
    .pd-tldr { font-size: 18px !important; }
    .pd-rows { grid-template-columns: 1fr; }
    .pd-rows dt { padding: 16px 0 0; border-bottom: none; line-height: 1.4; }
    .pd-rows dd { padding-top: 6px; }
    .pd-stat + .pd-stat { padding-left: 0; border-left: none; }
    .pd-more-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .about-container,
    .extras-container {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .about-hi-again { position: relative; min-height: 0; }
    .about-image-stack,
    .extras-image-stack {
        position: relative;
        min-height: 0;
        height: auto;
        aspect-ratio: 1 / 1;
    }
    .about-content,
    .extras-content { padding: 56px 24px; }
    .extras-content { padding-bottom: 96px; }
    .site-footer { width: calc(100% - 48px); }
    .scroll-hint { display: none; }
}

@media (max-width: 600px) {
    .name-break { display: inline; }
    .hero-name { line-height: 0.88; margin-bottom: 1.06em; }

    #about-greeting { font-size: 30px; }
    .extras-title { font-size: 34px; }
    .contact-links { flex-wrap: wrap; gap: 16px 24px; }
    .extras-item { padding: 14px 8px; }

    .nav { padding: 16px calc(var(--hero-pad) - 10px) 6px; }
    .nav.is-scrolled { padding-top: 6px; }
    .nav-btn { padding: 9px 10px; }

    .github-contrib-card { padding: 18px 16px; }
    .contrib-graph { column-gap: 6px; }

}