/* ============================================================
   GLOBAL — variables, fonts, base
   ============================================================ */
:root {
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--mono); -webkit-font-smoothing: antialiased; }

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms),
              transform 0.7s cubic-bezier(.2,.7,.2,1) var(--d, 0ms);
}
[data-reveal][data-revealed="true"] {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ============================================================
   V1 — Tech Grid Mono
   ============================================================ */
.v1-root {
  background: var(--v1-bg-d, #0d0d10);
  color: #e8e8ed;
  font-family: var(--mono);
  font-size: var(--v1-font-size, 14px);
  line-height: 1.55;
  min-height: 100%;
  position: relative;
  overflow-x: hidden;
  --v1-bg: var(--v1-bg-d, #0d0d10);
  --v1-card: var(--v1-card-d, #131318);
  --v1-cardR: var(--v1-cardR-d, #17171d);
  --v1-bd: rgba(255,255,255,0.07);
  --v1-bdS: rgba(255,255,255,0.14);
  --v1-tx: #e8e8ed;
  --v1-tx2: #8a8a95;
  --v1-tx3: #5a5a64;
  --v1-acc: #a78bfa;
  --v1-accD: #7c3aed;
  --v1-accGlow: rgba(167,139,250,0.22);
}
/* Animation intensity */
.v1-root[data-anim="off"] .v1-mesh__blob,
.v1-root[data-anim="off"] .v1-pulse i,
.v1-root[data-anim="off"] .v1-cursor,
.v1-root[data-anim="off"] .v1-hero__scroll-line::after { animation: none; }
.v1-root[data-anim="off"] [data-reveal] { transition: none; opacity: 1; transform: none; }
.v1-root[data-anim="subtle"] .v1-mesh__blob { opacity: 0.25; animation-duration: 40s; }
.v1-root[data-anim="strong"] .v1-mesh__blob { opacity: 0.7; animation-duration: 14s; }
.v1-root .v1-mute { color: var(--v1-tx3); }
.v1-root a { color: inherit; text-decoration: none; }
.v1-root h1, .v1-root h2, .v1-root h3, .v1-root p, .v1-root ul, .v1-root ol { margin: 0; padding: 0; list-style: none; font-weight: 400; }

/* Nav */
.v1-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid var(--v1-bd);
  background: rgba(13,13,16,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.v1-nav__brand { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.v1-nav__sep { color: var(--v1-tx3); }
.v1-nav__handle { color: var(--v1-tx2); }
.v1-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--v1-acc);
  box-shadow: 0 0 0 3px var(--v1-accGlow);
}
.v1-nav__links { display: flex; gap: 28px; color: var(--v1-tx2); }
.v1-nav__links a { transition: color 0.2s; position: relative; }
.v1-nav__links a:hover { color: var(--v1-tx); }
.v1-nav__links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -4px;
  height: 1px; background: var(--v1-acc);
  transition: right 0.3s cubic-bezier(.2,.7,.2,1);
}
.v1-nav__links a:hover::after { right: 0; }
.v1-nav__right { display: flex; align-items: center; gap: 16px; }
.v1-lang {
  background: none; border: 1px solid var(--v1-bd); color: var(--v1-tx2);
  padding: 6px 10px; border-radius: 6px; font: inherit; cursor: pointer;
  display: flex; gap: 6px; transition: border-color 0.2s;
}
.v1-lang:hover { border-color: var(--v1-bdS); }
.v1-lang .on { color: var(--v1-acc); }
.v1-lang__sep { color: var(--v1-tx3); }

/* Buttons */
.v1-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px; letter-spacing: 0.02em;
  border: 1px solid var(--v1-bd);
  background: transparent; color: var(--v1-tx);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.3s;
  will-change: transform;
}
.v1-btn--ghost:hover { border-color: var(--v1-acc); color: var(--v1-acc); }
.v1-btn--primary {
  background: var(--v1-acc); color: #0d0d10; border-color: var(--v1-acc);
  font-weight: 600;
}
.v1-btn--primary:hover {
  box-shadow: 0 0 0 6px var(--v1-accGlow), 0 6px 30px var(--v1-accGlow);
  background: #b69cff;
}
.v1-btn--lg { padding: 14px 22px; font-size: 14px; }

/* Hero */
.v1-hero {
  position: relative;
  padding: 64px 32px 100px;
  min-height: calc(100vh - 50px);
  display: flex; flex-direction: column; justify-content: center;
}
.v1-mesh {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  z-index: 0;
}
.v1-mesh__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 30%, transparent 75%);
}
.v1-mesh__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: v1-float 22s ease-in-out infinite;
}
.v1-mesh__blob--a {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -120px; left: -120px;
}
.v1-mesh__blob--b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #a78bfa 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -8s;
  opacity: 0.35;
}
@keyframes v1-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 30px) scale(0.95); }
}
.v1-mesh__grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

.v1-hero__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}
.v1-block {
  background: var(--v1-card);
  border: 1px solid var(--v1-bd);
  border-radius: 10px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.v1-block:hover { border-color: var(--v1-bdS); }
.v1-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--v1-bdS), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.v1-block:hover::before { opacity: 1; }

.v1-block__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.v1-tag {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--v1-tx3);
}

.v1-block--name { grid-column: span 8; grid-row: span 2; padding: 28px 32px; display: flex; flex-direction: column; justify-content: space-between; }
.v1-name {
  font-family: var(--mono);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  display: flex; flex-direction: column;
}
.v1-name__last { color: var(--v1-acc); }
.v1-cursor {
  display: inline-block; color: var(--v1-acc);
  animation: v1-blink 1.1s steps(2) infinite;
  margin-left: 4px;
}
@keyframes v1-blink { 50% { opacity: 0; } }
.v1-role {
  margin-top: 18px;
  font-size: 14px; color: var(--v1-tx);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid var(--v1-bd);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.v1-role::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--v1-acc);
}

.v1-block--status { grid-column: span 4; }
.v1-pulse { display: inline-flex; align-items: center; gap: 6px; }
.v1-pulse i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: v1-pulse 1.6s ease-out infinite;
}
@keyframes v1-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
}
.v1-status__line { font-size: 13px; margin-bottom: 12px; }
.v1-status__time { font-size: 13px; color: var(--v1-tx2); }
.v1-status__time span:last-child { color: var(--v1-tx); }

.v1-block--pitch { grid-column: span 4; grid-row: span 2; }
.v1-pitch {
  font-size: 16px; line-height: 1.55; color: var(--v1-tx);
  margin-bottom: 14px; text-wrap: pretty;
}
.v1-pitch--small { font-size: 12.5px; color: var(--v1-tx2); margin-bottom: 0; }

.v1-block--stat {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: space-between;
}
.v1-stat__num {
  font-size: 38px; line-height: 1; letter-spacing: -0.03em;
  color: var(--v1-acc);
}
.v1-stat__num span { font-size: 18px; color: var(--v1-tx2); margin-left: 2px; }
.v1-stat__num--word { font-size: 30px; }
.v1-stat__num--word span { font-size: 16px; letter-spacing: 0; }
.v1-stat__lbl {
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--v1-tx2);
  margin-top: 12px; line-height: 1.4;
}

.v1-block--cta {
  grid-column: span 6;
  display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.v1-cta__meta { font-size: 12px; color: var(--v1-tx2); }
.v1-cta__meta .v1-mute { display: inline-block; min-width: 60px; }

.v1-block--coord { display: none; }

.v1-hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--v1-tx3);
  z-index: 2;
}
.v1-hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--v1-tx3), transparent);
  position: relative; overflow: hidden;
}
.v1-hero__scroll-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 12px;
  background: var(--v1-acc);
  animation: v1-scroll-line 1.8s ease-in-out infinite;
}
@keyframes v1-scroll-line {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(360%); }
}

/* Sections */
.v1-section {
  padding: 100px 32px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.v1-section__head {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 48px;
}
.v1-section__head h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  font-weight: 500;
}

/* Stack */
.v1-stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--v1-bd);
  border: 1px solid var(--v1-bd);
  border-radius: 10px;
  overflow: hidden;
}
.v1-stack__group {
  background: var(--v1-card);
  padding: 22px 24px;
  transition: background 0.2s;
}
.v1-stack__group:hover { background: var(--v1-cardR); }
.v1-stack__title {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--v1-acc);
  margin-bottom: 14px;
}
.v1-stack__items {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.v1-stack__items li {
  font-size: 12px; padding: 4px 9px;
  border: 1px solid var(--v1-bd); border-radius: 4px;
  color: var(--v1-tx);
  transition: border-color 0.2s, color 0.2s;
}
.v1-stack__items li:hover { border-color: var(--v1-acc); color: var(--v1-acc); }

/* Experience */
.v1-xp {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--v1-bd);
  border: 1px solid var(--v1-bd);
  border-radius: 10px;
  overflow: hidden;
}
.v1-xp__item {
  background: var(--v1-card);
  display: grid; grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px 32px;
  transition: background 0.2s;
}
.v1-xp__item:hover { background: var(--v1-cardR); }
.v1-xp__date { font-size: 12px; color: var(--v1-tx); margin-bottom: 6px; }
.v1-xp__type { font-size: 11px; }
.v1-xp__head { display: flex; align-items: baseline; gap: 8px; }
.v1-xp__head h3 { font-size: 18px; font-weight: 500; }
.v1-xp__role { font-size: 12px; color: var(--v1-acc); margin: 4px 0 12px; }
.v1-xp__body p { font-size: 13px; color: var(--v1-tx2); max-width: 64ch; }
.v1-xp__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.v1-xp__tags span {
  font-size: 11px; padding: 3px 8px;
  border: 1px solid var(--v1-bd); border-radius: 4px;
  color: var(--v1-tx2);
}

/* Projects */
.v1-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.v1-project {
  background: var(--v1-card);
  border: 1px solid var(--v1-bd);
  border-radius: 10px;
  padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.v1-project::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--v1-accGlow), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.v1-project:hover { border-color: var(--v1-bdS); transform: translateY(-2px); }
.v1-project:hover::after { opacity: 1; }
.v1-project__head { display: flex; justify-content: space-between; align-items: center; }
.v1-project__year { font-size: 11px; color: var(--v1-tx3); letter-spacing: 0.1em; }
.v1-project__arrow {
  font-size: 18px; color: var(--v1-tx2);
  transition: transform 0.3s, color 0.3s;
}
.v1-project:hover .v1-project__arrow { color: var(--v1-acc); transform: translate(2px, -2px); }
.v1-project__name { font-size: 24px; letter-spacing: -0.02em; }
.v1-project__role { font-size: 12px; }
.v1-project p { font-size: 13px; color: var(--v1-tx2); flex: 1; text-wrap: pretty; }
.v1-project__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.v1-project__tags span {
  font-size: 11px; padding: 3px 8px;
  border-radius: 4px;
  background: rgba(167,139,250,0.08);
  color: var(--v1-acc);
}
.v1-project__url {
  font-size: 11px; color: var(--v1-tx3);
  border-top: 1px dashed var(--v1-bd);
  padding-top: 12px; margin-top: 4px;
  letter-spacing: 0.04em;
}

/* Contact */
.v1-contact { padding: 120px 32px 60px; text-align: left; }
.v1-contact__inner { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.v1-contact__title {
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-wrap: pretty;
  max-width: 14ch;
}
.v1-contact__mails {
  display: flex; flex-direction: column; gap: 28px;
  margin-top: 8px;
  align-items: flex-start;
}
.v1-contact__mails .v1-btn { max-width: 100%; }
.v1-contact__rows {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 14px 40px; margin-top: 30px;
  width: 100%;
}
.v1-contact__rows > div {
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed var(--v1-bd);
  padding: 10px 0; font-size: 13px;
}
.v1-foot {
  margin-top: 80px;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--v1-bd);
  padding-top: 22px;
  font-size: 11px; color: var(--v1-tx3);
}

/* Mouse-tracking glow on project cards */
.v1-project { --mx: 50%; --my: 50%; }

/* Responsive */
@media (max-width: 900px) {
  .v1-hero__grid { grid-template-columns: repeat(4, 1fr); }
  .v1-block--name { grid-column: span 4; grid-row: span 1; }
  .v1-block--status, .v1-block--pitch, .v1-block--cta { grid-column: span 4; grid-row: auto; }
  .v1-block--stat { grid-column: span 2; }
  .v1-block--coord { grid-column: span 4; }
  .v1-projects { grid-template-columns: 1fr; }
  .v1-xp__item { grid-template-columns: 1fr; gap: 12px; }
  .v1-nav__links { display: none; }
}
