/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --canvas: #0A0B0F;
  --paper: #15171E;
  --paper-2: #1C1F29;
  --ink: #F3F4F8;
  --ink-soft: #9A9DA8;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --indigo: #6C5CFF;
  --indigo-dark: #4A3AFF;
  --coral: #FF7A5C;
  --mint: #2FE3B0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1180px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 45px -20px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--indigo);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--coral);
  display: inline-block;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-top: 14px;
}

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================
   GLOBAL INTERACTIVE LAYERS
   ========================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--indigo), var(--coral));
  z-index: 100;
  transition: width 0.08s linear;
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  margin-left: -210px; margin-top: -210px;
  background: radial-gradient(circle, rgba(108,92,255,0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (max-width: 820px), (hover: none) {
  .cursor-glow { display: none; }
}

/* Spotlight hover — applied to any card via .spotlight */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), rgba(108,92,255,0.20), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* Magnetic buttons */
.magnetic { transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; }

.gradient-text {
  background: linear-gradient(100deg, var(--indigo) 10%, var(--coral) 60%, var(--indigo) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-primary:hover::before { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(108,92,255,0.45), 0 4px 16px -4px rgba(0,0,0,0.5); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(47,227,176,0.2);
}
.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); transition: color 0.2s ease; position: relative; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-indicator {
  position: absolute;
  bottom: -9px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  width: 0;
  left: 0;
  opacity: 0;
  transition: left 0.35s cubic-bezier(0.65, 0, 0.35, 1), width 0.35s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease;
}
.nav-indicator.is-active { opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}
.nav-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.social-icon:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }

/* ==========================================================
   HERO — canvas / design-tool motif
   ========================================================== */
.hero {
  padding: 64px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: blob-drift 16s ease-in-out infinite;
}
.blob.b1 {
  width: 420px; height: 420px;
  background: var(--indigo);
  top: -140px; left: -80px;
  animation-delay: 0s;
}
.blob.b2 {
  width: 340px; height: 340px;
  background: var(--coral);
  top: 60px; right: -60px;
  animation-delay: -5s;
}
.blob.b3 {
  width: 300px; height: 300px;
  background: var(--mint);
  bottom: -120px; left: 30%;
  animation-delay: -10s;
}
@keyframes blob-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, 20px) scale(1.08); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 30%, transparent 75%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy .avail-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.avail-pill .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  position: relative;
}
.avail-pill .pulse::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--mint);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.hero-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
}
.hero-copy h1 .accent { color: var(--indigo); }
.hero-copy h1 .strike-wrap { position: relative; display: inline-block; }

.hero-copy .subhead {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 480px;
  margin: 22px 0 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
}
.hero-stats .stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}
.hero-stats .stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.stat { min-width: 0; }

/* --- the "canvas" visual --- */
.hero-canvas {
  position: relative;
  padding: 28px;
  perspective: 1200px;
}
.canvas-frame {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 26px;
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.canvas-frame:hover {
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 40px -15px rgba(108,92,255,0.25);
}

.tilt-parallax { transform-style: preserve-3d; }
.tilt { transition: transform 0.25s ease-out; will-change: transform; }

.ruler-x, .ruler-y {
  position: absolute;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  opacity: 0.55;
}
.ruler-x {
  top: 6px; left: 30px; right: 30px;
  display: flex; justify-content: space-between;
}
.ruler-y {
  left: 6px; top: 30px; bottom: 30px;
  display: flex; flex-direction: column; justify-content: space-between;
  writing-mode: vertical-rl;
}

.marquee {
  position: relative;
  margin-top: 22px;
  border-radius: var(--radius-md);
  overflow: visible;
  background: radial-gradient(60% 55% at 50% 38%, rgba(108,92,255,0.22), transparent 70%);
}
.marquee-border {
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-md) + 8px);
  border: 1.5px dashed rgba(108, 92, 255, 0.6);
  animation: march 22s linear infinite;
  pointer-events: none;
}
@keyframes march {
  to { stroke-dashoffset: -1000; background-position: -200px 0; }
}
.marquee-border { background: none; }
@supports (background: repeating-linear-gradient(0deg, red, red)) {
  .marquee-border {
    border: none;
    background-image:
      repeating-linear-gradient(90deg, rgba(108,92,255,.7) 0 6px, transparent 6px 12px),
      repeating-linear-gradient(90deg, rgba(108,92,255,.7) 0 6px, transparent 6px 12px),
      repeating-linear-gradient(0deg, rgba(108,92,255,.7) 0 6px, transparent 6px 12px),
      repeating-linear-gradient(0deg, rgba(108,92,255,.7) 0 6px, transparent 6px 12px);
    background-size: 12px 1.5px, 12px 1.5px, 1.5px 12px, 1.5px 12px;
    background-position: 0 0, 0 100%, 0 0, 100% 0;
    background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
    animation: march-bg 14s linear infinite;
  }
}
@keyframes march-bg {
  to { background-position: 120px 0, -120px 100%, 0 -120px, 100% 120px; }
}

.handle {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--paper);
  border: 1.5px solid var(--indigo);
  border-radius: 2px;
}
.handle.tl { top: -12px; left: -12px; }
.handle.tr { top: -12px; right: -12px; }
.handle.bl { bottom: -12px; left: -12px; }
.handle.br { bottom: -12px; right: -12px; }

.marquee img {
  border-radius: var(--radius-md);
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  object-position: top center;
}

.layer-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  animation: float 6s ease-in-out infinite;
}
.layer-chip .sw { width: 9px; height: 9px; border-radius: 3px; }
.layer-chip.c1 { top: 8%; left: -8%; animation-delay: 0s; }
.layer-chip.c2 { top: 42%; right: -12%; animation-delay: 1.2s; }
.layer-chip.c3 { bottom: 6%; left: -4%; animation-delay: 2.4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .layer-chip.c1, .layer-chip.c2, .layer-chip.c3 { display: none; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 18px; }
}

/* ==========================================================
   TOOLS STRIP
   ========================================================== */
.tools-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 0;
  overflow: hidden;
}
.tools-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll-left 28s linear infinite;
}
.tools-strip:hover .tools-track { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tool-item {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-item::before {
  content: "/";
  color: var(--line-strong);
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services { padding: 110px 0; position: relative; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.services-grid.bento {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}
.services-grid.bento .service-card:first-child {
  grid-column: span 2;
  grid-row: span 1;
  background: linear-gradient(135deg, #241B6B 0%, var(--indigo) 100%);
  color: #FFFFFF;
  border-color: transparent;
}
.services-grid.bento .service-card:first-child .service-tag {
  background: rgba(255,255,255,0.16);
  color: #E4E0FF;
}
.services-grid.bento .service-card:first-child h3 { color: #FFFFFF; }
.services-grid.bento .service-card:first-child p { color: rgba(255,255,255,0.72); }
.services-grid.bento .service-card:first-child::before {
  background: radial-gradient(220px circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.18), transparent 65%);
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--indigo);
  background: rgba(108,92,255,0.14);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   WORK GRID
   ========================================================== */
.work { padding: 0 0 110px; }

.work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.work-filter {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  transition: all 0.2s ease;
}
.work-filter:hover { border-color: var(--ink); color: var(--ink); }
.work-filter.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card.is-hidden {
  display: none;
}
.work-card:hover {
  box-shadow: 0 24px 55px -20px rgba(0,0,0,0.7), 0 0 30px -12px rgba(108,92,255,0.3);
}
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.work-card:hover img { transform: scale(1.08); }

.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, rgba(20,21,26,0) 40%, rgba(20,21,26,0.82) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-overlay .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}
.work-overlay h3 {
  color: var(--paper);
  font-size: 16.5px;
  font-weight: 600;
}
.work-overlay .view {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--paper);
  font-weight: 600;
}

.work-more { text-align: center; margin-top: 40px; }

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   TIMELINE (experience)
   ========================================================== */
.experience { padding: 0 0 110px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  padding: 28px 20px;
  margin: 0 -20px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, padding-left 0.25s ease;
  position: relative;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--indigo);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}
.timeline-item:hover {
  background: var(--paper);
}
.timeline-item:hover::before { transform: scaleY(1); }
.timeline-item .period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 3px;
}
.timeline-item h3 { font-size: 19px; margin-bottom: 4px; }
.timeline-item .org {
  font-size: 14.5px;
  color: var(--indigo);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.timeline-item p { color: var(--ink-soft); font-size: 15px; margin: 0; max-width: 620px; }

@media (max-width: 700px) {
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================
   COMPANIES STRIP
   ========================================================== */
.companies { padding: 60px 0; text-align: center; }
.companies .label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.companies-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  align-items: center;
}
.companies-row span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-soft);
  opacity: 0.75;
}

/* ==========================================================
   CERTIFICATIONS
   ========================================================== */
.certs { padding: 0 0 110px; }
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cert-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-strong);
}
.cert-badge {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--indigo), var(--coral));
  display: flex; align-items: center; justify-content: center;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.cert-card:hover .cert-badge { transform: scale(1.1) rotate(-6deg); }
.cert-info h4 { font-size: 14.5px; line-height: 1.35; margin-bottom: 6px; }
.cert-info .meta { font-size: 12.5px; color: var(--ink-soft); font-family: var(--font-mono); }

@media (max-width: 900px) {
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .certs-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: 90px 0 110px;
}
.contact-panel {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(108,92,255,0.5), transparent 70%);
  top: -160px; right: -120px;
  border-radius: 50%;
}
.contact-panel::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,122,92,0.32), transparent 70%);
  bottom: -140px; left: -100px;
  border-radius: 50%;
}
.contact-panel-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), rgba(108,92,255,0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.contact-panel:hover .contact-panel-glow { opacity: 1; }
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-left h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  color: var(--paper);
}
.contact-left p {
  color: rgba(255,255,255,0.68);
  font-size: 16.5px;
  margin: 16px 0 32px;
  max-width: 420px;
}
.contact-links { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--paper);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 12px;
  transition: opacity 0.15s ease;
}
.contact-link:hover { opacity: 0.72; }
.contact-link .k {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  width: 74px;
  flex: none;
}
.contact-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-socials a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255,255,255,0.85);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.contact-socials a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 28px;
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-row input, .form-row textarea, .form-row select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--indigo);
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}
.contact-form .btn-primary { background: var(--paper); color: var(--ink); margin-top: 4px; }
.contact-form .btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(0,0,0,0.5); }
.form-note {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-panel { padding: 40px 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }

/* ==========================================================
   MOBILE NAV
   ========================================================== */
@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 16px;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-menu-btn { display: block; }
}

/* Reveal-on-scroll utility */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
