
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Manrope:wght@300;400;500;600;700;800&display=swap');


:root {
  --bg: #050507;
  --bg2: #0e1016;

  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-hover: rgba(255, 255, 255, 0.06);

  --text: #e9e9f2;
  --muted: rgba(233, 233, 242, 0.65);

  --accent: #7c5cff;
  --accent2: #22d3ee;
  --good: #35f28b;

  --shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.4);

  --font-main: "Manrope", sans-serif;
  --font-tech: "JetBrains Mono", monospace;

  --ease: cubic-bezier(0.2, 0.9, 0.2, 1);

  --soft-surface: rgba(255,255,255,0.03);
  --soft-surface-2: rgba(0,0,0,0.20);
  --on-soft: rgba(255,255,255,0.92);
  --placeholder: rgba(233,233,242,0.55);
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg2: #ffffff;

  --card-bg: rgba(255, 255, 255, 0.90);
  --card-border: rgba(10, 11, 16, 0.10);
  --card-hover: rgba(255, 255, 255, 0.98);

  --text: #0a0b10;
  --muted: rgba(10, 11, 16, 0.72);

  --shadow: 0 18px 40px -16px rgba(10, 11, 16, 0.18);
  --glow: 0 0 0 1px rgba(10, 11, 16, 0.06), 0 18px 40px rgba(10, 11, 16, 0.10);

  --soft-surface: rgba(10,11,16,0.03);
  --soft-surface-2: rgba(10,11,16,0.04);
  --on-soft: rgba(10,11,16,0.90);
  --placeholder: rgba(10,11,16,0.45);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% 10%, rgba(124, 92, 255, 0.15), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(34, 211, 238, 0.12), transparent 60%);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none; 
}

[data-theme="light"] body{
  background-image:
    radial-gradient(900px 500px at 15% 10%, rgba(124, 92, 255, 0.12), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(34, 211, 238, 0.10), transparent 60%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  mix-blend-mode: overlay;
}

[data-theme="light"] body::before{
  opacity: 0.22;
  mix-blend-mode: multiply;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

[data-theme="light"] ::-webkit-scrollbar-thumb{
  background: rgba(10,11,16,0.18);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover{
  background: rgba(10,11,16,0.28);
}

::selection {
  background: rgba(124, 92, 255, 0.3);
  color: white;
}

a { color: inherit; text-decoration: none; cursor: none; }
button { font: inherit; color: inherit; border: none; background: none; padding: 0; cursor: none; }

:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 4px;
  border-radius: 4px;
}

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
body.is-locked { position: fixed; width: 100%; overflow: hidden; }


.h1 {
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.05;
  margin: 20px 0 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.h2 { font-size: 26px; margin: 0; letter-spacing: -0.01em; }
.h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -0.01em; font-weight: 600; }
.h4 { font-size: 14px; margin: 0 0 10px; opacity: 0.9; font-family: var(--font-tech); text-transform: uppercase; letter-spacing: 0.05em; }

.lead { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.7; max-width: 600px; }
.muted { color: var(--muted); }
.muted.small { font-size: 13px; }

.accent {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pill, .tag, .meta-label, .intro-badge, .intro-meta, .metric-label, .year, #localTime {
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  background: var(--soft-surface);
  color: var(--on-soft);
  transition: 0.3s;
}
.pill.subtle { background: transparent; border-color: transparent; color: var(--muted); padding-left: 0; }

.tag {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: var(--soft-surface);
  color: var(--text);
  font-size: 12px;
}

.tags{ display:flex; flex-wrap:wrap; gap:8px; }

.section { padding: 80px 0; }
.section-spacer { height: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bullets { margin: 10px 0 0; padding-left: 18px; color: var(--muted); line-height: 1.7; }


.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(255,255,255,0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  z-index: 1;
}
.card:hover::after { opacity: 1; }
.card:hover { border-color: rgba(255, 255, 255, 0.15); }

[data-theme="light"] .card::after{
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(10,11,16,0.06), transparent 46%);
}
[data-theme="light"] .card:hover{
  border-color: rgba(10,11,16,0.16);
  box-shadow: 0 26px 60px -24px rgba(10,11,16,0.22);
}


.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.05);
  cursor: none; 
  font-weight: 500;
  font-size: 14px;
  overflow: hidden;
  transition: all 0.2s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.btn-icon { opacity: 0.9; transition: transform 0.2s; }
.btn:hover .btn-icon { transform: translate(2px, -2px); }

.btn.primary {
  background: rgba(124, 92, 255, 0.15);
  border-color: rgba(124, 92, 255, 0.3);
  color: #fff;
}
.btn.primary:hover {
  background: rgba(124, 92, 255, 0.25);
  box-shadow: 0 0 20px rgba(124, 92, 255, 0.2);
}

[data-theme="light"] .btn{
  background: rgba(10,11,16,0.04);
  border-color: rgba(10,11,16,0.12);
  color: var(--text);
}
[data-theme="light"] .btn:hover{
  background: rgba(10,11,16,0.07);
  border-color: rgba(10,11,16,0.18);
  color: var(--text);
}
[data-theme="light"] .btn.primary{
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.28);
  color: var(--text);
}
[data-theme="light"] .btn.primary:hover{
  box-shadow: 0 14px 34px rgba(124,92,255,0.20);
}

[data-magnetic] {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}


.intro {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #050507;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.intro.is-leaving { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.intro-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.intro-ui {
  position: relative;
  width: min(500px, calc(100% - 40px));
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 11, 16, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.intro-vignette{
  position:absolute; inset:-40px; pointer-events:none;
  background: radial-gradient(1200px 700px at 50% 55%, transparent 40%, rgba(0,0,0,.55) 85%);
  filter: blur(10px); opacity:.9;
}

.intro-badge { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.6); }
.intro-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.glitch {
  font-size: 42px; font-weight: 800; text-transform: uppercase; margin-top: 10px;
  position: relative; color: #fff; line-height: 1;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position:absolute; inset:0; opacity:.85; mix-blend-mode: screen; pointer-events:none;
}
.glitch::before { transform: translate(2px, -1px); color: rgba(34,211,238,.75); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%); animation: glitchA 1.8s infinite linear; }
.glitch::after { transform: translate(-2px, 1px); color: rgba(124,92,255,.8); clip-path: polygon(0 58%, 100% 58%, 100% 100%, 0 100%); animation: glitchB 2.2s infinite linear; }

@keyframes glitchA{ 0%{ clip-path: polygon(0 0,100% 0,100% 40%,0 40%); } 20%{ clip-path: polygon(0 10%,100% 10%,100% 35%,0 35%); } 100%{ clip-path: polygon(0 0,100% 0,100% 40%,0 40%); } }
@keyframes glitchB{ 0%{ clip-path: polygon(0 58%,100% 58%,100% 100%,0 100%); } 50%{ clip-path: polygon(0 54%,100% 54%,100% 100%,0 100%); } 100%{ clip-path: polygon(0 58%,100% 58%,100% 100%,0 100%); } }

.intro-sub { color: var(--muted); margin-top: 5px; font-size: 14px; }
.intro-progress { margin-top: 25px; display: grid; gap: 8px; }
.bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent2); width: 0%; transition: width 0.1s; box-shadow: 0 0 15px var(--accent2); }
.intro-meta { display:flex; align-items:center; gap:10px; color: rgba(255,255,255,.68); font-size: 12px; }

.intro-skip {
  position: absolute; bottom: -40px; right: 0;
  font-size: 12px; color: var(--muted); cursor: pointer;
  font-family: var(--font-tech);
  transition: 0.3s;
}
.intro-skip:hover { color: #fff; }


.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid var(--card-border);
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(16px);
}

[data-theme="light"] .topbar{
  background: rgba(255,255,255,0.72);
  border-bottom-color: rgba(10,11,16,0.10);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.brand-dot { width: 10px; height: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.brand-dot.sm{ width:8px; height:8px; }

.nav { display: flex; gap: 6px; background: rgba(255,255,255,0.03); padding: 4px; border-radius: 99px; border: 1px solid var(--card-border); }
.nav a {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 8px 16px; border-radius: 99px;
  transition: 0.2s;
  cursor: none; 
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }

[data-theme="light"] .nav{
  background: rgba(10,11,16,0.03);
}
[data-theme="light"] .nav a:hover{
  color: var(--text);
  background: rgba(10,11,16,0.05);
}

.topbar-actions { display: flex; gap: 12px; align-items: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--card-border);
  display: grid; place-items: center;
  cursor: pointer; color: var(--muted);
  transition: 0.2s;
}
.icon-btn:hover { background: rgba(255,255,255,0.05); color: #fff; transform: translateY(-2px); }
.icon { width: 20px; height: 20px; fill: currentColor; }

[data-theme="light"] .icon-btn:hover{
  background: rgba(10,11,16,0.05);
  color: var(--text);
}

.cta {
  padding: 10px 18px; border-radius: 99px;
  background: #fff; color: #000; font-weight: 600; font-size: 14px;
  display: flex; gap: 8px; align-items: center;
  transition: transform 0.2s ease;
  cursor: none;
}
.cta:hover { transform: scale(1.02); }
.burger { display: none; }


.hero { padding: 60px 0; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }

.kicker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.meta-row { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.meta { padding: 12px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,0.02); }
.meta-label { display:block; color:rgba(255,255,255,0.5); font-size:10px; margin-bottom:4px; }
.meta-value { font-weight: 600; font-size: 13px; }

[data-theme="light"] .meta{
  background: rgba(255,255,255,0.75);
}
[data-theme="light"] .meta-label{
  color: rgba(10,11,16,0.55);
}

.portrait {
  background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  display: flex; flex-direction: column; gap: 20px;
}
.portrait-top { display: flex; justify-content: space-between; }
.portrait-body { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; padding: 20px 0; }


.avatar {
  width: 90px; height: 90px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(124,92,255,0.2), rgba(34,211,238,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  display: grid; place-items: center;
  font-weight: 700; font-size: 28px; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
[data-theme="light"] .avatar{
  border-color: rgba(10,11,16,0.10);
  box-shadow: 0 14px 38px -22px rgba(10,11,16,0.25);
}

.avatar-logo{
  width: 110%;
  height: 110%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}

.avatar:has(.avatar-logo:not([style*="display: none"])) .avatar-initials{
  opacity: 0;
}

.avatar .avatar-initials{
  transition: opacity .25s var(--ease);
}
.avatar.logo-fail .avatar-initials{
  opacity: 1;
}

.portrait:hover .avatar { transform: translateY(-5px) scale(1.05); }
.avatar-ring { position:absolute; inset:-4px; border-radius:28px; border: 1px solid rgba(34,211,238,0.3); opacity:0.5; }

.quick-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; width: 100%; }
.chip {
  padding: 8px 12px; border-radius: 8px; font-size: 12px; font-family: var(--font-tech);
  background: rgba(255,255,255,0.03); border: 1px solid var(--card-border);
  display: flex; gap: 6px; align-items: center;
  transition: 0.2s;
  cursor: none;
}
.chip:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

[data-theme="light"] .chip{
  background: rgba(10,11,16,0.03);
}
[data-theme="light"] .chip:hover{
  background: rgba(10,11,16,0.06);
  border-color: rgba(10,11,16,0.16);
}

.portrait-foot { border-top: 1px solid var(--card-border); padding-top: 16px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.signal { display: flex; align-items: center; gap: 8px; font-size: 12px; font-family: var(--font-tech); color: var(--good); }
.signal .dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.mini-btn { font-size: 11px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--card-border); background: rgba(255,255,255,0.05); transition: 0.2s; cursor: none; }
.mini-btn:hover { background: rgba(255,255,255,0.1); }

[data-theme="light"] .mini-btn{
  background: rgba(10,11,16,0.03);
  border-color: rgba(10,11,16,0.12);
}
[data-theme="light"] .mini-btn:hover{
  background: rgba(10,11,16,0.06);
  border-color: rgba(10,11,16,0.16);
}

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.metric { padding: 16px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid var(--card-border); text-align: center; }
.metric-number { font-size: 24px; font-weight: 700; display: block; background: linear-gradient(white, #aaa); -webkit-background-clip: text; color: transparent; font-family: var(--font-tech); }
.metric-label { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

[data-theme="light"] .metric{
  background: rgba(255,255,255,0.76);
}
[data-theme="light"] .metric-number{
  background: linear-gradient(#0a0b10, rgba(10,11,16,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-hint { margin-top: 40px; display: flex; gap: 12px; align-items: center; opacity: 0.5; font-size: 12px; font-family: var(--font-tech); text-transform: uppercase; }
.scroll-line { height: 1px; width: 60px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; transform: translateX(-100%);
  animation: scrollLine 2s infinite;
}
@keyframes scrollLine { 50%,100% { transform: translateX(100%); } }

[data-theme="light"] .scroll-line{
  background: rgba(10,11,16,0.25);
}
[data-theme="light"] .scroll-line::after{
  background: rgba(10,11,16,0.65);
}

.accordion { border-top: 1px solid var(--card-border); padding-top: 12px; margin-top: 12px; }
.accordion.compact { border: none; padding: 0; }

.acc-toggle {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--accent2); padding: 8px 0;
  transition: 0.2s;
}
.acc-toggle:hover { color: #fff; }
.acc-icon { font-family: monospace; font-size: 16px; }
.accordion-content { overflow: hidden; max-height: 0; transition: max-height 0.35s var(--ease); }

[data-theme="light"] .acc-toggle:hover{
  color: var(--text);
}

.projects-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.projects-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  padding: 8px 16px; border-radius: 99px; font-size: 13px;
  border: 1px solid var(--card-border); color: var(--muted);
  cursor: pointer; transition: 0.2s;
}
.filter-btn:hover, .filter-btn[aria-selected="true"] {
  background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2);
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn[aria-selected="true"]{
  background: rgba(10,11,16,0.06);
  color: var(--text);
  border-color: rgba(10,11,16,0.18);
}

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: var(--soft-surface-2);
  border-radius: 99px; border: 1px solid var(--card-border);
  width: 250px;
}
.search input { background: none; border: none; color: var(--text); outline: none; width: 100%; font-size: 13px; cursor: none; }
.search input::placeholder{ color: var(--placeholder); }

.projects-subhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 0 16px; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }

.p-card {
  display: flex; flex-direction: column; height: 100%;
  align-items: flex-start; text-align: left;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: 16px; padding: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
  cursor: pointer; position: relative; overflow: hidden;
}
.p-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: rgba(255,255,255,0.2); }
.p-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(255,255,255,0.07), transparent 40%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 1;
}
.p-card:hover::after { opacity: 1; }
.p-top { width: 100%; display: flex; justify-content: space-between; margin-bottom: 12px; }
.p-kpi { margin-top: auto; padding-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.p-foot { display: none; }

[data-theme="light"] .p-card:hover{
  border-color: rgba(10,11,16,0.16);
  box-shadow: 0 26px 60px -24px rgba(10,11,16,0.22);
}
[data-theme="light"] .p-card::after{
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 30%), rgba(10,11,16,0.06), transparent 46%);
}


.timeline { display: grid; gap: 20px; }
.t-item { border-left: 2px solid var(--card-border); padding-left: 24px; position: relative; }
.t-item::before { content: ""; position: absolute; left: -5px; top: 0; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }
.t-top { display: flex; justify-content: space-between; margin-bottom: 8px; }

.timeline .acc-toggle, .timeline button.acc-toggle {
  font-size: 11px !important;
  padding: 6px 12px !important;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  width: fit-content !important;
  margin-top: 12px;
  border: 1px solid var(--card-border);
}
.timeline .acc-toggle:hover { background: rgba(255,255,255,0.1); }
.timeline .h3 { font-size: 20px !important; margin-bottom: 4px; }

[data-theme="light"] .timeline .acc-toggle,
[data-theme="light"] .timeline button.acc-toggle{
  background: rgba(10,11,16,0.04);
}
[data-theme="light"] .timeline .acc-toggle:hover{
  background: rgba(10,11,16,0.07);
}


.contact-list { display: grid; gap: 12px; margin-top: 20px; }
.contact-item {
  display: flex; justify-content: space-between; padding: 16px;
  background: rgba(255,255,255,0.02); border-radius: 12px;
  border: 1px solid var(--card-border);
  transition: 0.2s;
  cursor: none;
}
.contact-item:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); transform: translateX(5px); }
.contact-k { color: var(--muted); font-size: 13px; }
.contact-v { font-family: var(--font-tech); font-size: 13px; }

[data-theme="light"] .contact-item{
  background: rgba(255,255,255,0.76);
}
[data-theme="light"] .contact-item:hover{
  background: rgba(255,255,255,0.92);
  border-color: rgba(10,11,16,0.16);
}

.divider { height: 1px; background: var(--card-border); margin: 24px 0; }

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span { font-size: 11px; text-transform: uppercase; color: var(--muted); font-weight: 600; letter-spacing: 0.05em; font-family: var(--font-tech); }
.field input, .field textarea {
  width: 100%; padding: 14px; background: var(--soft-surface-2);
  border: 1px solid var(--card-border); border-radius: 12px;
  color: var(--text); outline: none; transition: 0.2s;
  font-family: var(--font-main);
  cursor: none;
}
.field input::placeholder,
.field textarea::placeholder{ color: var(--placeholder); }

.field input:focus, .field textarea:focus { border-color: var(--accent2); background: rgba(0,0,0,0.4); }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus{
  background: rgba(10,11,16,0.05);
}


.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); cursor: none; }

.modal-card {
  position: relative; width: min(800px, 100%); max-height: 90vh;
  background: #0e1016; border: 1px solid var(--card-border);
  border-radius: 24px; overflow-y: auto; padding: 0;
  box-shadow: 0 50px 100px rgba(0,0,0,0.8);
}
.modal-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 22, 0.9); backdrop-filter: blur(12px);
  padding: 24px; border-bottom: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: start;
}
.modal-body { padding: 30px 24px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.modal-block { background: rgba(255,255,255,0.02); padding: 20px; border-radius: 16px; border: 1px solid var(--card-border); }
.modal-wide { grid-column: 1 / -1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 30px; }

[data-theme="light"] .modal-backdrop{
  background: rgba(10,11,16,0.55);
}
[data-theme="light"] .modal-card{
  background: #ffffff;
  border-color: rgba(10,11,16,0.10);
  box-shadow: 0 60px 120px rgba(10,11,16,0.22);
}
[data-theme="light"] .modal-head{
  background: rgba(255,255,255,0.92);
  border-bottom-color: rgba(10,11,16,0.10);
}
[data-theme="light"] .modal-block{
  background: rgba(10,11,16,0.02);
  border-color: rgba(10,11,16,0.10);
}

.modal-links{
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
}
.modal-links-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.modal-links-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
[data-theme="light"] .modal-links{
  background: rgba(10,11,16,0.02);
  border-color: rgba(10,11,16,0.10);
}


.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.footer { padding: 40px 0; border-top: 1px solid var(--card-border); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.bg-aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0.6; }
.blob {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  filter: blur(80px); opacity: 0.4;
  animation: float 10s infinite ease-in-out alternate;
}
.blob.b1 { background: var(--accent); top: -20%; left: -10%; }
.blob.b2 { background: var(--accent2); bottom: -20%; right: -10%; animation-delay: -5s; }
.blob.b3 { background: #35f28b; top: 40%; left: 40%; width: 400px; height: 400px; opacity: 0.2; }
@keyframes float { 0% { transform: translate(0,0); } 100% { transform: translate(30px, -50px); } }


[data-theme="light"] .bg-aurora{ opacity: 0.35; }


.skills-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cv-card .cv-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
}
.cv-actions{ display:flex; gap:10px; flex-wrap:wrap; }


.book-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom: 18px;
}
.book-toolbar-left, .book-toolbar-right{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}

.book-wrap{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.book-shell{
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
  overflow:hidden;
  box-shadow: var(--shadow);
  padding: 18px;
}

.book{
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 420px;
  perspective: 1400px;
  border-radius: 18px;
  overflow:hidden;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(900px 420px at 90% 30%, rgba(34,211,238,.10), transparent 55%),
    rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.08);
}

[data-theme="light"] .book-shell{
  background: rgba(255,255,255,0.80);
}
[data-theme="light"] .book{
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(900px 420px at 90% 30%, rgba(34,211,238,.10), transparent 55%),
    rgba(10,11,16,.04);
  border: 1px solid rgba(10,11,16,.10);
}

.page{
  position:absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: left center;
  transition: transform 700ms var(--ease);
  will-change: transform;
}
.page.is-flipped{ transform: rotateY(-180deg); }

.page-face{
  position:absolute;
  inset:0;
  backface-visibility: hidden;
  overflow:hidden;
  display:grid;
  place-items:center;
  background: rgba(0,0,0,.18);
}
[data-theme="light"] .page-face{ background: rgba(10,11,16,.04); }

.page-front{ border-right: 1px solid rgba(255,255,255,.08); }
.page-back{
  transform: rotateY(180deg);
  border-left: 1px solid rgba(255,255,255,.08);
}
[data-theme="light"] .page-front{ border-right-color: rgba(10,11,16,.10); }
[data-theme="light"] .page-back{ border-left-color: rgba(10,11,16,.10); }

.page img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.05) contrast(1.02);
}

.page-badge{
  position:absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
  color: rgba(255,255,255,.82);
  font-family: var(--font-tech);
  font-size: 11px;
  letter-spacing: .02em;
  z-index: 5;
}
[data-theme="light"] .page-badge{
  border-color: rgba(10,11,16,.12);
  background: rgba(255,255,255,.72);
  color: rgba(10,11,16,.78);
}

.book-controls{
  margin-top: 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.book-btn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  transition: .2s;
  font-size: 18px;
}
.book-btn:hover{
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}
[data-theme="light"] .book-btn{
  background: rgba(10,11,16,.03);
}
[data-theme="light"] .book-btn:hover{
  background: rgba(10,11,16,.06);
}

.book-status{ display:flex; justify-content:center; align-items:center; }
.book-side .card{ height:100%; }
.book-side-actions{ display:flex; gap:10px; flex-wrap:wrap; }


@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .grid-2, .modal-grid, .metrics, .projects-grid { grid-template-columns: 1fr; }
  .h1 { font-size: 36px; }
  .portrait { order: -1; margin-bottom: 20px; }
  .intro-ui { width: calc(100% - 32px); padding: 20px; }
  .card { padding: 20px; }
  .modal-head { padding: 16px; }
  .portrait-body { padding: 0; }
  .meta-row { grid-template-columns: 1fr; }
  .skills-grid{ grid-template-columns: 1fr; }
  .book-wrap{ grid-template-columns: 1fr; }
  .book{ min-height: 360px; }
}


.drawer { position: fixed; inset: 0; z-index: 200; transform: translateX(100%); transition: transform 0.4s var(--ease); background: var(--bg); padding: 24px; }
.drawer.open { transform: translateX(0); }
.drawer-card { width: 100%; height: 100%; border: none; background: transparent; box-shadow: none; padding: 0; display: flex; flex-direction: column; }
.drawer-nav { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; font-size: 24px; font-weight: 700; }
.drawer-nav a { border: none; padding: 0; background: none; font-size: 28px; }


#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
  backdrop-filter: blur(2px);
}

body.hovering #cursor {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  border-color: transparent;
}

@media (hover: none) and (pointer: coarse) {
  #cursor { display: none; }
}

[data-theme="light"] #cursor{
  mix-blend-mode: normal;
  border-color: rgba(10,11,16,0.35);
  background: rgba(10,11,16,0.08);
}
[data-theme="light"] body.hovering #cursor{
  background: rgba(10,11,16,0.18);
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.project-appear {
  opacity: 0;
  animation: popIn 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.project-appear:nth-child(1) { animation-delay: 0.1s; }
.project-appear:nth-child(2) { animation-delay: 0.15s; }
.project-appear:nth-child(3) { animation-delay: 0.2s; }
.project-appear:nth-child(4) { animation-delay: 0.25s; }
.project-appear:nth-child(n+5) { animation-delay: 0.3s; }

.accent, .metric-number {
  -webkit-background-clip: text;
  background-clip: text;
}

.acc-toggle{
  font-size: 11px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  width: fit-content !important;
  margin-top: 12px !important;
}

.acc-toggle .acc-icon{
  font-size: 14px !important;
  line-height: 1 !important;
}


:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(34,211,238,.55),
    0 0 0 6px rgba(124,92,255,.20);
  border-radius: 14px;
}

.card{
  transform: translateZ(0);
  will-change: transform;
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255,255,255,.03);
}

.card:hover{
  border-color: rgba(255,255,255,.22);
  box-shadow:
    0 26px 60px -18px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.05);
}


[data-theme="light"] .card{
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(10,11,16,.04);
}
[data-theme="light"] .card:hover{
  border-color: rgba(10,11,16,.16);
  box-shadow:
    0 30px 70px -30px rgba(10,11,16,.28),
    0 0 0 1px rgba(10,11,16,.06);
}

.modal{
  opacity: 0;
  transition: opacity .22s var(--ease);
}
.modal.open{ opacity: 1; }

.modal-card{
  transform: translateY(10px) scale(.985);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.modal.open .modal-card{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-backdrop{
  transition: opacity .25s var(--ease);
  opacity: 0;
}
.modal.open .modal-backdrop{ opacity: 1; }

.modal-chips .pill.subtle{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
[data-theme="light"] .modal-chips .pill.subtle{
  border-color: rgba(10,11,16,.12);
  background: rgba(10,11,16,.03);
}

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}


.p-card{
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.p-card::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity .25s var(--ease);
  background:
    radial-gradient(
      520px circle at var(--mx, 50%) var(--my, 30%),
      rgba(124,92,255,.18),
      rgba(34,211,238,.10) 22%,
      transparent 48%
    );
  mix-blend-mode: screen;
  z-index: 0;
}

.p-card > *{ position: relative; z-index: 1; }
.p-card:hover::after{ opacity: 1; }

.p-card:hover{
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 28px 70px -22px rgba(0,0,0,.75);
}

[data-theme="light"] .p-card::after{
  mix-blend-mode: normal;
  background:
    radial-gradient(
      520px circle at var(--mx, 50%) var(--my, 30%),
      rgba(124,92,255,.16),
      rgba(34,211,238,.08) 22%,
      transparent 52%
    );
}
[data-theme="light"] .p-card:hover{
  box-shadow: 0 30px 70px -30px rgba(10,11,16,.28);
}


#book .container{
  width: min(1320px, calc(100% - 32px));
}

.book-wrap{
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
}

.book-shell{
  width: min(1180px, 100%);
  padding: 18px;
}

.book{
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 560px;
}

.book-side{
  width: min(1180px, 100%);
}

@media (max-width: 900px){
  .book{
    min-height: 420px;
    aspect-ratio: 16/10;
  }
}

.logo-wrap{
  display: grid;
  place-items: center;
  width: 100%;
  margin: 6px 0 2px;
}

.logo-img{
  width: 160px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}

@media (max-width: 900px){
  .logo-img{ width: 130px; }
}
.logo-img{
  filter:
    drop-shadow(0 18px 40px rgba(0,0,0,.45))
    drop-shadow(0 0 18px rgba(124,92,255,.25))
    drop-shadow(0 0 14px rgba(34,211,238,.18));
}

[data-theme="light"] .logo-img{
  filter:
    drop-shadow(0 18px 40px rgba(10,11,16,.18))
    drop-shadow(0 0 18px rgba(124,92,255,.18))
    drop-shadow(0 0 14px rgba(34,211,238,.12));
}



.process-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.process-legend{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.process-card{
  padding: 18px;
}

.process-media{
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(1000px 520px at 25% 20%, rgba(124,92,255,.10), transparent 55%),
    radial-gradient(1000px 520px at 80% 30%, rgba(34,211,238,.10), transparent 55%),
    rgba(0,0,0,.20);
  min-height: 380px;
  isolation: isolate;
  transform: translateZ(0);
}

[data-theme="light"] .process-media{
  background:
    radial-gradient(1000px 520px at 25% 20%, rgba(124,92,255,.14), transparent 55%),
    radial-gradient(1000px 520px at 80% 30%, rgba(34,211,238,.14), transparent 55%),
    rgba(255,255,255,.55);
}

.process-base,
.process-ov{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  user-select:none;
  pointer-events:none;
}

.process-base{
  opacity: .92;
  filter: contrast(1.02) saturate(1.02);
}

[data-theme="light"] .process-base{
  opacity: 1;
  filter: contrast(1.06) saturate(1.02);
}

.process-ov{
  opacity: 0;
  transition: opacity .28s var(--ease), transform .28s var(--ease), filter .28s var(--ease);
  will-change: opacity, transform, filter;
  transform: translateY(2px);
  filter: drop-shadow(0 22px 38px rgba(0,0,0,.35));
}

[data-theme="light"] .process-ov{
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
}

.process-media[data-active="anticipate"] .process-ov[data-step="anticipate"],
.process-media[data-active="discover"]    .process-ov[data-step="discover"],
.process-media[data-active="define"]      .process-ov[data-step="define"],
.process-media[data-active="develop"]     .process-ov[data-step="develop"],
.process-media[data-active="deliver"]     .process-ov[data-step="deliver"],
.process-media[data-active="follow"]      .process-ov[data-step="follow"]{
  opacity: 1;
  transform: translateY(0);
}

.process-hotspot{
  position:absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--x) * 1%);
  width: calc(var(--w) * 1%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: none;
  z-index: 5;
}

.process-hotspot:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(34,211,238,.55),
    0 0 0 6px rgba(124,92,255,.20);
  border-radius: 16px;
}

.process-tip{
  position:absolute;
  left: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10, 11, 16, .60);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  z-index: 6;
  transform: translateY(0);
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

[data-theme="light"] .process-tip{
  background: rgba(255,255,255,.72);
  border-color: rgba(0,0,0,.08);
  box-shadow: 0 22px 70px rgba(0,0,0,.14);
}

.process-tip-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.process-chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  font-family: var(--font-tech);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(255,255,255,.82);
}

[data-theme="light"] .process-chip{
  border-color: rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
  color: rgba(10,11,16,.85);
}

.process-kbd{
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--muted);
}

.process-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.process-desc{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.process-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.process-scan{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, transparent 0 48%, rgba(255,255,255,.05) 50%, transparent 52% 100%);
  opacity: .0;
  animation: processScan 3.2s linear infinite;
  z-index: 3;
  pointer-events:none;
}

.process-glow{
  position:absolute;
  inset:-1px;
  border-radius: inherit;
  background:
    radial-gradient(700px circle at 25% 30%, rgba(124,92,255,.15), transparent 55%),
    radial-gradient(700px circle at 80% 30%, rgba(34,211,238,.12), transparent 55%);
  opacity: .55;
  z-index: 2;
  pointer-events:none;
  transition: opacity .25s var(--ease);
}

.process-media[data-active] .process-glow{ opacity: .75; }
.process-media[data-active] .process-scan{ opacity: .18; }

@keyframes processScan{
  0%{ transform: translateY(-40%); }
  100%{ transform: translateY(40%); }
}

@media (max-width: 900px){
  .process-media{ min-height: 320px; }
  .process-tip{ left: 12px; right: 12px; width: auto; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce){
  .process-ov, .process-tip, .process-glow, .process-scan{ transition: none !important; animation: none !important; }
}



.process-hotspot{
  left: calc(var(--x) * 1%);
  top:  calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  bottom: auto; 
}

.process-media{
  --hitL: 14; 
  --hitR: 0;  
}


.process-hotspot{
  bottom: auto;

  left: calc(
    (var(--hitL) * 1%) +
    (var(--x) * 1%) * ((100 - var(--hitL) - var(--hitR)) / 100)
  );

  width: calc(
    (var(--w) * 1%) * ((100 - var(--hitL) - var(--hitR)) / 100)
  );

  top:    calc(var(--y) * 1%);
  height: calc(var(--h) * 1%);
}


.process-media{
  position: relative;
}


.process-stageglow{
  position:absolute;
  inset:-2px;
  border-radius: inherit;
  pointer-events:none;
  z-index: 1;
  opacity: 0;
  transition: opacity .28s var(--ease), filter .28s var(--ease), transform .28s var(--ease);
  filter: blur(24px);
  transform: scale(1.02);
  background:
    radial-gradient(520px 320px at 20% 55%, rgba(124,92,255,.22), transparent 60%),
    radial-gradient(520px 320px at 75% 45%, rgba(34,211,238,.16), transparent 62%);
  mix-blend-mode: screen;
}

.process-media[data-active] .process-stageglow{
  opacity: .85;
  filter: blur(22px);
  transform: scale(1.03);
}

.process-media[data-active="anticipate"] .process-stageglow{
  background: radial-gradient(680px 420px at 14% 55%, rgba(255,80,190,.22), transparent 62%),
              radial-gradient(520px 320px at 30% 45%, rgba(124,92,255,.16), transparent 65%);
}

.process-media[data-active="discover"] .process-stageglow{
  background: radial-gradient(680px 420px at 30% 55%, rgba(34,211,238,.22), transparent 62%),
              radial-gradient(520px 320px at 45% 45%, rgba(124,92,255,.14), transparent 65%);
}

.process-media[data-active="define"] .process-stageglow{
  background: radial-gradient(700px 440px at 48% 55%, rgba(90,160,255,.22), transparent 62%),
              radial-gradient(520px 320px at 56% 45%, rgba(124,92,255,.14), transparent 65%);
}

.process-media[data-active="develop"] .process-stageglow{
  background: radial-gradient(700px 440px at 62% 55%, rgba(0,220,170,.20), transparent 62%),
              radial-gradient(520px 320px at 68% 45%, rgba(34,211,238,.14), transparent 65%);
}

.process-media[data-active="deliver"] .process-stageglow{
  background: radial-gradient(700px 440px at 78% 55%, rgba(255,210,70,.20), transparent 62%),
              radial-gradient(520px 320px at 82% 45%, rgba(34,211,238,.12), transparent 65%);
}

.process-media[data-active="follow"] .process-stageglow{
  background: radial-gradient(700px 440px at 90% 55%, rgba(124,92,255,.20), transparent 62%),
              radial-gradient(520px 320px at 86% 45%, rgba(255,80,190,.12), transparent 65%);
}

[data-theme="light"] .process-stageglow{
  mix-blend-mode: normal;
  opacity: 0;
  filter: blur(26px);
}
[data-theme="light"] .process-media[data-active] .process-stageglow{
  opacity: .35;
}


.projects-category {
  display:flex;
  align-items:center;
  gap:12px;
}

.category-select {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius:14px;
  min-width:180px;
}

.category-label {
  font-size:12px;
  opacity:0.75;
}

#categorySelect {
  appearance:none;
  border:none;
  outline:none;
  background:transparent;
  color:inherit;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  padding-right:18px;
}

#categorySelect option {
  color:#000;
}

.modal-extra .tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.projects-category {
  display:flex;
  align-items:center;
  gap:12px;
}

.category-select {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  border-radius:14px;
  min-width:180px;
}

.category-label {
  font-size:12px;
  opacity:0.75;
}

#categorySelect {
  appearance:none;
  border:none;
  outline:none;
  background:transparent;
  color:inherit;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  padding-right:18px;
}



.modal-visuals .vwrap{
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.02);
}

.modal-visuals .vmain{
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid var(--card-border);
  background: rgba(0,0,0,0.22);
  aspect-ratio: 16/10;
}

.modal-visuals .vmain img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.modal-visuals .vthumbs{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  overflow:auto;
  padding-bottom: 6px;
}

.modal-visuals .vthumb{
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  width: 76px;
  height: 54px;
  overflow:hidden;
  flex: 0 0 auto;
  transition: .2s;
}

.modal-visuals .vthumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.modal-visuals .vthumb:hover{ transform: translateY(-2px); }
.modal-visuals .vthumb.is-active{ border-color: rgba(255,255,255,0.24); }

.modal-visuals .vcontrols{
  margin-top: 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

[data-theme="light"] .modal-visuals .vwrap{
  background: rgba(10,11,16,0.02);
  border-color: rgba(10,11,16,0.10);
}
