/* ============================================================
   NIAL THONY — portfolio  (dark developer edition)
   fonts: space grotesk / jetbrains mono (self-hosted)
   ============================================================ */

:root{
  --bg:        #070a09;
  --bg-soft:   #0a0f0d;
  --card:      #0d1411;
  --card-2:    #101915;
  --line:      rgba(133,255,178,.10);
  --line-2:    rgba(133,255,178,.20);
  --txt:       #e8f4ec;
  --dim:       #93ab9d;
  --faint:     #5c7465;
  --acc:       #6effa0;   /* terminal green */
  --acc-dim:   #35c46e;
  --cyan:      #8be9fd;
  --pink:      #ff79c6;
  --sans: 'space grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'jetbrains mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --radius: 14px;
  --shadow: 0 24px 70px -28px rgba(0,0,0,.85);
}

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

html{ scroll-behavior:smooth; scroll-padding-top:92px; }
body{
  background:var(--bg);
  color:var(--txt);
  font-family:var(--sans);
  font-size:16.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
html{ overflow-x:clip; }
body::before{ /* subtle grid */
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(133,255,178,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(133,255,178,.035) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
          mask-image:radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
body::after{ /* vignette + glow */
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(720px 380px at 78% -5%, rgba(110,255,160,.09), transparent 65%),
    radial-gradient(900px 500px at 12% 22%, rgba(139,233,253,.05), transparent 60%),
    radial-gradient(1000px 700px at 50% 115%, rgba(110,255,160,.05), transparent 60%);
}
#app{ position:relative; z-index:1; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
::selection{ background:rgba(110,255,160,.25); color:#eafff1; }
::-webkit-scrollbar{ width:11px; }
::-webkit-scrollbar-track{ background:#070a09; }
::-webkit-scrollbar-thumb{ background:#1b2a22; border:3px solid #070a09; border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:#2c4637; }

.container{ width:100%; max-width:100%; margin-inline:auto; padding-inline:clamp(12px,1.5vw,24px); position:relative; }
.mono{ font-family:var(--mono); }
.lime{ color:var(--acc); }
.glow-g{ color:var(--acc); text-shadow:0 0 22px rgba(110,255,160,.45); }
.dim{ color:var(--dim); }
.outline{ color:transparent; -webkit-text-stroke:1px rgba(232,244,236,.14); }

/* ---------------- small parts ---------------- */

.eyebrow{
  font-family:var(--mono); font-size:.78rem; letter-spacing:.22em;
  text-transform:uppercase; color:var(--acc); display:inline-flex;
  align-items:center; gap:10px;
}
.eyebrow::before{ content:"//"; color:var(--faint); }
.eyebrow i{ font-style:normal; color:var(--faint); }

.sec-index{
  font-family:var(--mono); font-size:.8rem; color:var(--faint);
  border:1px solid var(--line); border-radius:999px; padding:5px 12px;
  white-space:nowrap;
}

h1,h2,h3{ line-height:1.04; font-weight:700; letter-spacing:-.01em; }
.display{
  font-size:clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight:700; line-height:.98; letter-spacing:-.02em;
}
.display .thin{ font-weight:300; color:var(--dim); }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:.9rem; letter-spacing:.03em;
  padding:14px 22px; border-radius:10px; border:1px solid var(--line-2);
  color:var(--txt); background:transparent; cursor:pointer;
  transition:.25s ease; white-space:nowrap; position:relative;
}
.btn:hover{ border-color:var(--acc); color:var(--acc); transform:translateY(-2px); box-shadow:0 10px 30px -12px rgba(110,255,160,.35); }
.btn .ar{ transition:transform .25s ease; }
.btn:hover .ar{ transform:translate(3px,0); }
.btn-solid{ background:var(--acc); color:#03130b; border-color:var(--acc); font-weight:600; }
.btn-solid:hover{ background:#8dffb6; color:#03130b; box-shadow:0 14px 36px -10px rgba(110,255,160,.55); }
.btn-ghost{ background:transparent; }

.text-link{
  font-family:var(--mono); font-size:.85rem; color:var(--acc);
  display:inline-flex; align-items:center; gap:8px; border-bottom:1px solid transparent;
  transition:.2s; padding-bottom:2px;
}
.text-link:hover{ border-color:var(--acc); }

/* chips */
.chip{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--mono); font-size:.76rem; color:var(--dim);
  background:var(--card-2); border:1px solid var(--line);
  padding:7px 12px 7px 10px; border-radius:999px; white-space:nowrap;
  transition:.2s;
}
.chip img{ width:16px; height:16px; object-fit:contain; }
.chip:hover{ color:var(--txt); border-color:var(--line-2); transform:translateY(-1px); }
.chip.small{ font-size:.68rem; padding:5px 9px 5px 8px; }
.chip.small img{ width:13px; height:13px; }
.chip.plain{ padding:7px 13px; }

/* reveal */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s ease, transform .8s cubic-bezier(.2,.65,.25,1); }
.reveal[data-dir="l"]{ transform:translateX(-46px); }
.reveal[data-dir="r"]{ transform:translateX(46px); }
.reveal[data-dir="t"]{ transform:translateY(-44px); }
.reveal[data-dir="z"]{ transform:scale(.93); }
.reveal.in{ opacity:1; transform:none; }

/* ---------------- topbar ---------------- */
.topbar{
  position:fixed; top:0; left:0; right:0; z-index:100;
  transition:.3s ease; 
}
.topbar .bar-in{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding-top:clamp(26px, 3.2vw, 42px);
  padding-bottom:14px;
  padding-inline:clamp(20px, 3vw, 48px);
  transition:padding .3s ease, background .3s ease;
}
.topbar.scrolled{ background:rgba(7,10,9,.82); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); }
.topbar.scrolled .bar-in{
  padding-block:11px;
  padding-inline:clamp(12px, 1.5vw, 24px);
}

.logo{ font-family:var(--mono); font-size:.95rem; display:inline-flex; align-items:center; gap:10px; }
.logo .prompt{ color:var(--acc); }
.logo b{ color:var(--txt); font-weight:700; }
.logo b span{ color:var(--acc-dim); }
.logo .dot{ width:7px;height:7px;border-radius:50%;background:var(--acc); box-shadow:0 0 10px var(--acc); animation:pulse 2.2s infinite; }
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.25} }

.nav{ display:flex; align-items:center; gap:6px; }
.nav a{
  font-family:var(--mono); font-size:.82rem; color:var(--dim);
  padding:8px 13px; border-radius:8px; transition:.2s;
}
.nav a:hover{ color:var(--acc); background:rgba(110,255,160,.06); }
.nav .nav-cta{ border:1px solid var(--line-2); }
.nav .nav-cta:hover{ border-color:var(--acc); }

.nav-burger{ display:none; background:none; border:1px solid var(--line-2); color:var(--txt);
  border-radius:8px; padding:9px 12px; font-family:var(--mono); font-size:.8rem; cursor:pointer; }
.nav-mobile{
  position:fixed; top:0; right:0; height:100dvh; width:min(80vw,340px); z-index:99;
  display:flex; flex-direction:column; gap:4px;
  padding:100px 30px 40px;
  background:rgba(10,16,13,.97); backdrop-filter:blur(14px);
  border-left:1px solid var(--line-2);
  transform:translateX(102%); opacity:0; pointer-events:none;
  transition:transform .4s cubic-bezier(.22,.8,.25,1), opacity .3s ease;
  overflow-y:auto;
}
.nav-mobile.open{ transform:none; opacity:1; pointer-events:auto; }
.nav-mobile a{ font-family:var(--mono); color:var(--txt); padding:14px 8px; border-bottom:1px solid var(--line); font-size:1rem; }
.nav-mobile a:hover{ color:var(--acc); }

/* ---------------- hero ---------------- */
.hero{
  position:relative; min-height:100svh; display:flex; align-items:stretch;
  padding:clamp(10px,1.4vw,20px);
}
.hero-card{
  position:relative; width:100%; overflow:hidden; flex:1;
  min-height:calc(100svh - clamp(20px,2.8vw,40px));
  border-radius:clamp(18px,2.4vw,30px);
  border:1px solid var(--line-2);
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(110,255,160,.07), transparent 62%),
    radial-gradient(700px 420px at -6% 108%, rgba(139,233,253,.05), transparent 60%),
    linear-gradient(158deg, #101a15, #0a120d 52%, #070b09);
  box-shadow:var(--shadow);
  display:flex; align-items:center;
}
.hero-card .glow{ z-index:0; }
.hero-greet{
  position:relative; z-index:4; margin:0;
  padding-left:clamp(22px,5.5vw,96px);
  max-width:78%;
  display:flex; flex-direction:column; align-items:flex-start;
  gap:clamp(10px,1.5vw,22px);
}
.hero-eyebrow{
  display:flex; align-items:center; gap:10px; margin:0;
  font-family:var(--mono); font-size:clamp(.66rem,1.05vw,.84rem);
  letter-spacing:.16em; text-transform:uppercase; color:var(--faint);
  white-space:nowrap;
}
.hero-eyebrow .p{ color:var(--acc); font-size:1.05em; }
.hero-eyebrow .caret{
  width:7px; height:1.05em; background:var(--acc); opacity:.95;
  animation:caretBlink 1.15s steps(1) infinite;
}
@keyframes caretBlink{ 0%,58%{ opacity:.95; } 59%,100%{ opacity:0; } }
.hero h1.hero-title{
  position:relative; margin:0;
  font-size:clamp(3.1rem,8.2vw,6.6rem);
  line-height:.95;
}
.hero-photo{
  position:absolute; right:clamp(6px,1.2vw,18px); bottom:0; z-index:3;
  width:min(26vw,380px);
}
.hero-photo img{ display:block; width:100%; height:auto;
  filter:drop-shadow(0 26px 50px rgba(0,0,0,.5)); }
.hero-photo::before{
  content:""; position:absolute; inset:-8%; z-index:-1; pointer-events:none;
  background:radial-gradient(circle at 55% 40%, rgba(110,255,160,.16), transparent 62%);
  filter:blur(20px);
}
.hero-name-strip{
  position:absolute; left:0; right:0; pointer-events:none; z-index:0;
  overflow:hidden; display:flex; white-space:nowrap;
  font-weight:700; user-select:none;
}
.hero-name-strip.s1{ top:1%; }
.hero-name-strip.s2{ top:33%; }
.hero-name-strip.s3{ top:65%; }
@media (max-height:780px){ .hero-name-strip.s1{ top:-4%; } .hero-name-strip.s2{ top:30%; } .hero-name-strip.s3{ top:64%; } }
@media (max-width:760px){ .hero-name-strip.s1{ top:0; } .hero-name-strip.s2{ top:34%; } .hero-name-strip.s3{ top:68%; } }
.hero-name-strip{ will-change:transform; }
.hero-name-strip .row{ display:inline-flex; align-items:center; animation:slideL var(--dur,46s) linear infinite; will-change:transform; }
.hero-name-strip.r2 .row{ animation-name:slideR; }
@keyframes slideL{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes slideR{ from{transform:translateX(-50%)} to{transform:translateX(0)} }
.hero-name-strip span{
  font-size:clamp(110px,16vw,230px); line-height:1.05; padding-right:6vw; letter-spacing:-.02em;
}
.hero-name-strip.s1 span{ color:transparent; -webkit-text-stroke:1.2px rgba(133,255,178,.14); }
.hero-name-strip.s2 span{ color:transparent; -webkit-text-stroke:1px rgba(133,255,178,.08); }
.hero-name-strip.s3 span{
  -webkit-text-stroke:1px transparent; background:linear-gradient(180deg, rgba(110,255,160,.14), rgba(110,255,160,.02));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero .glow{ position:absolute; width:640px; height:640px; border-radius:50%;
  filter:blur(110px); opacity:.16; pointer-events:none; z-index:0;
}
.hero .glow.g1{ background:#35c46e; top:6%; left:44%; }
.hero .glow.g2{ background:#0ea5b7; bottom:-10%; left:-14%; }

.hero-grid{
  display:grid; grid-template-columns: 1.08fr .92fr; gap:clamp(30px,5vw,70px);
  align-items:center; width:100%; position:relative; z-index:2;
}
.hero-kicker{
  font-family:var(--mono); font-size:.82rem; color:var(--dim);
  display:inline-flex; align-items:center; gap:12px; margin-bottom:26px;
  padding:8px 14px; border:1px solid var(--line); border-radius:999px; background:rgba(13,20,17,.6);
}
.hero-kicker .pulse-dot{ width:8px;height:8px;border-radius:50%;background:var(--acc);box-shadow:0 0 12px var(--acc); animation:pulse 1.6s infinite; }

.hero h1 .last{ display:block; }
.hero h1 .last em{ font-style:normal; color:transparent; -webkit-text-stroke:1.5px var(--acc); text-shadow:none; }
.hero-sub{ margin-top:24px; font-family:var(--mono); font-size:clamp(.82rem,1.2vw,1rem); color:var(--dim); max-width:520px; }
.hero-sub b{ color:var(--txt); font-weight:600; }
.hero-sub .cursor{ display:inline-block; width:9px; height:1.15em; background:var(--acc); vertical-align:text-bottom; margin-left:2px;
  animation:blink 1.05s steps(1) infinite; box-shadow:0 0 12px rgba(110,255,160,.8); }
@keyframes blink{ 50%{opacity:0} }
.hero-roles{ margin-top:14px; font-family:var(--mono); font-size:.95rem; }
.hero-roles .pr{ color:var(--faint); }
.hero-roles #typed{ color:var(--acc); }
.hero-roles #typed::after{ content:"▍"; margin-left:3px; color:var(--acc); animation:blink 1.05s steps(1) infinite; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:38px; }
.hero-meta{ display:flex; flex-wrap:wrap; gap:10px 26px; margin-top:44px; font-family:var(--mono); font-size:.78rem; color:var(--faint); }
.hero-meta .hm b{ color:var(--acc); font-weight:600; }
.hero-meta .hm i{ font-style:normal; }

/* hero right : terminal card */
.term{
  background:linear-gradient(180deg, rgba(16,24,20,.92), rgba(9,13,11,.94));
  border:1px solid var(--line-2); border-radius:16px; box-shadow:var(--shadow), 0 0 60px -30px rgba(110,255,160,.35);
  overflow:hidden; position:relative; backdrop-filter:blur(4px);
}
.term .term-bar{
  display:flex; align-items:center; gap:8px; padding:13px 16px;
  border-bottom:1px solid var(--line); background:rgba(255,255,255,.015);
}
.term .term-bar .dots{ display:flex; gap:7px; }
.term .term-bar .dots i{ width:11px; height:11px; border-radius:50%; display:block; }
.term .term-bar .dots i:nth-child(1){ background:#ff5f57; } .term .term-bar .dots i:nth-child(2){ background:#febc2e; } .term .term-bar .dots i:nth-child(3){ background:#28c840; }
.term .term-bar .t{ font-family:var(--mono); font-size:.72rem; color:var(--faint); margin-left:8px; letter-spacing:.05em; }
.term .term-bar .t b{ color:var(--acc-dim); font-weight:500; }
.term .term-body{ padding:18px; position:relative; }
.term .avatar-frame{ border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#0b120e; }
.term .avatar-frame img{ width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; }
.term .term-lines{ padding:16px 2px 6px; font-family:var(--mono); font-size:.78rem; line-height:1.9; }
.term .term-lines .tl{ opacity:0; transform:translateY(6px); animation:tlIn .6s forwards; }
.term .term-lines .tl:nth-child(1){animation-delay:.35s} .term .term-lines .tl:nth-child(2){animation-delay:.65s}
.term .term-lines .tl:nth-child(3){animation-delay:.95s} .term .term-lines .tl:nth-child(4){animation-delay:1.25s}
@keyframes tlIn{ to{ opacity:1; transform:none; } }
.term .term-lines .p{ color:var(--acc); } .term .term-lines .c{ color:var(--faint); } .term .term-lines .o{ color:var(--dim); }
.term .term-lines .k{ color:var(--cyan); }
.term .scanline{
  position:absolute; left:0; right:0; height:90px; top:-30%; pointer-events:none; z-index:3;
  background:linear-gradient(180deg, transparent, rgba(110,255,160,.05), transparent);
  animation:scan 5.5s linear infinite;
}
@keyframes scan{ to{ top:110%; } }

.float-chip{
  position:absolute; z-index:5; font-family:var(--mono); font-size:.72rem; color:var(--txt);
  background:rgba(11,18,14,.92); border:1px solid var(--line-2); border-radius:10px;
  padding:9px 13px; display:inline-flex; align-items:center; gap:8px;
  box-shadow:0 14px 34px -14px rgba(0,0,0,.8); animation:bob 5s ease-in-out infinite;
}
.float-chip img{ width:15px; height:15px; }
.float-chip b{ color:var(--acc); font-weight:600; }
@keyframes bob{ 0%,100%{ transform:translateY(0)} 50%{ transform:translateY(-9px)} }
.fc1{ top:-16px; right:-6px; } .fc2{ bottom:24%; left:-24px; animation-delay:1.2s; }
.fc3{ bottom:-16px; right:8%; animation-delay:2.1s; }
@media (max-width:1180px){ .fc2{ left:-10px; } }

.hero .scroll-hint{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%); z-index:3;
  display:flex; flex-direction:column; align-items:center; gap:8px;
  font-family:var(--mono); font-size:.68rem; letter-spacing:.3em; color:var(--faint);
  text-transform:uppercase; cursor:pointer;
}
.hero .scroll-hint .line{ width:1px; height:44px; background:var(--line-2); position:relative; overflow:hidden; }
.hero .scroll-hint .line::after{ content:""; position:absolute; top:-50%; left:0; width:100%; height:50%;
  background:var(--acc); animation:scrollhint 1.8s ease-in-out infinite; }
.hero .scroll-hint{ transition:opacity .3s ease; }
.hero .scroll-hint.used{ cursor:default; }
.hero .scroll-hint.used .line::after{ animation:none; top:-50%; transform:translateY(var(--hp,0px)); }
@keyframes scrollhint{ to{ top:110%; } }

/* ---------------- ticker strip ---------------- */
.ticker{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  background:rgba(13,20,17,.55); overflow:hidden; position:relative; z-index:2;
  padding:13px 0; -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.ticker .tk-row{ display:inline-flex; white-space:nowrap; animation:slideL 34s linear infinite; will-change:transform; }
.ticker span{
  font-family:var(--mono); font-size:.8rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--dim); padding-right:34px; display:inline-flex; align-items:center; gap:34px;
}
.ticker b{ color:var(--acc); font-weight:500; }

/* ---------------- sections ---------------- */
.section{ padding:clamp(90px,10vw,150px) 0 0; position:relative; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:clamp(38px,5vw,64px); flex-wrap:wrap; }
.sec-head .left .eyebrow{ margin-bottom:18px; }
.sec-head h2{ font-size:clamp(2.2rem,5vw,4rem); }
.sec-head h2 .outline{ -webkit-text-stroke:1px rgba(133,255,178,.55); }
.sec-head p{ margin-top:16px; color:var(--dim); max-width:520px; }
.sec-head .right{ padding-bottom:6px; }

/* ---------------- work grid (home) ---------------- */
.p-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(22px,3vw,34px); }
.p-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; display:flex; flex-direction:column; transition:.35s ease;
}
.p-card:hover{ border-color:rgba(110,255,160,.4); transform:translateY(-5px); box-shadow:0 26px 60px -30px rgba(0,0,0,.9), 0 0 44px -22px rgba(110,255,160,.35); }
.p-card .shot{ position:relative; overflow:hidden; aspect-ratio:16/10; background:#0a0f0d; border-bottom:1px solid var(--line); }
.p-card .shot img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.2,.6,.2,1); filter:saturate(.92); }
.p-card:hover .shot img{ transform:scale(1.045); filter:saturate(1.05); }
.p-card .shot::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(7,10,9,.55)); pointer-events:none; }
.p-card .links{ position:absolute; top:12px; right:12px; z-index:2; display:flex; gap:8px; opacity:0; transform:translateY(-6px); transition:.3s; }
.p-card:hover .links{ opacity:1; transform:none; }
.p-card .links a{
  background:rgba(7,10,9,.82); backdrop-filter:blur(6px); border:1px solid var(--line-2);
  border-radius:8px; padding:7px 11px; font-family:var(--mono); font-size:.7rem; color:var(--txt);
  display:inline-flex; gap:7px; align-items:center; transition:.2s;
}
.p-card .links a:hover{ color:#03130b; background:var(--acc); border-color:var(--acc); }
.p-card .links a img{ width:13px; height:13px; filter:brightness(0) invert(1); }
.p-card .links a:hover img{ filter:none; }
.p-card .year{ position:absolute; left:12px; bottom:10px; z-index:2;
  font-family:var(--mono); font-size:.68rem; color:rgba(232,244,236,.85);
  background:rgba(7,10,9,.72); backdrop-filter:blur(4px); border:1px solid var(--line); padding:4px 10px; border-radius:999px; }
.p-card .body{ padding:20px 22px 22px; display:flex; flex-direction:column; gap:11px; flex:1; }
.p-card .body h3{ font-size:1.28rem; letter-spacing:-.01em; display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.p-card .body h3 .live{ font-family:var(--mono); font-size:.6rem; color:#03130b; background:var(--acc);
  padding:3px 8px; border-radius:999px; font-weight:700; letter-spacing:.08em; display:inline-flex; align-items:center; gap:6px; }
.p-card .body h3 .live::before{ content:""; width:5px; height:5px; border-radius:50%; background:#03130b; }
.p-card .body p{ color:var(--dim); font-size:.94rem; flex:1; }
.p-card .stack{ display:flex; flex-wrap:wrap; gap:7px; }
.p-card .foot{ display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding-top:13px; margin-top:2px; font-family:var(--mono); font-size:.72rem; color:var(--faint); }
.p-card .foot a{ color:var(--acc); transition:.2s; }
.p-card .foot a:hover{ text-shadow:0 0 14px rgba(110,255,160,.7); }

/* featured wide card */
.feat{
  display:grid; grid-template-columns:1fr 1.15fr; gap:0; background:linear-gradient(120deg,#0c1410,#0a100d 55%);
  border:1px solid var(--line-2); border-radius:18px; overflow:hidden; margin-top:clamp(26px,3.4vw,40px);
  margin-bottom:clamp(32px,4.2vw,52px);
  box-shadow:var(--shadow);
}
.feat .info{ padding:clamp(26px,3.4vw,46px); display:flex; flex-direction:column; gap:18px; }
.feat .tag{ font-family:var(--mono); font-size:.72rem; letter-spacing:.16em; color:var(--acc); text-transform:uppercase; display:flex; align-items:center; gap:10px; }
.feat .tag::before{ content:""; width:26px; height:1px; background:var(--acc); box-shadow:0 0 8px var(--acc); }
.feat h3{ font-size:clamp(1.7rem,3vw,2.6rem); }
.feat p{ color:var(--dim); }
.feat ul{ display:flex; flex-direction:column; gap:9px; }
.feat ul li{ display:flex; gap:12px; color:var(--dim); font-size:.93rem; }
.feat ul li::before{ content:"▹"; color:var(--acc); }
.feat .ctas{ display:flex; gap:13px; flex-wrap:wrap; margin-top:auto; padding-top:10px; }
.feat .vis{ position:relative; min-height:300px; }
.feat .vis img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top; }
.feat .vis::before{ content:""; position:absolute; inset:0; background:linear-gradient(270deg, transparent 30%, #0c1410 100%); z-index:1; pointer-events:none; }
@media (max-width:920px){ .feat{ grid-template-columns:1fr; } .feat .vis{ min-height:230px; order:-1 } .feat .vis::before{ background:linear-gradient(180deg, transparent 40%, #0c1410); } }

.sec-foot-cta{ margin-top:clamp(36px,4vw,52px); display:flex; justify-content:center; }

/* ---------------- capabilities ---------------- */
.cap-grid{ display:grid; grid-template-columns:repeat(2,1fr); column-gap:clamp(18px,2.4vw,30px); row-gap:clamp(38px,4.6vw,60px); }
.cap-full{ grid-column:1/-1; }
.cap-full p{ max-width:720px; }
.cap-group{ margin-top:16px; }
.cap-group + .cap-group{ margin-top:14px; }
.cap-sub{ display:block; font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color:var(--faint); margin-bottom:8px; }
.cap-sub::before{ content:"// "; color:var(--acc-dim); }
.cap{
  border:1px solid var(--line); border-radius:16px; padding:clamp(24px,3vw,36px);
  background:linear-gradient(160deg, rgba(17,26,21,.8), rgba(10,15,12,.9)); position:relative; overflow:hidden;
  transition:.3s;
}
.cap:hover{ border-color:rgba(110,255,160,.35); }
.cap::after{ content:""; position:absolute; width:340px; height:340px; border-radius:50%; right:-160px; top:-160px;
  background:radial-gradient(circle, rgba(110,255,160,.08), transparent 70%); pointer-events:none; }
.cap .cap-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:8px; }
.cap .cap-num{ font-family:var(--mono); font-size:1.6rem; color:transparent; -webkit-text-stroke:1px rgba(133,255,178,.5); font-weight:700; }
.cap h3{ font-size:1.6rem; display:flex; align-items:center; gap:14px; }
.cap h3 img{ width:34px; height:34px; object-fit:contain; }
.cap p{ color:var(--dim); font-size:.95rem; max-width:520px; margin:10px 0 22px; }
.cap .chips{ display:flex; flex-wrap:wrap; gap:9px; }
.tools-row{ margin-top:clamp(24px,3vw,34px); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tools-row .lab{ font-family:var(--mono); font-size:.72rem; letter-spacing:.2em; color:var(--faint); text-transform:uppercase; margin-right:8px; }
.tool-ic{ width:42px; height:42px; border-radius:11px; background:var(--card); border:1px solid var(--line);
  display:grid; place-items:center; transition:.25s; }
.tool-ic:hover{ transform:translateY(-3px); border-color:rgba(110,255,160,.45); }
.tool-ic img{ width:20px; height:20px; object-fit:contain; }

/* ---------------- about ---------------- */
.about-grid{ display:grid; grid-template-columns:.92fr 1.08fr; gap:clamp(28px,4.4vw,64px); align-items:start; }
.about-visual{ position:sticky; top:110px; }
.about-visual .term .avatar-frame img{ width:100%; height:auto; aspect-ratio:1/1; object-fit:cover; object-position:center; }
.about-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:22px; }
.stat{
  border:1px solid var(--line); border-radius:13px; background:var(--card); padding:16px 8px;
  text-align:center; transition:.3s;
}
.stat:hover{ border-color:rgba(110,255,160,.4); transform:translateY(-3px); }
.stat b{ font-size:clamp(1.4rem,2.2vw,1.9rem); color:var(--acc); font-weight:700; display:block; line-height:1; }
.stat b sup{ font-size:.8em; }
.stat span{ font-family:var(--mono); font-size:.6rem; letter-spacing:.14em; color:var(--faint); text-transform:uppercase; display:block; margin-top:8px; }
.about h2{ font-size:clamp(2rem,3.8vw,3.3rem); }
.about .whoami{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:22px 0 8px;
}
.about .whoami h3{ font-size:clamp(1.5rem,2.6vw,2.1rem); display:inline-flex; align-items:center; gap:10px; }
.badge-verified{ display:inline-flex; width:22px; height:22px; border-radius:50%; background:var(--acc); color:#03130b; align-items:center; justify-content:center; font-size:.8rem; box-shadow:0 0 16px rgba(110,255,160,.6); }
.about .aka{ font-family:var(--mono); font-size:.78rem; color:var(--faint); margin-bottom:18px; }
.about .aka b{ color:var(--dim); font-weight:500; }
.about .bio{ color:var(--dim); display:flex; flex-direction:column; gap:16px; max-width:600px; }
.about .bio b{ color:var(--txt); font-weight:600; }
.about .bio .acc{ color:var(--acc); }
.about .bio-glow{ color:var(--txt); }
.about-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.about .dl-row{ margin-top:28px; }

.cur-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:clamp(30px,4vw,44px); }
.cur{ border:1px solid var(--line); border-radius:13px; background:var(--card); padding:18px 18px 16px; transition:.3s; }
.cur:hover{ border-color:rgba(110,255,160,.4); transform:translateY(-4px); background:var(--card-2); }
.cur .k{ font-family:var(--mono); font-size:.62rem; letter-spacing:.22em; color:var(--faint); text-transform:uppercase; display:flex; align-items:center; gap:8px; }
.cur .k::before{ content:"$"; color:var(--acc); }
.cur p{ font-size:1rem; margin-top:10px; font-weight:500; }
.cur small{ color:var(--dim); font-size:.82rem; display:block; margin-top:4px; }

/* ---------------- contact ---------------- */
.contact{ padding-bottom:70px; }
.contact-head{ text-align:center; margin-bottom:clamp(44px,5vw,66px); }
.contact-head .eyebrow{ justify-content:center; margin-bottom:20px; }
.contact-head h2{ font-size:clamp(2.6rem,7vw,5.6rem); }
.contact-head h2 .outline{ -webkit-text-stroke:1px rgba(133,255,178,.5); }
.contact-head p{ color:var(--dim); max-width:560px; margin:22px auto 0; }
.contact-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-bottom:clamp(36px,4vw,52px); }
.c-card{
  border:1px solid var(--line); border-radius:14px; background:var(--card); padding:22px 20px;
  display:flex; flex-direction:column; gap:10px; transition:.3s; position:relative; overflow:hidden;
}
.c-card:hover{ border-color:rgba(110,255,160,.45); transform:translateY(-4px); background:var(--card-2); }
.c-card .n{ font-family:var(--mono); font-size:.68rem; color:var(--faint); }
.c-card .n b{ color:var(--acc); font-weight:600; margin-right:10px; }
.c-card .v{ font-family:var(--mono); font-size:.9rem; color:var(--txt); word-break:break-all; }
.c-card .v:hover{ color:var(--acc); }
.contact-cta{ display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }

/* ---------------- footer ---------------- */
footer{ border-top:1px solid var(--line); background:rgba(8,12,10,.6); position:relative; z-index:2; margin-top:clamp(80px,9vw,130px); }
.foot-in{ padding-block:34px 40px; display:flex; flex-direction:column; gap:22px; align-items:center; text-align:center; }
.foot-nav{ display:flex; gap:26px; flex-wrap:wrap; justify-content:center; }
.foot-nav a{ font-family:var(--mono); font-size:.78rem; color:var(--dim); transition:.2s; }
.foot-nav a:hover{ color:var(--acc); }
.socials{ display:flex; gap:10px; }
.socials a{ width:40px; height:40px; border-radius:10px; border:1px solid var(--line-2); display:grid; place-items:center; transition:.25s; background:rgba(13,20,17,.5); }
.socials a:hover{ border-color:var(--acc); transform:translateY(-3px); box-shadow:0 8px 20px -8px rgba(110,255,160,.4); }
.socials img{ width:17px; height:17px; opacity:.9; }
.socials a:hover img{ filter:drop-shadow(0 0 6px rgba(110,255,160,.9)); }
.foot-txt{ font-family:var(--mono); font-size:.72rem; color:var(--faint); }
.foot-txt b{ color:var(--acc); font-weight:500; }
.foot-status{ font-family:var(--mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--faint);
  display:inline-flex; align-items:center; gap:9px; border:1px solid var(--line); padding:8px 16px; border-radius:999px; background:var(--card); }
.foot-status .pulse-dot{ width:7px; height:7px; border-radius:50%; background:var(--acc); box-shadow:0 0 10px var(--acc); animation:pulse 1.8s infinite; }

/* ---------------- work page ---------------- */
.page-hero{ padding:170px 0 40px; position:relative; }
.page-hero .crumb{ font-family:var(--mono); font-size:.8rem; color:var(--faint); margin-bottom:26px; display:flex; flex-wrap:wrap; gap:8px; }
.page-hero .crumb .p{ color:var(--acc); } .page-hero .crumb .c{ color:var(--faint); } .page-hero .crumb .d{ color:var(--dim); }
.page-hero h1{ font-size:clamp(3rem,8vw,6.4rem); }
.page-hero h1 .outline{ -webkit-text-stroke:1.4px rgba(133,255,178,.4); }
.page-hero p{ color:var(--dim); max-width:620px; margin-top:20px; }

.filters{ display:flex; gap:9px; flex-wrap:wrap; margin:36px 0 30px; align-items:center; }
.fbtn{
  font-family:var(--mono); font-size:.76rem; color:var(--dim); padding:9px 16px;
  border-radius:999px; border:1px solid var(--line-2); background:transparent; cursor:pointer; transition:.2s;
}
.fbtn:hover{ color:var(--txt); border-color:var(--acc); }
.fbtn.on{ background:var(--acc); color:#03130b; border-color:var(--acc); font-weight:600; }
.fcount{ margin-left:auto; font-family:var(--mono); font-size:.74rem; color:var(--faint); }

.w-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,2.4vw,28px); padding-bottom:20px; }
.w-card{ animation:fadeUp .5s both; }
@keyframes fadeUp{ from{opacity:0; transform:translateY(18px)} to{opacity:1; transform:none} }
.lab-head{ margin:70px 0 24px; display:flex; align-items:center; gap:18px; }
.lab-head::after{ content:""; height:1px; background:var(--line); flex:1; }
.lab-head h2{ font-size:1.5rem; }
.lab-list{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--card); }
.lab-row{ display:grid; grid-template-columns:1.5fr .8fr .7fr 2fr 40px; gap:16px; align-items:center;
  padding:16px 22px; border-bottom:1px solid var(--line); transition:.2s; }
.lab-row:last-child{ border-bottom:none; }
.lab-row:hover{ background:var(--card-2); }
.lab-row .name{ font-weight:600; }
.lab-row .lg{ font-family:var(--mono); font-size:.7rem; color:var(--cyan); }
.lab-row .yr{ font-family:var(--mono); font-size:.72rem; color:var(--faint); }
.lab-row .note{ color:var(--dim); font-size:.84rem; }
.lab-row a{ color:var(--acc); font-family:var(--mono); font-size:.9rem; }
.lab-row a:hover{ text-shadow:0 0 12px rgba(110,255,160,.8); }
.w-cta{ text-align:center; margin:60px 0 0; }

/* ---------------- play : interactive terminal ---------------- */
.play-grid{ display:grid; grid-template-columns:1.6fr 1fr; gap:clamp(20px,2.6vw,34px); align-items:start; }
.play-term .term-body{ padding:0; }
.play-out{ min-height:340px; max-height:430px; overflow-y:auto; padding:18px 18px 6px;
  font-family:var(--mono); font-size:.8rem; line-height:1.85;
  scroll-behavior:smooth; overscroll-behavior:contain; }
.play-out::-webkit-scrollbar{ width:7px; }
.play-out::-webkit-scrollbar-thumb{ background:#1d2c23; border-radius:6px; }
.play-line{ white-space:pre-wrap; word-break:break-word; animation:tlIn .35s both; }
.play-line .ps1{ color:var(--acc); } .play-line .in{ color:#eaffef; }
.play-line .k{ color:var(--cyan); } .play-line .o{ color:var(--faint); } .play-line .g{ color:var(--acc); }
.play-line .w{ color:var(--dim); } .play-line .e{ color:var(--pink); }
.play-line .t{ color:var(--txt); }
.play-line.err{ color:#ff8f8f; }
.play-typing{ animation:tlIn .3s both; }
.play-in{ display:flex; align-items:center; gap:10px; padding:12px 16px 14px; border-top:1px solid var(--line);
  font-family:var(--mono); font-size:.82rem; background:rgba(0,0,0,.18); }
.play-in .ps1{ color:var(--acc); white-space:nowrap; }
.play-in input{ flex:1; background:transparent; border:none; outline:none; color:#eaffef;
  font-family:inherit; font-size:inherit; caret-color:var(--acc); min-width:0; }
.play-in input::placeholder{ color:#3f5c4b; }
.play-hint{ font-family:var(--mono); font-size:.7rem; color:var(--faint); margin-top:10px; padding-left:4px; }
.play-hint b{ color:var(--dim); font-weight:500; }
.play-side{ display:flex; flex-direction:column; gap:16px; }
.play-quick{ border:1px solid var(--line); border-radius:14px; background:var(--card); padding:20px 20px 12px; }
.play-quick h3{ font-size:.8rem; color:var(--dim); font-weight:500; margin-bottom:12px; letter-spacing:.1em; }
.play-quick ul{ display:flex; flex-direction:column; }
.play-quick li{ display:flex; align-items:center; gap:10px; padding:7px 0; font-size:.86rem; color:var(--dim); border-bottom:1px dashed rgba(133,255,178,.07); }
.play-quick li:last-child{ border-bottom:none; }
.cmd-btn{ font-family:var(--mono); font-size:.76rem; color:var(--acc); background:rgba(110,255,160,.07);
  border:1px solid rgba(110,255,160,.25); padding:3px 9px; border-radius:6px; cursor:pointer; transition:.18s; }
.cmd-btn:hover{ background:var(--acc); color:#03130b; }
.play-side-note{ border-left:2px solid var(--acc); padding:10px 14px; background:rgba(110,255,160,.04); border-radius:0 10px 10px 0; }
.play-side-note p{ font-size:.76rem; color:var(--dim); }

/* ---------------- ship log (live github) ---------------- */
.ship-grid{ display:grid; grid-template-columns:1.25fr 1fr; gap:clamp(18px,2.4vw,28px); }
.ship-card{ border:1px solid var(--line); border-radius:16px; background:var(--card); padding:20px 20px 18px; min-width:0; }
.ship-card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ship-card-head h3{ font-size:.86rem; color:var(--dim); font-weight:500; letter-spacing:.06em; }
.live-badge{ font-family:var(--mono); font-size:.6rem; letter-spacing:.16em; color:#03130b; background:var(--acc);
  border-radius:999px; padding:4px 10px; font-weight:700; display:inline-flex; align-items:center; gap:6px; animation:pulse 2.4s infinite; }
.live-badge::before{ content:""; width:5px; height:5px; border-radius:50%; background:#03130b; }
.gh-link{ font-size:.68rem; color:var(--faint); transition:.2s; }
.gh-link:hover{ color:var(--acc); }
.commit-list{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.commit-list li{ display:flex; align-items:center; gap:10px; padding:9px 4px; font-family:var(--mono); font-size:.76rem;
  border-bottom:1px solid rgba(133,255,178,.06); min-width:0; }
.commit-list li:last-child{ border-bottom:none; }
.commit-list .ct{ color:var(--dim); white-space:nowrap; flex-shrink:0; }
.commit-list .cm{ color:var(--txt); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.commit-list .cm a{ color:inherit; }
.commit-list .cm a:hover{ color:var(--acc); }
.commit-list .cr{ color:var(--faint); white-space:nowrap; flex-shrink:0; }
.commit-list li.skel{ display:flex; flex-direction:column; gap:8px; padding:12px 4px; }
.commit-list li.skel span{ height:11px; border-radius:5px; background:linear-gradient(90deg,#12201a,#16291f,#12201a); background-size:200% 100%; animation:shimmer 1.4s infinite linear; }
.commit-list li.skel span:nth-child(1){ width:85%; } .commit-list li.skel span:nth-child(2){ width:62%; } .commit-list li.skel span:nth-child(3){ width:72%; }
@keyframes shimmer{ to{ background-position:-200% 0; } }
.ship-fallback{ font-size:.76rem; margin-top:8px; }
.heat-wrap{ overflow-x:auto; max-width:100%; padding-bottom:2px;
  scrollbar-width:thin; scrollbar-color:rgba(110,255,160,.25) transparent; -webkit-overflow-scrolling:touch; }
.heat-wrap::-webkit-scrollbar{ height:6px; }
.heat-wrap::-webkit-scrollbar-track{ background:transparent; }
.heat-wrap::-webkit-scrollbar-thumb{ background:#1d2c23; border-radius:6px; }
.heat{ display:grid; grid-auto-flow:column; grid-template-rows:repeat(7,11px); grid-auto-columns:11px; gap:3px; width:max-content; }
.heat .d{ border-radius:2px; background:#14231b; width:11px; height:11px; }
.heat .d.l1{ background:#0f3d24; } .heat .d.l2{ background:#156b37; } .heat .d.l3{ background:#1f9e50; } .heat .d.l4{ background:#6effa0; box-shadow:0 0 5px rgba(110,255,160,.35); }
.heat-legend{ display:flex; align-items:center; flex-wrap:wrap; gap:6px; row-gap:8px; margin-top:12px; font-size:.62rem; color:var(--faint); }
.heat-legend .lvl{ width:9px; height:9px; border-radius:2px; background:#14231b; display:inline-block; }
.heat-legend .lvl.l1{ background:#0f3d24; } .heat-legend .lvl.l2{ background:#156b37; } .heat-legend .lvl.l3{ background:#1f9e50; } .heat-legend .lvl.l4{ background:#6effa0; }
.heat-swipe{ display:none; color:var(--acc); letter-spacing:.14em; margin-left:4px; }
.heat-total{ margin-left:auto; color:var(--acc); }
@media (max-width:760px){ .heat-swipe{ display:inline-flex; align-items:center; gap:4px; } }
.ship-fallback a{ border-bottom:1px dashed rgba(110,255,160,.4); }
@media (max-width:1020px){ .play-grid, .ship-grid{ grid-template-columns:1fr; } .play-out{ min-height:260px; max-height:320px; } }

/* ---------------- journey : experience ---------------- */
.exp-card{ border:1px solid var(--line-2); border-radius:16px; overflow:hidden;
  background:linear-gradient(150deg, rgba(17,26,21,.85), rgba(10,15,12,.92)); }
.exp-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:18px;
  padding:clamp(22px,3vw,30px) clamp(22px,3vw,32px) 8px; flex-wrap:wrap; }
.exp-left h3{ font-size:clamp(1.25rem,2.4vw,1.75rem); display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.exp-org{ color:var(--acc-dim); font-size:.8rem; margin-top:7px; }
.exp-meta{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.exp-dur{ font-family:var(--mono); font-size:.78rem; color:var(--txt); background:rgba(110,255,160,.08);
  border:1px solid rgba(110,255,160,.3); padding:5px 12px; border-radius:999px; }
.exp-tag{ font-family:var(--mono); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color:var(--dim);
  border:1px solid var(--line-2); padding:5px 11px; border-radius:999px; }
.exp-bullets{ padding:12px clamp(22px,3vw,32px) 6px; display:flex; flex-direction:column; gap:11px; }
.exp-bullets li{ display:flex; gap:13px; color:var(--dim); font-size:.95rem; align-items:flex-start; }
.exp-bullets li::before{ content:"▹"; color:var(--acc); flex-shrink:0; margin-top:2px; }
.exp-bullets b.dim{ color:var(--txt); font-weight:600; }
.exp-foot{ padding:6px clamp(22px,3vw,32px) clamp(20px,2.6vw,26px); }
.exp-note{ margin-top:18px; border-left:2px solid var(--acc); padding:12px 16px;
  background:rgba(110,255,160,.04); border-radius:0 12px 12px 0; }
.exp-note p{ font-size:.8rem; }

/* ---------------- responsive ---------------- */
@media (max-width:1020px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero .hero-card-col{ max-width:560px; }
  .hero-meta{ margin-bottom:10px; }
  .hero{ padding-top:140px; }
  .p-grid{ grid-template-columns:1fr; }
  .cap-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ position:static; max-width:520px; }
  .cur-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:repeat(2,1fr); }
  .w-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:760px){
  .nav{ display:none; }
  .nav-burger{ display:block; }
  .w-grid{ grid-template-columns:1fr; }
  .lab-row{ grid-template-columns:1fr; gap:6px; padding:16px 18px; }
  .contact-grid{ grid-template-columns:1fr; }
  .cur-grid{ grid-template-columns:1fr 1fr; gap:10px; }
  .float-chip{ display:none; }
}
@media (max-width:480px){ .cur-grid{ grid-template-columns:1fr; } }

/* hero card responsive */
@media (max-width:1020px){
  .hero-greet{ max-width:72%; } .hero h1.hero-title{ font-size:clamp(2.7rem,8.6vw,5rem); }
  .hero-photo{ width:min(30vw,300px); }
}
@media (max-width:760px){
  .hero{ padding:10px; }
  .hero-card{ min-height:calc(100svh - 20px); border-radius:20px; }
  .hero-greet{ max-width:none; padding-left:16px; padding-right:44%; }
  .hero h1.hero-title{ font-size:clamp(2.2rem,11.5vw,3.5rem); }
  .hero-photo{ width:min(46vw,230px); right:0; }
  .hero .scroll-hint{ bottom:14px; }
}
@media (max-width:420px){
  .hero-greet{ padding-right:38%; }
  .hero h1.hero-title{ font-size:clamp(2rem,10.5vw,3rem); }
  .hero-photo{ width:min(48vw,200px); }
}

/* ---------------- custom cursor (fine pointers only) ---------------- */
html.custom-cursor, html.custom-cursor *{ cursor:none !important; }
.cursor-dot,.cursor-ring{ position:fixed; top:0; left:0; pointer-events:none;
  z-index:9999; opacity:0; will-change:transform; border-radius:50%; }
.cursor-dot{ width:6px; height:6px; margin:-3px 0 0 -3px; background:var(--acc);
  box-shadow:0 0 8px rgba(110,255,160,.9); }
.cursor-ring{ width:34px; height:34px; margin:-17px 0 0 -17px;
  border:1.5px solid rgba(110,255,160,.55); transition:width .22s ease,height .22s ease,
  margin .22s ease,border-color .22s ease,background .22s ease,opacity .3s ease; }
.cursor-ring.is-hot{ width:54px; height:54px; margin:-27px 0 0 -27px;
  border-color:rgba(110,255,160,.95); background:rgba(110,255,160,.08); }
html.custom-cursor .cursor-ring.is-link{ border-color:var(--cyan); background:rgba(139,233,253,.07); }

/* ============ typed intro (first visit per session) ============ */
html.nial-intro .hero-greet{ visibility:hidden; }
html.nial-intro .hero-name-strip,
html.nial-intro .hero-photo,
html.nial-intro .hero .scroll-hint{ opacity:0; }
.hero.typing .hero-greet{ visibility:visible; }
.hero.done .hero-name-strip{ opacity:1; transition:opacity .9s ease .1s; }
.hero.done .hero-photo{ opacity:1; animation:heroIn .95s cubic-bezier(.2,.6,.2,1) .3s backwards; }
.hero.done .scroll-hint{ opacity:1; transition:opacity .45s ease .5s; }
.hero h1.hero-title .caret{
  display:inline-block; width:.09em; min-width:2px; height:.98em;
  background:var(--acc); vertical-align:.02em; margin-left:.03em;
  animation:caretBlink 1.15s steps(1) infinite;
}
@keyframes heroIn{
  from{ opacity:0; transform:translate3d(0,34px,0); }
  to{   opacity:1; transform:translate3d(0,0,0); }
}
html.nial-intro .hero.done .hero-greet{ visibility:visible; }

/* ============ GSAP fx layer ============ */
.gsap-prog{
  position:fixed; top:0; left:0; right:0; height:2.5px; z-index:9999;
  background:linear-gradient(90deg, var(--acc) 0%, var(--cyan) 100%);
  box-shadow:0 0 14px rgba(110,255,160,.65), 0 0 28px rgba(139,233,253,.35);
  transform:scaleX(0); transform-origin:0 50%; pointer-events:none;
}
/* saat GSAP aktif, reveal CSS dinetralkan (GSAP mengontrol via GSAP tweens) */
html.gsap-on .reveal{ opacity:1; transform:none; transition:none; }

/* Scroll-spy active nav link indicator */
.nav a.active{
  color:var(--acc);
  background:rgba(110,255,160,.09);
  border:1px solid rgba(110,255,160,.24);
  text-shadow:0 0 10px rgba(110,255,160,.35);
}

/* 3D card tilt & dynamic spotlight glow */
.card-spotlight{
  position:relative;
  transform-style:preserve-3d;
}
.card-spotlight::before{
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:radial-gradient(420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(110,255,160,.09), transparent 75%);
  opacity:0; transition:opacity .35s ease; pointer-events:none; z-index:2;
}
.card-spotlight:hover::before{ opacity:1; }

/* ============ Project Detail Modal ============ */
body.modal-open{ overflow:hidden; }

.btn-card-peek{
  display:inline-flex; align-items:center; gap:5px;
  font-family:var(--mono); font-size:.68rem; letter-spacing:.04em;
  padding:5px 9px; border-radius:6px;
  background:rgba(110,255,160,.08); color:var(--acc);
  border:1px solid rgba(110,255,160,.28);
  cursor:pointer; transition:.2s ease;
}
.btn-card-peek:hover{ background:var(--acc); color:#03130b; border-color:var(--acc); }

.project-modal-backdrop{
  position:fixed; inset:0; z-index:10000;
  background:rgba(4,7,6,.78);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  display:flex; align-items:center; justify-content:center;
  padding:clamp(12px, 2.8vw, 32px);
  opacity:0; pointer-events:none;
  transition:opacity .26s ease;
}
.project-modal-backdrop.is-open{
  opacity:1; pointer-events:auto;
}

.project-modal{
  position:relative; width:100%; max-width:840px;
  max-height:min(90vh, 760px);
  background:linear-gradient(168deg, #111a15 0%, #0b120e 55%, #060907 100%);
  border:1px solid var(--line-2); border-radius:18px;
  box-shadow:0 30px 80px -15px rgba(0,0,0,.85), 0 0 50px -15px rgba(110,255,160,.22);
  display:flex; flex-direction:column; overflow:hidden;
  transform:scale(.94) translateY(18px);
  transition:transform .3s cubic-bezier(.16, 1, .3, 1);
}
.project-modal-backdrop.is-open .project-modal{
  transform:scale(1) translateY(0);
}

.pm-header{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 18px; border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.015);
}
.pm-header .dots{ display:flex; gap:7px; align-items:center; }
.pm-header .dots i{ width:10px; height:10px; border-radius:50%; display:block; }
.pm-header .dots i:nth-child(1){ background:#ff5f57; }
.pm-header .dots i:nth-child(2){ background:#febc2e; }
.pm-header .dots i:nth-child(3){ background:#28c840; }
.pm-title-bar{
  font-family:var(--mono); font-size:.76rem; color:var(--faint);
  display:flex; align-items:center; gap:6px;
}
.pm-title-bar b{ color:var(--acc-dim); font-weight:600; }
.pm-close-btn{
  background:transparent; border:1px solid var(--line); color:var(--dim);
  border-radius:6px; padding:4px 9px; font-family:var(--mono); font-size:.75rem;
  cursor:pointer; transition:.2s ease;
}
.pm-close-btn:hover{ color:var(--txt); border-color:var(--acc); background:rgba(110,255,160,.08); }

.pm-body{
  padding:clamp(16px, 2.4vw, 24px);
  overflow-y:auto; overscroll-behavior:contain;
  display:flex; flex-direction:column; gap:20px;
}
.pm-body::-webkit-scrollbar{ width:7px; }
.pm-body::-webkit-scrollbar-thumb{ background:#1d2c23; border-radius:6px; }

.pm-visual-frame{
  border:1px solid var(--line); border-radius:12px; overflow:hidden;
  position:relative; background:#070b09; max-height:340px;
}
.pm-visual-frame img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s ease;
}
.pm-visual-frame:hover img{ transform:scale(1.02); }

.pm-meta-row{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:10px;
}
.pm-badges{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pm-status{
  font-family:var(--mono); font-size:.65rem; letter-spacing:.12em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; background:rgba(110,255,160,.12);
  color:var(--acc); border:1px solid rgba(110,255,160,.35); font-weight:600;
}
.pm-status.bot{ color:var(--cyan); border-color:rgba(139,233,253,.35); background:rgba(139,233,253,.1); }
.pm-status.hackathon{ color:#febc2e; border-color:rgba(254,188,46,.35); background:rgba(254,188,46,.1); }
.pm-year{ font-family:var(--mono); font-size:.74rem; color:var(--faint); }

.pm-info h2{ font-size:clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom:6px; }
.pm-subtitle{ font-family:var(--mono); font-size:.82rem; color:var(--acc-dim); margin-bottom:14px; }
.pm-desc{ color:var(--dim); font-size:.92rem; line-height:1.65; margin-bottom:18px; }

.pm-highlights-wrap{
  background:rgba(13,20,17,.5); border:1px solid var(--line);
  border-radius:12px; padding:16px 18px;
}
.pm-highlights-head{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--acc); margin-bottom:12px;
  display:flex; align-items:center; gap:8px;
}
.pm-highlights-list{ display:flex; flex-direction:column; gap:10px; }
.pm-highlights-list li{
  display:flex; align-items:flex-start; gap:10px; color:var(--dim);
  font-size:.86rem; line-height:1.55;
}
.pm-highlights-list li::before{
  content:"▹"; color:var(--acc); font-weight:700; flex-shrink:0; margin-top:1px;
}
.pm-highlights-list li b{ color:var(--txt); font-weight:600; }

.pm-stack-wrap{ display:flex; flex-direction:column; gap:10px; }
.pm-stack-label{ font-family:var(--mono); font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--faint); }
.pm-stack-chips{ display:flex; flex-wrap:wrap; gap:8px; }

.pm-footer{
  padding:14px clamp(16px, 2.4vw, 24px); border-top:1px solid var(--line);
  background:rgba(0,0,0,.22); display:flex; align-items:center; justify-content:space-between;
  gap:12px; flex-wrap:wrap;
}
.pm-footer-actions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* Share link toast */
.toast-msg{
  position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px);
  background:rgba(16,26,20,.95); border:1px solid var(--acc);
  color:var(--acc); font-family:var(--mono); font-size:.78rem;
  padding:10px 18px; border-radius:999px; box-shadow:0 12px 30px rgba(0,0,0,.6);
  opacity:0; pointer-events:none; transition:.25s ease; z-index:10001;
}
.toast-msg.show{ opacity:1; transform:translateX(-50%) translateY(0); }


