/* === MUHAMMAD NOMAN — PORTFOLIO ===================================== */

:root {
  --bg: #0e0d0b;
  --bg-soft: #1a1814;
  --fg: #f2ede3;
  --fg-dim: #a8a297;
  --fg-muted: #6b665d;
  --line: #2a2722;
  --accent: #c7f23b;
  --accent-soft: #c7f23b22;

  --display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1440px;
  --pad-x: clamp(24px, 5vw, 88px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* THEME: cream */
[data-theme="cream"] {
  --bg: #efeae0;
  --bg-soft: #e3ddd0;
  --fg: #15140f;
  --fg-dim: #4a463c;
  --fg-muted: #8a8579;
  --line: #d4cebf;
  --accent: #1b1b1b;
  --accent-soft: #1b1b1b18;
}

/* THEME: eclipse (deep blue) */
[data-theme="eclipse"] {
  --bg: #06080f;
  --bg-soft: #0e1220;
  --fg: #e8ecf5;
  --fg-dim: #8b94aa;
  --fg-muted: #555d72;
  --line: #1a1f30;
  --accent: #7aa6ff;
  --accent-soft: #7aa6ff22;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  cursor: none;
  line-height: 1.4;
}
@media (max-width: 760px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  transition: width .2s var(--ease), height .2s var(--ease), background .2s;
}
.cursor-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #fff;
  transition: width .25s var(--ease), height .25s var(--ease), opacity .2s;
}
.cursor-dot.is-link { width: 0; height: 0; }
.cursor-ring.is-link { width: 64px; height: 64px; background: #fff; mix-blend-mode: difference; }
@media (max-width: 760px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 90%, transparent) 60%, transparent);
  transition: padding .3s var(--ease);
}
.nav.is-scrolled { padding-top: 14px; padding-bottom: 14px; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom: 1px solid var(--line); }
.nav-mark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-mark-glyph {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-size: 16px;
  font-weight: 400;
}
.nav-links {
  display: flex; gap: 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-dim);
}
.nav-links a { transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-clock { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.04em; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px var(--pad-x) 60px;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .85; }
.hero-noise { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .04; mix-blend-mode: overlay; }

.hero-tags {
  position: absolute; top: 110px; left: var(--pad-x); right: var(--pad-x);
  display: flex; gap: 8px; flex-wrap: wrap; z-index: 2;
}
.hero-tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-dim); background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
}
.hero-tag.is-accent { color: var(--accent); border-color: var(--accent); }

.hero-name {
  position: relative; z-index: 3;
  font-family: var(--display);
  font-weight: 400; font-style: italic;
  font-size: clamp(72px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero-name .row { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 32px); }
.hero-name .row.last { justify-content: flex-end; }
.hero-name .char { display: inline-block; transition: transform .6s var(--ease), color .3s; }
.hero-name .char:hover { color: var(--accent); transform: translateY(-8px) rotate(-4deg); }
.hero-name .ampersand { font-style: italic; color: var(--accent); font-size: 0.6em; }

.hero-meta {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin-top: 60px;
  align-items: end;
}
.hero-lede {
  font-family: var(--display); font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px); line-height: 1.25;
  color: var(--fg);
  max-width: 540px;
}
.hero-lede .em { color: var(--accent); }
.hero-cta {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  justify-self: end;
}
.hero-cta-row { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--fg);
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn.primary:hover { background: var(--fg); border-color: var(--fg); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.hero-status { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); letter-spacing: 0.04em; }
.hero-status .dot { display: inline-block; width: 8px; height: 8px; background: #4ade80; border-radius: 50%; margin-right: 8px; vertical-align: middle; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 760px) {
  .hero-name { font-size: clamp(64px, 22vw, 120px); }
  .hero-meta { grid-template-columns: 1fr; gap: 24px; }
  .hero-cta { justify-self: start; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex; gap: 60px; white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--display); font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--fg);
}
.marquee-item { display: flex; align-items: center; gap: 60px; }
.marquee-item::after { content: "✦"; color: var(--accent); font-style: normal; font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 160px) var(--pad-x);
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 60px;
  gap: 40px;
}
.section-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before {
  content: ""; display: inline-block;
  width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--display); font-style: italic;
  font-weight: 400; font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.0; letter-spacing: -0.02em;
  max-width: 14ch;
}
.section-title .em { color: var(--accent); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--bg-soft);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-portrait-inner {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, color-mix(in srgb, var(--fg) 8%, transparent) 18px 19px),
    radial-gradient(circle at 50% 35%, var(--accent-soft), transparent 60%);
  display: grid; place-items: center;
  text-align: center;
}
.about-portrait-label {
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 14px; background: var(--bg); border: 1px solid var(--line);
}
.about-portrait-frame {
  position: absolute; inset: 12px; border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
  pointer-events: none;
}
.about-portrait-id {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--mono); font-size: 10px; color: var(--fg-dim);
  letter-spacing: 0.1em;
}
.about-portrait-id.right { left: auto; right: 16px; }
.about-portrait-id.bot { top: auto; bottom: 16px; }
.about-portrait-id.bot.right { right: 16px; left: auto; }

.about-body {
  font-family: var(--display); font-style: italic;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.about-body .em { color: var(--accent); }
.about-text { font-size: 16px; line-height: 1.65; color: var(--fg-dim); margin-bottom: 18px; max-width: 56ch; }
.about-text strong { color: var(--fg); font-weight: 500; }

.about-roles {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--mono); font-size: 12px;
}
.about-role { display: flex; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.about-role:last-child { border-bottom: 1px solid var(--line); }
.about-role .k { color: var(--fg-muted); width: 90px; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; padding-top: 2px; }
.about-role .v { color: var(--fg); flex: 1; }

@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 48px var(--pad-x);
  border-left: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.stat:first-child { border-left: 0; }
.stat-num {
  font-family: var(--display); font-style: italic;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline;
  margin-bottom: 12px;
}
.stat-num .suffix { font-size: 0.5em; color: var(--accent); margin-left: 4px; }
.stat-label { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.08em; max-width: 18ch; line-height: 1.4; }
.stat-idx { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 10px; color: var(--fg-muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat { padding: 32px var(--pad-x); } }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.skill-cat {
  background: var(--bg);
  padding: 32px;
  transition: background .3s;
}
.skill-cat:hover { background: var(--bg-soft); }
.skill-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.skill-cat-name { font-family: var(--display); font-style: italic; font-size: 22px; }
.skill-cat-glyph {
  width: 28px; height: 28px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
}
.skill-list { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.skill-list span { display: block; line-height: 1.4; }
@media (max-width: 1100px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .skills-grid { grid-template-columns: 1fr; } }

/* ---------- Featured project ---------- */
.featured {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: start;
}
.featured-visual {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
}
.featured-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
}
.featured-visual-orb {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), transparent 65%);
  filter: blur(2px);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-45%, -55%) scale(1.05); }
}
.featured-chip {
  position: absolute;
  font-family: var(--mono); font-size: 10px; padding: 6px 10px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-dim); letter-spacing: 0.08em; text-transform: uppercase;
}
.featured-chip.c1 { top: 16px; left: 16px; }
.featured-chip.c2 { top: 16px; right: 16px; color: var(--accent); border-color: var(--accent); }
.featured-chip.c3 { bottom: 16px; left: 16px; }
.featured-chip.c4 { bottom: 16px; right: 16px; }

.featured-meta-bar {
  position: absolute; bottom: 50%; left: 16px; right: 16px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--fg-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transform: translateY(60px);
}
.featured-meta-bar span:nth-child(2) { color: var(--accent); }

.featured-body h3 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5vw, 68px); line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.featured-body .featured-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.featured-body p { color: var(--fg-dim); margin-bottom: 24px; line-height: 1.6; max-width: 48ch; }
.featured-validate { margin-top: 32px; }
.featured-validate-title { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.featured-validate-q {
  padding: 16px 0; border-top: 1px solid var(--line);
  cursor: none;
}
.featured-validate-q:last-child { border-bottom: 1px solid var(--line); }
.featured-validate-q-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--display); font-style: italic; font-size: 20px;
}
.featured-validate-q-head .plus {
  font-family: var(--mono); font-size: 16px; color: var(--accent);
  transition: transform .3s var(--ease);
  font-style: normal;
}
.featured-validate-q.open .featured-validate-q-head .plus { transform: rotate(45deg); }
.featured-validate-q-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease), padding .3s;
  color: var(--fg-dim); font-size: 14px; line-height: 1.6;
}
.featured-validate-q.open .featured-validate-q-body { max-height: 200px; padding-top: 12px; }

@media (max-width: 900px) { .featured { grid-template-columns: 1fr; } }

/* ---------- AI Workflow Cards ---------- */
.workflows {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.wf-card {
  background: var(--bg);
  padding: 36px;
  position: relative;
  transition: background .3s;
}
.wf-card:hover { background: var(--bg-soft); }
.wf-idx {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
}
.wf-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; padding: 4px 10px;
  border: 1px solid var(--accent); color: var(--accent);
  border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 24px;
  white-space: nowrap;
}
.wf-card h3 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3vw, 40px); line-height: 1; margin-bottom: 16px;
}
.wf-card p {
  font-size: 14px; color: var(--fg-dim); line-height: 1.6; margin-bottom: 20px;
  max-width: 52ch;
}
.wf-bullets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.wf-bullet { display: flex; gap: 12px; font-size: 13px; color: var(--fg); line-height: 1.5; }
.wf-bullet::before { content: "→"; color: var(--accent); }
.wf-stack { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.wf-stack-label { font-family: var(--mono); font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 8px; }
.wf-stack span { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); }
.wf-stack span:not(:last-child)::after { content: " ·"; }
@media (max-width: 800px) { .workflows { grid-template-columns: 1fr; } }

/* ---------- Operational Systems list ---------- */
.ops-list { border-top: 1px solid var(--line); }
.ops-item {
  display: grid; grid-template-columns: 60px 1.4fr 1fr 200px 40px;
  align-items: center; gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .3s var(--ease);
  cursor: none;
}
.ops-item:hover { padding-left: 16px; padding-right: 16px; background: var(--bg-soft); }
.ops-idx { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); }
.ops-name {
  font-family: var(--display); font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.01em;
}
.ops-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.5; max-width: 44ch; }
.ops-stat { text-align: right; }
.ops-stat-num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.ops-stat-label { font-family: var(--mono); font-size: 10px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.ops-arrow { color: var(--fg-muted); transition: transform .25s var(--ease), color .2s; font-family: var(--mono); }
.ops-item:hover .ops-arrow { transform: translateX(6px); color: var(--accent); }

@media (max-width: 900px) {
  .ops-item { grid-template-columns: 40px 1fr 60px; }
  .ops-desc, .ops-stat { grid-column: 1 / -1; padding-left: 40px; text-align: left; }
  .ops-stat { display: flex; gap: 12px; align-items: baseline; padding-left: 40px; }
}

/* ---------- Experience timeline ---------- */
.exp-list { display: flex; flex-direction: column; }
.exp-item {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 60px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.exp-item:last-child { border-bottom: 1px solid var(--line); }
.exp-meta {
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
  display: flex; flex-direction: column; gap: 6px;
}
.exp-meta .when { color: var(--fg-muted); font-size: 11px; letter-spacing: 0.04em; }
.exp-meta .type { display: inline-block; padding: 3px 8px; background: var(--accent-soft); color: var(--accent); border-radius: 4px; align-self: flex-start; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.exp-role h3 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.exp-role .company { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 24px; display: block; }
.exp-role ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.exp-role li {
  font-size: 15px; color: var(--fg-dim); line-height: 1.6;
  padding-left: 24px; position: relative; max-width: 64ch;
}
.exp-role li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 12px; height: 1px; background: var(--accent);
}
@media (max-width: 900px) { .exp-item { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Education ---------- */
.edu {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.edu-card {
  border: 1px solid var(--line);
  padding: 40px;
  background: var(--bg-soft);
  position: relative;
}
.edu-card-eyebrow { font-family: var(--mono); font-size: 11px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.edu-card h3 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 3.5vw, 48px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 8px;
}
.edu-card .school { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); margin-bottom: 32px; }
.edu-years { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-style: italic; font-size: 48px; line-height: 1; }
.edu-years .arrow { color: var(--accent); font-size: 0.7em; }
.edu-pillars { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.edu-pillar { background: var(--bg); padding: 24px; }
.edu-pillar h4 { font-family: var(--display); font-style: italic; font-size: 24px; margin-bottom: 6px; }
.edu-pillar p { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); letter-spacing: 0.04em; }
@media (max-width: 900px) { .edu { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- AI Stack ---------- */
.stack-group {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 240px 1fr;
  gap: 60px; padding: 40px 0;
}
.stack-group:last-child { border-bottom: 1px solid var(--line); }
.stack-label { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.1em; padding-top: 8px; }
.stack-items { display: flex; flex-wrap: wrap; gap: 12px; }
.stack-item {
  font-family: var(--display); font-style: italic;
  font-size: clamp(24px, 2.4vw, 36px);
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: all .25s var(--ease);
}
.stack-item:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px) rotate(-1deg);
}
.stack-note { margin-top: 40px; font-family: var(--display); font-style: italic; font-size: clamp(20px, 2vw, 28px); color: var(--fg-dim); max-width: 38ch; line-height: 1.3; }
.stack-note .em { color: var(--fg); }
@media (max-width: 800px) { .stack-group { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Principles ---------- */
.principles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.principle {
  background: var(--bg);
  padding: 48px;
  position: relative;
  transition: background .3s;
}
.principle:hover { background: var(--bg-soft); }
.principle-num {
  font-family: var(--display); font-style: italic;
  font-size: 80px; line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
}
.principle h3 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 16px; max-width: 18ch;
}
.principle p { font-size: 15px; color: var(--fg-dim); line-height: 1.6; max-width: 48ch; }
@media (max-width: 800px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Focus ---------- */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.focus-item { background: var(--bg); padding: 36px; }
.focus-item h4 {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin-bottom: 12px;
}
.focus-item p { font-size: 13px; color: var(--fg-dim); line-height: 1.55; }
.focus-item-tag { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
@media (max-width: 900px) { .focus-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(80px, 14vh, 180px) var(--pad-x);
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 60%);
  opacity: 0.6;
}
.contact-eyebrow {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 24px;
}
.contact h2 {
  position: relative; z-index: 1;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(48px, 9vw, 140px); line-height: 0.95; letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.contact h2 .em { color: var(--accent); }
.contact-email {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  padding: 8px 0; margin-bottom: 40px;
  transition: border-color .3s, color .3s;
}
.contact-email:hover { border-color: var(--accent); color: var(--accent); }
.contact-links {
  position: relative; z-index: 1;
  display: flex; gap: 24px; justify-content: center;
  font-family: var(--mono); font-size: 12px; color: var(--fg-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.contact-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; color: var(--fg-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.footer-glyph {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--display); font-style: italic; font-size: 16px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tweaks panel positioning override (subtle) ---------- */
.tweaks-toggle-btn { font-family: var(--mono) !important; }

/* =========================================================================
 * Elementor kit guard
 * Elementor's Site Settings inject default H1–H6 typography via a
 * `body.elementor-kit-NNN hN` selector whose specificity (0,1,1) beats the
 * design's single-class heading rules (0,1,0) — which shrinks every display
 * heading (hero name, section titles, card titles) back to Elementor's
 * defaults. Re-assert the intended sizes here, scoped under `body` + with
 * !important so they win against the kit no matter the active theme.
 * ===================================================================== */
/* Re-assert the display FACE + weight + italic (Elementor's kit also forces a
 * font-family/weight onto headings, which made these render bold + wrong-font). */
body .hero-name,
body .section-title,
body .about-body,
body .stat-num,
body .featured-body h3,
body .wf-card h3,
body .ops-name,
body .exp-role h3,
body .edu-card h3,
body .edu-pillar h4,
body .principle h3,
body .focus-item h4,
body .marquee-track,
body .stack-item,
body .stack-note,
body .contact h2 {
  font-family: var(--display) !important;
  font-style: italic !important;
  font-weight: 400 !important;
}

body .hero-name        { font-size: clamp(72px, 18vw, 280px) !important; line-height: 0.85 !important; }
body .section-title    { font-size: clamp(36px, 5.5vw, 72px) !important; line-height: 1.0 !important; }
body .about-body       { font-size: clamp(24px, 2.6vw, 38px) !important; line-height: 1.25 !important; }
body .stat-num         { font-size: clamp(48px, 7vw, 88px) !important;   line-height: 0.95 !important; }
body .featured-body h3 { font-size: clamp(40px, 5vw, 68px) !important;   line-height: 0.95 !important; }
body .wf-card h3       { font-size: clamp(28px, 3vw, 40px) !important;   line-height: 1.0 !important; }
body .ops-name         { font-size: clamp(22px, 2.4vw, 32px) !important; line-height: 1.1 !important; }
body .exp-role h3      { font-size: clamp(28px, 3.5vw, 44px) !important; line-height: 1.05 !important; }
body .edu-card h3      { font-size: clamp(32px, 3.5vw, 48px) !important; line-height: 1.0 !important; }
body .edu-pillar h4    { font-size: 24px !important; }
body .principle h3     { font-size: clamp(24px, 2.4vw, 32px) !important; line-height: 1.15 !important; }
body .focus-item h4    { font-size: clamp(22px, 2vw, 28px) !important;   line-height: 1.15 !important; }
body .contact h2       { font-size: clamp(48px, 9vw, 140px) !important;  line-height: 0.95 !important; }

@media (max-width: 760px) {
  body .hero-name { font-size: clamp(64px, 22vw, 120px) !important; }
}
