/* ============ TOKENS ============ */
:root {
  --bg: #0c0c0e;
  --bg-2: #141417;
  --card: #141417;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f1ec;
  --text-2: #a5a5ab;
  --muted: #6c6c73;
  --accent: #c6f55b;
  --accent-text: #c6f55b;
  --accent-ink: #0c0c0e;
  --accent-2: #ff7a45;
  --grid: rgba(255, 255, 255, 0.045);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --sans: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --nav-h: 76px;
  --r: 22px;
}
:root[data-theme="light"] {
  --bg: #f4f2ec;
  --bg-2: #ebe8df;
  --card: #fbfaf6;
  --surface: rgba(0, 0, 0, 0.025);
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.15);
  --text: #121214;
  --text-2: #4b4b52;
  --muted: #8b8a90;
  --accent: #c6f55b;
  --accent-text: #4d7a00;
  --accent-ink: #121214;
  --accent-2: #e8602a;
  --grid: rgba(0, 0, 0, 0.05);
  --shadow: 0 40px 80px -45px rgba(40, 40, 20, 0.35);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  overflow-x: hidden; transition: background .5s, color .5s; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: #0c0c0e; }
main, footer { position: relative; z-index: 1; }
main { overflow-x: clip; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

.kicker { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 0 0 14px; letter-spacing: .02em; }
.h2 { font-size: clamp(32px, 5vw, 60px); line-height: 1.05; letter-spacing: -.04em; font-weight: 600; margin: 0; }
.hl { color: var(--muted); }
.sec-head { margin-bottom: 48px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 11.5px; padding: 4px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }

/* ============ BACKGROUND ============ */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -1px;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 80%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .22; }
.b1 { width: 520px; height: 520px; background: var(--accent); top: -180px; right: -120px; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 440px; height: 440px; background: var(--accent-2); bottom: -200px; left: -160px; opacity: .14; animation: drift 22s ease-in-out infinite alternate-reverse; }
:root[data-theme="light"] .blob { opacity: .35; }
@keyframes drift { to { transform: translate(-120px, 140px) scale(1.15); } }
.bg-spot {
  position: absolute; width: 600px; height: 600px; left: 0; top: 0; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity .3s; opacity: 0;
}
.cursor {
  position: fixed; z-index: 100; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); pointer-events: none; transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, opacity .25s; mix-blend-mode: difference; opacity: 0;
}
.cursor.big { width: 46px; height: 46px; }
@media (hover: none) { .cursor, .bg-spot { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 28px; transition: background .3s;
}
.logo { display: flex; align-items: center; gap: 12px; justify-self: start; }
.logo-mark {
  position: relative; width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: #141417; border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; letter-spacing: -.04em; line-height: 1;
  transition: transform .45s cubic-bezier(.5,-0.4,.3,1.5), border-color .3s;
}
.logo-mark span { color: #f2f1ec; }
.logo-mark b { color: var(--accent); font-weight: 700; }
.logo-dot { position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.logo-dot::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; animation: beat 2s infinite; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); border-color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-weight: 600; font-size: 15px; letter-spacing: -.02em; }
.logo-text small { font-family: var(--mono); font-size: 11px; color: var(--muted); transition: color .3s; }
.logo:hover .logo-text small { color: var(--accent-text); }
.nav-pill {
  position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 75%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.nav-pill a { position: relative; z-index: 1; font-size: 13.5px; padding: 8px 16px; border-radius: 999px; color: var(--text-2); transition: color .3s; }
.nav-pill a:hover { color: var(--text); }
.nav-pill a.active { color: var(--accent-ink); }
.pill-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: var(--accent); transition: left .45s cubic-bezier(.6,0,.2,1), width .45s cubic-bezier(.6,0,.2,1); }
.nav-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: color-mix(in srgb, var(--bg-2) 75%, transparent); backdrop-filter: blur(16px); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; grid-area: 1 / 1; transition: transform .5s, opacity .3s; }
.theme-btn .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .theme-btn .i-sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-btn .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
.nav-cta { font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); transition: transform .25s; }
.nav-cta:hover { transform: translateY(-2px); }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: .3s; }
.burger span:first-child { top: 16px; } .burger span:last-child { bottom: 16px; }
.nav.open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .burger span:last-child { bottom: 19px; transform: rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 14px; font-weight: 500; font-size: 15px; transition: box-shadow .3s, background .3s, border-color .3s; will-change: transform; }
.btn span { transition: transform .25s; display: inline-block; }
.btn:hover span { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: #0c0c0e; }
.btn-accent:hover { box-shadow: 0 14px 40px -12px var(--accent); }
.btn-line { border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.btn-dark { background: #0c0c0e; color: #f2f1ec; }

/* ============ HERO ============ */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: calc(var(--nav-h) + 30px) 0 60px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin: 0 0 26px; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: beat 2s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.hero-title { font-size: clamp(46px, 7.4vw, 104px); line-height: .98; letter-spacing: -.055em; font-weight: 600; margin: 0 0 22px; }
.hero-title .name { position: relative; display: inline-block; }
.hero-title .name::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: .14em; background: var(--accent); z-index: -1; transform-origin: left; animation: swipe 1s .6s cubic-bezier(.7,0,.2,1) both; }
@keyframes swipe { from { transform: scaleX(0); } }
.wave { display: inline-block; font-size: .7em; margin-left: .15em; transform-origin: 70% 80%; animation: wave 2.4s 1s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.role { font-family: var(--mono); font-size: clamp(15px, 1.6vw, 19px); margin: 0 0 22px; color: var(--text); }
.role-pre { color: var(--accent-text); }
.caret { display: inline-block; width: .55em; height: 1.1em; background: var(--accent); vertical-align: -.18em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { color: var(--text-2); font-size: 17px; max-width: 520px; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.hero-stats b::after { content: attr(data-suffix); color: var(--accent-text); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* phone */
.hero-visual { position: relative; height: 620px; display: grid; place-items: center; perspective: 1200px; }
.orbit { position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 40s linear infinite; }
.orbit span { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 16px var(--accent-2); }
@keyframes spin { to { transform: rotate(360deg); } }
.phone {
  position: relative; width: 280px; height: 572px; border-radius: 46px; padding: 12px;
  background: linear-gradient(145deg, #2a2a2e, #0f0f11); box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255,255,255,.12), 0 0 0 1px rgba(0,0,0,.6);
  transform-style: preserve-3d; transition: transform .2s ease-out; animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -12px; } }
.phone-notch { position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; border-radius: 20px; background: #000; transform: translateX(-50%); z-index: 3; }
.screens { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #f6f5f0; color: #121214; }
.screen { position: absolute; inset: 0; padding: 58px 18px 18px; display: flex; flex-direction: column; gap: 12px; opacity: 0; transform: translateX(30px) scale(.98); transition: opacity .6s, transform .6s cubic-bezier(.2,.8,.2,1); font-size: 12px; }
.screen.active { opacity: 1; transform: none; }
.screen.leave { opacity: 0; transform: translateX(-30px) scale(.98); }
.app-bar { display: flex; justify-content: space-between; align-items: center; }
.app-title { font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.avatar { width: 30px; height: 30px; border-radius: 50%; }
.g1 { background: linear-gradient(135deg, #6d5bff, #c6f55b); }
.g3 { background: linear-gradient(135deg, #ff7a45, #ffc85b); }
.live { font-family: var(--mono); font-size: 10px; color: #e3342f; font-weight: 500; }
.search { padding: 10px 12px; border-radius: 12px; background: #eae8e0; color: #8b8a90; }
.chips-row { display: flex; gap: 6px; }
.chips-row span { padding: 5px 10px; border-radius: 999px; background: #eae8e0; font-size: 11px; }
.chips-row .on { background: #121214; color: #fff; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.tile { border-radius: 14px; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; }
.tile em { position: absolute; top: 8px; left: 8px; font-style: normal; font-family: var(--mono); font-size: 8.5px; padding: 2px 6px; border-radius: 6px; background: #c6f55b; color: #121214; font-weight: 500; }
.tile b { font-size: 12px; }
.t1 { background: linear-gradient(160deg, #6d5bff, #2a1f7a); } .t2 { background: linear-gradient(160deg, #ff7a45, #9b2f0f); }
.t3 { background: linear-gradient(160deg, #1fb7a6, #0b4d46); } .t4 { background: linear-gradient(160deg, #2b2b30, #0c0c0e); }
.tabbar { display: flex; justify-content: space-around; padding: 12px 8px 4px; border-top: 1px solid #e3e1d9; margin-top: auto; }
.tabbar i { width: 20px; height: 4px; border-radius: 4px; background: #d6d4cc; }
.tabbar i.on { background: #121214; width: 28px; }
.mini-label { margin: 2px 0 -4px; font-size: 11px; color: #8b8a90; }
.occ div { display: flex; justify-content: space-between; margin-bottom: 5px; }
.occ i { display: block; height: 8px; border-radius: 6px; background: #eae8e0; position: relative; overflow: hidden; }
.occ i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #8bc34a, #c6f55b); transition: width 1.2s .3s cubic-bezier(.2,.8,.2,1); }
.screen.active .occ i::after { width: var(--v); }
.big-num { margin-top: 6px; padding: 14px; border-radius: 16px; background: #121214; color: #fff; }
.big-num b { display: block; font-size: 26px; letter-spacing: -.04em; color: #c6f55b; }
.big-num span { font-size: 11px; color: #a5a5ab; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.days span { text-align: center; padding: 8px 0; border-radius: 12px; background: #eae8e0; font-size: 10px; color: #6c6c73; }
.days b { display: block; font-size: 16px; color: #121214; }
.days .on { background: #121214; color: #a5a5ab; } .days .on b { color: #c6f55b; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slots span { text-align: center; padding: 8px 0; border-radius: 10px; border: 1px solid #dcdad2; font-family: var(--mono); font-size: 10.5px; }
.slots .off { color: #c3c1b9; text-decoration: line-through; }
.slots .on { background: #c6f55b; border-color: #c6f55b; font-weight: 500; }
.total { display: flex; justify-content: space-between; padding: 12px; border-radius: 12px; background: #eae8e0; margin-top: auto; }
.book { text-align: center; padding: 13px; border-radius: 14px; background: #121214; color: #fff; font-weight: 600; }
.float-tag { position: absolute; z-index: 4; font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; }
.f1 { top: 18%; left: 2%; } .f2 { top: 46%; right: 0; animation-delay: -1.5s; } .f3 { bottom: 14%; left: 6%; animation-delay: -3s; }
.f1::before { content: "◆ "; color: var(--accent-text); } .f2::before { content: "● "; color: var(--accent-2); } .f3::before { content: "▲ "; color: var(--accent-text); }
.screen-dots { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.screen-dots button { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: width .3s, background .3s; }
.screen-dots button.on { width: 26px; background: var(--accent); }

/* ============ TICKERS ============ */
.tickers { position: relative; z-index: 1; padding: 50px 0; overflow: hidden; }
.ticker { overflow: hidden; padding: 16px 0; }
.ticker-a { background: var(--accent); color: #0c0c0e; transform: rotate(-2deg); margin: 0 -20px; position: relative; z-index: 2; }
.ticker-b { border-block: 1px solid var(--line); transform: rotate(1.5deg); margin: -14px -20px 0; background: var(--bg); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; will-change: transform; }
.ticker-track span { font-size: clamp(22px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.ticker-b .ticker-track span:nth-child(even) { color: var(--accent-2); }

/* ============ STATEMENT ============ */
.statement { padding: 120px 0 140px; }
.lit-text { font-size: clamp(28px, 4.4vw, 56px); line-height: 1.18; letter-spacing: -.035em; font-weight: 500; margin: 0; max-width: 1050px; }
.lit-text .w { color: var(--line-2); transition: color .35s; }
.lit-text .w.on { color: var(--text); }
.lit-text em { font-style: normal; }
.lit-text em .w.on { color: var(--accent-text); }

/* ============ BENTO ============ */
.skills { padding: 60px 0 100px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.bx { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.bx > * { position: relative; z-index: 1; }
.spot-card::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }
.spot-card:hover::before { opacity: 1; }
.spot-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.bx h3 { margin: 0; font-size: 22px; letter-spacing: -.03em; font-weight: 600; }
.bx p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.bx .chips { margin-top: auto; }
.bx-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.bx-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bx-mobile { grid-column: span 3; grid-row: span 2; }
.bx-back { grid-column: span 3; }
.bx-ai { grid-column: span 3; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 16%, var(--card)), var(--card) 60%); }
.bx-db, .bx-web { grid-column: span 2; }
.bx-lang { grid-column: span 2; justify-content: center; }
.tree { margin: 10px 0; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.tree span { padding-left: calc(var(--d) * 20px); color: var(--text-2); position: relative; opacity: 0; transform: translateX(-8px); transition: .5s; transition-delay: calc(var(--i, 0) * 90ms); }
.tree span::before { content: "└─ "; color: var(--muted); }
.tree span:first-child::before { content: "◆ "; color: var(--accent-text); }
.bx-mobile.in .tree span { opacity: 1; transform: none; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { font-family: var(--mono); font-size: 14px; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--line-2); transition: background .25s, color .25s; }
.langs span:hover { background: var(--accent); color: #0c0c0e; border-color: var(--accent); }

/* ============ EXPERIENCE ============ */
.experience { padding: 100px 0; }
.exp { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.exp-tabs { position: relative; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.exp-tabs button { text-align: left; padding: 16px 22px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); transition: color .3s, background .3s; border-radius: 0 12px 12px 0; }
.exp-tabs button b { font-weight: 600; font-size: 16px; }
.exp-tabs button span { font-family: var(--mono); font-size: 12px; }
.exp-tabs button:hover { color: var(--text); background: var(--surface); }
.exp-tabs button.on { color: var(--text); }
.tab-ind { position: absolute; left: -1.5px; top: 0; width: 3px; height: 0; border-radius: 3px; background: var(--accent); transition: top .45s cubic-bezier(.6,0,.2,1), height .45s; }
.exp-panels { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 36px; min-height: 340px; }
.exp-panel { display: none; }
.exp-panel.on { display: block; animation: panelIn .5s cubic-bezier(.2,.8,.2,1); }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } }
.exp-date { font-family: var(--mono); font-size: 13px; color: var(--accent-text); margin: 0 0 8px; }
.exp-panel h3 { margin: 0; font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -.035em; font-weight: 600; line-height: 1.15; }
.exp-co { color: var(--text-2); margin: 6px 0 22px; }
.exp-panel ul:not(.chips) { padding: 0; margin: 0 0 24px; list-style: none; display: grid; gap: 12px; }
.exp-panel ul:not(.chips) li { padding-left: 26px; position: relative; color: var(--text-2); }
.exp-panel ul:not(.chips) li::before { content: "→"; position: absolute; left: 0; color: var(--accent-text); }

/* ============ PROJECTS ============ */
.projects { padding: 100px 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); transition: .25s; }
.filters button small { font-family: var(--mono); font-size: 11px; opacity: .7; margin-left: 4px; }
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proj { position: relative; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.proj.hide { display: none; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.app-icon { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; font-weight: 700; font-size: 20px; letter-spacing: -.05em; color: #fff; background: linear-gradient(140deg, var(--c1), var(--c2)); box-shadow: 0 12px 24px -12px var(--c1), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .5s cubic-bezier(.5,-0.4,.3,1.5); }
.proj:hover .app-icon { transform: rotate(-8deg) scale(1.08); }
.proj-badge { font-family: var(--mono); font-size: 11px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-2); }
.proj-badge.wip { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); }
.proj-cat { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }
.proj h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; font-weight: 600; line-height: 1.25; }
.proj p.d { margin: 0 0 6px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.proj .chips { margin-top: auto; }
.proj.featured { grid-column: span 1; }

/* ============ ABOUT ============ */
.about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; }
.about-copy p { font-size: 18px; color: var(--text-2); margin: 0 0 18px; }
.about-copy b { color: var(--text); font-weight: 600; }
.traits { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.traits span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.about-cards { display: grid; gap: 16px; }
.acard { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); padding: 24px 26px; }
.edu { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.edu li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; }
.edu .yr { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.edu b { font-weight: 600; display: block; line-height: 1.35; }
.edu small { color: var(--text-2); font-size: 13px; }
.certs { display: flex; flex-wrap: wrap; gap: 8px; }
.certs span { font-size: 13.5px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.lang { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin-bottom: 16px; }
.lang:last-child { margin-bottom: 0; }
.lang span:nth-child(2) { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lang i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.lang i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.acard.in .lang i::after { width: var(--w); }

/* ============ CONTACT ============ */
.contact { padding: 60px 0 100px; }
.contact-card { position: relative; overflow: hidden; border-radius: 32px; background: var(--accent); color: #0c0c0e; padding: clamp(32px, 6vw, 80px); }
.kicker.dark { color: rgba(12, 12, 14, .6); }
.contact-title { font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -.05em; font-weight: 600; margin: 0 0 36px; max-width: 14ch; position: relative; z-index: 1; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; position: relative; z-index: 1; }
.copy { display: inline-flex; align-items: center; gap: 10px; padding: 15px 20px; border-radius: 14px; border: 1.5px solid rgba(12,12,14,.25); font-weight: 500; overflow-wrap: anywhere; text-align: left; transition: border-color .25s; }
.copy:hover { border-color: #0c0c0e; }
.copy small { font-family: var(--mono); font-size: 11px; opacity: .6; }
.contact-links { display: flex; gap: 24px; margin-top: 36px; position: relative; z-index: 1; font-weight: 500; }
.contact-links a { border-bottom: 1.5px solid rgba(12,12,14,.3); }
.contact-links a:hover { border-color: #0c0c0e; }
.contact-deco { position: absolute; right: -40px; bottom: -40px; width: clamp(200px, 30vw, 380px); fill: #0c0c0e; opacity: .08; animation: spin 30s linear infinite; }

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; position: relative; z-index: 1; }
.contact-card.no-form .contact-grid { grid-template-columns: 1fr; }
.cform { display: grid; gap: 14px; background: rgba(12, 12, 14, .06); border: 1.5px solid rgba(12, 12, 14, .14); border-radius: 22px; padding: 22px; }
.cform label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: rgba(12, 12, 14, .7); }
.cform input, .cform textarea {
  font: inherit; font-size: 15px; color: #0c0c0e; background: rgba(255, 255, 255, .55); border: 1.5px solid rgba(12, 12, 14, .15);
  border-radius: 12px; padding: 12px 14px; outline: none; resize: vertical; transition: border-color .2s, background .2s;
}
.cform input:focus, .cform textarea:focus { border-color: #0c0c0e; background: rgba(255, 255, 255, .85); }
.cform .btn { justify-content: center; }
.cform .btn:disabled { opacity: .6; cursor: wait; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-note { margin: 0; font-size: 14px; min-height: 1.4em; }
.cform-note.ok { color: #1d4a00; font-weight: 600; }
.cform-note.err { color: #8a1c00; font-weight: 600; }
.status.busy .dot { background: var(--accent-2); }
.proj h3 a:hover { color: var(--accent-text); }
main { transition: opacity .5s; }
body.loading main { opacity: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ============ FOOTER ============ */
.footer { padding: 30px 0 30px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-name { font-size: 120px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; padding-bottom: .05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-2); transition: color .5s, -webkit-text-stroke-color .5s; user-select: none; text-align: center; }
.foot-name:hover { color: var(--accent); -webkit-text-stroke-color: transparent; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding-top: 18px; }
.foot-links { display: flex; gap: 20px; }
.foot-bottom a:hover { color: var(--text); }

/* ============ REVEAL / TOAST ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 14px; transition: .35s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 40px); }
  .hero-visual { height: 600px; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .bx-mobile { grid-column: span 6; grid-row: auto; }
  .bx-back, .bx-ai { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav.scrolled, .nav.open { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-pill {
    position: fixed; top: var(--nav-h); left: 16px; right: 16px; flex-direction: column; border-radius: 20px; padding: 8px;
    background: var(--card); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s;
  }
  .nav.open .nav-pill { opacity: 1; transform: none; pointer-events: auto; }
  .nav-pill a { padding: 14px 16px; font-size: 16px; }
  .pill-ind { display: none; }
  .nav-pill a.active { color: var(--accent-text); }
  .exp { grid-template-columns: 1fr; gap: 20px; }
  .exp-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .exp-tabs button { flex: none; border-radius: 12px 12px 0 0; padding: 12px 16px; }
  .tab-ind { display: none; }
  .exp-tabs button.on { box-shadow: inset 0 -3px 0 var(--accent); }
}
@media (max-width: 680px) {
  .hero-visual { height: 520px; }
  .phone { width: 240px; height: 490px; border-radius: 40px; }
  .orbit { width: 340px; height: 340px; }
  .float-tag { font-size: 11px; padding: 6px 10px; }
  .f1 { left: 0; } .f2 { right: 0; }
  .hero-stats { gap: 26px; }
  .bento { grid-template-columns: 1fr; }
  .bx-mobile, .bx-back, .bx-ai, .bx-db, .bx-web, .bx-lang { grid-column: auto; }
  .proj-grid { grid-template-columns: 1fr; }
  .exp-panels { padding: 24px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .filters button { flex: none; }
  .statement, .skills, .experience, .projects, .about { padding-block: 70px; }
  .edu li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
