/* ============================================================
   OBSIDIAN & LIME — Persian Resume Design System
   Fonts: Space Grotesk / JetBrains Mono / Vazirmatn (embedded)
   ============================================================ */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/vazir-arabic.woff2") format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("./fonts/grotesk-latin.woff2") format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("./fonts/mono-latin.woff2") format('woff2');
}

:root {
  --black: #000000;
  --obsidian: #0c0c0c;
  --lime: #ccff00;
  --emerald: #10b981;
  --white: #ebebeb;
  --white-60: rgba(235, 235, 235, 0.6);
  --white-30: rgba(235, 235, 235, 0.3);
  --stroke: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --blur: blur(16px);
  --r-shell: 2.5rem;
  --r-card: 2.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pad-x: clamp(20px, 4vw, 64px);
  --font-body: 'Space Grotesk', 'Vazirmatn', sans-serif;
  --font-mono: 'JetBrains Mono', 'Vazirmatn', monospace;
  --photo: url("profile.jpg");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grainy noise overlay — 15% */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.15;
  pointer-events: none;
  z-index: 90;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
::selection { background: var(--lime); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime); }

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); }
.lat { direction: rtl; unicode-bidi: isolate; display: inline-block; }
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
}
.sec { padding-inline: var(--pad-x); position: relative; }
.sec-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.sec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
}
.sec-title { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 700; color: #fff; line-height: 1.3; }
.sec-sub { color: var(--white-60); font-size: 14.5px; max-width: 60ch; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Floating shell ---------- */
.viewport { min-height: 100vh; background: var(--black); padding: clamp(8px, 1.4vw, 22px); }
.shell {
  max-width: 1600px;
  margin: 0 auto;
  background: var(--obsidian);
  border-radius: var(--r-shell);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 60px 120px -30px rgba(0, 0, 0, 0.9);
  position: relative;
  overflow: clip;
}

/* decorative layers */
.gridbg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}
.glow { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.glow-lime { width: 560px; height: 560px; background: radial-gradient(circle, rgba(204, 255, 0, 0.22), transparent 65%); }
.glow-emerald { width: 460px; height: 460px; background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 65%); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 14px 14px 0;
  padding: 9px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-badge {
  width: 40px; height: 40px;
  border-radius: 0.75rem;
  background: var(--lime);
  color: #000;
  font-weight: 800;
  font-size: 19px;
  display: grid; place-items: center;
  box-shadow: 0 0 22px rgba(204, 255, 0, 0.35);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.4; }
.logo-text strong { font-size: 14px; color: #fff; font-weight: 700; }
.logo-text span { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.18em; color: var(--white-30); text-transform: uppercase; }

.nav-pill {
  margin-inline: auto;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-pill a {
  padding: 7px 15px;
  border-radius: 9999px;
  color: rgba(235, 235, 235, 0.7);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-pill a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-pill a.active { background: var(--lime); color: #000; font-weight: 700; }

.nav-side { display: flex; align-items: center; gap: 12px; flex: none; }
.status-tag { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 10px; color: var(--white-60); }
.status-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; flex: none; }
.nav-cta {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: #000;
  display: grid; place-items: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav-cta:hover { background: var(--lime); transform: translateY(2px); }
.nav-cta svg { width: 17px; height: 17px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--stroke); color: var(--white); place-items: center; }
.burger svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(48px, 6vw, 96px) var(--pad-x) clamp(40px, 5vw, 80px);
  position: relative;
  isolation: isolate;
}
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 26px; }
.ai-label {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--lime);
}
.ai-label::before { content: ""; width: 36px; height: 1px; background: var(--lime); flex: none; }
.hero-title {
  font-size: clamp(3.4rem, 8.6vw, 7.5rem);
  line-height: 0.98;
  font-weight: 700;
  color: #fff;
}
.hero-title .grad {
  font-style: italic;
  background: linear-gradient(100deg, var(--lime) 15%, #ffffff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-role { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: clamp(1.02rem, 1.5vw, 1.3rem); font-weight: 500; color: rgba(235, 235, 235, 0.88); }
.hero-role .sep { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; }
.hero-bio { max-width: 58ch; color: var(--white-60); font-size: 15.5px; line-height: 2.1; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-neon {
  display: inline-flex; align-items: center; gap: 10px;
  background-color: var(--lime);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 9999px;
  padding: 1rem 2rem;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-neon:hover { transform: scale(1.05); box-shadow: 0 0 46px rgba(204, 255, 0, 0.45); }
.btn-neon svg { width: 16px; height: 16px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  color: var(--white);
  font-weight: 500;
  font-size: 15px;
  border-radius: 9999px;
  padding: 1rem 1.9rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-ghost:hover { border-color: rgba(204, 255, 0, 0.4); color: var(--lime); }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.6vw, 40px); margin-top: 6px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat + .stat { border-inline-start: 1px solid rgba(255, 255, 255, 0.1); padding-inline-start: clamp(18px, 2.6vw, 40px); }
.stat .num { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; color: var(--lime); line-height: 1.2; }
.stat .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--white-30); text-transform: uppercase; }

/* hero visual / mockup */
.hero-visual { grid-column: span 5; position: relative; min-height: 540px; display: flex; align-items: center; justify-content: center; perspective: 1100px; }
.mock {
  width: min(100%, 420px);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  padding: 16px 16px 16px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform-style: preserve-3d;
  will-change: transform;
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-bar .mdot { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar .mdot:nth-child(1) { background: #ff5f57; }
.mock-bar .mdot:nth-child(2) { background: #febc2e; }
.mock-bar .mdot:nth-child(3) { background: #28c840; }
.mock-bar span { margin-inline-start: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--white-30); letter-spacing: 0.08em; }
.mock-bar span.lat { margin-inline-start: auto; }
.mock-body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 8px 14px; }
.mock-photo {
  width: 148px; height: 148px; border-radius: 50%;
  background-image: var(--photo);
  background-size: cover; background-position: center 20%;
  border: 2px solid rgba(204, 255, 0, 0.65);
  box-shadow: 0 0 0 7px rgba(204, 255, 0, 0.1), 0 0 46px rgba(204, 255, 0, 0.28);
}
.mock-name { font-weight: 700; color: #fff; font-size: 16px; }
.mock-role { color: var(--white-60); font-size: 12px; margin-top: -6px; }
.mock-tags { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 4px; }
.mtag {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  padding: 5px 10px; border-radius: 9999px;
  border: 1px solid var(--stroke); color: rgba(235, 235, 235, 0.75);
  background: rgba(255, 255, 255, 0.04);
}
.mtag.lime { border-color: rgba(204, 255, 0, 0.45); color: var(--lime); }
.mock-term { width: 100%; margin-top: 10px; border-top: 1px dashed rgba(255, 255, 255, 0.12); padding-top: 12px; font-family: var(--font-mono); font-size: 10.5px; line-height: 2.05; color: var(--white-30); direction: ltr; text-align: left; }
.mock-term .t1 { color: var(--lime); }
.mock-term .t2 { color: var(--emerald); }

.float-card {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(235, 235, 235, 0.85);
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.7);
  animation: float 6s infinite ease-in-out;
}
.float-card .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; flex: none; }
.fc-1 { top: 16%; inset-inline-start: 15%; animation-delay: 2.5s; }
.fc-2 { bottom: 50%; inset-inline-end: 65%;  animation-delay: 3.5s; }
.fc-3 { top: 35%; inset-inline-end: 15%; animation-delay: 3s; }
.ai-cursor {
  position: absolute; z-index: 6; top: 0; left: 0;
  background: var(--lime); color: #000;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  padding: 6px 10px; border-radius: 10px 10px 10px 2px;
  box-shadow: 0 0 26px rgba(204, 255, 0, 0.5);
  pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.hero-visual:hover .ai-cursor { opacity: 1; }

/* ---------- Bento grid ---------- */
.bento-sec { padding-block: clamp(30px, 4vw, 60px) clamp(40px, 5vw, 70px); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  position: relative;
  border-radius: var(--r-card);
  border: 1px solid var(--stroke);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(20px, 2.2vw, 30px);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(204, 255, 0, 0.4); transform: translateY(-4px); }
.card .klabel { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-30); }
.card h3 { font-size: 1.12rem; color: #fff; font-weight: 700; margin: 4px 0 2px; }

.card-a { grid-column: span 2; grid-row: span 2; gap: 16px; }
.mini-tl { display: flex; flex-direction: column; gap: 13px; margin-top: 10px; }
.tl-item { position: relative; border-inline-start: 2px solid rgba(204, 255, 0, 0.22); padding-inline-start: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.9fr); align-items: baseline; gap: 4px 12px; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(204, 255, 0, 0.6); }
.tl-role { color: #fff; font-weight: 600; font-size: 14px; }
.tl-co { color: rgba(204, 255, 0, 0.85); font-size: 12px; text-align: center; }
.tl-date { font-family: var(--font-mono); font-size: 10px; color: var(--white-30); letter-spacing: 0.06em; text-align: end; }
.bars { margin-top: auto; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.12); display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.bar i {
  display: block; width: 100%;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, var(--lime), rgba(204, 255, 0, 0.08));
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.22);
  height: 0%;
  transition: height 1.1s var(--ease);
}
.bar.dim i { background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05)); box-shadow: none; }
.bar em { font-style: normal; font-family: var(--font-mono); font-size: 9px; color: var(--white-30); letter-spacing: 0.05em; }

.card-b { grid-row: span 2; }
.sw-grid { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.sw { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); transition: border-color 0.3s var(--ease); }
.sw:hover { border-color: rgba(204, 255, 0, 0.35); }
.sw-dot { width: 15px; height: 15px; border-radius: 5px; flex: none; }
.sw-dot.adv { background: var(--lime); box-shadow: 0 0 12px rgba(204, 255, 0, 0.5); }
.sw-dot.mid { background: rgba(204, 255, 0, 0.4); }
.sw-dot.bas { background: rgba(255, 255, 255, 0.22); }
.sw-name { flex: 1; font-size: 12px; color: rgba(235, 235, 235, 0.88); }
.sw-lvl { font-size: 9.5px; color: var(--white-60); border: 1px solid rgba(255, 255, 255, 0.12); padding: 2px 9px; border-radius: 9999px; }

.card-c { background: var(--lime); color: #000; border-color: transparent; justify-content: space-between; gap: 8px; }
.card-c::after { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: 0.28; pointer-events: none; }
.card-c .klabel { color: rgba(0, 0, 0, 0.55); }
.card-c .big { font-size: clamp(3rem, 4.4vw, 4.4rem); font-weight: 800; line-height: 1.1; }
.card-c .cap { font-weight: 600; font-size: 14px; }
.card-c .cap2 { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(0, 0, 0, 0.55); }

.card-d .edu-degree { color: #fff; font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.card-d .edu-uni { color: var(--white-60); font-size: 12.5px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; padding: 5px 11px; border-radius: 9999px; border: 1px solid var(--stroke); color: var(--white-60); background: rgba(255, 255, 255, 0.04); }
.chip.lime { border-color: rgba(204, 255, 0, 0.45); color: var(--lime); }

.dots { display: flex; gap: 6px; margin-top: 14px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.dots i.on { background: var(--lime); box-shadow: 0 0 10px rgba(204, 255, 0, 0.5); }

.card-f .big2 { font-size: clamp(2.4rem, 3.4vw, 3.2rem); font-weight: 800; color: var(--lime); line-height: 1.2; }

.card-g { grid-column: span 2; }
.pv-list { display: flex; flex-direction: column; margin-top: 10px; }
.pv-item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(3.6em, auto); align-items: center; gap: 6px 14px; padding: 11px 2px; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); font-size: 13px; color: rgba(235, 235, 235, 0.8); }
.pv-item:last-child { border-bottom: none; }
.pv-item > span:first-child { grid-column: 1; }
.pv-item .yr { grid-column: 3; font-family: var(--font-mono); font-size: 10px; color: var(--lime); flex: none; text-align: center; }
.pv-item .tag-v { grid-column: 2; font-size: 9px; color: #000; background: var(--emerald); border-radius: 9999px; padding: 2px 8px; flex: none; justify-self: center; }

/* ---------- Experience ---------- */
.exp-sec { padding-block: clamp(30px, 4vw, 60px); }
.exp-list { position: relative; padding-inline-start: 28px; display: flex; flex-direction: column; gap: 16px; }
.exp-list::before { content: ""; position: absolute; inset-inline-start: 6px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--lime), rgba(204, 255, 0, 0.05)); }
.job {
  position: relative;
  border-radius: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.4vw, 30px);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.job:hover { border-color: rgba(204, 255, 0, 0.4); transform: translateX(-4px); }
.job::before { content: ""; position: absolute; inset-inline-start: -28px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--obsidian); border: 3px solid var(--lime); box-shadow: 0 0 14px rgba(204, 255, 0, 0.5); }
.job-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: flex-start; }
.job-role { font-size: 1.2rem; font-weight: 700; color: #fff; }
.job-co { color: var(--lime); font-size: 13.5px; font-weight: 600; margin-top: 3px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.job ul { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.job li { position: relative; padding-inline-start: 18px; color: var(--white-60); font-size: 13.5px; line-height: 1.95; }
.job li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 7px; height: 7px; background: rgba(204, 255, 0, 0.75); transform: rotate(45deg); }

/* ---------- Courses ---------- */
.courses-sec { padding-block: clamp(30px, 4vw, 60px) clamp(50px, 6vw, 90px); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.course {
  border-radius: 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.course:hover { border-color: rgba(204, 255, 0, 0.4); transform: translateY(-4px); }
.c-idx { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; color: var(--lime); }
.course h3 { font-size: 14.5px; font-weight: 600; color: #fff; line-height: 1.9; }
.c-issuer { font-size: 12px; color: var(--white-60); }
.c-desc { font-size: 12.5px; line-height: 1.95; color: rgba(235, 235, 235, 0.72); }
.c-meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Methodology (dark) ---------- */
.method-sec { padding-block: clamp(30px, 4vw, 60px) clamp(45px, 5vw, 80px); }
.method-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(34px, 5vw, 80px); align-items: center; position: relative; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step {
  display: flex; gap: 18px; align-items: flex-start;
  border-radius: 1.75rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  padding: 22px 24px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.step:hover { border-color: rgba(204, 255, 0, 0.4); transform: translateX(-4px); }
.step-n {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(204, 255, 0, 0.4);
  background: rgba(204, 255, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
  color: var(--lime);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
}
.step h4 { font-size: 1.08rem; font-weight: 700; color: #fff; margin-bottom: 5px; }
.step p { color: var(--white-60); font-size: 13.5px; line-height: 2; }

.portrait-wrap { position: relative; display: flex; justify-content: center; padding: 26px 0 60px; }
.portrait-box { position: relative; width: min(380px, 82%); aspect-ratio: 1; }
.portrait {
  width: 100%; height: 100%; border-radius: 50%;
  background-image: var(--photo); background-size: cover; background-position: center 18%;
  filter: grayscale(1) contrast(1.08);
  border: 10px solid #101010;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 34px 70px -24px rgba(0, 0, 0, 0.85), 0 0 70px rgba(204, 255, 0, 0.14);
}
.portrait-ring { position: absolute; inset: -26px; border: 1px dashed rgba(255, 255, 255, 0.18); border-radius: 50%; animation: spin 40s linear infinite; }
.portrait-ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px rgba(204, 255, 0, 0.8); }
.quote-card {
  position: absolute; bottom: -50px; inset-inline-start: -10px;
  z-index: 2;
  max-width: 330px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 20px 22px;
  box-shadow: 0 26px 54px -22px rgba(0, 0, 0, 0.7);
}
.quote-card p { font-size: 13px; line-height: 2; color: rgba(235, 235, 235, 0.75); margin-bottom: 12px; }
.q-name { font-weight: 700; font-size: 13px; color: #fff; }
.q-role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-30); }

/* ---------- Footer ---------- */
.footer { background: #000; position: relative; overflow: hidden; padding: clamp(56px, 7vw, 100px) var(--pad-x) 28px; }
.watermark {
  position: absolute; top: 4%; inset-inline: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 700; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.foot-cta { position: relative; max-width: 820px; margin: 0 auto clamp(44px, 5vw, 70px); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot-cta h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 700; color: #fff; line-height: 1.4; }
.foot-cta p { color: var(--white-60); font-size: 14.5px; max-width: 52ch; }
.btn-mega {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--lime); color: #000;
  border-radius: 9999px;
  padding: 1.35rem 3.4rem;
  font-size: 1.12rem; font-weight: 800;
  box-shadow: 0 0 40px rgba(204, 255, 0, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-mega span { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; }
.btn-mega::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform 0.45s var(--ease); z-index: 0; }
.btn-mega:hover { transform: scale(1.04); box-shadow: 0 0 60px rgba(204, 255, 0, 0.5); }
.btn-mega:hover::after { transform: translateY(0); }
.btn-mega svg { width: 18px; height: 18px; }

.contact-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.cbox { border-radius: 1.5rem; background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--stroke); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: border-color 0.3s var(--ease); }
.cbox:hover { border-color: rgba(204, 255, 0, 0.4); }
.cbox .klabel { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-30); }
.cbox .val { color: #fff; font-size: 14px; font-weight: 600; }
.cbox a.val:hover { color: var(--lime); }
.cbox .val.lat { max-width: 100%; overflow-wrap: anywhere; }

.foot-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 30px; padding-top: 34px; border-top: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.foot-grid h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white-30); margin-bottom: 14px; font-weight: 500; }
.foot-about p { color: var(--white-60); font-size: 13px; line-height: 2.1; max-width: 46ch; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a, .foot-links button { color: rgba(235, 235, 235, 0.65); font-size: 13.5px; text-align: start; transition: color 0.3s var(--ease); width: fit-content; }
.foot-links a:hover, .foot-links button:hover { color: var(--lime); }
.soc-row { display: flex; gap: 10px; }
.soc { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--stroke); display: grid; place-items: center; color: rgba(235, 235, 235, 0.7); transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease); }
.soc:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-3px); }
.soc svg { width: 16px; height: 16px; }
.foot-bottom { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white-30); position: relative; }
.foot-bottom .ok { display: inline-flex; align-items: center; gap: 7px; }
.foot-bottom .ok i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2s infinite; }

/* ---------- to-top ---------- */
.to-top {
  position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  color: #fff; display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease), border-color 0.3s, color 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--lime); color: var(--lime); }
.to-top svg { width: 17px; height: 17px; }

/* ---------- Keyframes ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(204, 255, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-a { grid-column: span 2; grid-row: span 1; }
  .card-b { grid-row: span 1; }
  .card-g { grid-column: span 2; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: span 1; order: 3; }
  .hero-copy > .ai-label { order: 1; }
  .hero-visual { grid-column: span 1; min-height: 480px; order: 2; }
  .method-grid { grid-template-columns: 1fr; }
  .portrait-wrap { order: -1; padding-bottom: 70px; }
  .nav-pill {
    position: absolute; top: calc(100% + 10px); inset-inline: 0;
    flex-direction: column; align-items: stretch; text-align: center;
    border-radius: 1.5rem; padding: 10px;
    background: rgba(12, 12, 12, 0.92);
    display: flex; opacity: 0; visibility: hidden; pointer-events: none;
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease), opacity 0.35s var(--ease),
                visibility 0.35s var(--ease);
  }
  .nav-pill.open {
    opacity: 1; visibility: visible; pointer-events: auto;
    max-height: var(--nav-h, 60vh);
  }
  .nav-pill a { padding: 11px; }
  .burger { display: grid; }
  .nav-side { margin-inline-start: auto; }
  .status-tag .clock { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 640px) {
  .float-card { font-size: 10.5px; padding: 7px 11px; border-radius: 0.85rem; }
  .float-card .dot { width: 6px; height: 6px; }
  .bento { grid-template-columns: 1fr; }
  .card-a, .card-g { grid-column: span 1; }
  .courses-grid { grid-template-columns: 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .stat + .stat { padding-inline-start: 16px; }
  .fc-1 { top: 9%; inset-inline-start: 2%; animation-delay: 2.5s; }
  .fc-2 { bottom: 55%; inset-inline-end: 70%;  animation-delay: 3.5s; }
  .fc-3 { top: 35%; inset-inline-end: 1%; animation-delay: 3s; }
  .job-meta { justify-content: flex-start; }
  /* .quote-card { inset-inline: 4%; max-width: none; }*/
  .portrait-box { position: relative; width: min(380px, 82%); aspect-ratio: 1; margin-bottom: 55px;}
  .steps{margin-top: 22px;}
  .quote-card {
  position: absolute; bottom: -10%; inset-inline-start: 0;
  z-index: 2;
  max-width: 330px;
  padding: 20px 22px;
  }
  .nav { margin: 10px 10px 0; }
  .status-tag { display: none; }
  .logo-text { display: flex; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  body::after, .nav, .to-top, .glow, .hero-visual, .ai-cursor { display: none !important; }
  body { background: #fff; color: #000; }
  .viewport { padding: 0; }
  .shell { box-shadow: none; border-radius: 0; background: #fff; }
  .card, .job, .course, .step, .quote-card { background: #fff; border-color: #ccc; color: #000; backdrop-filter: none; }
  .card h3, .job-role, .sec-title { color: #000; }
}

/* ---------- Section descriptions ---------- */
.card .card-desc { font-size: 12.5px; line-height: 1.9; color: var(--white-60); margin: 0 0 4px; max-width: 52ch; }
.job-summary { margin-top: 14px; font-size: 14px; line-height: 2; color: rgba(235, 235, 235, 0.82); border-inline-start: 2px solid rgba(204, 255, 0, 0.55); padding-inline-start: 14px; }
.sec-sub { line-height: 2; max-width: 72ch; }
@media print {
  .card .card-desc, .job-summary, .c-desc { color: #333; }
}
