/*  Reset  */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #0A0A0A;
    background: #FFFFFF;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/*  Variables  */
:root {
    --c-white: #FFFFFF;
    --c-black: #0A0A0A;
    --c-gray-1: #FAFAFA;
    --c-gray-2: #E5E5E5;
    --c-gray-3: #A3A3A3;
    --c-gray-4: #737373;
    --c-gray-5: #525252;
    --c-gray-6: #1A1A1A;
    --c-footer-divider: #1A1A1A;
    --max-w: 1440px;
    --pad-x: 64px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/*  Container  */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/*  Header  */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.header.scrolled { background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--c-gray-2); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.header__divider { height: 1px; background: var(--c-gray-2); transform: scaleX(0); transform-origin: center; transition: transform .6s var(--ease); }
.header.scrolled .header__divider { transform: scaleX(1); }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.logo__text { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 16px; color: var(--c-white); transition: color .4s var(--ease); }
.header.scrolled .logo__text { color: var(--c-black); }

.nav { display: flex; gap: 28px; }
.nav__link { font-size: 13px; color: rgba(255,255,255,0.7); position: relative; transition: color .3s var(--ease); }
.nav__link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--c-white); transition: width .4s var(--ease); }
.nav__link:hover { color: var(--c-white); }
.nav__link:hover::after { width: 100%; }
.header.scrolled .nav__link { color: var(--c-gray-4); }
.header.scrolled .nav__link::after { background: var(--c-black); }
.header.scrolled .nav__link:hover { color: var(--c-black); }

.nav__toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--c-white); border-radius: 1px; transition: transform .3s var(--ease), opacity .3s, background .4s; }
.header.scrolled .nav__toggle span { background: var(--c-black); }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/*  Hero  */
.hero { padding: 120px 0; min-height: 598px; display: flex; align-items: center; background: #0A0A0A; position: relative; overflow: hidden; }
.hero__flow {
    position: absolute;
    top: 0; left: 0;
    width: 200%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 115, 23, 0.07) 0%,
        rgba(0, 166, 233, 0.07) 20%,
        rgba(255, 115, 23, 0.05) 40%,
        rgba(0, 166, 233, 0.07) 60%,
        rgba(255, 115, 23, 0.07) 80%,
        rgba(0, 166, 233, 0.07) 100%
    );
    animation: flowGradient 14s linear infinite;
    opacity: 0.7;
}
@keyframes flowGradient {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.hero__blob--orange {
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 115, 23, 0.35), transparent 65%);
    filter: blur(70px);
    top: 15%; left: 8%;
    pointer-events: none;
    z-index: 0;
    animation: blobOrange 18s ease-in-out infinite;
}
@keyframes blobOrange {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(120px, 60px) scale(1.15); }
    66% { transform: translate(-60px, 100px) scale(0.9); }
}
.hero__blob--blue {
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 166, 233, 0.28), transparent 65%);
    filter: blur(80px);
    top: 35%; right: 5%;
    pointer-events: none;
    z-index: 0;
    animation: blobBlue 22s ease-in-out infinite;
}
@keyframes blobBlue {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-90px, 70px) scale(1.1); }
    66% { transform: translate(70px, -90px) scale(0.85); }
}

.hero__grid {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

/* mouse effect */
.cursor-main {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Geist Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: cursorPulse 1.2s ease-in-out infinite;
    user-select: none;
    will-change: left, top;
}
.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    font-size: 13px;
    transform: translate(-50%, -50%);
    user-select: none;
    will-change: transform, opacity;
}
@keyframes cursorPulse {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; }
}
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero__title { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: clamp(48px, 5vw, 68px); line-height: 1.1; color: var(--c-white); }
.hero__line { display: block; }
.hero__subtitle { font-size: 17px; line-height: 1.7; color: var(--c-gray-3); max-width: 720px; margin-top: 28px; }
.hero .btn { margin-top: 28px; }

/*  Button  */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Noto Sans SC', sans-serif; font-weight: 500; font-size: 15px; padding: 14px 28px; border-radius: 6px; cursor: pointer; border: none; transition: all .4s var(--ease); position: relative; overflow: hidden; }
.btn--primary { background: var(--c-white); color: var(--c-black); }
.btn--primary::before { content: ''; position: absolute; inset: 0; background: var(--c-black); transform: translateY(100%); transition: transform .4s var(--ease); z-index: 0; }
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary:hover { color: var(--c-white); }
.btn--primary > * { position: relative; z-index: 1; transition: transform .3s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/*  Section Head  */
.section-head { margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.section-eyebrow { font-family: 'Geist', sans-serif; font-weight: 500; font-size: 12px; color: var(--c-gray-4); letter-spacing: 0.08em; text-transform: uppercase; }
.section-eyebrow--light { color: var(--c-gray-3); }
.section-title { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 40px); color: var(--c-black); }
.section-desc { font-size: 17px; color: var(--c-gray-4); }

/*  Services  */
.services { background: var(--c-gray-1); padding: 80px 0; }
.services__list { display: flex; flex-direction: column; }
.service-row { display: flex; align-items: center; gap: 24px; padding: 28px 0; border-top: 1px solid var(--c-gray-2); position: relative; transition: padding-left .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row:last-child { border-bottom: 1px solid var(--c-gray-2); }
.service-row::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 100%; background: var(--c-white); transition: width .5s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 0; }
.service-row::after { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; background: var(--c-black); transform: translateY(-50%); transition: height .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); z-index: 2; }

.service-row:hover { padding-left: 32px; }
.service-row:hover::before { width: 100%; }
.service-row:hover::after { height: 60%; }
.service-row > * { position: relative; z-index: 1; }

.service-row__icon { flex-shrink: 0; width: 52px; height: 52px; border: 1px solid var(--c-gray-2); border-radius: 10px; background: var(--c-white); display: flex; align-items: center; justify-content: center; color: var(--c-black); transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row:hover .service-row__icon { transform: scale(1.1) rotate(-6deg); border-color: var(--c-black); background: var(--c-black); color: var(--c-white); }

.service-row__body { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.service-row__title { font-family: 'Noto Sans SC', sans-serif; font-weight: 600; font-size: 22px; color: var(--c-black); transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row:hover .service-row__title { transform: translateX(4px); }
.service-row__desc { font-size: 15px; color: var(--c-gray-4); transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row:hover .service-row__desc { color: var(--c-gray-5); transform: translateX(4px); }

.service-row__tag { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--c-gray-3); flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row__tag::after { content: '→'; opacity: 0; transform: translateX(-6px); transition: all .4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-row:hover .service-row__tag { color: var(--c-black); transform: translateX(4px); }
.service-row:hover .service-row__tag::after { opacity: 1; transform: translateX(0); }

/*  Portfolio  */
.portfolio { background: var(--c-white); padding: 80px 0; }
.portfolio__featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 32px; }
.project-card { border: 1px solid var(--c-gray-2); overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.08); }
.project-card__thumb { height: 300px; background: linear-gradient(135deg, #181818, #2A2A2A); overflow: hidden; position: relative; }
.project-card__thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); }
.project-card:hover .project-card__thumb-inner { transform: scale(1.06); }
.project-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.project-card:hover .project-card__img { transform: scale(1.06); }
.project-card__deco { opacity: 0.4; transition: opacity .4s, transform .6s var(--ease); }
.project-card:hover .project-card__deco { opacity: 0.8; transform: rotate(8deg) scale(1.1); }
.project-card__body { padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; }
.project-card__num { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--c-gray-3); }
.project-card__title { font-family: 'Noto Sans SC', sans-serif; font-weight: 600; font-size: 24px; color: var(--c-black); }
.project-card__desc { font-size: 15px; color: var(--c-gray-4); }
.project-card__link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Noto Sans SC', sans-serif; font-weight: 500; font-size: 14px; color: var(--c-black); margin-top: 4px; }
.project-card__link svg { transition: transform .3s var(--ease); }
.project-card:hover .project-card__link svg { transform: translateX(4px); }

.portfolio__archive { margin-top: 48px; }
.archive-table { display: flex; flex-direction: column; }
.archive-row { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--c-gray-2); transition: padding-left .4s var(--ease), background .3s; cursor: pointer; }
.archive-row:last-child { border-bottom: 1px solid var(--c-gray-2); }
.archive-row:hover { padding-left: 16px; background: var(--c-gray-1); }
.archive-row__year { font-family: 'Geist Mono', monospace; font-size: 14px; color: var(--c-gray-3); width: 60px; flex-shrink: 0; }
.archive-row__title { flex: 1; font-size: 16px; color: var(--c-black); }
.archive-row__tag { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--c-gray-3); }

/*  About  */
.about { background: var(--c-black); padding: 48px 0 80px; position: relative; overflow: hidden; }
.about__glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; height: 500px; background: radial-gradient(circle, rgba(40,40,44,0.6) 0%, transparent 70%); opacity: 0.6; pointer-events: none; will-change: transform; }
.about__inner { display: flex; gap: 80px; align-items: flex-start; position: relative; z-index: 1; }
.about__left { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.about__title { font-family: 'Noto Sans SC', sans-serif; font-weight: 700; font-size: clamp(36px, 4vw, 48px); line-height: 1.15; color: var(--c-white); }
.about__title span { display: block; }
.about__desc { font-size: 17px; line-height: 1.7; color: var(--c-gray-4); }
.about__stats { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 44px; color: var(--c-white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 14px; color: var(--c-gray-4); }

/* member card */
.about__members { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; position: relative; z-index: 1; }
.members__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member-card { display: flex; border: 1px solid #262626; background: #181818; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease); }
.member-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0,0,0,0.4); border-color: #404040; }
.member-card__avatar { flex-shrink: 0; width: 96px; background: #0A0A0A; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.member-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card__avatar-fallback { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 36px; color: var(--c-white); }
.member-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 20px; min-width: 0; }
.member-card__name { font-family: 'Noto Sans SC', sans-serif; font-weight: 600; font-size: 17px; color: var(--c-white); }
.member-card__desc { flex: 1; font-size: 14px; color: var(--c-gray-4); line-height: 1.6; }
.member-card__links { display: flex; gap: 16px; margin-top: 4px; }
.member-card__link { display: inline-flex; align-items: center; gap: 6px; font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--c-gray-3); transition: color .3s var(--ease); }
.member-card__link svg { transition: transform .3s var(--ease); }
.member-card__link:hover { color: var(--c-white); }
.member-card__link:hover svg { transform: translateX(3px); }

/*  Footer  */
.footer { background: var(--c-black); padding: 56px 0 32px; border-top: 1px solid #262626; }
.footer__cols { display: flex; gap: 80px; }
.footer__col { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.footer__col-title { font-family: 'Noto Sans SC', sans-serif; font-weight: 500; font-size: 13px; color: var(--c-gray-5); }
.footer__link { font-size: 15px; color: var(--c-gray-3); transition: color .3s; }
.footer__link:hover { color: var(--c-white); }
.footer__link--static { cursor: default; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; }
.footer__copy { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--c-gray-5); }
.footer__tagline { font-size: 13px; color: var(--c-gray-5); }

/*  Animations  */
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Scroll-triggered reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}
[data-animate="slide-in-left"] { transform: translateX(-40px); }
[data-animate].in-view {
    opacity: 1;
    transform: translate(0, 0);
}

/*  Responsive  */
@media (max-width: 1024px) {
    :root { --pad-x: 40px; }
    .portfolio__featured { grid-template-columns: 1fr; }
    .about__inner { flex-direction: column; gap: 48px; }
    .about__stats { grid-template-columns: repeat(4, 1fr); }
    .members__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --pad-x: 20px; }
    .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #0A0A0A; flex-direction: column; padding: 16px var(--pad-x); gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
    .header.scrolled .nav { background: var(--c-white); border-bottom: 1px solid var(--c-gray-2); }
    .nav.open { display: flex; }
    .nav__toggle { display: flex; }
    .hero { padding: 80px 0; min-height: auto; }
    .hero__title { font-size: 44px; }
    .services, .portfolio { padding: 80px 0; }
    .about { padding: 48px 0 64px; }
    .footer { padding: 48px 0 32px; }
    .footer__cols { flex-direction: column; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
    .about__stats { grid-template-columns: 1fr 1fr; }
    .members__grid { grid-template-columns: 1fr; }
    .member-card__avatar { width: 80px; }
    .archive-row { flex-wrap: wrap; }
    .archive-row__tag { width: 100%; }
}

@media (max-width: 480px) {
    .hero__title { font-size: 36px; }
    .about__stats { grid-template-columns: 1fr; }
    .service-row { flex-wrap: wrap; }
    .service-row__tag { width: 100%; }
}
