@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Pinyon+Script&family=Varela+Round&display=swap');

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

:root {
    --bg: #000000;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #e63946;
    --font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    overflow-x: hidden;
}

#splash-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 48px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
}

.logo sup {
    font-size: 8px;
    vertical-align: super;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 48px;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

nav a .nav-text {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav a .nav-text-clone {
    position: absolute;
    top: 100%;
    left: 0;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav a:hover .nav-text {
    transform: translateY(-100%);
}

nav a:hover .nav-text-clone {
    transform: translateY(-100%);
}

#webgl-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 48px 80px;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 40px;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line-inner {
    display: inline-block;
    transform: translateY(110%);
    animation: revealLine 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.hero h1 .line:nth-child(1) .line-inner { animation-delay: 0.2s; }
.hero h1 .line:nth-child(2) .line-inner { animation-delay: 0.35s; }
.hero h1 .line:nth-child(3) .line-inner { animation-delay: 0.5s; }
.hero h1 .line:nth-child(4) .line-inner { animation-delay: 0.65s; }

@keyframes revealLine {
    to { transform: translateY(0); }
}

.hero .subtitle {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 440px;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 48px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--accent);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.scroll-indicator::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 8px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

section {
    position: relative;
    z-index: 2;
    padding: 120px 48px;
}

.mission {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mission h2 {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 600;
    line-height: 1.3;
    max-width: 900px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.mission h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.3s, gap 0.3s;
}

.cta-link:hover {
    border-color: var(--text);
    gap: 20px;
}

.cta-link .arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.cta-link:hover .arrow {
    transform: translateX(4px);
}

.project {
    padding-top: 80px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.project-header h3 {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-list {
    list-style: none;
}

.project-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    color: var(--text);
    text-decoration: none;
    transition: padding-left 0.4s, color 0.3s;
}

.project-item a:hover {
    padding-left: 20px;
}

.project-item .project-name {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
}

.project-item .project-meta {
    display: flex;
    gap: 40px;
    align-items: center;
}

.project-item .project-award {
    font-size: 13px;
    color: var(--text-muted);
}

.project-item .project-year {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 40px;
    text-align: right;
}

.marquee-section {
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

.marquee-item {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    white-space: nowrap;
    padding: 0 32px;
    color: rgba(255,255,255,0.15);
    letter-spacing: -1px;
}

.marquee-item span {
    color: rgba(255,255,255,0.4);
    font-weight: 300;
    margin: 0 16px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.awards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.awards-text h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.awards-text h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.awards-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 480px;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.award-group {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.award-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.award-group-header h4 {
    font-size: 18px;
    font-weight: 600;
}

.award-group-header .count {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
}

.award-entry {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.award-entry .num {
    min-width: 30px;
    text-align: right;
}

.marquee-section.contact-marquee {
    position: relative;
}

.marquee-section.contact-marquee .marquee-cta {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.marquee-section.contact-marquee:hover .marquee-cta,
.marquee-section.contact-marquee.marquee-active .marquee-cta {
    opacity: 1;
    pointer-events: auto;
}

.marquee-section.contact-marquee:hover .marquee-track,
.marquee-section.contact-marquee.marquee-active .marquee-track {
    opacity: 0.3;
    transition: opacity 0.35s ease;
}

.galaxy-glow-btn {
    z-index: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.2s ease-out;
    transform: scale(0.9);
}

.marquee-section.contact-marquee:hover .galaxy-glow-btn,
.marquee-section.contact-marquee.marquee-active .galaxy-glow-btn {
    transform: scale(1);
}

.galaxy-glow-btn:hover {
    transform: scale(1.05) !important;
}

.galaxy-border {
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 99999px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    position: relative;
    overflow: hidden;
}

.galaxy-inner {
    z-index: 3;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.81);
    border-radius: 99999px;
    padding: 27px 65px;
    font-family: 'Varela Round', sans-serif;
    font-size: 16px;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    transition: all 0.6s;
}

.galaxy-text {
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(0deg, #a5a5a5, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.galaxy-glow-track {
    z-index: -1;
    pointer-events: none;
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.galaxy-glow-track--outer {
    width: 100px;
    height: 100px;
}

.galaxy-glow-track::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(69, 190, 255, 0.7) 0%, rgba(59, 232, 255, 0.3) 40%, transparent 70%);
    filter: blur(8px);
    animation: galaxyRotate 3s linear infinite;
}

.galaxy-glow-track--outer::before {
    background: radial-gradient(circle, rgba(69, 190, 255, 0.5) 0%, rgba(59, 232, 255, 0.15) 50%, transparent 70%);
    filter: blur(15px);
    animation: galaxyRotate 4s linear infinite reverse;
}

.galaxy-glow-btn:hover .galaxy-glow-track,
.galaxy-glow-btn.galaxy-glow-active .galaxy-glow-track {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.galaxy-glow-track::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background-image:
        radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.9) 50%, transparent 100%),
        radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1.5px 1.5px at 45% 80%, rgba(255,255,255,0.8) 50%, transparent 100%),
        radial-gradient(1px 1px at 85% 60%, rgba(255,255,255,0.6) 50%, transparent 100%),
        radial-gradient(2px 2px at 10% 70%, rgba(255,255,255,0.7) 50%, transparent 100%),
        radial-gradient(1px 1px at 60% 50%, rgba(255,255,255,0.8) 50%, transparent 100%);
    animation: galaxySparkle 3s ease-in-out infinite;
}

@keyframes galaxyRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes galaxySparkle {
    0%, 100% { opacity: 0.6; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

footer {
    position: relative;
    z-index: 2;
    padding: 80px 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h5 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
}

.footer-col a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-col .social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.bg-glow {
    position: fixed;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(180, 40, 200, 0.25) 0%, rgba(100, 20, 180, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
    animation: glowFloat 8s ease-in-out infinite alternate;
}

.bg-glow-2 {
    position: fixed;
    bottom: -150px;
    left: 50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(50, 200, 100, 0.15) 0%, rgba(0, 150, 80, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    animation: glowFloat2 10s ease-in-out infinite alternate;
}

.bg-glow-3 {
    position: fixed;
    bottom: -100px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(255, 100, 50, 0.12) 0%, rgba(200, 50, 30, 0.05) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
    pointer-events: none;
    animation: glowFloat3 12s ease-in-out infinite alternate;
}

@keyframes glowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -40px) scale(1.2); }
}

@keyframes glowFloat2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -60px) scale(1.1); }
}

@keyframes glowFloat3 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(40px, -80px) scale(0.9) rotate(20deg); }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 48px 40px 40px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.25,0.1,0.25,1);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.3);
}

.modal h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.modal p.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.modal-field {
    margin-bottom: 20px;
}

.modal-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    box-sizing: border-box;
}

.modal-field input:focus,
.modal-field textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.06);
}

.modal-field input.invalid,
.modal-field textarea.invalid {
    border-color: #e63946;
}

.modal-field textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 220px;
}

.modal-field .field-error {
    font-size: 12px;
    color: #e63946;
    margin-top: 6px;
    min-height: 16px;
}

.modal-field .char-count {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    margin-top: 4px;
}

.modal-field .char-count.over {
    color: #e63946;
}

.modal-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 50px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.3s, transform 0.2s, opacity 0.3s;
}

.modal-submit:hover {
    background: #ff3b3b;
    transform: scale(1.02);
}

.modal-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030305;
    transition: opacity 1s ease;
}

.preloader.done {
    opacity: 0;
    pointer-events: none;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.preloader__shimmer {
    width: 96px;
    height: 1px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    position: relative;
}

.preloader__shimmer-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    background: #22d3ee;
    transform: translateX(-100%);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.preloader__text {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    font-weight: 400;
}

body.is-loading {
    overflow: hidden;
}

@media (max-width: 768px) {
    header { padding: 16px 16px; }
    nav a { font-size: 12px; letter-spacing: 0.5px; }
    nav ul { gap: 16px; }
    .hero { padding: 80px 24px 60px; min-height: auto; justify-content: flex-start; }
    section { padding: 80px 24px; }
    .awards { grid-template-columns: 1fr; gap: 40px; }
    footer { grid-template-columns: 1fr 1fr; padding: 60px 24px; }
    .marquee-section.contact-marquee .marquee-cta {
        opacity: 1;
        pointer-events: auto;
    }
    .marquee-section.contact-marquee .marquee-track {
        opacity: 1;
    }
    .galaxy-glow-btn {
        transform: scale(1);
    }
}

@media (max-width: 380px) {
    header { padding: 12px 12px; }
    nav a { font-size: 11px; letter-spacing: 0; }
    nav ul { gap: 12px; }
    .logo { font-size: 14px; }
}

@media (max-width: 260px) {
    header { padding: 8px 8px; flex-wrap: wrap; justify-content: center; gap: 4px; }
    nav { width: 100%; }
    nav ul { gap: 8px; justify-content: center; flex-wrap: wrap; }
    nav a { font-size: 9px; }
    .logo { font-size: 12px; }
}
