:root {
    --bg: #10120f;
    --panel: #171a15;
    --line: #30372a;
    --text: #e9e9dd;
    --muted: #898e7e;
    --green: #b6d879;
    --amber: #e6a45c;
    --mono: "IBM Plex Mono", monospace;
    --display: "Rajdhani", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
}

body.modal-open {
    overflow: hidden;
}

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

button,
input {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

::selection {
    background: var(--green);
    color: var(--bg);
}

/* CRT-inspired overlay */

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    opacity: 0.12;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        #000 4px
    );
}

/* =========================================================
   NAVIGATION & PERSONAL BRAND
   ========================================================= */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;

    min-height: 76px;
    padding: 0 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    border-bottom: 1px solid var(--line);
    background: rgba(16, 18, 15, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;

    font-weight: 700;
    letter-spacing: 1.2px;
}

.brand-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;

    width: 36px;
    height: 36px;

    border: 1px solid var(--green);
    color: var(--green);
    font-size: 21px;
}

.brand-name {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.brand-muted {
    color: var(--muted);
    transition: color 180ms ease;
}

.brand:hover .brand-muted {
    color: var(--green);
}

/* Primary navigation */

.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.4vw, 32px);
}

.topbar-nav-link {
    position: relative;
    padding: 10px 0;

    color: #c6cbbb;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;

    transition: color 180ms ease;
}

.topbar-nav-link:hover,
.topbar-nav-link:focus-visible,
.topbar-nav-link.active {
    color: var(--green);
}

.topbar-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;

    height: 1px;
    background: var(--green);

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.topbar-nav-link:hover::after,
.topbar-nav-link:focus-visible::after,
.topbar-nav-link.active::after {
    transform: scaleX(1);
}

/* System status */

.topbar-status {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.7px;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px #b6d87955;
}
/* CV download button in the top navigation */
.cv-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    white-space: nowrap;
}

.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--green);
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-decoration: none;

    transition: color 180ms ease;
}

.cv-download:hover {
    color: var(--text);
}

.cv-download:focus-visible {
    outline: 1px solid var(--green);
    outline-offset: 4px;
}

.cv-status .status-dot {
    flex-shrink: 0;
}
/* Contact action */

.topbar-link {
    flex-shrink: 0;

    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
    white-space: nowrap;

    transition: color 180ms ease;
}

.topbar-link span {
    margin-left: 5px;
    color: var(--amber);
}

.topbar-link:hover,
.topbar-link:focus-visible {
    color: var(--green);
}

/* Navigation responsive layout */

@media (max-width: 1100px) {
    .topbar {
        padding-right: 4%;
        padding-left: 4%;
        gap: 16px;
    }

    .topbar-status:not(.cv-status) {
        display: none;
    }
}

@media (max-width: 850px) {
    .topbar {
        min-height: 68px;
        flex-wrap: wrap;
        gap: 10px 18px;
        padding: 12px 24px;
    }

    .topbar-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: clamp(18px, 5vw, 32px);

        overflow-x: auto;
        scrollbar-width: none;
    }

    .topbar-nav::-webkit-scrollbar {
        display: none;
    }

    .topbar-nav-link {
        flex-shrink: 0;
    }

    .topbar-link {
        margin-left: auto;
    }
}

@media (max-width: 420px) {
    .topbar {
        gap: 10px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .brand {
        min-width: 0;
        gap: 8px;
    }

    .brand-name {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .topbar-link {
        font-size: 8px;
    }

    .topbar-nav {
        gap: 22px;
    }

    .topbar-nav-link {
        font-size: 9px;
    }
}
/* Main cinematic screen */

.hero {
    min-height: max(660px, calc(100svh - 76px));
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    align-items: center;
    gap: 7%;
    padding: 80px 10% 110px 9%;
    isolation: isolate;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(#83916a0c 1px, transparent 1px),
        linear-gradient(90deg, #83916a0c 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to right, black, transparent 95%);
}

.hero-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    top: 2%;
    left: 15%;
    z-index: -1;
    background: radial-gradient(
        circle,
        #8caa4520 0%,
        #8caa4508 38%,
        transparent 70%
    );
    pointer-events: none;
}

.hero-content {
    max-width: 690px;
    animation: enter 700ms ease-out both;
}

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 1.1px;
}

.eyebrow-line {
    width: 28px;
    height: 1px;
    background: var(--green);
}

.eyebrow-version {
    color: var(--muted);
    margin-left: 6px;
}

h1 {
    margin: 30px 0 24px;
    font-family: var(--display);
    font-size: clamp(64px, 8.4vw, 116px);
    font-weight: 700;
    line-height: 0.83;
    letter-spacing: -2px;
}

.title-outline {
    color: transparent;
    -webkit-text-stroke: 1px #858c78;
}

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

.hero-description {
    max-width: 600px;
    color: #a9ad9e;
    font-size: 12px;
    line-height: 2;
    text-align: justify;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
}

.primary-button {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--green);
    background: var(--green);
    color: #11150d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 180ms, color 180ms, transform 180ms;
}

.primary-button:hover {
    background: transparent;
    color: var(--green);
    transform: translateY(-2px);
}

.button-icon {
    font-size: 9px;
}

.button-arrow {
    font-size: 15px;
}

.secondary-button {
    color: #b0b3a7;
    font-size: 10px;
    letter-spacing: 0.3px;
}

.secondary-button span {
    color: var(--green);
    margin-right: 6px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 66px;
    color: #c0c4b5;
    font-size: 9px;
}

.meta-label {
    color: var(--muted);
    margin-right: 5px;
}

/* Instrument panel */

.system-panel {
    width: 100%;
    max-width: 380px;
    justify-self: end;
    border: 1px solid #424a37;
    background: linear-gradient(145deg, #1b2018f5, #11140ff5);
    box-shadow: 0 20px 80px #0005;
    animation: enter 900ms 150ms ease-out both;
}

.panel-heading,
.panel-footer {
    padding: 15px 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 9px;
    letter-spacing: 0.7px;
}

.panel-heading {
    border-bottom: 1px solid var(--line);
}

.panel-live,
.row-state {
    color: var(--green);
}

.monitor-graphic {
    height: 225px;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background-image: radial-gradient(#9caf6d0c 1px, transparent 1px);
    background-size: 9px 9px;
}

.system-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 16px;
    border-top: 1px solid #30372a;
    font-size: 9px;
    letter-spacing: 0.2px;
}

.panel-footer {
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 8px;
}

.hero-coordinate {
    position: absolute;
    right: 3%;
    top: 50%;
    writing-mode: vertical-rl;
    color: #6f7565;
    font-size: 8px;
    letter-spacing: 1.4px;
}

.hero-bottom {
    position: absolute;
    bottom: 30px;
    left: 9%;
    right: 9%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
}

.bottom-line {
    height: 1px;
    flex: 1;
    background: var(--line);
}

/* Intro section */

.next-section {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    gap: 60px;
    align-items: center;
    padding: 110px 12%;
    border-top: 1px solid var(--line);
    background: #141712;
}

.section-index {
    color: var(--green);
    font-size: 9px;
    letter-spacing: 1px;
}

.next-section h2 {
    margin: 25px 0 0;
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.95;
}

.next-section h2 span {
    color: var(--green);
}

.next-section > p {
    max-width: 380px;
    color: #a1a696;
    line-height: 2;
    font-size: 11px;
}

.site-footer {
    padding: 24px 6%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 9px;
}

.site-footer a {
    color: var(--green);
}

/* Terminal */

.terminal-overlay[hidden] {
    display: none;
}

.terminal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    padding: 24px;
    display: grid;
    place-items: center;
    background: #060805d9;
    backdrop-filter: blur(8px);
}

.terminal-window {
    width: min(100%, 700px);
    max-height: min(620px, 90svh);
    display: flex;
    flex-direction: column;
    border: 1px solid #62764a;
    background: #10140f;
    box-shadow: 0 20px 100px #000a;
    animation: enter 200ms ease-out both;
}

.terminal-titlebar {
    min-height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #252e20;
    border-bottom: 1px solid #62764a;
    color: var(--green);
    font-size: 10px;
}

.terminal-close {
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.terminal-body {
    min-height: 200px;
    overflow-y: auto;
    padding: 22px;
    color: #d4d8cb;
    font-size: 12px;
    line-height: 1.9;
}

.terminal-body p {
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.terminal-muted {
    color: var(--muted);
}

.terminal-green {
    color: var(--green);
}

.terminal-amber {
    color: var(--amber);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
}

.terminal-input-row label {
    flex-shrink: 0;
    color: var(--green);
    font-size: 10px;
}

.terminal-input-row input {
    min-width: 0;
    width: 100%;
    padding: 6px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    caret-color: var(--green);
}

.terminal-input-row input:focus-visible {
    outline: none;
}

.terminal-hint {
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
    line-height: 1.8;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet and mobile */

@media (max-width: 950px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 32px;
        padding-right: 7%;
        padding-left: 7%;
    }

    h1 {
        font-size: clamp(58px, 8vw, 88px);
    }

    .hero-coordinate {
        display: none;
    }

    .hero-bottom {
        left: 7%;
        right: 7%;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: auto;
        padding: 82px 24px 100px;
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .hero-glow {
        left: -250px;
        top: 0;
    }

    .eyebrow {
        font-size: 9px;
    }

    h1 {
        margin-top: 28px;
        font-size: clamp(58px, 12.5vw, 86px);
        letter-spacing: -1px;
    }

    .hero-description {
        max-width: 350px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    .hero-meta {
        gap: 12px 18px;
        margin-top: 42px;
    }

    .system-panel {
        max-width: none;
        justify-self: stretch;
    }

    .monitor-graphic {
        height: 190px;
    }

    .hero-bottom {
        left: 24px;
        right: 24px;
        bottom: 24px;
        font-size: 7px;
        gap: 10px;
    }

    .next-section {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 72px 24px;
    }

    .next-section h2 {
        font-size: 48px;
    }

    .site-footer {
        padding: 24px;
    }

    .terminal-overlay {
        padding: 12px;
    }

    .terminal-body {
        padding: 16px;
    }

    .terminal-input-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 14px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   BINARY HOVER — CHARACTER WIDTH PRESERVATION
   ========================================================= */

.binary-hover-segment {
    display: inline;
    white-space: inherit;
    font: inherit;
    letter-spacing: inherit;
    vertical-align: baseline;
}

.binary-hover-cell {
    display: inline-block;
    position: relative;
    box-sizing: border-box;

    /*
     * Every character retains its measured original width.
     * Binary digits are clipped to that same width instead
     * of expanding the button or headline.
     */
    width: var(--binary-cell-width);
    min-width: var(--binary-cell-width);
    max-width: var(--binary-cell-width);

    overflow: hidden;
    white-space: pre;
    vertical-align: baseline;

    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: inherit;

    font-variant-ligatures: none;
    text-shadow: none;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-style: inherit;
    text-transform: inherit;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    font-style: inherit !important;
    color: inherit !important;
    text-transform: inherit !important;
    opacity: 1;
    text-shadow: none;
    -webkit-text-fill-color: currentColor;
}

a:hover .binary-hover-cell,
a:focus-visible .binary-hover-cell,
button:hover .binary-hover-cell,
button:focus-visible .binary-hover-cell,
[role="button"]:hover .binary-hover-cell,
[role="button"]:focus-visible .binary-hover-cell {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 0 4px currentColor;
}


@media (prefers-reduced-motion: reduce) {
    .binary-hover-cell {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   CINEMATIC HERO DESIGN
   Industrial atmosphere / tactical engineering interface
   ========================================================= */

/* Deeper lighting without changing the existing layout. */
.hero {
    background:
        radial-gradient(
            ellipse at 24% 42%,
            rgba(112, 143, 64, 0.105) 0%,
            rgba(70, 91, 43, 0.045) 34%,
            transparent 66%
        ),
        radial-gradient(
            ellipse at 83% 48%,
            rgba(191, 133, 66, 0.045) 0%,
            transparent 44%
        ),
        linear-gradient(
            115deg,
            #10130f 0%,
            #11150f 48%,
            #0d100c 100%
        );
}

/* Layered technical grid with a softer edge. */
.hero-grid {
    opacity: 0.8;
    background-image:
        linear-gradient(
            rgba(153, 177, 112, 0.065) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(153, 177, 112, 0.065) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(153, 177, 112, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(153, 177, 112, 0.025) 1px,
            transparent 1px
        );
    background-size:
        48px 48px,
        48px 48px,
        12px 12px,
        12px 12px;
    mask-image: linear-gradient(
        100deg,
        black 0%,
        rgba(0, 0, 0, 0.7) 48%,
        transparent 100%
    );
    animation: hero-grid-drift 35s linear infinite;
}

/* Atmospheric glow: slow and restrained. */
.hero-glow {
    width: 720px;
    height: 720px;
    top: -5%;
    left: 5%;
    background: radial-gradient(
        circle,
        rgba(151, 181, 83, 0.105) 0%,
        rgba(115, 143, 65, 0.045) 32%,
        rgba(115, 143, 65, 0.012) 52%,
        transparent 72%
    );
    animation: hero-atmosphere 9s ease-in-out infinite alternate;
}

/* Oversized radar rings behind the right-hand interface. */
.system-panel {
    isolation: isolate;
}

.system-panel::before,
.system-panel::after {
    pointer-events: none;
}

.hero::before,
.hero::after {
    content: none;
}

.pipeline-visual {
    position: relative;
    isolation: isolate;
}
/* Refine the headline's presence without changing its scale. */
.hero-content {
    position: relative;
}

.hero-content h1 {
    text-shadow: 0 0 44px rgba(150, 176, 93, 0.045);
}

.title-outline {
    -webkit-text-stroke-color: #969e87;
    text-shadow: 0 0 28px rgba(182, 216, 121, 0.035);
}

.title-accent {
    text-shadow: 0 0 36px rgba(182, 216, 121, 0.12);
}

/* Subtle framing around the system monitor. */
.system-panel {
    position: relative;
    border-color: rgba(144, 165, 108, 0.48);
    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.38),
        0 0 35px rgba(122, 153, 76, 0.045),
        inset 0 0 24px rgba(151, 181, 83, 0.018);
}

.system-panel::before,
.system-panel::after {
    content: "";
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.system-panel::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--green);
    border-left: 2px solid var(--green);
}

.system-panel::after {
    right: -1px;
    bottom: -1px;
    border-right: 2px solid var(--amber);
    border-bottom: 2px solid var(--amber);
}

/* More definition in the system readouts. */
.panel-heading {
    background: linear-gradient(
        90deg,
        rgba(182, 216, 121, 0.045),
        transparent 75%
    );
}

.panel-live {
    text-shadow: 0 0 8px rgba(182, 216, 121, 0.28);
}

.system-row {
    transition: background-color 180ms ease;
}

.system-row:hover {
    background-color: rgba(182, 216, 121, 0.035);
}

/* Animated technical atmosphere. */
@keyframes hero-grid-drift {
    from {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }

    to {
        background-position: 48px 48px, 48px 48px, 12px 12px, 12px 12px;
    }
}

@keyframes hero-atmosphere {
    from {
        opacity: 0.72;
        transform: translate3d(-8px, -5px, 0) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translate3d(12px, 8px, 0) scale(1.04);
    }
}

@keyframes radar-sweep {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

/* Keep the atmosphere restrained on smaller screens. */
@media (max-width: 700px) {
    .hero-glow {
        width: 520px;
        height: 520px;
        left: -250px;
        top: 0;
    }

    .hero-grid {
        opacity: 0.55;
    }
}

/* Accessibility: static atmosphere when reduced motion is requested. */
@media (prefers-reduced-motion: reduce) {
    .hero-grid,
    .hero-glow,
    .hero::after {
        animation: none !important;
    }
}

/* =========================================================
   DATA PIPELINE MONITOR + RADAR
   Single source of truth
   ========================================================= */

/* Monitor display */
.pipeline-visual {
    position: relative;
    isolation: isolate;
    height: 290px;
    padding: 18px 20px;

    display: flex;
    align-items: stretch;
    justify-content: center;

    overflow: visible;

    background:
        radial-gradient(
            ellipse at center,
            rgba(182, 216, 121, 0.08),
            transparent 75%
        ),
        radial-gradient(
            rgba(156, 175, 109, 0.14) 1px,
            transparent 1px
        );

    background-size: auto, 9px 9px;
}

/* Radar base — centered behind the pipeline */
.pipeline-radar {
    position: absolute;
    z-index: 0;

    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.8;
}

/* Stationary radar rings */
.pipeline-radar-ring {
    position: absolute;
    border: 1px solid rgba(182, 216, 121, 0.4);
    border-radius: 50%;
    animation: none;
}

.radar-ring-outer {
    inset: 0;
    border-color: rgba(182, 216, 121, 0.55);
}

.radar-ring-inner {
    inset: 35px;
    border-style: dashed;
    border-color: rgba(182, 216, 121, 0.45);
}

/* Stationary horizontal and vertical axes */
.pipeline-radar-crosshair {
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            90deg,
            transparent calc(50% - 0.5px),
            rgba(182, 216, 121, 0.3) 50%,
            transparent calc(50% + 0.5px)
        ),
        linear-gradient(
            0deg,
            transparent calc(50% - 0.5px),
            rgba(182, 216, 121, 0.3) 50%,
            transparent calc(50% + 0.5px)
        );
}

/* One rotating radar sweep */
.pipeline-radar::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;

    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 290deg,
        rgba(182, 216, 121, 0.015) 315deg,
        rgba(182, 216, 121, 0.08) 340deg,
        rgba(182, 216, 121, 0.55) 358deg,
        transparent 360deg
    );

    animation: pipeline-radar-rotate 4s linear infinite;
}

/* Pipeline stages */
.pipeline-track {
    position: relative;
    z-index: 1;

    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 5px;
}

/* Vertical pipeline connection */
.pipeline-track::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 17px;
    width: 1px;

    background: linear-gradient(
        to bottom,
        rgba(182, 216, 121, 0.15),
        rgba(182, 216, 121, 0.75) 50%,
        rgba(230, 164, 92, 0.55)
    );
}

/* Animated signal traveling down the pipeline */
.pipeline-track::after {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 16px;
    width: 3px;

    background: linear-gradient(
        to bottom,
        transparent,
        var(--green),
        var(--amber),
        transparent
    );

    background-size: 100% 200%;
    animation: pipeline-signal 4s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

/* Individual pipeline stage */
.pipeline-stage {
    position: relative;
    z-index: 1;

    min-height: 49px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    padding: 5px 9px 5px 0;
    border: 1px solid rgba(87, 104, 67, 0.3);
    background: rgba(15, 19, 13, 0.94);

    transition:
        border-color 180ms ease,
        background-color 180ms ease;
}

.pipeline-stage:hover {
    border-color: rgba(182, 216, 121, 0.65);
    background: rgba(35, 44, 27, 0.96);
}

/* Stage number */
.pipeline-node {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(182, 216, 121, 0.7);
    background: #171e13;
    color: var(--green);

    font-size: 11px;
    font-weight: 600;
}

.pipeline-node-ai {
    border-color: rgba(230, 164, 92, 0.8);
    background: #211a12;
    color: var(--amber);
}

/* Stage labels */
.pipeline-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pipeline-name {
    color: #e0e6d4;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
}

.pipeline-detail {
    overflow: hidden;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stage tags */
.pipeline-tag {
    color: var(--green);
    font-size: 8px;
    letter-spacing: 0.6px;
    text-align: right;
}

.pipeline-tag-ai {
    color: var(--amber);
}

.pipeline-indicator {
    color: var(--green);
    font-size: 8px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(182, 216, 121, 0.25);
}

/* Animations */
@keyframes pipeline-radar-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pipeline-signal {
    from {
        background-position: 0 -100%;
    }

    to {
        background-position: 0 100%;
    }
}

/* Tablet */
@media (max-width: 950px) {
    .pipeline-visual {
        padding-right: 12px;
        padding-left: 12px;
    }

    .pipeline-stage {
        gap: 7px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .pipeline-visual {
        height: 290px;
        padding: 18px 14px;
    }

    .pipeline-radar {
        width: 280px;
        height: 280px;
    }

    .pipeline-stage {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        gap: 8px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .pipeline-radar::before,
    .pipeline-track::after {
        animation: none !important;
    }
}
/* =========================================================
   PERSONAL BRAND & SUPPORTING SECTIONS
   ========================================================= */

/* Hero identity */
.eyebrow {
    letter-spacing: 1.1px;
}

.eyebrow-version {
    color: var(--muted);
}

/* Footer */
.site-footer {
    align-items: center;
    letter-spacing: 0.5px;
}

.site-footer > span:first-child {
    color: var(--text);
}

.site-footer > span:nth-child(2) {
    color: var(--muted);
}

.site-footer a {
    color: var(--green);
    transition: color 180ms ease;
}

.site-footer a:hover {
    color: var(--text);
}

/* About section */
.about-content {
    max-width: 440px;
    justify-self: end;
    text-align: justify;
}

.about-content p {
    margin: 0 0 18px;
    color: #a1a696;
    font-size: 11px;
    line-height: 2;
}

/* Small-screen refinements */
@media (max-width: 420px) {
    .hero-content h1 {
        font-size: clamp(48px, 12vw, 58px);
        letter-spacing: -0.8px;
        overflow-wrap: normal;
    }

    .hero-meta {
        column-gap: 14px;
        row-gap: 12px;
    }

    .pipeline-detail {
        font-size: 7px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 700px) {
    .about-content {
        max-width: none;
        justify-self: stretch;
    }
}

/* =========================================================
   SECONDARY PAGES
   Experience / Projects / Background
   ========================================================= */

.inner-page {
    min-height: calc(100svh - 76px);
    padding: 90px 9% 110px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 12% 10%,
            rgba(130, 157, 76, 0.075),
            transparent 44%
        ),
        linear-gradient(135deg, #11140f, #10120f 65%);
}

.page-eyebrow {
    color: var(--green);
    font-size: 10px;
    letter-spacing: 1.2px;
}

.page-title {
    margin: 32px 0 24px;
    font-family: var(--display);
    font-size: clamp(54px, 8vw, 100px);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -1.5px;
}

.page-title span {
    color: var(--green);
}

.page-intro {
    max-width: 620px;
    margin: 0 0 60px;
    color: #a9ad9e;
    font-size: 12px;
    line-height: 2;
    text-align: justify;
}

.record-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 0;
    margin-bottom: 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--green);
    font-size: 9px;
    letter-spacing: 1px;
}

/* Experience timeline */

.timeline {
    max-width: 900px;
    margin-bottom: 48px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-marker {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #64794a;
    color: var(--green);
    background: #171d12;
}

.timeline-content {
    max-width: 650px;
}

.record-meta,
.record-dates {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.7px;
}

.timeline-content h2,
.project-card h2,
.skill-card h2 {
    margin: 12px 0;
    color: var(--text);
    font-family: var(--display);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.1;
}

.record-company {
    color: var(--green);
    font-size: 11px;
}

.timeline-content > p:not(.record-company):not(.record-dates),
.project-card > p,
.skill-card > p {
    color: #a1a696;
    font-size: 11px;
    line-height: 1.9;
}

.record-dates {
    margin-top: 22px;
}

/* Technology tags */

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag-list span {
    padding: 7px 9px;
    border: 1px solid #343e2b;
    color: #c2c9b5;
    background: rgba(182, 216, 121, 0.035);
    font-size: 8px;
    letter-spacing: 0.5px;
}

/* Project cards */

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

.project-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid #353e2d;
    background: linear-gradient(145deg, #191d16, #12150f);
    transition:
        border-color 180ms ease,
        transform 180ms ease,
        background-color 180ms ease;
}

.project-card:hover {
    border-color: #7e9956;
    transform: translateY(-3px);
}

.project-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.7px;
}

.project-status {
    color: var(--green);
}

.project-graphic {
    min-height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 20px);
    margin: 24px 0;
    border: 1px solid #2e3726;
    background:
        linear-gradient(rgba(182, 216, 121, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(182, 216, 121, 0.035) 1px, transparent 1px),
        #11150f;
    background-size: 18px 18px;
}

.project-graphic span {
    padding: 9px 10px;
    border: 1px solid #62764a;
    color: var(--green);
    font-size: 9px;
}

.project-graphic i {
    color: var(--amber);
    font-style: normal;
}

.project-graphic-ai span {
    border-color: #6c5236;
    color: var(--amber);
}

.project-note {
    margin-top: 22px;
    color: var(--muted) !important;
    font-size: 9px !important;
}

/* Background and skills */

.background-section {
    margin-top: 12px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.skill-card {
    min-width: 0;
    padding: 25px;
    background: #141711;
    transition: background 180ms ease;
}

.skill-card:hover {
    background: #1a2015;
}

.skill-index {
    color: var(--green);
    font-size: 9px;
    letter-spacing: 0.8px;
}

.skill-card h2 {
    margin-top: 20px;
}

.background-note {
    max-width: 750px;
    margin: 80px 0 48px;
    padding: 32px;
    border-left: 2px solid var(--green);
    background: rgba(182, 216, 121, 0.035);
}

.background-note h2 {
    margin: 20px 0 12px;
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
}

.background-note > p {
    max-width: 600px;
    color: #a1a696;
    font-size: 11px;
    line-height: 2;
}

/* Secondary page call to action */

.page-cta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #617649;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.6px;
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease;
}

.page-cta span {
    color: var(--amber);
    font-size: 15px;
}

.page-cta:hover {
    color: var(--bg);
    background: var(--green);
    border-color: var(--green);
}

.page-cta:hover span {
    color: var(--bg);
}

/* Responsive secondary pages */

@media (max-width: 700px) {
    .inner-page {
        padding: 65px 24px 80px;
    }

    .page-title {
        font-size: clamp(48px, 11vw, 72px);
        letter-spacing: -0.8px;
    }

    .page-intro {
        margin-bottom: 42px;
    }

    .project-grid,
    .skill-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .timeline-item {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 15px;
    }

    .timeline-marker {
        width: 36px;
        height: 36px;
        font-size: 10px;
    }

    .project-card,
    .skill-card {
        padding: 20px;
    }

    .background-note {
        margin-top: 55px;
        padding: 24px;
    }

    .record-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .skill-card,
    .page-cta {
        transition: none !important;
    }

    .project-card:hover {
        transform: none;
    }
}
/* Experience timeline details */

.experience-list {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
    color: var(--text-muted, #a6aa9c);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.85;
}

.experience-list li {
    padding-left: 0.3rem;
    margin-bottom: 0.55rem;
}

.experience-list li::marker {
    color: var(--accent-green, #a8c66c);
}

.timeline-content h3 {
    margin: 1.5rem 0 0.5rem;
    color: var(--accent-green, #a8c66c);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.record-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-green, #a8c66c);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 180ms ease;
}

.record-link:hover {
    color: var(--accent-amber, #d6a75d);
}

.record-link:focus-visible {
    outline: 2px solid var(--accent-green, #a8c66c);
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .experience-list {
        font-size: 0.78rem;
        padding-left: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .record-link {
        transition: none;
    }
}
/* =========================================================
   EXPERIENCE — CINEMATIC CAREER CONSOLE
   ========================================================= */

.experience-console {
    position: relative;
    max-width: 900px;
    margin: 0 0 58px;
    overflow: hidden;
    border: 1px solid rgba(182, 216, 121, 0.3);
    background:
        linear-gradient(rgba(182, 216, 121, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(182, 216, 121, 0.025) 1px, transparent 1px),
        linear-gradient(135deg, #191e15, #10130e);
    background-size: 24px 24px, 24px 24px, auto;
    box-shadow: inset 0 0 45px rgba(0, 0, 0, 0.2);
    animation: experience-console-enter 800ms ease-out both;
}

.console-topline,
.career-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1px;
}

.console-topline {
    border-bottom: 1px solid var(--line);
    background: rgba(182, 216, 121, 0.025);
}

.console-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
}

.console-live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: console-pulse 2.5s ease-in-out infinite;
}

.career-readout {
    padding: 30px 20px 12px;
}

.career-readout-label {
    margin-bottom: 26px;
    color: #d0d7c2;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.career-years {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    color: var(--green);
    font-size: 9px;
    letter-spacing: 1px;
}

.career-track {
    height: 2px;
    position: relative;
    background: #343c2c;
}

.career-track-fill {
    width: 100%;
    height: 100%;
    transform-origin: left;
    background: linear-gradient(90deg, #566b3b, var(--green));
    box-shadow: 0 0 12px rgba(182, 216, 121, 0.3);
    animation: career-track-reveal 1.8s 300ms ease-out both;
}

.career-track-point {
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid var(--green);
    background: var(--panel);
    transform: translate(-50%, -50%);
}

.point-one { left: 0%; }
.point-two { left: 38%; }
.point-three { left: 72%; }
.point-four {
    left: 100%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(182, 216, 121, 0.5);
}

.career-footer {
    margin-top: 26px;
    border-top: 1px solid rgba(182, 216, 121, 0.13);
    padding-right: 0;
    padding-left: 0;
}

/* Timeline: reveal entries as they enter the viewport */

.timeline-item {
    position: relative;
    transition:
        background-color 300ms ease,
        border-color 300ms ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(182, 216, 121, 0.45),
        transparent
    );
    opacity: 0;
    transition: opacity 300ms ease;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-marker {
    position: relative;
    transition:
        color 250ms ease,
        border-color 250ms ease,
        background 250ms ease,
        box-shadow 250ms ease;
}

.timeline-item:hover .timeline-marker {
    color: #10120f;
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 22px rgba(182, 216, 121, 0.16);
}

.timeline-content h2 {
    transition: color 250ms ease;
}

.timeline-item:hover .timeline-content h2 {
    color: var(--green);
}

/* Scanning light across the console */

.console-scanline {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(182, 216, 121, 0.45),
        transparent
    );
    box-shadow: 0 0 14px rgba(182, 216, 121, 0.12);
    animation: console-scan 8s 1s ease-in-out infinite;
}

@keyframes experience-console-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes career-track-reveal {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes console-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes console-scan {
    0% { top: -5%; opacity: 0; }
    12% { opacity: 1; }
    70% { opacity: 0.5; }
    100% { top: 105%; opacity: 0; }
}

/* Responsive */

@media (max-width: 600px) {
    .experience-console {
        margin-bottom: 40px;
    }

    .career-readout {
        padding: 24px 14px 10px;
    }

    .career-years {
        gap: 10px;
        font-size: 8px;
    }

    .career-readout-label {
        font-size: 19px;
    }

    .console-topline,
    .career-footer {
        padding-right: 14px;
        padding-left: 14px;
    }

    .career-footer {
        justify-content: flex-start;
        gap: 10px 18px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .experience-console,
    .career-track-fill,
    .console-live i,
    .console-scanline {
        animation: none !important;
    }

    .timeline-item,
    .timeline-marker,
    .timeline-content h2 {
        transition: none !important;
    }
}
/* =========================================================
   EXPERIENCE — RIGHT-HAND SIGNAL TIMELINE
   ========================================================= */

.experience-page .timeline--pipe {
    position: relative;
    max-width: 1100px;
    padding-right: 0;
    isolation: isolate;

    /* Content / date rail */
    --date-rail-width: 120px;
    --timeline-line-x: 60px;
}

/* Remove the previous SVG pipe; CSS now owns the rail. */
.experience-page .career-pipe {
    display: none;
}

/* Three-column layout: number, experience, date rail */
.experience-page .timeline-item {
    grid-template-columns: 54px minmax(0, 1fr) var(--date-rail-width);
    column-gap: 24px;
    align-items: stretch;
    padding: 34px 0;
}

/* The vertical rail */
.experience-page .timeline--pipe::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    right: var(--timeline-line-x);

    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(182, 216, 121, 0.38) 5%,
        rgba(182, 216, 121, 0.38) 95%,
        transparent
    );
}

/* Moving luminous signal */
.experience-page .timeline--pipe::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: calc(var(--timeline-line-x) - 1px);
    width: 4px;
    height: 100%;

    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 35%,
        rgba(182, 216, 121, 0.2) 42%,
        var(--green) 49%,
        #efffc7 50%,
        var(--green) 51%,
        rgba(182, 216, 121, 0.2) 58%,
        transparent 65%,
        transparent 100%
    );

    background-size: 100% 260px;
    background-repeat: repeat-y;
    animation: experience-signal-flow 5s linear infinite;
    filter: drop-shadow(0 0 4px rgba(182, 216, 121, 0.65));
    pointer-events: none;
}

/* Right-hand date column */
.experience-page .timeline-date-rail {
    position: relative;
    min-width: 0;
    align-self: stretch;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    text-align: center;
    font-family: var(--mono);
}

/* Timeline node */
.experience-page .timeline-date-node {
    position: relative;
    z-index: 2;
    display: block;
    flex: 0 0 auto;

    width: 13px;
    height: 13px;
    margin: 7px 0;

    border: 1px solid var(--green);
    background: var(--bg);
    transform: rotate(45deg);

    box-shadow:
        0 0 0 4px rgba(182, 216, 121, 0.06),
        0 0 12px rgba(182, 216, 121, 0.28);

    transition:
        background 220ms ease,
        box-shadow 220ms ease,
        transform 220ms ease;
}

/* Date typography */
.experience-page .timeline-date-month {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.experience-page .timeline-date-year {
    color: var(--text);
    font-family: var(--display);
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
}

.experience-page .timeline-date-end {
    max-width: 100%;
    color: var(--muted);
    font-size: 8px;
    line-height: 1.7;
    letter-spacing: 0.7px;
    overflow-wrap: anywhere;
}

.experience-page .timeline-date-status {
    padding: 5px 7px;
    border: 1px solid rgba(182, 216, 121, 0.35);
    color: var(--green);
    background: #171d12;
    font-size: 8px;
    letter-spacing: 1px;
}

/* Highlight the matching node when a job is hovered */
.experience-page .timeline-item:hover .timeline-date-node {
    background: var(--green);
    transform: rotate(135deg) scale(1.12);
    box-shadow:
        0 0 0 5px rgba(182, 216, 121, 0.08),
        0 0 20px rgba(182, 216, 121, 0.65);
}

.experience-page .timeline-item:hover .timeline-date-month,
.experience-page .timeline-item:hover .timeline-date-year {
    color: var(--green);
}

/* Signal travels down the rail */
@keyframes experience-signal-flow {
    from {
        background-position: 0 -260px;
    }
    to {
        background-position: 0 0;
    }
}

/* Tablet */
@media (max-width: 850px) {
    .experience-page .timeline--pipe {
        --date-rail-width: 100px;
        --timeline-line-x: 50px;
    }

    .experience-page .timeline-item {
        column-gap: 16px;
    }

    .experience-page .timeline-date-year {
        font-size: 25px;
    }
}

/* Mobile: remove the side rail and use the existing inline dates */
@media (max-width: 600px) {
    .experience-page .timeline--pipe {
        padding-right: 0;
    }

    .experience-page .timeline--pipe::before,
    .experience-page .timeline--pipe::after {
        display: none;
    }

    .experience-page .timeline-item {
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 15px;
        padding: 26px 0;
    }

    .experience-page .timeline-date-rail {
        display: none;
    }

    .experience-page .record-dates {
        width: fit-content;
        margin-top: 18px;
    }

    .experience-page .record-dates::before {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .experience-page .timeline--pipe::after {
        animation: none;
        background: var(--green);
        opacity: 0.35;
    }

    .experience-page .timeline-date-node,
    .experience-page .timeline-item {
        transition: none;
    }
}

/* Projects page refinements */
.projects-page .project-card {
    scroll-margin-top: 100px;
}

.projects-page .project-card:target {
    border-color: var(--green);
    box-shadow: 0 0 24px rgba(182, 216, 121, 0.08);
}

.projects-page .project-note {
    overflow-wrap: anywhere;
}

@media (min-width: 1100px) {
    .projects-page .project-grid {
        column-gap: 22px;
        row-gap: 22px;
    }
}
/* =========================================
   PROJECT ARCHIVE
   ========================================= */

.projects-page {
    scroll-behavior: smooth;
}

.project-category-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 44px 0 30px;
}

.project-category-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 17px 14px;
    border: 1px solid rgba(190, 220, 170, 0.16);
    background: rgba(255, 255, 255, 0.015);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease,
                background 180ms ease,
                transform 180ms ease;
}

.project-category-nav a:hover {
    border-color: var(--accent, #b5e878);
    background: rgba(181, 232, 120, 0.055);
    transform: translateY(-2px);
}

.category-nav-number {
    color: var(--accent, #b5e878);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
}

.category-nav-name {
    flex: 1;
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.category-nav-arrow {
    color: var(--accent, #b5e878);
}

.projects-archive-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-top: 1px solid rgba(190, 220, 170, 0.25);
    border-bottom: 1px solid rgba(190, 220, 170, 0.12);
    color: var(--muted, #858b80);
    font: 10px "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
}

.project-category {
    padding-top: 64px;
    scroll-margin-top: 32px;
}

.category-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(190, 220, 170, 0.17);
}

.category-index,
.category-code {
    color: var(--muted, #858b80);
    font: 10px "IBM Plex Mono", monospace;
    letter-spacing: 0.08em;
}

.category-heading h2 {
    margin: 9px 0;
    font-family: "Rajdhani", sans-serif;
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
    line-height: 1;
}

.category-heading h2 > span {
    color: var(--accent, #b5e878);
}

.category-heading p {
    margin: 0;
    color: var(--muted, #858b80);
    font-size: 13px;
    line-height: 1.7;
}

.category-code {
    padding: 8px 10px;
    border: 1px solid rgba(190, 220, 170, 0.17);
    white-space: nowrap;
}

/* Fixed-size cards */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.project-card {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 430px;
    min-width: 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(190, 220, 170, 0.17);
    background: rgba(255, 255, 255, 0.018);
    transition: border-color 180ms ease,
                background 180ms ease;
}

.project-card:hover {
    border-color: rgba(181, 232, 120, 0.55);
    background: rgba(255, 255, 255, 0.03);
}

.project-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 25px;
    color: var(--muted, #858b80);
    font: 10px "IBM Plex Mono", monospace;
}

.project-status {
    color: var(--accent, #b5e878);
    text-align: right;
}

.project-status-ai {
    color: #b6a4ff;
}

.project-graphic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    height: 78px;
    flex-shrink: 0;
    margin: 18px 0;
    padding: 0 20px;
    border: 1px solid rgba(190, 220, 170, 0.12);
    background:
        linear-gradient(rgba(181, 232, 120, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(181, 232, 120, 0.025) 1px, transparent 1px);
    background-size: 15px 15px;
}

.project-graphic > span {
    padding: 7px 5px;
    border: 1px solid rgba(181, 232, 120, 0.25);
    color: var(--accent, #b5e878);
    font: 9px "IBM Plex Mono", monospace;
    text-align: center;
}

.project-graphic > i {
    color: var(--muted, #858b80);
    font-style: normal;
}

.project-graphic-ai > span {
    border-color: rgba(182, 164, 255, 0.35);
    color: #b6a4ff;
}

.project-card h3 {
    flex-shrink: 0;
    margin: 0 0 9px;
    font-family: "Rajdhani", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
}
.project-description {
    display: -webkit-box;
    flex-shrink: 0;
    min-height: 43px;
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--muted, #a0a497);
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Expandable details remain inside the fixed card */

.project-details {
    flex-shrink: 0;
    margin: 0 0 12px;
    border-top: 1px solid rgba(190, 220, 170, 0.13);
    border-bottom: 1px solid rgba(190, 220, 170, 0.13);
}

.project-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 31px;
    color: var(--accent, #b5e878);
    cursor: pointer;
    list-style: none;
    font: 9px "IBM Plex Mono", monospace;
    letter-spacing: 0.05em;
}

.project-details summary::-webkit-details-marker {
    display: none;
}

.expand-icon {
    font-size: 15px;
    transition: transform 180ms ease;
}

.project-details[open] .expand-icon {
    transform: rotate(45deg);
}

.project-details-content {
    max-height: 92px;
    padding: 0 5px 10px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--accent, #b5e878) transparent;
}

.project-details-content p {
    margin: 0 0 9px;
    color: var(--muted, #a0a497);
    font-size: 11px;
    line-height: 1.65;
}

.detail-label {
    margin: 10px 0 5px;
    color: var(--accent, #b5e878);
    font: 9px "IBM Plex Mono", monospace;
    letter-spacing: 0.06em;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 10px;
}

.tag-list span {
    padding: 5px 7px;
    border: 1px solid rgba(190, 220, 170, 0.15);
    color: var(--muted, #a0a497);
    font: 9px "IBM Plex Mono", monospace;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    flex-shrink: 0;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(190, 220, 170, 0.12);
    color: var(--muted, #858b80);
    font: 9px "IBM Plex Mono", monospace;
}

.project-card-footer > span:last-child {
    color: var(--accent, #b5e878);
}

.projects-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 65px;
    padding-top: 22px;
    border-top: 1px solid rgba(190, 220, 170, 0.18);
}

/* Responsive layout */

@media (max-width: 1000px) {
    .project-category-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 600px) {
    .project-category-nav {
        gap: 8px;
    }

    .project-category-nav a {
        gap: 7px;
        padding: 13px 9px;
    }

    .category-nav-name {
        font-size: 9px;
    }

    .projects-archive-header {
        flex-wrap: wrap;
        font-size: 9px;
    }

    .project-category {
        padding-top: 45px;
    }

    .project-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .project-card {
        height: 430px;
        padding: 22px;
    }

    .category-heading h2 {
        font-size: 32px;
    }

    .projects-end {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-category-nav a,
    .expand-icon {
        transition: none;
    }
}
/* =========================================================
   BACKGROUND PAGE — TECHNICAL SPECIFICATION
   Matches the updated background.html template
   ========================================================= */

/* Main page atmosphere */
.background-page {
    padding: 90px 9% 110px;
    isolation: isolate;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 8% 5%,
            rgba(130, 157, 76, 0.09),
            transparent 38%
        ),
        radial-gradient(
            ellipse at 92% 48%,
            rgba(230, 164, 92, 0.025),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #11140f 0%,
            #10120f 60%,
            #0e100c 100%
        );
}

/* Subtle technical grid */
.background-page::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;

    pointer-events: none;
    opacity: 0.3;

    background-image:
        linear-gradient(
            rgba(182, 216, 121, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(182, 216, 121, 0.035) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );
}

/* Keep page content above the decorative grid */
.background-page > * {
    position: relative;
}

/* Page eyebrow */
.background-page .page-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--green);
    font-size: 10px;
    letter-spacing: 1.4px;
}

.background-page .page-eyebrow::before {
    content: none;
    width: 24px;
    height: 1px;
    flex: 0 0 24px;

    background: var(--green);
    box-shadow: 0 0 8px rgba(182, 216, 121, 0.3);
}

/* Main heading */
.background-page .page-title {
    margin: 34px 0 25px;

    font-size: clamp(54px, 7.5vw, 96px);
    line-height: 0.9;
    letter-spacing: -1.5px;
}

.background-page .page-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--green);
    text-shadow: none;
}

/* Introductory copy */
.background-page .page-intro {
    max-width: 610px;
    margin-bottom: 72px;

    color: #a9ad9e;
    font-size: 12px;
    line-height: 2;
}
/* =========================================================
   SECTION HEADERS
   ========================================================= */

.background-page .background-section {
    margin-top: 0;
    margin-bottom: 64px;
    scroll-margin-top: 100px;
}

.background-page .record-heading {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 16px 0;
    margin-bottom: 24px;

    border-top: 1px solid rgba(182, 216, 121, 0.35);
    border-bottom: 1px solid var(--line);

    color: var(--green);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.7;
}

.background-page .record-heading span:last-child {
    color: var(--muted);
    text-align: right;
}

/* =========================================================
   SKILL, EDUCATION AND CERTIFICATION CARDS
   ========================================================= */

.background-page .skill-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;

    border: 1px solid var(--line);
    background: var(--line);
}

.background-page .skill-card {
    position: relative;
    min-width: 0;
    padding: 28px;

    overflow-wrap: anywhere;

    border: 0;
    background:
        linear-gradient(
            145deg,
            rgba(26, 31, 22, 0.98),
            rgba(18, 21, 16, 0.98)
        );

    transition:
        background 220ms ease,
        box-shadow 220ms ease;
}

/* Restrained top-edge accent */
.background-page .skill-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 1px;

    background: var(--green);
    box-shadow: 0 0 10px rgba(182, 216, 121, 0.3);

    transition: width 220ms ease;
}

.background-page .skill-card:hover {
    background: #1a2015;
    box-shadow: inset 0 0 30px rgba(182, 216, 121, 0.018);
}

.background-page .skill-card:hover::before {
    width: 100%;
}

.background-page .skill-index {
    display: block;

    color: var(--green);
    font-size: 10px;
    letter-spacing: 0.9px;
    line-height: 1.8;
}

/* Card headings */

/* Card descriptions */
.background-page .skill-card > p {
    margin: 0 0 14px;

    color: #a1a696;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.background-page .skill-card > p:last-child {
    margin-bottom: 0;
}

.background-page .skill-card > p strong {
    color: #dce3d0;
    font-weight: 600;
}

/* =========================================================
   TECHNOLOGY TAGS
   Scoped to the Background page so the project archive
   retains its existing tag styling.
   ========================================================= */

.background-page .tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 7px;

    margin-top: 22px;
    padding-top: 0;
}

.background-page .tag-list span {
    display: inline-flex;
    align-items: center;

    max-width: 100%;
    padding: 7px 9px;

    border: 1px solid #343e2b;
    background: rgba(182, 216, 121, 0.035);

    color: #c2c9b5;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.45px;
    line-height: 1.5;

    overflow-wrap: anywhere;
    white-space: normal;

    transition:
        color 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.background-page .tag-list span:hover {
    border-color: rgba(182, 216, 121, 0.55);
    background: rgba(182, 216, 121, 0.075);
    color: var(--green);
}

/* =========================================================
   PERSONAL SKILLS, INTERESTS AND PRINCIPLE CALLOUTS
   ========================================================= */

.background-page .background-note {
    position: relative;
    max-width: none;
    margin: 0;
    padding: 32px;

    border: 1px solid rgba(182, 216, 121, 0.17);
    border-left: 2px solid var(--green);

    background:
        linear-gradient(
            110deg,
            rgba(182, 216, 121, 0.055),
            rgba(182, 216, 121, 0.012) 65%,
            transparent
        );
}

/* Give standalone callouts consistent section spacing */
.background-page > .background-note {
    margin-top: 0;
    margin-bottom: 42px;
}

.background-page .background-section > .background-note {
    margin-top: 0;
}

/* Callout label */
.background-page .background-note > .section-index {
    display: block;

    color: var(--green);
    font-size: 10px;
    letter-spacing: 1.1px;
    line-height: 1.8;
}

/* Callout heading */

/* Callout body */
.background-page .background-note > p {
    max-width: 680px;
    margin: 0;

    color: #a1a696;
    font-size: 13px;
    line-height: 2;
}

/* Callout tags */
.background-page .background-note .tag-list {
    margin-top: 22px;
}

/* Investment competition result */
.background-page .skill-card .background-note {
    margin-top: 30px;
    padding: 22px;

    border-left-width: 2px;
    border-color: rgba(230, 164, 92, 0.24);
    border-left-color: var(--amber);

    background:
        linear-gradient(
            110deg,
            rgba(230, 164, 92, 0.055),
            rgba(230, 164, 92, 0.012)
        );
}

.background-page .skill-card .background-note > .section-index {
    color: var(--amber);
}


.background-page .skill-card .background-note > p {
    font-size: 13px;
}

/* =========================================================
   EDUCATION AND EXTRACURRICULAR DETAILS
   ========================================================= */

/* Distinguish university names from supporting descriptions */
.background-page #education .skill-card > p:first-of-type {
    color: var(--green);
    font-size: 13px;
    letter-spacing: 0.2px;
}

/* Keep thesis and competition text readable */
.background-page #education .skill-card > p strong {
    display: inline-block;
    margin-bottom: 4px;
    color: #dce3d0;
}

.background-page #extracurricular > .skill-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

/* =========================================================
   ENGINEERING PRINCIPLE AND CONTACT
   ========================================================= */

.background-page .background-section > .engineering-principle {
    margin-top: 32px;
    margin-bottom: 0;

    border-left-color: var(--amber);

    background:
        linear-gradient(
            110deg,
            rgba(230, 164, 92, 0.045),
            rgba(182, 216, 121, 0.018) 65%,
            transparent
        );
}

.background-page .background-section > .engineering-principle > .section-index {
    color: var(--amber);
}

/* Contact CTA */
.background-page .page-cta {
    min-height: 52px;
    padding: 0 20px;
    gap: 24px;

    border-color: rgba(182, 216, 121, 0.55);
    background: rgba(182, 216, 121, 0.025);

    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.background-page .page-cta:hover {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 24px rgba(182, 216, 121, 0.08);
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (min-width: 1200px) {
    .background-page {
        padding-right: 10%;
        padding-left: 10%;
    }

    .background-page .skill-card {
        padding: 32px;
    }

    .background-page .background-section {
        margin-bottom: 76px;
    }
}

@media (max-width: 900px) {
    .background-page .skill-card {
        padding: 24px;
    }


    .background-page .background-section {
        margin-bottom: 56px;
    }
}

@media (max-width: 700px) {
    .background-page {
        padding: 65px 24px 80px;
    }

    .background-page .page-title {
        font-size: clamp(48px, 10.5vw, 72px);
        line-height: 0.94;
        letter-spacing: -0.8px;
    }

    .background-page .page-intro {
        margin-bottom: 48px;
    }

    .background-page .background-section {
        margin-bottom: 48px;
        scroll-margin-top: 90px;
    }

    .background-page .skill-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .background-page .skill-card {
        padding: 24px;
    }


    .background-page .record-heading {
        gap: 8px 16px;
        font-size: 10px;
    }

    .background-page .background-note {
        padding: 25px;
    }


    .background-page .skill-card .background-note {
        padding: 20px;
    }

    .background-page .background-section > .engineering-principle {
        margin-bottom: 0;
    }
}

@media (max-width: 420px) {
    .background-page {
        padding-right: 18px;
        padding-left: 18px;
    }

    .background-page .page-eyebrow {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    .background-page .page-title {
        font-size: clamp(43px, 10.5vw, 52px);
        letter-spacing: -0.6px;
    }

    .background-page .record-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .background-page .record-heading span:last-child {
        text-align: left;
    }

    .background-page .skill-card {
        padding: 20px;
    }


    .background-page .tag-list {
        gap: 6px;
    }

    .background-page .tag-list span {
        padding: 6px 7px;
        font-size: 10px;
    }

    .background-page .background-note {
        padding: 20px;
    }

    .background-page .skill-card .background-note {
        padding: 18px;
    }

    .background-page .page-cta {
        max-width: 100%;
        gap: 14px;
        padding: 0 14px;
        font-size: 10px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .background-page .skill-card,
    .background-page .skill-card::before,
    .background-page .tag-list span,
    .background-page .page-cta {
        transition: none !important;
    }

    .background-page::before {
        animation: none !important;
    }
}
/* =========================================================
   BACKGROUND PAGE — TYPOGRAPHY REFINEMENT
   Match the compact typography of the Projects page
   ========================================================= */

/* Main section headings */
.background-page .background-section-title {
    margin: 0 0 24px;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    text-transform: none;
}

.background-page .background-section-title span {
    color: var(--green);
}

/* Consistent separation between major sections */
.background-page .background-section {
    margin-top: 64px;
    margin-bottom: 64px;
}

.background-page .background-section + .background-section {
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

/* Skills subsections */
.background-page .skills-subsection {
    margin-top: 42px;
}

.background-page .skills-subsection > .record-heading {
    margin-bottom: 24px;
}

/* Card headings */
.background-page .skill-card h3 {
    margin: 18px 0 12px;
    color: var(--text);
    font-family: var(--display);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

/* Body text — match the Projects page */
.background-page .skill-card > p,
.background-page .background-note > p {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.9;
}

/* Callout headings */
.background-page .background-note h3 {
    margin: 18px 0 12px;
    color: var(--text);
    font-family: var(--display);
    font-size: clamp(30px, 4vw, 43px);
    font-weight: 700;
    line-height: 1;
}

/* Competition result heading */
.background-page .skill-card .background-note h3 {
    margin: 15px 0 10px;
    color: var(--amber);
    font-size: 38px;
}

/* Keep tag typography compact */
.background-page .tag-list span {
    font-size: 10px;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 700px) {
    .background-page .background-section {
        margin-top: 48px;
        margin-bottom: 48px;
    }

    .background-page .background-section + .background-section {
        padding-top: 24px;
    }

    .background-page .background-section-title {
        font-size: clamp(30px, 8vw, 36px);
        margin-bottom: 20px;
    }

    .background-page .skills-subsection {
        margin-top: 32px;
    }

    .background-page .skill-card h3 {
        font-size: 24px;
    }

    .background-page .background-note h3 {
        font-size: 32px;
    }
}

@media (max-width: 420px) {
    .background-page .background-section-title {
        font-size: 29px;
    }

    .background-page .skill-card h3 {
        font-size: 23px;
    }

    .background-page .skill-card > p,
    .background-page .background-note > p {
        font-size: 13px;
    }

    .background-page .tag-list span {
        font-size: 10px;
    }
}
.project-github-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--green);
    font: 9px "IBM Plex Mono", monospace;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-decoration: none;
    animation: github-text-flash 1.6s ease-in-out infinite;
    transition: color 180ms ease;
}

.project-github-link::before,
.project-github-link::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #79e6b3;
    box-shadow: 0 0 6px rgba(121, 230, 179, 0.45);
    animation: none;
}

.project-github-link:hover {
    color: var(--amber);
    animation-play-state: paused;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 190, 90, 0.5);
}

.project-github-link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

@keyframes github-text-flash {
    0%, 100% {
        opacity: 1;
        text-shadow:
            0 0 5px rgba(121, 230, 179, 0.35),
            0 0 12px rgba(121, 230, 179, 0.15);
    }

    50% {
        opacity: 0.45;
        text-shadow:
            0 0 12px rgba(121, 230, 179, 0.8),
            0 0 22px rgba(121, 230, 179, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-github-link {
        animation: none;
    }
}

@media (max-width: 420px) {
    .project-github-link {
        font-size: 8px;
        gap: 6px;
    }

    .project-github-link::before,
    .project-github-link::after {
        width: 5px;
        height: 5px;
    }
}
#about .about-heading .about-portrait {
    grid-column: 2;
    grid-row: 1;
    display: block;
    position: static;
    width: 110px;
    height: 138px;
    max-width: 100%;
    box-sizing: border-box;
    object-fit: cover;
    object-position: center top;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(153, 255, 102, 0.4);
    background: #10120f;
    /* filter: grayscale(100%) contrast(1.05); */
    transition: filter 0.3s ease;
}

.about-title-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

#about .about-title-row .about-portrait {
    width: 110px;
    height: 138px;
    flex-shrink: 0;
    object-fit: cover;
    object-position: center top;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(153, 255, 102, 0.4);
    /* filter: grayscale(100%); */
}

.about-title-row h2 {
    margin: 0;
}

#about .section-index {
    display: block;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .about-title-row {
        gap: 14px;
    }

    #about .about-title-row .about-portrait {
        width: 75px;
        height: 95px;
    }
}
