﻿/* =====================================================
   VARIABLES ??? pure black & white
   ===================================================== */
:root {
  --bg:       #040404;
  --text:     #f2f2f0;
  --muted:    rgba(242,242,240,0.40);
  --accent:   #ffffff;
  --border:   rgba(255,255,255,0.07);
  --border-hi:rgba(255,255,255,0.13);
  --surface:  rgba(255,255,255,0.025);
  --nav-h:    72px;
  --pad:      6%;
  --font:     'Space Grotesk', sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

/* =====================================================
   RESET + GLOBAL ANTI-SELECT
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
a, button { cursor: none; }
img { display: block; max-width: 100%; }

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
#cursor {
  position: fixed; top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0; mix-blend-mode: exclusion; will-change: transform;
}
.cursor-inner {
  position: absolute;
  width: 28px; height: 28px;
  background: white; border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: width .22s ease, height .22s ease, border-radius .22s ease;
}
body.cur-hover .cursor-inner { width: 58px; height: 58px; }
body.cur-click .cursor-inner { width: 12px; height: 12px; }

/* cross on project items */
#cursor.cur-cross .cursor-inner {
  border-radius: 2px; width: 2px; height: 32px;
}
#cursor.cur-cross .cursor-inner::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 32px; height: 2px; background: white;
}

/* =====================================================
   LOADER
   ===================================================== */
#loader {
  position: fixed; inset: 0; z-index: 8000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: filter 0.05s;
}
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-logo { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; color: #fff; }
.loader-bar-wrap { width: 180px; height: 1px; background: var(--border-hi); position: relative; overflow: hidden; }
#loaderBar { position: absolute; inset-block: 0; left: 0; width: 0; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); }
#loaderLabel { font-family: var(--mono); font-size: .6rem; letter-spacing: .22em; color: var(--muted); min-width: 200px; text-align: center; }

/* =====================================================
   WEBGL CANVAS
   ===================================================== */
#webgl-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* =====================================================
   SITE WRAPPER
   ===================================================== */
#site { position: relative; z-index: 1; transition: transform 0.04s steps(1), filter 0.04s steps(1); }

/* Scanlines */
#site::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.035) 3px, rgba(0,0,0,.035) 4px);
  pointer-events: none; z-index: 9989;
}
/* Animated grain */
#site::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .03; pointer-events: none; z-index: 9990;
  animation: grainShift 0.14s steps(1) infinite;
}
@keyframes grainShift {
  0%   { background-position: 0 0; }
  25%  { background-position: -10px 5px; }
  50%  { background-position: 5px -8px; }
  75%  { background-position: -5px 3px; }
  100% { background-position: 8px -4px; }
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.font-mono { font-family: var(--mono); }
.accent    { color: #fff; }
em         { font-style: italic; color: #fff; }

/* Character spans (split text animation) */
.char { display: inline-block; position: relative; will-change: transform, opacity; }
.char-space { display: inline-block; }

/* =====================================================
   DATA STREAMS ??? edge columns
   ===================================================== */
.ds-left, .ds-right {
  position: fixed;
  top: 80px; bottom: 0; width: 52px;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none; z-index: 10; overflow: hidden;
}
.ds-left  { left: 0; padding-left: 6px; }
.ds-right { right: 0; padding-right: 6px; align-items: flex-end; }
.ds-left span, .ds-right span {
  font-family: var(--mono); font-size: .46rem; letter-spacing: .08em;
  color: rgba(255,255,255,0.05); white-space: nowrap;
  animation: dsScroll 8s linear infinite;
}
.ds-right span { animation-direction: reverse; }
@keyframes dsScroll {
  0%   { opacity: 0.03; transform: translateY(0); }
  10%  { opacity: 0.06; }
  90%  { opacity: 0.06; }
  100% { opacity: 0.03; transform: translateY(-36px); }
}

/* =====================================================
   MARQUEE STRIP
   ===================================================== */
.marquee-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 13px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marqueeScroll 28s linear infinite; will-change: transform; }
.marquee-strip--rev .marquee-track { animation-direction: reverse; }
.marquee-set { display: inline-flex; align-items: center; gap: 26px; padding-right: 26px; white-space: nowrap; font-family: var(--mono); font-size: .65rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.msep { color: rgba(255,255,255,0.25); font-size: .55rem; }

/* =====================================================
   NAVIGATION
   ===================================================== */
#nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  justify-content: space-between; padding: 0 var(--pad);
  transition: border-color .35s, backdrop-filter .35s;
}
#nav.scrolled { border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-logo { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.03em; text-decoration: none; color: var(--text); opacity: 0; transform: translateY(-12px); will-change: transform, opacity; animation: logoGlitch 9s ease infinite; }
.nav-links { display: flex; gap: 36px; opacity: 0; transform: translateY(-12px); will-change: transform, opacity; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .02em; transition: color .22s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: #fff; transition: width .3s; }
.nav-links a:hover            { color: var(--text); }
.nav-links a:hover::after     { width: 100%; }

/* =====================================================
   SYSTEM STATUS
   ===================================================== */
#sys-status {
  position: absolute; bottom: 48px; right: var(--pad);
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  font-family: var(--mono); font-size: .52rem; letter-spacing: .14em;
  color: rgba(255,255,255,0.13); pointer-events: none;
}
.sys-status-text { transition: color .12s; text-transform: uppercase; }
.sys-status-text.status-glitching { color: rgba(255,255,255,.65); animation: statusErr .18s steps(1) 12; }
@keyframes statusErr { 0%,100%{transform:none;} 50%{transform:translateX(-2px);} }

/* =====================================================
   HERO TERMINAL
   ===================================================== */
#hero-terminal {
  position: absolute; bottom: 44px; left: var(--pad);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  color: rgba(255,255,255,0.20); pointer-events: none; opacity: 0; line-height: 1.8;
}
.term-cursor {
  display: inline-block; width: .55em; height: .9em;
  background: rgba(255,255,255,.45); vertical-align: middle; margin-left: 2px;
  opacity: 0; animation: termBlink .8s steps(1) infinite;
}
@keyframes termBlink { 0%,100%{opacity:0;} 50%{opacity:1;} }

/* =====================================================
   HERO
   ===================================================== */
#hero { overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: var(--nav-h) var(--pad) 80px; position: relative; }
.hero-ghost {
  position: absolute; font-size: clamp(12rem, 30vw, 24rem); font-weight: 900;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  letter-spacing: -.065em; line-height: 1; top: 50%; left: -1%;
  transform: translateY(-52%); pointer-events: none; white-space: nowrap; z-index: 0;
  animation: ghostPulse 12s ease-in-out infinite alternate;
}
@keyframes ghostPulse {
  from { -webkit-text-stroke-color: rgba(255,255,255,0.02); }
  to   { -webkit-text-stroke-color: rgba(255,255,255,0.06); }
}
.hero-wrap { max-width: 1080px; position: relative; z-index: 1; }

.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.5); animation: blink 2.4s ease infinite; }
.eyebrow-text { font-size: .72rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.eyebrow-sep  { color: var(--muted); font-family: var(--mono); font-size: .72rem; margin: 0 2px; }

/* Hero title ??? CSS glitch slice layers */
.hero-title { display: flex; flex-direction: column; font-size: clamp(5.5rem, 14vw, 11.5rem); font-weight: 800; line-height: .9; letter-spacing: -.045em; margin-bottom: 36px; }
.title-line { display: block; overflow: hidden; transform: translateY(110%); will-change: transform; position: relative; }
.title-line.revealed { overflow: visible; }

.title-line.revealed::before {
  content: attr(data-word);
  position: absolute; top: 0; left: 0; color: #fff; pointer-events: none;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
  animation: titleSliceTop 8s steps(1) infinite;
}
.title-line.revealed::after {
  content: attr(data-word);
  position: absolute; top: 0; left: 0; color: #fff; pointer-events: none;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
  animation: titleSliceBot 8s steps(1) infinite;
  animation-delay: 0.65s;
}
@keyframes titleSliceTop {
  0%,88%,100% { transform:none; opacity:0; }
  89%  { transform:translateX(-10px); opacity:1; }
  89.4%{ transform:translateX(7px); opacity:1; }
  89.8%{ transform:translateX(-4px); opacity:.8; }
  90.2%{ transform:none; opacity:0; }
  93%  { transform:translateX(3px); opacity:.5; }
  93.4%{ transform:none; opacity:0; }
}
@keyframes titleSliceBot {
  0%,86%,100% { transform:none; opacity:0; }
  87%  { transform:translateX(12px); opacity:1; }
  87.5%{ transform:translateX(-8px); opacity:1; }
  88%  { transform:translateX(3px); opacity:.7; }
  88.4%{ transform:none; opacity:0; }
}

.hero-sub { font-size: clamp(1rem, 1.8vw, 1.22rem); color: var(--muted); max-width: 460px; margin-bottom: 44px; opacity: 0; transform: translateY(18px); will-change: transform, opacity; animation: subGlitch 13s ease infinite; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; transform: translateY(18px); will-change: transform, opacity; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn { display: inline-flex; align-items: center; padding: 13px 28px; border-radius: 100px; font-size: .88rem; font-weight: 600; letter-spacing: .025em; text-decoration: none; transition: transform .22s, box-shadow .22s; position: relative; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: #fff; color: #000; box-shadow: 0 0 20px rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(255,255,255,.3); }
.btn-ghost { border: 1px solid var(--border-hi); color: var(--text); }
.btn-ghost:hover { border-color: #fff; color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.08); }
.btn-teleporting { animation: btnTeleport .22s steps(1) !important; }
@keyframes btnTeleport { 0%{opacity:0;filter:brightness(4);} 40%{opacity:1;filter:invert(1);} 100%{opacity:1;filter:none;} }
.btn-surrendering { box-shadow: 0 0 50px rgba(255,255,255,.45) !important; }
.btn-glitching { animation: btnDeform .5s steps(1) forwards !important; }

/* =====================================================
   SCROLL INDICATOR
   ===================================================== */
.hero-scroll { position: absolute; bottom: 44px; left: var(--pad); display: flex; align-items: center; gap: 14px; opacity: 0; will-change: opacity; }
.scroll-label { font-size: .62rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-track { width: 1px; height: 56px; background: var(--border-hi); position: relative; overflow: hidden; }
.scroll-thumb { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff; animation: scrollDown 2s ease-in-out infinite; }
.hero-meta { position: absolute; bottom: 44px; right: var(--pad); display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; color: rgba(242,242,240,.15); opacity: 0; pointer-events: none; will-change: opacity; line-height: 1.4; }

/* =====================================================
   SECTIONS
   ===================================================== */
section { padding: 140px var(--pad); }
.section-header { margin-bottom: 72px; }
.section-tag { display: block; font-size: .65rem; letter-spacing: .22em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px; opacity: 0; transform: translateX(-18px); will-change: transform, opacity; }
.section-title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; opacity: 0; transform: translateY(36px); will-change: transform, opacity; position: relative; }

/* =====================================================
   PROJECTS
   ===================================================== */
.projects-list { display: flex; flex-direction: column; position: relative; }
.projects-list::before { content: ''; position: absolute; left: 44px; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, transparent 0%, var(--border) 6%, var(--border) 94%, transparent 100%); pointer-events: none; }
.pn-wrap { overflow: hidden; display: block; margin-bottom: 18px; }
.project-item { display: grid; grid-template-columns: 90px 1fr 260px; gap: 40px; align-items: center; padding: 52px 0; border-top: 1px solid var(--border); position: relative; opacity: 0; transform: translateY(36px); will-change: transform, opacity; transition: border-color .3s; }
.project-item:last-child { border-bottom: 1px solid var(--border); }
.project-item::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.04), transparent 60%); }
.project-item:hover::before { opacity: 1; }

.project-left { display: flex; flex-direction: column; gap: 14px; }
.project-num  { font-size: .65rem; color: var(--muted); letter-spacing: .1em; }
.project-status { display: flex; align-items: center; gap: 7px; font-size: .62rem; letter-spacing: .15em; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-dot.live { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.6); animation: blink 2.4s ease infinite; }
.status-dot.dev  { background: rgba(255,255,255,.4); animation: blink 2.8s ease infinite; }

.project-type { font-size: .62rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.project-name { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; display: block; will-change: transform; transition: color .35s; }
.project-item:hover .project-name { color: #fff; text-shadow: 2px 0 rgba(255,255,255,.18), -2px 0 rgba(255,255,255,.12); }
.project-desc { font-size: .9rem; color: var(--muted); line-height: 1.75; max-width: 520px; margin-bottom: 22px; }
.project-tech { display: flex; flex-wrap: wrap; gap: 8px; }
.project-tech span { font-family: var(--mono); font-size: .64rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 3px 10px; letter-spacing: .04em; transition: border-color .22s, color .22s; }
.project-tech span:hover { border-color: rgba(255,255,255,.3); color: var(--text); }
.project-right { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.project-visual { width: 150px; height: 150px; border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--surface); overflow: hidden; position: relative; transition: transform .4s, border-color .35s; }
.project-item:hover .project-visual { transform: scale(1.06) rotate(-3deg); border-color: rgba(255,255,255,.2); }
.project-link { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-decoration: none; transition: color .25s; }
.project-link svg { width: 13px; height: 13px; transition: transform .25s; }
.project-link:hover { color: #fff; }
.project-link:hover svg { transform: translate(3px,-3px); }

/* ManageFC */
.project-visual--managefc { background: rgba(255,255,255,.02); }
.pitch-lines { width: 78px; height: 78px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; position: relative; }
.pitch-mid   { position: absolute; width: 100%; height: 1px; background: rgba(255,255,255,.15); top: 50%; }
.pitch-circle { position: absolute; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.pitch-dot    { position: absolute; width: 3px; height: 3px; background: rgba(255,255,255,.6); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* SoccerIt */
.project-visual--soccerit { perspective: 200px; }
.wireframe-cube { width: 48px; height: 48px; transform-style: preserve-3d; animation: rotateCube 8s linear infinite; }
.cube-face { position: absolute; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.02); }
.cube-front  { transform: translateZ(24px); }
.cube-back   { transform: translateZ(-24px) rotateY(180deg); }
.cube-top    { transform: rotateX(90deg) translateZ(24px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(24px); }
.cube-left   { transform: rotateY(-90deg) translateZ(24px); }
.cube-right  { transform: rotateY(90deg) translateZ(24px); }

/* Gameadoo */
.pixel-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; width: 68px; height: 68px; padding: 4px; }
.px { border-radius: 2px; background: rgba(255,255,255,.06); }
.px.on { background: rgba(255,255,255,.72); box-shadow: 0 0 4px rgba(255,255,255,.4); animation: pxPulse 1.8s ease infinite; }
.px.on:nth-child(3n+1) { animation-delay: 0s; }
.px.on:nth-child(3n+2) { animation-delay: .3s; }
.px.on:nth-child(3n)   { animation-delay: .6s; }

/* Top Dog */
.project-visual--topdog { padding: 14px; }
.territory-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 4px; width: 100%; height: 100%; }
.tg-cell { border-radius: 3px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); aspect-ratio: 1; transition: background .4s; }
.tg-cell.tg-on  { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.22); }
.tg-cell.tg-hot { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.7); box-shadow: 0 0 8px rgba(255,255,255,.3); animation: territoryPulse 2.4s ease-in-out infinite; }
.tg-cell.tg-d1 { animation-delay: .6s; } .tg-cell.tg-d2 { animation-delay: 1.2s; }
.project-item:hover .tg-cell.tg-on  { background: rgba(255,255,255,.3); }
.project-item:hover .tg-cell.tg-hot { background: rgba(255,255,255,.8); box-shadow: 0 0 14px rgba(255,255,255,.5); }

/* Poplium */
.project-visual--poplium { align-items: flex-end; padding: 0 10px 10px; }
.skyline { display: flex; align-items: flex-end; gap: 4px; }
.sky-b { border-radius: 2px 2px 0 0; background: rgba(255,255,255,.42); position: relative; flex-shrink: 0; transition: background .35s; }
.project-item:hover .sky-b { background: rgba(255,255,255,.72); }
.sky-b::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 3px; height: 3px; background: rgba(255,255,255,.9); border-radius: 50%; animation: winBlink 2.2s ease infinite; }
.sky-b:nth-child(2)::before { animation-delay: .4s; top: 10px; }
.sky-b:nth-child(3)::before { animation-delay: .8s; top: 8px; }
.sh1{height:32px;width:11px;} .sh2{height:56px;width:10px;} .sh3{height:78px;width:15px;} .sh4{height:48px;width:11px;} .sh5{height:66px;width:13px;} .sh6{height:38px;width:10px;}

/* =====================================================
   WORD STRIKETHROUGH GLITCH
   ===================================================== */
.strike-word { position: relative; display: inline; }
.strike-word.striking::after { content: ''; position: absolute; left: -1px; top: 50%; height: 2px; width: 0; background: #fff; animation: strikeIn .16s ease forwards; box-shadow: 0 0 6px rgba(255,255,255,.4); }
@keyframes strikeIn { from{width:0;} to{width:calc(100% + 2px);} }

/* =====================================================
   STUDIO
   ===================================================== */
#studio { background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 28px 28px; }
.studio-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 80px; }
.studio-statement { grid-column: 1 / -1; }
.big-statement { font-size: clamp(1.5rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
.studio-detail p { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 20px; opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.studio-stats { grid-column: 1 / -1; display: flex; gap: 56px; padding-top: 8px; }
.stat-item { display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.stat-num { font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; animation: statGlitch 9s ease infinite; }
.stat-item:nth-child(2) .stat-num { animation-delay: 1.5s; }
.stat-item:nth-child(3) .stat-num { animation-delay: 3s; }
.stat-item:nth-child(4) .stat-num { animation-delay: 4.5s; }
.stat-label { font-size: .62rem; letter-spacing: .17em; color: var(--muted); text-transform: uppercase; }

/* =====================================================
   CONTACT
   ===================================================== */
#contact { text-align: center; padding: 160px var(--pad) 120px; position: relative; overflow: hidden; }
#contact::before { content: ''; position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 68%); pointer-events: none; }
.contact-title { font-size: clamp(2.8rem, 8vw, 7rem); font-weight: 800; line-height: 1.04; letter-spacing: -.045em; margin: 18px 0 56px; opacity: 0; transform: translateY(36px); will-change: transform, opacity; animation: contactGlitch 14s ease infinite; }
.email-link { display: inline-block; font-size: clamp(1.1rem, 2.8vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-hi); padding-bottom: 8px; transition: color .3s, border-color .3s; opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.email-link:hover { color: #fff; border-color: #fff; animation: emailGlitch 2.5s ease; }
.contact-sub { font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: 30px; opacity: 0; will-change: opacity; }

/* =====================================================
   FOOTER
   ===================================================== */
footer { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); border-top: 1px solid var(--border); }
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-size: .95rem; font-weight: 800; letter-spacing: -.02em; animation: logoGlitch 11s ease infinite; animation-delay: 3.5s; }
.footer-copy { font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; color: var(--muted); }
.footer-sig  { font-family: var(--mono); font-size: .46rem; letter-spacing: .06em; color: rgba(255,255,255,.07); margin-top: 2px; }
.footer-right { display: flex; gap: 22px; }
.footer-right a { font-size: .78rem; color: var(--muted); text-decoration: none; transition: color .22s; }
.footer-right a:hover { color: var(--text); }

/* =====================================================
   OVERLAYS
   ===================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; height: 1px; width: 0%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.5); z-index: 9999; pointer-events: none; will-change: width; }
#glitch-flash { position: fixed; inset: 0; background: rgba(255,255,255,.05); opacity: 0; pointer-events: none; z-index: 9991; mix-blend-mode: overlay; transition: opacity .05s linear; }

/* =====================================================
   NAV BUTTON
   ===================================================== */
.nav-btn { display: inline-flex; align-items: center; padding: 6px 15px; border: 1px solid var(--border-hi); border-radius: 100px; font-family: var(--font); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--text); background: transparent; transition: border-color .22s, color .22s, box-shadow .22s; }
.nav-btn:hover { border-color: #fff; color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.1); }

/* =====================================================
   LANGUAGE SELECTOR
   ===================================================== */
.ls{position:relative;display:inline-flex;align-items:center;margin-left:10px}
.ls-btn{background:transparent;border:1px solid rgba(255,255,255,.1);color:rgba(242,242,240,.5);padding:5px 12px;border-radius:100px;cursor:pointer;font-size:.74rem;display:inline-flex;align-items:center;gap:5px;transition:border-color .22s,color .22s;white-space:nowrap;font-family:inherit;letter-spacing:.03em}
.ls-btn:hover,.ls.open .ls-btn{border-color:rgba(255,255,255,.4);color:#f2f2f0}
.ls-drop{display:none;position:absolute;right:0;top:calc(100% + 8px);background:#0a0a0a;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:4px;z-index:9999;min-width:178px;max-height:290px;overflow-y:auto;list-style:none;margin:0;box-shadow:0 14px 44px rgba(0,0,0,.95)}
.ls.open .ls-drop{display:block}
.ls-drop li button{display:block;width:100%;text-align:left;padding:7px 12px;background:none;border:none;color:rgba(242,242,240,.5);cursor:pointer;font-size:.79rem;border-radius:5px;white-space:nowrap;font-family:inherit;transition:background .15s,color .15s}
.ls-drop li button:hover{background:rgba(255,255,255,.06);color:#f2f2f0}

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes marqueeScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.2;} }
@keyframes winBlink { 0%,100%{opacity:.9;} 45%,55%{opacity:.15;} }
@keyframes scrollDown { 0%{top:-100%;} 100%{top:100%;} }
@keyframes rotateCube { from{transform:rotateX(22deg) rotateY(0deg);} to{transform:rotateX(22deg) rotateY(360deg);} }
@keyframes pxPulse { 0%,100%{opacity:1;} 50%{opacity:.3;} }
@keyframes territoryPulse { 0%,100%{opacity:1;} 50%{opacity:.45;} }
@keyframes logoGlitch {
  0%,88%,100%{text-shadow:none;transform:none;}
  89%{text-shadow:3px 0 rgba(255,255,255,.5),-3px 0 rgba(255,255,255,.3);transform:translateX(-2px);}
  90%{text-shadow:-3px 0 rgba(255,255,255,.5),3px 0 rgba(255,255,255,.3);transform:translateX(2px);}
  91%{text-shadow:none;transform:none;}
  92%{transform:translateX(-1px);}
  93%{transform:none;}
}
@keyframes subGlitch {
  0%,86%,100%{text-shadow:none;filter:none;}
  87%{text-shadow:-3px 0 rgba(255,255,255,.22),3px 0 rgba(255,255,255,.14);filter:brightness(1.15);}
  88%{text-shadow:2px 0 rgba(255,255,255,.18),-2px 0 rgba(255,255,255,.1);filter:none;}
  89%{text-shadow:none;}
  91%{text-shadow:1px 0 rgba(255,255,255,.12);}
  93%{text-shadow:none;}
}
@keyframes contactGlitch {
  0%,92%,100%{text-shadow:none;filter:none;}
  93%{text-shadow:5px 0 rgba(255,255,255,.32),-5px 0 rgba(255,255,255,.18);filter:brightness(1.4);transform:translateX(-3px);}
  94%{text-shadow:-4px 0 rgba(255,255,255,.32),4px 0 rgba(255,255,255,.18);transform:translateX(3px);}
  95%{text-shadow:none;filter:none;transform:none;}
  96%{transform:translateX(-1px);}
  97%{transform:none;}
}
@keyframes statGlitch {
  0%,87%,100%{filter:none;transform:none;text-shadow:none;}
  88%{filter:brightness(2.2);transform:translateX(-2px);text-shadow:2px 0 rgba(255,255,255,.5);}
  89%{filter:none;transform:translateX(2px);}
  90%{transform:none;}
}
@keyframes emailGlitch {
  0%,100%{text-shadow:none;}
  8%{text-shadow:5px 0 rgba(255,255,255,.4),-5px 0 rgba(255,255,255,.28);filter:brightness(1.5);}
  14%{text-shadow:-3px 0 rgba(255,255,255,.28);filter:none;}
  18%{text-shadow:none;}
  22%{text-shadow:2px 0 rgba(255,255,255,.22);}
  26%{text-shadow:none;}
}
@keyframes btnDeform {
  0%{transform:skewX(0deg) scaleX(1);filter:none;}
  10%{transform:skewX(-8deg) scaleX(1.05);filter:brightness(1.6);}
  20%{transform:skewX(6deg) scaleX(.95);}
  30%{transform:skewX(-4deg) scaleY(.9);filter:brightness(1.3);}
  40%{transform:skewX(0deg) scaleX(1);filter:none;}
  50%{transform:skewX(-2deg) scaleX(1.02);}
  60%{transform:translateX(-3px);}
  70%{transform:translateX(3px);}
  80%{transform:skewX(1deg);}
  100%{transform:skewX(0deg) scaleX(1);filter:none;}
}
.section-tag:hover { text-shadow:1px 0 rgba(255,255,255,.3),-1px 0 rgba(255,255,255,.2); color:var(--text); cursor:default; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .project-item{grid-template-columns:80px 1fr;}
  .project-right{grid-column:2;flex-direction:row;align-items:center;justify-content:flex-start;}
  .project-visual{width:100px;height:100px;}
}
@media (max-width: 768px) {
  section{padding:100px var(--pad);}
  .project-item{grid-template-columns:1fr;gap:20px;padding:36px 0;}
  .project-left{flex-direction:row;align-items:center;gap:14px;}
  .project-right{grid-column:1;flex-direction:row;align-items:center;}
  .studio-layout{grid-template-columns:1fr;gap:36px;}
  .studio-stats{gap:28px;flex-wrap:wrap;}
  footer{flex-direction:column;gap:16px;text-align:center;}
  .nav-links a:not(:last-child):not(:nth-last-child(2)){display:none;}
  #cursor,#cursor-trail{display:none;}
  body,a,button{cursor:auto;}
  .ds-left,.ds-right,#hero-terminal,#sys-status{display:none;}
}
@media (max-width: 480px) {
  .hero-title{font-size:clamp(4.2rem,19vw,6rem);}
  .hero-actions{flex-direction:column;}
  .btn{width:100%;justify-content:center;}
  .studio-stats{flex-direction:column;gap:24px;}
}

﻿/* ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
   PROJECT VISUALS ??? Enhanced v3
   All rules here override previous project-visual CSS via cascade.
   ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? */

/* ?????? 1. ManageFC ??? Football pitch ????????????????????????????????????????????????????????????????????????????????????????????? */
.project-visual--managefc { background: rgba(255,255,255,.025); padding: 0; align-items: stretch; justify-content: stretch; }

.pitch {
  position: absolute; inset: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 2px;
  overflow: hidden;
}

.pitch-halfway {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.18);
  transform: translateX(-50%);
}

.pitch-circle-c {
  position: absolute;
  left: 50%; top: 50%;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

.pitch-dot-c {
  position: absolute;
  left: 50%; top: 50%;
  width: 4px; height: 4px;
  background: rgba(255,255,255,.65);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

.pitch-box {
  position: absolute;
  top: 24%; bottom: 24%;
  width: 20%;
  border: 1px solid rgba(255,255,255,.16);
}
.pitch-box-l { left: 0; border-left: none; border-radius: 0 2px 2px 0; }
.pitch-box-r { right: 0; border-right: none; border-radius: 2px 0 0 2px; }

.pitch-goal {
  position: absolute;
  top: 37%; bottom: 37%;
  width: 5%;
  border: 1px solid rgba(255,255,255,.3);
}
.pitch-goal-l { left: -1px; border-left: none; }
.pitch-goal-r { right: -1px; border-right: none; }

.player {
  position: absolute;
  left: var(--px, 50%);
  top:  var(--py, 50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
  z-index: 2;
}
.player.pa { background: rgba(255,255,255,.92); box-shadow: 0 0 4px rgba(255,255,255,.6); }
.player.pb { background: transparent; border: 1px solid rgba(255,255,255,.55); }
.project-item:hover .player.pa { box-shadow: 0 0 8px rgba(255,255,255,.95), 0 0 18px rgba(255,255,255,.3); }
.project-item:hover .player.pb { border-color: rgba(255,255,255,.8); box-shadow: 0 0 6px rgba(255,255,255,.4); }

.pitch-ball {
  position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: #fff; border-radius: 50%;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 6px rgba(255,255,255,.95), 0 0 14px rgba(255,255,255,.4);
  z-index: 3;
}

/* ?????? 2. SoccerIt ??? Armillary sphere ??????????????????????????????????????????????????????????????????????????????????????? */
.project-visual--soccerit { overflow: visible; }

.engine-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}

.engine-sphere {
  position: relative;
  width: 76px; height: 76px;
  transform-style: preserve-3d;
  animation: sphereRotY 9s linear infinite;
}

@keyframes sphereRotY {
  from { transform: rotateY(0deg) rotateX(18deg); }
  to   { transform: rotateY(360deg) rotateX(18deg); }
}

.sphere-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.38);
  transition: border-color .3s, box-shadow .3s;
}
.ring-a { transform: rotateX(0deg); }
.ring-b { transform: rotateX(60deg); }
.ring-c { transform: rotateX(-60deg); }

.sphere-core {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: rgba(255,255,255,.95); border-radius: 50%;
  transform: translate3d(-50%,-50%,0);
  box-shadow: 0 0 10px rgba(255,255,255,.8), 0 0 22px rgba(255,255,255,.3);
  transition: box-shadow .3s;
}

.v-spark {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,.7); border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,.6);
}
.vs1 { top: 0;   left: 50%; transform: translate(-50%,-50%); }
.vs2 { bottom: 0; left: 50%; transform: translate(-50%,50%); }
.vs3 { left: 0;  top: 50%;  transform: translate(-50%,-50%); }
.vs4 { right: 0; top: 50%;  transform: translate(50%,-50%); }

.project-item:hover .engine-sphere  { animation-duration: 2.2s; }
.project-item:hover .sphere-ring    { border-color: rgba(255,255,255,.65); box-shadow: 0 0 10px rgba(255,255,255,.12); }
.project-item:hover .sphere-core    { box-shadow: 0 0 20px rgba(255,255,255,1), 0 0 40px rgba(255,255,255,.45); }

.engine-label {
  font-size: .44rem; letter-spacing: .08em;
  color: rgba(255,255,255,.3); text-align: center;
}

/* ?????? 3. Poplium ??? City skyline ?????????????????????????????????????????????????????????????????????????????????????????????????????? */
.project-visual--poplium { padding: 0; align-items: stretch; justify-content: stretch; }

.city-scene {
  position: absolute; inset: 0;
  overflow: hidden;
}

.cstar {
  position: absolute;
  left: var(--cx); top: var(--cy);
  width: 2px; height: 2px;
  background: rgba(255,255,255,.55); border-radius: 50%;
  animation: starTwinkle 2.4s ease-in-out infinite;
}
.cstar:nth-child(2) { animation-delay: -.5s; }
.cstar:nth-child(3) { animation-delay: -1.1s; }
.cstar:nth-child(4) { animation-delay: -1.7s; }
.cstar:nth-child(5) { animation-delay: -.3s; }
.cstar:nth-child(6) { animation-delay: -.9s; }

@keyframes starTwinkle {
  0%,100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .1;  transform: scale(.6); }
}

.city-ground {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 20%;
  background: rgba(255,255,255,.04);
  border-top: 1px solid rgba(255,255,255,.14);
}

.building {
  position: absolute; bottom: 20%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-bottom: none;
  padding: 3px 2px;
  overflow: hidden;
  transition: background .4s;
}
.project-item:hover .building { background: rgba(255,255,255,.08); }

.bld-p1 { left: 3%;  width: 13%; height: 36%; }
.bld-p2 { left: 17%; width: 9%;  height: 22%; }
.bld-p3 { left: 27%; width: 17%; height: 52%; } /* tallest ??? crane */
.bld-p4 { left: 45%; width: 13%; height: 38%; }
.bld-p5 { left: 59%; width: 11%; height: 28%; }
.bld-pgrow {
  right: 4%; width: 13%; height: 0;
  bottom: 20%;
  border-style: dashed;
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  transition: height .9s cubic-bezier(.22,1,.36,1), background .4s;
}
.project-item:hover .bld-pgrow { height: 32%; background: rgba(255,255,255,.04); }

/* Rooftop antenna */
.bld-ant {
  position: absolute; top: -9px; left: 50%;
  width: 1px; height: 9px;
  background: rgba(255,255,255,.45);
  transform: translateX(-50%);
}
.bld-ant::after {
  content: '';
  position: absolute; top: 0; left: -2px;
  width: 5px; height: 2px;
  background: rgba(255,255,255,.9); border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,.8);
  animation: antBlink 1.4s steps(1) infinite;
}
@keyframes antBlink {
  0%,54% { opacity: 1; } 55%,100% { opacity: 0; }
}

/* Crane (inside bld-p3, overflow visible handled by city-scene clip) */
.crane-wrap {
  position: absolute;
  top: -16px; right: -14px;
  width: 24px; height: 18px;
}
.crane-v {
  position: absolute; right: 0; bottom: 0;
  width: 1px; height: 16px;
  background: rgba(255,255,255,.4);
}
.crane-h {
  position: absolute; right: 0; top: 0;
  width: 22px; height: 1px;
  background: rgba(255,255,255,.4);
  transform-origin: right center;
  animation: craneSwing 5s ease-in-out infinite;
}
.crane-cab {
  position: absolute; right: -2px; top: 2px;
  width: 5px; height: 5px;
  border: 1px solid rgba(255,255,255,.35);
}
@keyframes craneSwing {
  0%,100% { transform: rotate(0deg); }
  50%      { transform: rotate(-14deg); }
}
.project-item:hover .crane-h { animation-duration: 1.8s; }

/* Windows */
.win-row { display: flex; gap: 2px; margin-bottom: 2px; }
.win {
  width: 4px; height: 4px;
  background: rgba(255,255,255,.05); flex-shrink: 0;
}
.win.wl {
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 4px rgba(255,255,255,.5);
  animation: winBlink2 3s steps(1) infinite;
}
.wd1 { animation-delay: -.2s; }
.wd2 { animation-delay: -.8s; }
.wd3 { animation-delay: -1.4s; }
.wd4 { animation-delay: -2.0s; }
.wd5 { animation-delay: -2.6s; }

@keyframes winBlink2 {
  0%,9%   { opacity: .18; }
  10%,100% { opacity: 1; }
}

/* ?????? 4. TopDog ??? Territory map ?????????????????????????????????????????????????????????????????????????????????????????????????????? */
.project-visual--topdog { padding: 0; }

.territory-map {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}

.radar-ring {
  position: absolute; left: 50%; top: 50%;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  transform: translate(-50%,-50%) scale(0);
  opacity: 0;
  animation: radarExpand 3s ease-out infinite;
  pointer-events: none;
}
.rr1 { animation-delay: 0s; }
.rr2 { animation-delay: 1s; }
.rr3 { animation-delay: 2s; }

@keyframes radarExpand {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: .8; }
  100% { transform: translate(-50%,-50%) scale(5.5); opacity: 0;  }
}

.project-item:hover .radar-ring { animation-duration: 1.4s; }

.terr-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  width: 82%;
  position: relative; z-index: 2;
}

.tc {
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 2px;
  background: rgba(255,255,255,.02);
  transition: background .35s, border-color .35s;
}
.tc.ta {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.24);
}
.tc.tb {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
}
.tc.thot {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
  animation: contested2 1.6s ease-in-out infinite;
}
@keyframes contested2 {
  0%,100% { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
  50%      { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.75); box-shadow: 0 0 5px rgba(255,255,255,.2); }
}
.project-item:hover .tc.ta { background: rgba(255,255,255,.24); border-color: rgba(255,255,255,.35); }
.project-item:hover .tc.tb { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); }

.terr-label {
  font-size: .42rem; letter-spacing: .14em;
  color: rgba(255,255,255,.28); text-align: center;
  position: relative; z-index: 2;
}

/* ?????? 5. Gameadoo ??? Arcade HUD ????????????????????????????????????????????????????????????????????????????????????????????????????????? */
.project-visual--gameadoo { align-items: stretch; justify-content: stretch; }

.arcade-hud {
  position: absolute; inset: 0;
  padding: 10px 12px;
  font-family: var(--font-mono); font-size: .52rem; letter-spacing: .04em;
  display: flex; flex-direction: column; justify-content: center; gap: 3px;
  overflow: hidden;
}

.hud-header {
  font-size: .56rem; font-weight: 700;
  color: rgba(255,255,255,.9); letter-spacing: .1em;
  margin-bottom: 2px;
}

.hud-sep { height: 1px; background: rgba(255,255,255,.09); margin: 2px 0; }

.hud-item {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.38); padding: 1px 0;
  transition: color .15s;
}
.hud-item.hud-sel { color: rgba(255,255,255,.92); }

.hud-arr { width: 8px; flex-shrink: 0; color: rgba(255,255,255,.9); font-size: .56rem; }
.hud-name { flex: 1; }

.hud-status { font-size: .42rem; color: rgba(255,255,255,.25); margin-top: 2px; }

.hud-scan {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,.07), transparent);
  pointer-events: none;
  animation: hudScanLine 3.5s ease-in-out infinite;
}
@keyframes hudScanLine {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* ?????? 6. 1BulletPrize ??? Precision timer ?????????????????????????????????????????????????????????????????????????????? */
.project-visual--bullet {
  background: rgba(255,255,255,.015);
  align-items: center; justify-content: center;
}

.bullet-arena {
  position: relative;
  width: 88%; height: 88%;
  display: flex; align-items: center; justify-content: center;
}

.bullet-ring-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
}

.bsvg-track {
  fill: none;
  stroke: rgba(255,255,255,.08);
  stroke-width: 1;
}

.bsvg-fill {
  fill: none;
  stroke: rgba(255,255,255,.42);
  stroke-width: 1.5;
  stroke-dasharray: 264;
  stroke-dashoffset: 172;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
}

.bsvg-secret {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 3 261;
  stroke-dashoffset: -80;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
  animation: secretPulse2 2.6s ease-in-out infinite;
}
@keyframes secretPulse2 {
  0%,100% { stroke-opacity: 1;   stroke-width: 3; }
  50%      { stroke-opacity: .2; stroke-width: 1; }
}

.bullet-cross-h, .bullet-cross-v {
  position: absolute;
  background: rgba(255,255,255,.14);
  transition: background .3s, box-shadow .3s;
}
.bullet-cross-h { width: 100%; height: 1px; left: 0; top: 50%; transform: translateY(-50%); }
.bullet-cross-v { height: 100%; width: 1px; left: 50%; top: 0; transform: translateX(-50%); }
.project-item:hover .bullet-cross-h,
.project-item:hover .bullet-cross-v {
  background: rgba(255,255,255,.38);
  box-shadow: 0 0 6px rgba(255,255,255,.22);
}

.bullet-center { position: relative; text-align: center; z-index: 2; }

.bullet-ms {
  display: flex; align-items: baseline;
  justify-content: center; gap: 2px;
  font-family: var(--font-mono);
}
.bms-val {
  font-size: 1.4rem; font-weight: 700;
  color: rgba(255,255,255,.95); line-height: 1;
  min-width: 2.5ch; display: inline-block;
}
.bms-unit { font-size: .44rem; color: rgba(255,255,255,.38); }
.bullet-prize { font-size: .5rem; color: rgba(255,255,255,.42); margin-top: 2px; font-family: var(--font-mono); }
.bprize-val   { color: rgba(255,255,255,.72); }

.impact-ring {
  position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75);
  transform: translate(-50%,-50%) scale(0);
  opacity: 0; pointer-events: none;
}
.project-item:hover .impact-ring { animation: impactExpand2 1.6s ease-out infinite; }
.project-item:hover .ir2 { animation-delay: .53s; }
.project-item:hover .ir3 { animation-delay: 1.06s; }

@keyframes impactExpand2 {
  0%   { transform: translate(-50%,-50%) scale(0);  opacity: .85; }
  100% { transform: translate(-50%,-50%) scale(11); opacity: 0;   }
}

﻿

﻿/* ???????????????????????????????????????????????????????????????
   MOBILE ADAPTATION
   Appended last ? overrides desktop only within these breakpoints.
   ??????????????????????????????????????????????????????????????? */

/* ?? Hamburger button: exists in DOM but hidden on desktop ????? */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 10001;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .28s ease, opacity .2s ease;
  transform-origin: center;
  pointer-events: none;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ???????????????????????????????????????????????????????????????
   768px ? tablets and phones
   ??????????????????????????????????????????????????????????????? */
@media (max-width: 768px) {

  /* ?? Variables ???????????????????????????????????????????????? */
  :root { --pad: 22px; --nav-h: 58px; }

  /* ?? Performance: disable WebGL on mobile ????????????????????? */
  #webgl-canvas { display: none; }
  .scroll-progress { display: none; }

  /* ?? Nav ?????????????????????????????????????????????????????? */
  #nav {
    height: var(--nav-h);
    padding: 0 var(--pad);
    justify-content: space-between;
    gap: 0;
  }

  /* explicitly re-state flex-direction so no desktop rule can bleed in */
  .nav-hamburger { display: flex; flex-direction: column; }

  /* Nav overlay: full-screen, hidden by default */
  .nav-links {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000;
    background: rgba(4,4,4,.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 48px !important;
    opacity: 0 !important;
    transform: none !important;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .nav-links.mob-open {
    opacity: 1 !important;
    pointer-events: auto;
  }
  .nav-links a {
    font-size: 2rem !important;
    font-weight: 700;
    letter-spacing: -.02em;
    color: rgba(255,255,255,.55) !important;
    opacity: 1 !important;
    display: block !important;
    transform: none !important;
    transition: color .2s;
    padding: 8px 20px;
  }
  .nav-links a:hover,
  .nav-links a:active { color: #fff !important; }

  /* Hide lang selector + auth on mobile */
  .ls, #navAuthSlot { display: none !important; }

  /* ?? Hero ????????????????????????????????????????????????????? */
  #hero {
    min-height: 100svh;
    padding: calc(var(--nav-h) + 40px) var(--pad) 90px;
    justify-content: center;
  }
  .hero-ghost    { display: none !important; }
  .hero-wrap     { max-width: 100%; }
  .hero-eyebrow  { flex-wrap: wrap; gap: 8px 12px; margin-bottom: 20px; }
  .hero-title    { font-size: clamp(3.8rem, 18vw, 7rem); margin-bottom: 22px; }
  .hero-sub      { font-size: clamp(.9rem, 3.8vw, 1.1rem); max-width: 100%; margin-bottom: 28px; }
  .hero-actions  { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-scroll   { bottom: 24px; }
  .hero-meta     { display: none; }

  /* ?? Sections ????????????????????????????????????????????????? */
  section { padding: 72px var(--pad); }
  .section-header { margin-bottom: 44px; }
  .section-title  { font-size: clamp(2rem, 8vw, 3.5rem); }

  /* ?? Marquee ?????????????????????????????????????????????????? */
  .marquee-strip { padding: 10px 0; }

  /* ?? Projects ????????????????????????????????????????????????? */
  /*
   * Layout per card:
   *   [left: num+status]  [right: visual+link]
   *   [main: type/name/desc/tech ? full width ]
   */
  .project-item {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "left right"
      "main main";
    column-gap: 16px;
    row-gap: 14px;
    padding: 28px 0;
    align-items: start;
  }
  .project-left {
    grid-area: left;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .project-main {
    grid-area: main;
  }
  .project-right {
    grid-area: right;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  /* Disable hover scale/rotate on touch */
  .project-item:hover .project-visual {
    transform: none;
    border-color: rgba(255,255,255,.08);
  }
  .project-visual {
    width: 80px; height: 80px;
    flex-shrink: 0;
  }

  .project-name { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  .project-desc { font-size: .88rem; line-height: 1.6; }
  .project-tech { flex-wrap: wrap; gap: 6px; margin-top: 10px; }
  .project-tech span { font-size: .62rem; }

  /* ?? Studio ??????????????????????????????????????????????????? */
  .studio-layout { grid-template-columns: 1fr; gap: 28px; }
  .big-statement { font-size: clamp(1.25rem, 5vw, 2rem); }
  .studio-detail p { font-size: .9rem; }

  /* Stats: 2-column grid */
  .studio-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    flex-wrap: unset;
  }
  .stat-num   { font-size: clamp(2.6rem, 11vw, 4rem); }
  .stat-label { font-size: .58rem; }

  /* ?? Contact ?????????????????????????????????????????????????? */
  .contact-wrap { text-align: left; }
  .contact-title { font-size: clamp(2.2rem, 10vw, 4rem); margin: 14px 0 36px; }
  .email-link    { font-size: clamp(.95rem, 4vw, 1.4rem); }
  .contact-sub   { font-size: .58rem; }

  /* ?? Footer ??????????????????????????????????????????????????? */
  footer { flex-direction: column; gap: 20px; padding: 28px var(--pad); }
  .footer-left   { align-items: flex-start; }
  .footer-right  { flex-wrap: wrap; gap: 12px 18px; }
  .footer-right a { font-size: .76rem; }
  .footer-sig    { display: none; }

  /* ?? Disable desktop-only UI ?????????????????????????????????? */
  .ds-left, .ds-right { display: none !important; }
  #hero-terminal, #sys-status { display: none !important; }
  #cursor { display: none !important; }
  body, a, button { cursor: auto; }

  /* ?? Reduce glow/shadow for perf ?????????????????????????????? */
  .player.pa   { box-shadow: 0 0 3px rgba(255,255,255,.5); }
  .sphere-core { box-shadow: 0 0 6px rgba(255,255,255,.7); }
}

/* ???????????????????????????????????????????????????????????????
   480px ? small phones
   ??????????????????????????????????????????????????????????????? */
@media (max-width: 480px) {
  :root { --pad: 18px; }

  .hero-title    { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .contact-title { font-size: clamp(2rem, 11vw, 3.2rem); }
  .studio-stats  { gap: 22px 12px; }
  .stat-num      { font-size: clamp(2.2rem, 13vw, 3.5rem); }
  .project-visual { width: 70px; height: 70px; }
  .footer-right  { gap: 10px 14px; }
  .nav-links     { gap: 36px !important; }
  .nav-links a   { font-size: 1.7rem !important; }
}

/* ???????????????????????????????????????????????????????????????
   Touch device overrides (independent of width)
   ??????????????????????????????????????????????????????????????? */
@media (hover: none) {
  /* Prevent sticky hover states on touch */
  .project-item:hover::before         { opacity: 0; }
  .project-item:hover .project-visual { transform: none; }
  .project-item:hover .project-name   { text-shadow: none; }
}

