/* =====================================================
   INDEX-SPECIFIC STYLESHEET
   ===================================================== */

#main-content {
    overflow-x: clip;
    position: relative;
    padding-bottom: clamp(260px, 34vw, 380px);
}

/* ========== HERO SECTION ========== */

.hero {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 4vh 6vw 0;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 12% 28%, rgba(45, 255, 73, 0.12), transparent 42%),
        radial-gradient(circle at 85% 10%, rgba(0, 255, 204, 0.1), transparent 45%),
        linear-gradient(120deg, #020706 0%, #030a08 34%, #06110d 65%, #020705 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    background-image:
        linear-gradient(rgba(140, 255, 160, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 255, 160, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    animation: grid-drift 18s linear infinite;
}

.hero::after {
    background: linear-gradient(to bottom, rgba(130, 255, 150, 0) 0%, rgba(130, 255, 150, 0.12) 50%, rgba(130, 255, 150, 0) 100%);
    mix-blend-mode: screen;
    opacity: 0.34;
    transform: translateY(-100%);
    animation: scanline-sweep 6s linear infinite;
}

.hero-name-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    padding-bottom: 10vh;
}

.hero-copy {
    max-width: 56ch;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(2, 12, 8, 0.82);
    border: 1px solid rgba(72, 255, 109, 0.32);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.12) inset, 0 24px 50px rgba(0, 0, 0, 0.45);
    padding: 28px 26px;
    backdrop-filter: blur(2px);
}

.hero-copy::before {
    content: "$ whoami";
    color: #71ff7f;
    opacity: 0.86;
    letter-spacing: 0.08em;
    font: 600 0.78rem/1 "Fraktion Mono", "Courier New", Courier, monospace;
}

.hero-name {
    margin: 0;
    color: #98ff8e;
    font-size: clamp(2.2rem, 8vw, 6.2rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 0 16px rgba(106, 255, 121, 0.34), 0 0 44px rgba(27, 255, 133, 0.16);
}

.heading-text {
    margin: 0;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    color: #b8ffc0;
    font-size: clamp(1rem, 1.9vw, 1.45rem);
    line-height: 1.45;
    max-width: 46ch;
    min-height: 3.2em;
}

.cta {
    margin: 0.2rem 0 0.4rem;
}

.hero-photo-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}

.hero-photo {
    width: auto;
    height: min(94vh, 94dvh);
    max-width: 100%;
    display: block;
    object-fit: contain;
    filter: contrast(1.03) saturate(0.95) drop-shadow(0 0 12px rgba(56, 255, 120, 0.12));
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

/* ========== GALLERY SECTION ========== */

.gallery-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 12%, rgba(72, 255, 109, 0.11), transparent 45%),
        linear-gradient(180deg, rgba(2, 10, 7, 0.95) 0%, rgba(3, 15, 10, 0.98) 100%);
}

.gallery {
    position: relative;
    width: 100%;
    height: 100%;
    flex: none;
    overflow: hidden;
}

.gallery__item {
    background-position: 50% 50%;
    background-size: cover;
    flex: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(72, 255, 109, 0.25);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.08) inset;
}

.gallery__item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    filter: contrast(1.04) saturate(0.94);
}

.gallery--bento {
    display: grid;
    gap: 1vh;
    grid-template-columns: repeat(3, 32.5vw);
    grid-template-rows: repeat(4, 23vh);
    justify-content: center;
    align-content: center;
    padding: 1vh;
    box-sizing: border-box;
}

.gallery--final.gallery--bento {
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(4, 49.5vh);
    gap: 1vh;
}

.gallery--bento .gallery__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
    grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
    grid-area: 1 / 3 / 3 / 4;
}

.gallery--bento .gallery__item:nth-child(5) {
    grid-area: 3 / 1 / 4 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
    grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
    grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
    grid-area: 4 / 2 / 5 / 3;
}

/* ========== ABOUT SECTION ========== */

#bento.section {
    padding: 2rem 5rem 3rem;
}

.section-terminal {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    border-top: 1px solid rgba(72, 255, 109, 0.28);
    background: linear-gradient(180deg, rgba(2, 10, 7, 0.9) 0%, rgba(1, 7, 5, 0.98) 100%);
    color: #bfffc5;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

.section-terminal h2 {
    margin: 0 0 1.2rem;
    color: #98ff8e;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    text-shadow: 0 0 14px rgba(106, 255, 121, 0.22);
}

.section-terminal p {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    margin: 0 0 1rem;
    line-height: 1.65;
    color: #ccffd2;
    max-width: 88ch;
}

/* ========== TIMELINE SECTION ========== */

.hacker-timeline-section {
    overflow: hidden;
    height: 100vh;
    display: grid;
    align-content: center;
    gap: clamp(1.2rem, 2vw, 1.8rem);
    padding: clamp(1.2rem, 2vw, 2rem) 0;
    background: transparent;
}

.timeline-shell {
    padding: 0 clamp(1.2rem, 4vw, 5rem);
    display: grid;
    gap: 0.4rem;
}

.timeline-kicker {
    margin: 0;
    color: #72ff8d;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    opacity: 0.9;
}

.timeline-stage {
    position: relative;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.timeline-track {
    --lane-pad: clamp(16px, 2.6vh, 28px);
    --stem: clamp(54px, 8.2vh, 78px);
    --card-h: clamp(250px, 34vh, 320px);
    --axis-fix: 0px;
    --axis-opacity: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2rem);
    width: max-content;
    min-height: calc((var(--lane-pad) + var(--card-h) + var(--stem)) * 2);
    padding: 0 100vw;
    margin: -18px 0 0;
}

.timeline-track::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(145, 255, 160, 0.95) 0%, rgba(0, 255, 170, 1) 50%, rgba(145, 255, 160, 0.95) 100%);
    box-shadow: 0 0 18px rgba(56, 255, 120, 0.55);
    pointer-events: none;
    z-index: 1;
    opacity: var(--axis-opacity);
}

.timeline-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    gap: 0.62rem;
    flex: 0 0 auto;
    width: clamp(250px, 22vw, 318px);
    height: var(--card-h);
    align-self: flex-start;
    padding: 0.72rem;
    border: 1px solid rgba(92, 255, 129, 0.42);
    background:
        repeating-linear-gradient(0deg, rgba(70, 255, 118, 0.035) 0 1px, transparent 1px 18px),
        repeating-linear-gradient(90deg, rgba(70, 255, 118, 0.025) 0 1px, transparent 1px 18px),
        linear-gradient(160deg, rgba(9, 20, 15, 0.93) 0%, rgba(4, 12, 8, 0.97) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 255, 170, 0.1) inset,
        0 22px 34px rgba(0, 0, 0, 0.42),
        0 0 26px rgba(56, 255, 120, 0.18);
    backdrop-filter: blur(2px);
    border-radius: 0;
    overflow: visible;
    z-index: 3;
}

.timeline-card:nth-child(odd) {
    margin-top: var(--lane-pad);
}

.timeline-card:nth-child(even) {
    align-self: flex-end;
    margin-bottom: var(--lane-pad);
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 5px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(173, 255, 184, 1) 0%, rgba(0, 255, 170, 1) 100%);
    box-shadow: 0 0 18px rgba(56, 255, 120, 0.75);
    pointer-events: none;
    z-index: 2;
}

.timeline-card:nth-child(odd)::before {
    top: 100%;
    height: var(--stem);
}

.timeline-card:nth-child(even)::before {
    bottom: 100%;
    height: var(--stem);
}

.timeline-card::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(174, 255, 185, 0.95);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(195, 255, 204, 1) 0%, rgba(72, 255, 109, 0.95) 45%, rgba(0, 255, 170, 0.9) 100%);
    box-shadow: 0 0 20px rgba(72, 255, 109, 0.8);
    pointer-events: none;
    z-index: 4;
}

.timeline-card:nth-child(odd)::after {
    top: calc(100% + var(--stem));
}

.timeline-card:nth-child(even)::after {
    top: calc(0% - var(--stem));
}

.timeline-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(72, 255, 109, 0.42);
    box-shadow: 0 0 20px rgba(56, 255, 120, 0.16);
    transition: all 0.3s ease;
}

.timeline-card:hover .timeline-photo {
    border-color: rgba(72, 255, 109, 0.8);
    box-shadow: 0 0 32px rgba(56, 255, 120, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.timeline-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.05) saturate(0.95);
}

.timeline-content {
    display: grid;
    gap: 0.24rem;
    align-content: start;
    color: #9cfda2;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

.timeline-year {
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.1rem;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(126, 255, 145, 0.4);
    background: rgba(72, 255, 109, 0.08);
    color: #90ffa0;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    text-transform: uppercase;
    opacity: 0.95;
}

.timeline-year-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 5;
    white-space: nowrap;
    font-size: 0.68rem;
    letter-spacing: 0.07em;
}

.timeline-card:nth-child(odd) .timeline-year-connector {
    top: calc(100% + var(--stem) + 20px);
}

.timeline-card:nth-child(even) .timeline-year-connector {
    top: calc(0% - var(--stem) - 36px);
}

.timeline-content h4 {
    margin: 0;
    color: #98ff8e;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(106, 255, 121, 0.3);
}

.timeline-content p {
    margin: 0.2rem 0 0;
    color: #b8ffc0;
    font-size: 0.82rem;
    line-height: 1.5;
    opacity: 0.83;
}

/* ========== WRITEUPS SECTION ========== */

.writeups-section {
    padding: 3.2rem 5rem 4.2rem;
    border-top: 1px solid rgba(72, 255, 109, 0.28);
    border-bottom: 1px solid rgba(72, 255, 109, 0.24);
    background:
        radial-gradient(circle at 16% 10%, rgba(57, 255, 20, 0.14), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(14, 214, 150, 0.12), transparent 46%),
        linear-gradient(180deg, rgba(3, 14, 10, 0.95) 0%, rgba(2, 9, 6, 0.98) 100%);
    color: #c9ffd0;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

.writeups-shell {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.writeups-kicker {
    margin: 0;
    color: #73ff83;
    letter-spacing: 0.06em;
    font-size: 0.86rem;
    opacity: 0.9;
}

.writeups-title {
    margin: 0;
    color: #9eff9a;
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    text-transform: uppercase;
    text-shadow: 0 0 14px rgba(106, 255, 121, 0.2);
}

.writeups-subtitle {
    margin: 0;
    color: #bfffc6;
    font-size: clamp(0.96rem, 1.4vw, 1.12rem);
    opacity: 0.95;
}

.writeups-status {
    margin-top: 4px;
    color: #a7ffb0;
    min-height: 1.3em;
    font-size: 0.92rem;
    opacity: 0.94;
}

.writeups-grid {
    margin-top: 8px;
    display: grid;
    gap: 14px;
}

.writeup-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(72, 255, 109, 0.3);
    background: linear-gradient(180deg, rgba(5, 25, 16, 0.7) 0%, rgba(3, 16, 10, 0.84) 100%);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.08) inset, 0 14px 26px rgba(0, 0, 0, 0.34);
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.writeup-card:hover {
    transform: translateY(-3px);
    border-color: rgba(110, 255, 143, 0.58);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.16) inset, 0 18px 30px rgba(0, 0, 0, 0.42);
}

.writeup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.writeup-name {
    color: #b7ffb8;
    font-size: 1.02rem;
    text-decoration: none;
    word-break: break-word;
}

.writeup-name:hover {
    color: #e0ffe0;
}

.writeup-visibility {
    color: #102617;
    background: #8fff9f;
    border: 1px solid rgba(57, 255, 20, 0.6);
    padding: 2px 7px;
    font-size: 0.66rem;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.writeup-desc {
    margin: 0;
    color: #c9ffd0;
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 2.8em;
}

.writeup-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #9effa9;
    font-size: 0.8rem;
    opacity: 0.9;
}

.writeup-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========== PIN/PROJECTS SECTION ========== */

.section.gsap-pin-section {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px dashed rgba(72, 255, 109, 0.4);
    border-bottom: 1px dashed rgba(72, 255, 109, 0.4);
    background: transparent;
    overflow: hidden;
}

.pin-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(0.8rem, 2vw, 1.6rem);
    padding: 0 1.25rem;
    position: relative;
}

.pin-section-heading {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    color: #48ff6d;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pin-list {
    margin: 0;
    padding: 0 0 0 0.95rem;
    list-style: none;
    flex: 0 0 auto;
    color: #e0ffe0;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.45;
    letter-spacing: 0.02em;
}

.pin-list li {
    margin: 0;
    padding: 0.18rem 0;
    transition: color 0.25s ease;
}

.pin-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background-color: #39ff14;
    box-shadow: 0 0 14px rgba(57, 255, 20, 0.55);
    transform-origin: top left;
}

.pin-right {
    flex: 1;
    position: relative;
    min-height: clamp(300px, 54vh, 540px);
}

.pin-right .pin-slide {
    position: absolute;
    width: min(62%, 390px);
    top: 50%;
    right: clamp(0.6rem, 2vw, 1.2rem);
    transform: translateY(-50%);
    opacity: 0;
    visibility: hidden;
    border: 1px solid rgba(72, 255, 109, 0.32);
    background: rgba(3, 16, 10, 0.85);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.08) inset, 0 16px 30px rgba(0, 0, 0, 0.35);
}

.pin-right .pin-slide img {
    width: 100%;
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    filter: contrast(1.04) saturate(0.96);
}

.project-card {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(72, 255, 109, 0.3);
    background: linear-gradient(180deg, rgba(5, 25, 16, 0.7) 0%, rgba(3, 16, 10, 0.84) 100%);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.08) inset, 0 14px 26px rgba(0, 0, 0, 0.34);
    padding: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(110, 255, 143, 0.58);
    box-shadow: 0 0 0 1px rgba(0, 255, 170, 0.16) inset, 0 18px 30px rgba(0, 0, 0, 0.42);
}

.project-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-name {
    color: #b7ffb8;
    font-size: 1.02rem;
    text-decoration: none;
    word-break: break-word;
}

.project-name:hover {
    color: #e0ffe0;
}

.project-visibility {
    color: #102617;
    background: #8fff9f;
    border: 1px solid rgba(57, 255, 20, 0.6);
    padding: 2px 7px;
    font-size: 0.66rem;
    text-transform: uppercase;
    border-radius: 999px;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.project-desc {
    margin: 0;
    color: #c9ffd0;
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 2.8em;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #9effa9;
    font-size: 0.8rem;
    opacity: 0.9;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ========== CONTACT OVERLAY ========== */

.contact-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 12, 8, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.contact-overlay-inner {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1.2rem, 3vw, 2.4rem);
    color: #f5fff8;
    background: linear-gradient(135deg, #2e8b57 0%, #0f2b1b 70%);
    border: 1px solid rgba(245, 245, 245, 0.28);
    box-sizing: border-box;
    overflow: hidden;
    align-items: stretch;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vw, 20px);
    min-height: 0;
    overflow: hidden;
}

.contact-panel--form {
    flex: 1;
    padding-right: 24px;
    border-right: 1px solid rgba(245, 245, 245, 0.28);
}

.contact-panel--copy {
    flex: 1.05;
    justify-content: space-between;
    position: relative;
}

.contact-logo {
    width: max-content;
    border: 1px solid rgba(245, 245, 245, 0.65);
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.contact-form {
    display: grid;
    gap: clamp(8px, 1.2vw, 12px);
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

.contact-form label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    outline: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(245, 245, 245, 0.6);
    padding: 8px 0;
    color: inherit;
    font-family: inherit;
    resize: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form textarea::placeholder {
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.65);
    font-size: 0.72rem;
}

.contact-jobs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-job-group {
    display: grid;
    gap: 10px;
    min-width: 150px;
}

.contact-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-submit {
    align-self: flex-start;
    border: 1px solid rgba(245, 245, 245, 0.75);
    background: rgba(10, 24, 16, 0.6);
    color: inherit;
    text-transform: uppercase;
    padding: 0.48em 1.2em;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: #f5fff8;
    color: #0c1e14;
}

.contact-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-meta p {
    margin: 0;
}

.contact-back {
    background: none;
    border: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    cursor: pointer;
}

.contact-about {
    max-width: 36ch;
    font-size: 0.86rem;
    line-height: 1.5;
}

.contact-about p {
    margin: 0;
}

.contact-giant h1 {
    margin: 0;
    font-size: clamp(3rem, 8.5vw, 7.5rem);
    line-height: 0.84;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

/* ========== FOOTER CTA SECTION ========== */

.footer-cta {
    position: relative;
    display: flex;
    justify-content: center;
    padding: clamp(2.8rem, 6vw, 4.2rem) 1.5rem 1.6rem;
    border-top: 1px solid rgba(72, 255, 109, 0.22);
    background:
        radial-gradient(circle at 15% 25%, rgba(57, 255, 20, 0.14), transparent 55%),
        radial-gradient(circle at 90% 0%, rgba(0, 255, 204, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(3, 10, 6, 0.95) 0%, rgba(3, 10, 6, 0.7) 100%);
}

.footer-cta-inner {
    width: min(980px, 100%);
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.8rem, 3vw, 2.6rem);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(12, 26, 17, 0.96), rgba(4, 10, 6, 0.78)),
        repeating-linear-gradient(90deg, rgba(72, 255, 109, 0.08) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(72, 255, 109, 0.05) 0 1px, transparent 1px 38px);
    border: 1px solid rgba(72, 255, 109, 0.32);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 255, 170, 0.12);
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    color: #dfffe8;
}

.footer-cta-kicker {
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(129, 255, 162, 0.82);
}

.footer-cta-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.05;
    color: #c7ffd4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-cta-copy {
    margin: 0;
    max-width: 60ch;
    line-height: 1.55;
    color: rgba(223, 255, 232, 0.86);
}

.footer-cta-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.footer-cta-item {
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(72, 255, 109, 0.2);
    background: rgba(5, 12, 8, 0.65);
}

.footer-cta-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(129, 255, 162, 0.82);
}

.footer-cta-value {
    font-size: 0.9rem;
    color: rgba(223, 255, 232, 0.92);
}

.footer-cta-action {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.footer-cta-note {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(129, 255, 162, 0.7);
}

/* ========== FOOTER ========== */

.footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: clamp(260px, 34vw, 380px);
    isolation: isolate;
    overflow: hidden;
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-blend-mode: color-dodge;
    background-image: url("https://assets.codepen.io/16327/noise.png");
    opacity: 0.22;
    pointer-events: none;
    z-index: 1;
}

#footer-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: block;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.7rem, 2vw, 1.6rem);
    align-items: center;
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(1.2rem, 3vw, 2rem);
    box-sizing: border-box;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    color: #0b1020;
}

.footer-column {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.footer-title {
    margin: 0;
    font-size: clamp(0.86rem, 1.4vw, 0.98rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    line-height: 1.45;
}

.footer-list li {
    margin: 0;
}

.footer-list a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 16, 32, 0.32);
    width: fit-content;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    border-color: rgba(11, 16, 32, 0.95);
    opacity: 0.92;
}

/* ========== ANIMATIONS ========== */

@keyframes grid-drift {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(30px, 30px);
    }
}

@keyframes scanline-sweep {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(100%);
    }
}

/* ========== RESPONSIVE - DESKTOP ========== */

@media (max-width: 1024px) {
    .pin-content {
        grid-template-columns: minmax(150px, 0.36fr) minmax(0, 1fr);
        padding: 0 1rem;
    }

    .pin-list {
        font-size: clamp(1.08rem, 2.8vw, 1.5rem);
        padding-left: 0.8rem;
    }

    .pin-fill {
        left: 0;
        height: 100%;
    }

    .pin-right {
        min-height: clamp(280px, 48vh, 460px);
    }

    .pin-right .pin-slide {
        width: min(72%, 360px);
    }
}

/* ========== RESPONSIVE - MOBILE ========== */

@media (max-width: 767px) {
    .hero {
        flex-direction: column;
        justify-content: space-between;
        gap: 16px;
        padding: 24px 24px 0;
    }

    .hero-name-wrap,
    .hero-photo-wrap {
        justify-content: center;
        padding-bottom: 0;
    }

    .hero-name-wrap {
        flex: 0 0 auto;
    }

    .hero-photo-wrap {
        flex: 1;
        align-items: flex-end;
    }

    .hero-copy {
        align-items: center;
        text-align: center;
        padding: 22px 18px;
    }

    .hero-name {
        font-size: clamp(2rem, 12vw, 3.2rem);
        text-align: center;
    }

    .heading-text {
        font-size: clamp(0.95rem, 4.3vw, 1.15rem);
    }

    .cta-button {
        font-size: 0.78rem;
        padding: 0.45em 1.15em;
        letter-spacing: 0.1em;
    }

    .footer-cta {
        padding: 2rem 1rem 1.2rem;
    }

    .footer-cta-inner {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .footer-cta-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

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

    .footer-cta-action {
        align-items: stretch;
    }

    .contact-overlay-inner {
        flex-direction: column;
        height: 100svh;
        min-height: 100svh;
        gap: 12px;
        padding: 1rem;
        justify-content: flex-start;
    }

    .contact-panel {
        gap: 10px;
    }

    .contact-panel--copy {
        order: -1;
        flex: 0 0 auto;
        gap: 8px;
        justify-content: flex-start;
    }

    .contact-panel--form {
        border-right: none;
        border-top: 1px solid rgba(245, 245, 245, 0.28);
        padding-right: 0;
        padding-top: 12px;
    }

    .contact-logo {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .contact-form {
        gap: 6px;
    }

    .contact-form label {
        font-size: 0.68rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 6px 0;
    }

    .contact-jobs {
        gap: 10px;
    }

    .contact-job-group {
        gap: 8px;
        min-width: 0;
    }

    .contact-item {
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .contact-submit {
        font-size: 0.68rem;
        padding: 0.4em 1em;
    }

    .contact-meta {
        font-size: 0.6rem;
    }

    .contact-about {
        font-size: 0.76rem;
    }

    .contact-giant h1 {
        font-size: clamp(1.9rem, 9vw, 3.6rem);
        line-height: 0.9;
    }

    .hero-photo {
        height: min(68vh, 68dvh);
    }

    .hacker-timeline-section {
        height: 100svh;
        min-height: 100svh;
        overflow: hidden;
        padding: 1.1rem 0;
    }

    .timeline-shell {
        gap: 0.45rem;
    }

    .timeline-stage {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .timeline-track {
        --lane-pad: 12px;
        --stem: clamp(36px, 5.8vh, 56px);
        --card-h: clamp(220px, 31vh, 270px);
        min-height: calc((var(--lane-pad) + var(--card-h) + var(--stem)) * 2);
        padding: 0 100vw;
        gap: 0.85rem;
        margin-top: -12px;
    }

    .timeline-card {
        width: min(80vw, 300px);
        padding: 0.62rem;
    }

    .timeline-content h4 {
        font-size: 0.96rem;
    }

    .timeline-content p {
        font-size: 0.78rem;
    }

    .gallery--bento {
        width: 100%;
        height: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(6, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
        box-sizing: border-box;
    }

    .gallery--bento .gallery__item:nth-child(1) {
        grid-area: 1 / 1 / 3 / 2;
    }

    .gallery--bento .gallery__item:nth-child(2) {
        grid-area: 1 / 2 / 2 / 3;
    }

    .gallery--bento .gallery__item:nth-child(3) {
        grid-area: 2 / 2 / 4 / 3;
    }

    .gallery--bento .gallery__item:nth-child(4) {
        grid-area: 3 / 1 / 4 / 2;
    }

    .gallery--bento .gallery__item:nth-child(5) {
        grid-area: 4 / 1 / 5 / 2;
    }

    .gallery--bento .gallery__item:nth-child(6) {
        grid-area: 4 / 2 / 6 / 3;
    }

    .gallery--bento .gallery__item:nth-child(7) {
        grid-area: 5 / 1 / 6 / 2;
    }

    .gallery--bento .gallery__item:nth-child(8) {
        grid-area: 6 / 1 / 7 / 3;
    }

    #bento.section {
        padding: 1.5rem 1.2rem 2.2rem;
    }

    .writeups-section {
        padding: 2rem 1.2rem 2.6rem;
    }

    .writeups-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section.gsap-pin-section {
        min-height: 100svh;
        height: 100svh;
        align-items: center;
        padding: 1.25rem 0;
    }

    .pin-content {
        display: grid;
        grid-template-columns: minmax(120px, 0.44fr) minmax(0, 1fr);
        align-items: center;
        justify-content: initial;
        gap: 0.5rem;
        padding: 0 0.9rem;
        width: min(100%, 460px);
    }

    .pin-list {
        width: 100%;
        font-size: clamp(0.96rem, 4.8vw, 1.28rem);
        line-height: 1.38;
        padding: 0 0 0 0.72rem;
        margin: 0;
    }

    .pin-fill {
        top: 0;
        bottom: auto;
        left: 0;
        height: 100%;
    }

    .pin-right {
        width: 100%;
        min-height: clamp(230px, 38vh, 300px);
    }

    .pin-right .pin-slide {
        width: min(52vw, 210px);
        max-width: 210px;
        right: 0;
        left: auto;
        transform: translateY(-50%);
    }

    .writeup-card {
        padding: 12px;
    }

    .footer {
        height: 240px;
    }

    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 2.4rem 0.9rem 1rem;
    }

    .footer-title {
        font-size: 0.75rem;
    }

    .footer-list {
        font-size: 0.82rem;
    }
}
