@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

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

:root {
    --bg: #efefef;
    --bg2: #e5e5e5;
    --bg3: #d8d8d8;
    --ink: #0a0a0a;
    --ink-mid: #3a3a3a;
    --ink-muted: #555555;
    --rule: rgba(10, 10, 10, 0.08);
    --rule-mid: rgba(10, 10, 10, 0.18);
    --rule-heavy: rgba(10, 10, 10, 0.6);
    --red: #c0392b;
    --nav-h: 52px;
}

html,
body {
    height: 100%;
    overflow: hidden;
    cursor: none;
}

body {
    font-family: 'Space Mono', monospace;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── CONTOUR BACKGROUND ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(10, 10, 10, 0.055) 39px,
            rgba(10, 10, 10, 0.055) 40px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 39px,
            rgba(10, 10, 10, 0.03) 39px,
            rgba(10, 10, 10, 0.03) 40px
        );
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        transparent,
        transparent 79px,
        rgba(10, 10, 10, 0.025) 79px,
        rgba(10, 10, 10, 0.025) 80px
    );
    pointer-events: none;
    z-index: 0;
}

/* ── SCAN LINE OVERLAY ── */
#scanlines {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.015) 2px,
        rgba(0, 0, 0, 0.015) 4px
    );
    animation: scanMove 8s linear infinite;
    opacity: 0.4;
}
@keyframes scanMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 100px;
    }
}

/* ── CUSTOM CURSOR ── */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition:
        width 0.18s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.18s cubic-bezier(0.23, 1, 0.32, 1),
        background 0.18s,
        opacity 0.12s;
    mix-blend-mode: normal;
    opacity: 0;
    will-change: left, top;
}
#cursor.hovering {
    width: 27px;
    height: 27px;
    background: #fff;
    mix-blend-mode: difference;
}
#cursor.on-image {
    width: 10px;
    height: 10px;
    background: var(--ink);
    mix-blend-mode: normal;
}
#cursor.on-red-btn {
    width: 18px;
    height: 18px;
    background: var(--red);
    mix-blend-mode: normal;
}
#cursor.clicking {
    width: 6px !important;
    height: 6px !important;
}
#cursor.hidden {
    opacity: 0 !important;
}
#cursor:not(.hidden) {
    opacity: 1;
}

/* ── NAV ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--ink);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-logo {
    font-family: 'Space Mono', monospace;
    color: #f0f0f0;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    cursor: none;
    user-select: none;
    transition: letter-spacing 0.3s;
}
.nav-logo:hover {
    letter-spacing: 0.15em;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links a {
    display: block;
    height: var(--nav-h);
    line-height: var(--nav-h);
    padding: 0 1rem;
    color: rgba(240, 240, 240, 0.4);
    text-decoration: none;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    cursor: none;
}
.nav-links a:hover {
    color: #f0f0f0;
}
.nav-links a.active {
    color: #f0f0f0;
    border-bottom-color: var(--red);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}
.hamburger span {
    width: 22px;
    height: 2px;
    background: #f0f0f0;
    display: block;
    transition: 0.3s;
}

/* ── PAGE SYSTEM ── */
.page {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg);
    z-index: 2;
    display: none;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition:
        opacity 0.32s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.page.active {
    display: block;
    pointer-events: auto;
}
.page.active.visible {
    opacity: 1;
    transform: translateY(0);
}
.page.leaving {
    opacity: 0;
    transform: translateY(-8px);
    display: block;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}
#page-home {
    overflow: hidden;
}

/* ── HOME ── */
.home-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 0 4%;
    position: relative;
    gap: 0;
}

.home-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
    min-height: 0;
    padding: 0 2%;
    max-height: calc(100vh - var(--nav-h) - 80px);
}

.home-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
    justify-content: center;
}

.home-dateline {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
    color: var(--ink-muted);
    text-transform: uppercase;
    border-top: 1px solid var(--rule-mid);
    border-bottom: 1px solid var(--rule-mid);
    padding: 0.35rem 1.5rem;
    width: 100%;
    background: rgba(239, 239, 239, 0.7);
    animation: slideDown 0.6s ease 0.1s both;
    position: absolute;
    top: 0;
    left: 0;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wafer-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100vh - var(--nav-h) - 120px);
}

#waferCanvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

#waferLogoReveal {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#waferLogoReveal img {
    width: 85%;
    max-width: 340px;
    object-fit: contain;
}

.home-inner h1 {
    font-size: clamp(1.1rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
    text-align: left;
}
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tagline {
    font-size: 1rem;
    font-style: italic;
    color: var(--ink-muted);
    max-width: 420px;
    border-top: 1px solid var(--rule-mid);
    border-bottom: 1px solid var(--rule-mid);
    padding: 0.4rem 0;
    line-height: 1.75;
    margin: 0;
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.45s both;
    text-align: left;
}

/* ── APPLY BUTTON ── */
.apply-btn {
    background: var(--ink);
    color: var(--bg);
    border: 1.5px solid var(--ink);
    padding: 0.6rem 1.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: none;
    transition:
        color 0.2s,
        border-color 0.2s,
        transform 0.15s,
        box-shadow 0.15s,
        letter-spacing 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 3px 3px 0 var(--rule-heavy);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.55s both;
}
.apply-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateX(-101%);
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}
.apply-btn:hover::before {
    transform: translateX(0);
}
.apply-btn:hover {
    color: #fff;
    border-color: var(--red);
    box-shadow: 4px 4px 0 rgba(192, 57, 43, 0.4);
    transform: translate(-2px, -2px);
    letter-spacing: 0.18em;
}
.apply-btn span,
.apply-btn i {
    position: relative;
    z-index: 1;
}
.apply-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--rule-heavy);
}

/* ── SOCIAL BUTTONS ── */
.social-buttons {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: slideUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.65s both;
}
.social-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--bg);
    background: var(--ink);
    border: 1.5px solid var(--ink);
    transition: all 0.2s;
    cursor: none;
}
.social-btn:hover {
    background: var(--bg);
    transform: translateY(-3px) rotate(-3deg);
}
.social-btn.linkedin:hover {
    color: #0077b5;
    border-color: #0077b5;
}
.social-btn.email:hover {
    color: var(--red);
    border-color: var(--red);
}
.social-btn.twitter:hover {
    color: var(--ink);
}
.social-btn.instagram:hover {
    color: #c13584;
    border-color: #c13584;
}
.social-btn.discord:hover {
    color: #5865f2;
    border-color: #5865f2;
    transform: translateY(-3px) rotate(3deg);
}

/* ── HOME PARTICLES ── */
#home-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.home-particle {
    position: absolute;
    font-size: 0.7rem;
    opacity: 0;
    font-family: 'Space Mono', monospace;
    color: var(--ink-muted);
    animation: floatParticle linear infinite;
    user-select: none;
}
@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 0.35;
    }
    90% {
        opacity: 0.35;
    }
    100% {
        opacity: 0;
        transform: translateY(-60px);
    }
}

/* ── PAGE INNER ── */
.page-inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 5% 3rem;
}

/* ── ABOUT PAGE — special full-height layout ── */
#page-about {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-page-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 4% 0;
    height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.about-page-inner h2 {
    flex-shrink: 0;
    margin-bottom: 0.6rem;
}

.about-content {
    display: grid;
    grid-template-columns: 48% 1fr;
    gap: 2.2rem;
    flex: 1;
    min-height: 0;
    align-items: start;
    padding-bottom: 1rem;
}

/* ── 5-PHOTO COLLAGE ── */
.photo-collage {
    height: 100%;
    max-height: calc(100vh - var(--nav-h) - 160px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 2fr 1.4fr;
    gap: 3px;
    min-height: 0;
}

.collage-item.collage-main {
    grid-column: 1;
    grid-row: 1 / 3;
}
.photo-collage .collage-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}
.photo-collage .collage-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}
.photo-collage .collage-item:nth-child(4) {
    grid-column: 1;
    grid-row: 3;
}
.photo-collage .collage-item:nth-child(5) {
    grid-column: 2;
    grid-row: 3;
}

.collage-item {
    position: relative;
    overflow: hidden;
    cursor: none;
    background: var(--ink);
    min-height: 0;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}

.collage-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.collage-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--red);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    z-index: 2;
}
.collage-item:hover::after {
    opacity: 1;
}

/* ── ABOUT TEXT (right column) ── */
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.8rem;
    overflow-y: auto;
    height: 100%;
    padding-right: 0.5rem;
    padding-bottom: 1rem;
}

.about-text::-webkit-scrollbar {
    width: 3px;
}
.about-text::-webkit-scrollbar-track {
    background: transparent;
}
.about-text::-webkit-scrollbar-thumb {
    background: var(--rule-heavy);
}

.about-text p {
    color: var(--ink-mid);
    line-height: 1.8;
    font-size: 0.82rem;
}
.about-text a {
    color: var(--red);
    text-decoration: none;
    border-bottom: 1px solid var(--red);
    transition: opacity 0.2s;
    cursor: none;
}
.about-text a:hover {
    opacity: 0.7;
}

.mission {
    font-size: 0.88rem !important;
    font-style: italic;
    color: var(--ink) !important;
    border-left: 3px solid var(--ink);
    padding-left: 1rem;
    line-height: 1.7;
    font-weight: 700 !important;
    transition: border-color 0.3s;
    cursor: none;
    margin-bottom: 0 !important;
}
.mission:hover {
    border-color: var(--red);
}

.about-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 0.4rem;
    background: var(--rule-mid);
}
.pillar {
    text-align: left;
    padding: 1rem;
    background: var(--bg);
    transition:
        background 0.15s,
        transform 0.2s;
    cursor: none;
}
.pillar:hover {
    background: var(--bg2);
    transform: translateY(-2px);
}
.pillar i {
    font-size: 1rem;
    color: var(--red);
    margin-bottom: 0.4rem;
    display: block;
}
.pillar h4 {
    color: var(--ink);
    margin-bottom: 0.25rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pillar p {
    font-size: 0.72rem;
    margin: 0;
    color: var(--ink-muted);
}

/* ── HEADINGS ── */
h2 {
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--ink);
    margin-bottom: 0.35rem;
    line-height: 1.1;
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--red);
    margin: 0.5rem auto 1.2rem;
    transition: width 0.4s ease;
}
h2:hover::after {
    width: 80px;
}

h3.team-category {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-muted);
    text-align: center;
    margin: 2.2rem 0 1.3rem;
    border-top: 1px solid var(--rule-mid);
    padding-top: 1.1rem;
}

/* ── MODAL ── */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    animation: fadeIn 0.2s;
    cursor: none;
    backdrop-filter: blur(2px);
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.modal-content {
    background: var(--bg);
    margin: 3% auto;
    border: 1.5px solid var(--rule-heavy);
    width: 90%;
    max-width: 760px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 6px 6px 0 var(--ink);
    animation: slideIn 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
@keyframes slideIn {
    from {
        transform: translateY(-24px) scale(0.97);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.modal-header {
    background: var(--ink);
    padding: 1.4rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h2 {
    color: var(--bg);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.modal-header h2::after {
    display: none;
}
.close {
    color: rgba(240, 240, 240, 0.5);
    font-size: 1.6rem;
    font-weight: 300;
    cursor: none;
    line-height: 1;
    transition: all 0.2s;
}
.close:hover {
    color: var(--red);
    transform: rotate(90deg);
}
.modal-body {
    padding: 1.8rem;
}
.apply-intro {
    background: var(--bg2);
    padding: 1rem 1.3rem;
    border-left: 3px solid var(--ink);
    margin-bottom: 1.5rem;
}
.apply-intro p {
    color: var(--ink-mid);
    font-size: 0.78rem;
    margin: 0;
}
.email-details {
    background: var(--bg3);
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--rule-mid);
}
.email-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
}
.email-info:last-child {
    margin-bottom: 0;
}
.email-info strong {
    color: var(--ink);
    font-size: 0.7rem;
    min-width: 80px;
}
.modal-body h3 {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 1.6rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 0.35rem;
}
.modal-body h3::after {
    display: none;
}
.modal-body h3 i {
    color: var(--red);
}
.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule-mid);
}
.requirement-item {
    display: flex;
    gap: 1.1rem;
    padding: 1rem 1.1rem;
    background: var(--bg);
    transition:
        background 0.15s,
        transform 0.15s;
}
.requirement-item:hover {
    background: var(--bg2);
    transform: translateX(4px);
}
.req-number {
    min-width: 28px;
    width: 28px;
    height: 28px;
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    transition: background 0.2s;
}
.requirement-item:hover .req-number {
    background: var(--red);
}
.req-content h4 {
    color: var(--ink);
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: 700;
}
.req-content p {
    color: var(--ink-muted);
    font-size: 0.75rem;
    margin: 0;
}

/* ── GOALS ── */
.goals-category {
    margin-bottom: 3rem;
}
.goals-category:last-child {
    margin-bottom: 0;
}
.goals-category h3 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    text-align: center;
    margin-bottom: 0.3rem;
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 0.35rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.goals-category h3::after {
    display: none;
}
.goals-category h3 i {
    color: var(--red);
    margin-right: 0.4rem;
}
.goals-intro {
    text-align: center;
    color: var(--ink-muted);
    font-style: italic;
    font-size: 0.75rem;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}
.tech-goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1px;
    background: var(--rule-mid);
}
.tech-card {
    background: var(--bg);
    overflow: hidden;
    position: relative;
    transition:
        background 0.2s,
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.tech-card:hover {
    background: var(--bg2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 2;
}
.tech-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-bottom: 1px solid var(--rule-mid);
    display: block;
    transition: transform 0.4s ease;
}
.tech-card:hover img {
    transform: scale(1.04);
}
.tech-card h4 {
    padding: 0.8rem 1.1rem 0.25rem;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}
.tech-card > p {
    padding: 0 1.1rem 1.1rem;
    color: var(--ink-muted);
    font-size: 0.73rem;
}
.status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.15rem 0.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid;
}
.status.in-progress {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--ink);
    animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}
.status.planned {
    background: var(--bg);
    color: var(--ink-muted);
    border-color: var(--rule-mid);
}
.status.completed {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}
.growth-goals {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--rule-mid);
    max-width: 720px;
    margin: 0 auto;
}
.growth-card {
    display: flex;
    gap: 1.3rem;
    align-items: flex-start;
    padding: 1.3rem;
    background: var(--bg);
    transition:
        background 0.15s,
        transform 0.2s;
}
.growth-card:hover {
    background: var(--bg2);
    transform: translateX(5px);
}
.growth-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.growth-card:hover .growth-icon {
    background: var(--red);
}
.growth-icon i {
    font-size: 0.9rem;
    color: var(--bg);
}
.growth-content h4 {
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-size: 0.8rem;
}
.growth-content p {
    color: var(--ink-muted);
    font-size: 0.75rem;
    margin: 0;
}

/* ── TIMELINE ── */
.timeline-intro {
    text-align: center;
    color: var(--ink-muted);
    font-style: italic;
    font-size: 0.75rem;
    margin-bottom: 2.5rem;
}
.timeline {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    padding-left: 54px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: var(--ink);
}
.timeline-item {
    position: relative;
    padding-bottom: 1.8rem;
}
.timeline-item:last-child {
    padding-bottom: 0;
}
.timeline-date {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}
.timeline-marker {
    position: absolute;
    left: -54px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 0.78rem;
    transition: transform 0.3s;
}
.timeline-item:hover .timeline-marker {
    transform: scale(1.2) rotate(10deg);
}
.timeline-marker.technical {
    background: var(--ink);
}
.timeline-marker.event {
    background: var(--red);
}
.timeline-marker.community {
    background: #2d6a2d;
}
.timeline-marker.milestone {
    background: var(--ink);
}
.timeline-content {
    background: var(--bg);
    padding: 1rem 1.2rem;
    border: 1px solid var(--rule-mid);
    border-left: 2px solid var(--ink);
    box-shadow: 3px 3px 0 var(--rule-mid);
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 4px 4px 0 var(--rule-heavy);
}
.timeline-content h4 {
    color: var(--ink);
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
}
.timeline-content p {
    color: var(--ink-muted);
    font-size: 0.73rem;
    margin: 0;
}
.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.timeline-legend span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ink-muted);
}
.timeline-legend i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg);
    font-size: 0.58rem;
}
.timeline-legend i.technical {
    background: var(--ink);
}
.timeline-legend i.event {
    background: var(--red);
}
.timeline-legend i.community {
    background: #2d6a2d;
}
.timeline-legend i.milestone {
    background: var(--ink);
}

/* ── TEAM ── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 1px;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: var(--rule);
}
.member-card {
    text-align: center;
    text-decoration: none;
    padding: 1.2rem 0.8rem;
    background: var(--bg);
    transition:
        background 0.15s,
        transform 0.2s;
    cursor: none;
    position: relative;
    overflow: hidden;
}
.member-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}
.member-card:hover::before {
    transform: translateY(0);
}
.member-card:hover {
    transform: translateY(-2px);
}
.member-card img,
.member-card h4 {
    position: relative;
    z-index: 1;
}
.member-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin: 0 auto 0.7rem;
    display: block;
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.team-grid.advisors .member-card img {
    width: 110px;
    height: 110px;
}
.member-card:hover img {
    border-color: rgba(255, 255, 255, 0.4);
}
.member-card h4 {
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s;
}
.member-card:hover h4 {
    color: var(--bg);
}
.member-card--open {
    cursor: none;
}
.open-spot-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1.5px dashed var(--ink-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
    font-size: 1.8rem;
    color: var(--ink-muted);
    position: relative;
    z-index: 1;
    transition:
        border-color 0.3s,
        color 0.3s;
}
.member-card--open:hover .open-spot-avatar {
    border-color: var(--red);
    color: var(--red);
}
.open-spot-link {
    display: block;
    font-size: 0.6rem;
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.04em;
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.member-card--open:hover .open-spot-link {
    color: rgba(255, 255, 255, 0.85);
}

/* ── CONTACT ── */
.contact-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.contact-info {
    margin-bottom: 1.8rem;
}
.contact-info p {
    margin: 0.65rem 0;
    color: var(--ink-mid);
    font-size: 0.8rem;
    transition: transform 0.2s;
}
.contact-info p:hover {
    transform: translateX(4px);
}
.contact-info i {
    color: var(--red);
    margin-right: 0.5rem;
    width: 16px;
}
.join-us {
    margin: 1.8rem 0;
}
.join-link {
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 2px;
    transition:
        color 0.2s,
        border-color 0.2s;
    cursor: none;
}
.join-link:hover {
    color: var(--red);
    border-color: var(--red);
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}
.social-icons a {
    width: 38px;
    height: 38px;
    background: var(--ink);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1.5px solid var(--ink);
    transition: all 0.2s;
    cursor: none;
}
.social-icons a:hover {
    background: var(--bg);
    color: var(--ink);
    transform: scale(1.15) rotate(-5deg);
}

/* ── FOOTER ── */
footer {
    background: var(--ink);
    color: var(--bg);
    padding: 1.8rem 8%;
    text-align: center;
    margin-top: 3rem;
}
.footer-logo {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}
.footer-links a {
    color: rgba(240, 240, 240, 0.4);
    text-decoration: none;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
    cursor: none;
}
.footer-links a:hover {
    color: var(--bg);
}
.copyright {
    opacity: 0.35;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
}

/* ── TOAST ── */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: var(--ink);
    color: var(--bg);
    padding: 0.6rem 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--red);
    animation:
        toastIn 0.3s ease,
        toastOut 0.3s ease 2.7s forwards;
    max-width: 280px;
}
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes toastOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

/* ── MAGNETIC + RIPPLE ── */
.magnetic {
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.ripple-container {
    position: relative;
    overflow: hidden;
}
.ripple {
    position: absolute;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.5s linear;
    pointer-events: none;
}
@keyframes rippleAnim {
    to {
        transform: scale(30);
        opacity: 0;
    }
}

/* ── REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    html,
    body {
        cursor: auto;
    }
    #cursor {
        display: none;
    }
    a,
    button,
    .nav-logo,
    .hamburger {
        cursor: pointer;
        pointer-events: auto;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        background: var(--ink);
        flex-direction: column;
        padding: 0.4rem 0;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a {
        height: auto;
        line-height: 1;
        padding: 0.85rem 1.4rem;
        border-bottom: 1px solid rgba(240, 240, 240, 0.06);
    }
    .nav-links a.active {
        border-left: 2px solid var(--red);
        border-bottom-color: rgba(240, 240, 240, 0.06);
    }
    .hamburger {
        display: flex;
    }
    #page-home {
        overflow-y: auto;
    }
    .home-inner {
        height: auto;
        min-height: 100%;
        padding: 2rem 5%;
        justify-content: flex-start;
        gap: 0.8rem;
    }
    .logo-placeholder img {
        width: 200px;
        height: auto;
    }
    .home-inner h1 {
        font-size: 1.2rem;
    }

    #page-about {
        overflow-y: auto;
    }
    .about-page-inner {
        height: auto;
        overflow: visible;
        padding-bottom: 2rem;
    }
    .about-content {
        grid-template-columns: 1fr;
        flex: none;
    }
    .photo-collage {
        height: 60vw;
        min-height: 260px;
        max-height: 420px;
    }
    .about-text {
        height: auto;
        overflow: visible;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }

    .page-inner {
        padding: 1.2rem 5% 2.5rem;
    }
    .growth-card {
        flex-direction: column;
    }
    .timeline {
        padding-left: 46px;
    }
    .timeline::before {
        left: 14px;
    }
    .timeline-marker {
        left: -46px;
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .timeline-legend {
        gap: 1rem;
    }
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    .modal-body {
        padding: 1.2rem;
    }
    .modal-header {
        padding: 1.1rem 1.3rem;
    }
    .requirement-item {
        flex-direction: column;
    }
    .email-info {
        flex-direction: column;
        align-items: flex-start;
    }
    footer {
        padding: 1.6rem 5%;
    }
}

/* ═══════════════════════════════════════════════════
   COLLAGE FLIP CARDS
   ═══════════════════════════════════════════════════ */

.collage-item {
    perspective: 900px;
}

/* Disable the old top-level hover-scale; front face handles its own */
.collage-item:hover img {
    transform: none;
    filter: none;
}

/* Rotating inner wrapper */
.collage-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.collage-item.flipped .collage-flip-inner {
    transform: rotateY(180deg);
}

/* Front and back occupy same space */
.collage-front,
.collage-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* Front: image with subtle hover-scale only when not flipped */
.collage-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.5s ease,
        filter 0.4s ease;
}
.collage-item:not(.flipped):hover .collage-front img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

/* Back: dark info panel */
.collage-back {
    background: var(--ink);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.1rem;
    text-align: center;
    gap: 0.55rem;
    border: 2px solid var(--red);
}
.collage-back i {
    font-size: 1.4rem;
    color: var(--red);
    flex-shrink: 0;
}
.collage-back h4 {
    color: #f0f0f0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}
.collage-back p {
    color: rgba(240, 240, 240, 0.58);
    font-size: 0.63rem;
    line-height: 1.7;
    margin: 0;
    font-family: 'Space Mono', monospace;
}

/* "click to flip" corner hint */
.collage-hint {
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.25s;
    font-family: 'Space Mono', monospace;
}
.collage-item.flipped .collage-hint {
    opacity: 0;
}
.collage-item.flipped::after {
    opacity: 0;
} /* hide red border on back face */

@media (max-width: 768px) {
    .collage-item:not(.flipped):hover .collage-front img {
        transform: none;
        filter: none;
    }
}
