:root {
    --cream:        #EDEAE3;
    --cream-deep:   #E4E1DA;
    --cream-mid:    #E8E5DE;
    --ink:          #141210;
    --ink-mid:      #6E6B65;
    --ink-faint:    #ABA79F;
    --neon:         #00FF9A;
    --neon-soft:    rgba(0, 255, 154, 0.1);
    --neon-border:  rgba(0, 255, 154, 0.28);
    --dark:         #111318;
    --dark-raised:  #181C24;
    --border:       rgba(20, 18, 16, 0.09);
    --border-mid:   rgba(20, 18, 16, 0.16);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
}

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

/* ── NAV ── */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease,
                background 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.site-nav.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgba(237, 234, 227, 0.94);
    border-color: rgba(20,18,16,0.2);
    backdrop-filter: blur(14px);
}
.nav-logo img { height: 32px; width: auto; display: block; filter: drop-shadow(1px 1px 1px #AFAFAF); }
.nav-links {
    list-style: none;
    display: flex;
    gap: 2.25rem;
}
.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mid);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    background: var(--cream);
}

.hero-logo-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 2.25rem;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.hero-logo {
    width: clamp(180px, 40vw, 272px);
    height: auto;
    display: block;
    filter: drop-shadow(1px 1px 1px #AFAFAF);
}

.hero-rule {
    position: relative;
    z-index: 1;
    width: clamp(180px, 40vw, 272px);
    height: 2px;
    background: var(--ink);
    margin: 0 auto 2.25rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.hero-tagline {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 2.8vw, 1.6rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 0.55rem;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.75s forwards;
    filter: drop-shadow(1px 1px 1px #AFAFAF);
}

.hero-location {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-mid);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.88s forwards;
}

.hero-avatar {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(20,18,16,0.28);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.95s forwards;
}
.hero-bio {
    position: relative;
    z-index: 1;
    max-width: 490px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--ink-mid);
    font-weight: 600;
    opacity: 0;
    animation: fadeUp 0.7s ease 1s forwards;
}
.hero-bio strong { color: var(--ink); font-weight: 600; }

.hero-hiring {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-top: 2rem;
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mid);
    border-bottom: 1px solid var(--border-mid);
    padding-bottom: 0.15em;
    transition: color 0.2s, border-color 0.2s;
    opacity: 0;
    animation: fadeUp 0.7s ease 1.1s forwards;
}
.hero-hiring:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.scroll-hint {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.35s forwards;
}
.scroll-hint-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.scroll-line {
    width: 1px;
    height: 32px;
    background: var(--ink-faint);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 100%;
    background: var(--ink);
    animation: scrollDrop 2.2s ease-in-out 1.6s infinite;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes scrollDrop {
    0%   { top: -100%; }
    45%  { top: 0; }
    100% { top: 100%; }
}

/* ── NEON RULE ── */
.neon-rule { height: 1px; background: var(--neon); width: 100%; }

/* ── CYBORDZ SECTION ── */
.cybordz-section {
    background: var(--dark);
    padding: 6.5rem 2.75rem;
}
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}
.section-label::after {
    content: '';
    width: 2.25rem;
    height: 2px;
}
.section-label.neon { color: var(--neon); }
.section-label.neon::after { background: var(--neon); }
.section-label.ink { color: var(--ink-mid); }
.section-label.ink::after { background: var(--ink); }

.cybordz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.cybordz-game-logo {
    width: clamp(160px, 35%, 260px);
    height: auto;
    display: block;
    margin-bottom: 1.75rem;
}

.cybordz-desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.88;
    color: rgba(255,255,255,0.62);
    margin-bottom: 1.75rem;
}

.cybordz-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 2.25rem;
}
.ctag {
    padding: 0.24rem 0.65rem;
    border: 1px solid var(--neon-border);
    font-family: 'Cinzel', serif;
    font-size: 0.56rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0, 255, 154, 0.6);
}

.neon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Cinzel', serif;
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon);
    transition: gap 0.22s, opacity 0.2s;
}
.neon-link:hover { gap: 0.95rem; opacity: 0.8; }
.neon-link svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Media frame with corner brackets */
.media-frame {
    aspect-ratio: 16 / 10;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(0, 255, 154, 0.13);
    position: relative;
    overflow: hidden;
}
.media-frame::before,
.media-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(0, 255, 154, 0.5);
    border-style: solid;
    z-index: 2;
    pointer-events: none;
}
.media-frame::before { top: 10px; left: 10px; border-width: 1.5px 0 0 1.5px; }
.media-frame::after  { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }
.media-frame .yt-facade {
    position: absolute;
    inset: 0;
    cursor: pointer;
}
.media-frame .yt-facade img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media-frame .yt-facade iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.media-frame .yt-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 44px;
    background: rgba(0, 0, 0, 0.72);
    border: 1.5px solid rgba(0, 255, 154, 0.4);
    border-radius: 10px;
    color: #00FF9A;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    z-index: 1;
}
.media-frame .yt-play:hover,
.media-frame .yt-facade:hover .yt-play {
    background: rgba(0, 255, 154, 0.18);
    border-color: rgba(0, 255, 154, 0.8);
}

/* ── ABOUT SECTION ── */
.about-section {
    padding: 7rem 2.75rem;
    background: var(--cream-mid);
}
.about-inner {
    max-width: 620px;
    margin: 0 auto;
}
.about-heading {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 2rem;
    text-align: center;
}
.about-body p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.85;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* ── JOIN SECTION ── */
.join-section {
    padding: 7rem 2.75rem;
    background: var(--cream);
    position: relative;
}
.join-inner { max-width: 1000px; margin: 0 auto; position: relative; }

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 0.6rem;
}
.section-subhead {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-mid);
    margin-bottom: 3rem;
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}
.role-badge {
    padding: 0.38rem 1rem;
    background: var(--ink);
    border: 1px solid var(--ink);
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
}

.join-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--ink);
    max-width: 620px;
    margin-bottom: 1.25rem;
    font-weight: 600;
}
.join-intro:last-of-type { margin-bottom: 3.5rem; }
.join-intro em { color: var(--ink); }

.work-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 3rem;
    border: 1.5px solid var(--ink);
}
.work-col {
    padding: 2.25rem 2.5rem;
    font-weight: 600;
}
.work-col + .work-col { border-left: 1.5px solid var(--ink); }
.work-col h4 {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid var(--ink);
}
.work-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.work-list li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    padding-left: 1.5rem;
    position: relative;
}
.work-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--ink);
    opacity: 0.6;
}

.terms-block {
    padding: 1.75rem 2rem;
    border: 1.5px solid var(--ink);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--ink-mid);
    margin-bottom: 3rem;
    font-weight: 600;
}
.terms-block strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 0.35rem; font-size: 1rem; font-family: 'Cinzel', serif; letter-spacing: 0.08em; text-transform: uppercase; }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.5rem;
    background: var(--ink);
    color: var(--cream);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: gap 0.22s, transform 0.18s, box-shadow 0.22s;
}
.cta-btn:hover {
    gap: 1.2rem;
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 rgba(20,18,16,0.22);
}
.cta-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
    background: var(--cream-deep);
    border-top: 1px solid var(--border-mid);
    padding: 2.5rem 2.75rem;
}
.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.footer-logo img { height: 48px; width: auto; display: block; filter: drop-shadow(1px 1px 1px #AFAFAF); }
.footer-copy {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: var(--ink-mid);
}
.footer-socials { display: flex; gap: 1.25rem; align-items: center; }
.footer-socials a { display: flex; align-items: center; transition: opacity 0.2s; }
.footer-socials a:hover { opacity: 0.5; }
.footer-socials img { width: 18px; height: 18px; }
.footer-socials .x-logo { filter: invert(1); }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.22s; }
.rd3 { transition-delay: 0.34s; }

/* ── HAMBURGER + MOBILE MENU ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu a {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-mid);
    transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--ink); }

/* ── MODALS ── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal.is-open { display: flex; }
.modal-success-view { display: none; }
.modal.is-open .modal-success-view.visible { display: block; }
.modal.is-open .modal-form-view.hidden { display: none; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-panel {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--border-mid);
    box-shadow: 0 24px 64px rgba(20,18,16,0.22);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.75rem 2.5rem 2.5rem;
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--ink-faint);
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.modal-intro {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-form { display: flex; flex-direction: column; gap: 1.25rem; }

.modal-field { display: flex; flex-direction: column; gap: 0.35rem; }

.modal-field label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mid);
}

.modal-optional {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-faint);
}

.modal-field input,
.modal-field select,
.modal-field textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-mid);
    padding: 0.45rem 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s;
    border-radius: 0;
    -webkit-appearance: none;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
    border-bottom-color: var(--ink);
}

.modal-field input::placeholder,
.modal-field textarea::placeholder { color: var(--ink-faint); }

.modal-field textarea { resize: vertical; min-height: 90px; }

.modal-error {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: #b33;
}

.modal-success {
    text-align: center;
    padding: 1rem 0;
}

.modal-success-icon {
    font-size: 2.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
    .site-nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 5rem 1.5rem 4rem; min-height: unset; }
    .cybordz-section { padding: 5rem 1.5rem; }
    .cybordz-grid { grid-template-columns: 1fr; gap: 3rem; }
    .media-frame { order: -1; }
    .about-section { padding: 5.5rem 1.5rem; }
    .join-section { padding: 5.5rem 1.5rem; }
    .work-columns { grid-template-columns: 1fr; }
    .work-col + .work-col { border-left: none; border-top: 1.5px solid var(--ink); }
    footer { padding: 2rem 1.5rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    .modal-panel { padding: 2rem 1.5rem 1.75rem; }
}
