/* omobolajiadeyan.com — award-portfolio-style design system
   Dark, kinetic, terminal-adjacent. Space Grotesk (display) + Inter (body). */

/* Self-hosted fonts (latin subset only — site is English-only). Previously
   loaded from Google Fonts, which added a render-blocking third-party
   chain measured at ~1080ms; self-hosting flattens that to one same-origin hop. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  --bg: #f7f6f3;
  --bg-elev: #edece7;
  --panel: rgba(20, 22, 26, 0.045);
  --panel-hover: rgba(20, 22, 26, 0.08);
  --panel-border: rgba(20, 22, 26, 0.12);
  --text: #14161a;
  --text-dim: #565a66;
  --cyan: #0092a8;
  --magenta: #c81090;
  --signal: #0f8f5a;
  --accent-glow: rgba(0, 146, 168, 0.22);
  --magenta-glow: rgba(200, 16, 144, 0.22);
  --radius: 18px;
  --maxw: 1180px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}

a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ---------- Ambient backdrop ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(20,22,26,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,22,26,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

.bg-mesh {
  position: fixed;
  inset: -10%;
  z-index: -4;
  filter: blur(56px);
  opacity: 0.3;
  pointer-events: none;
  will-change: transform;
}

.bg-mesh span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.bg-mesh span:nth-child(1) {
  width: 46vw; height: 46vw; top: -10%; left: -8%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}
.bg-mesh span:nth-child(2) {
  width: 38vw; height: 38vw; top: 10%; right: -10%;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}
.bg-mesh span:nth-child(3) {
  width: 30vw; height: 30vw; bottom: -12%; left: 30%;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  opacity: 0.5;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6vw,8vh)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-7vw,6vh)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(4vw,-6vh)} }

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
}

/* ---------- Page transition ---------- */
body { opacity: 1; transition: opacity 0.15s ease; }
body.page-exit { opacity: 0; }

/* ---------- WebGL hero centerpiece (homepage only) ---------- */
#hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Ghost-type watermark ---------- */
.ghost-type {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 15rem);
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(20, 22, 26, 0.08);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(0, 146, 168, 0.5);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.hovered {
  width: 64px; height: 64px;
  background: rgba(0, 146, 168, 0.08);
  border-color: var(--cyan);
}

/* ---------- Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(247, 246, 243, 0.78);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand span { color: var(--cyan); }

nav.main-nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }

nav.main-nav a {
  position: relative;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s var(--ease);
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--text); }
nav.main-nav a:hover::after, nav.main-nav a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan) !important;
  font-weight: 600;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--cyan); color: #fff !important; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 45;
  max-height: 100vh;
  overflow-y: auto;
  padding: 88px 24px 32px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--panel-border);
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-nav a {
  display: block;
  padding: 15px 2px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--panel-border);
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--text); }
body.nav-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 56px; position: relative; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.photo-frame {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}
/* No card border or corner brackets — the portrait sits directly on the page.
   A radial alpha mask fades the image itself to transparent at the edges so
   it dissolves into the ambient background glow instead of sitting in a box. */
.photo-frame .inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  -webkit-mask-image: radial-gradient(ellipse 54% 57% at 50% 42%, #000 38%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 57% at 50% 42%, #000 38%, transparent 100%);
}
.photo-frame .inner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(0, 146, 168, 0.3), transparent 40%, rgba(200, 16, 144, 0.22) 78%);
  mix-blend-mode: color;
}
.photo-frame img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
  filter: grayscale(20%) saturate(0.82) contrast(1.12) brightness(0.9);
}
.photo-frame .glow {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    radial-gradient(circle at 40% 25%, rgba(0, 146, 168, 0.3), transparent 46%),
    radial-gradient(circle at 68% 78%, rgba(200, 16, 144, 0.22), transparent 48%);
  filter: blur(52px);
}
.photo-frame .photo-caption {
  margin: 14px 4px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
.photo-frame .photo-caption strong { color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .photo-frame { max-width: 250px; order: -1; margin-bottom: 12px; }
  /* Nav collapses to the hamburger here rather than at 720px — six links
     plus the brand and CTA start crowding/overlapping well before 720px. */
  nav.main-nav { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}

.eyebrow-term {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--signal);
  border: 1px solid rgba(15, 143, 90, 0.3);
  background: rgba(15, 143, 90, 0.06);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.eyebrow-term .caret {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--signal);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

h1.headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  max-width: 820px;
}

h1.headline .word { display: inline-block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
h1.headline .word span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
}
h1.headline.split-in .word span { transform: translateY(0); }

h1.headline .grad {
  background: linear-gradient(120deg, var(--magenta), var(--cyan) 65%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradshift 6s ease-in-out infinite;
}
@keyframes gradshift { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }

.subhead { max-width: 600px; color: var(--text-dim); font-size: 1.05rem; margin: 0 0 34px; }

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  font-family: var(--font-mono);
  border: 1px solid transparent;
  cursor: none;
  will-change: transform;
}
.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 0 0 var(--magenta-glow);
  transition: box-shadow 0.3s ease, transform 0.2s var(--ease);
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--cyan), var(--magenta));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover { color: #fff; box-shadow: 0 0 32px var(--magenta-glow); }
.btn-primary:hover::after { opacity: 1; }
.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  background: var(--bg-elev);
  margin: 20px 0 0;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.marquee-track span.dot { color: var(--cyan); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 100px 0; position: relative; }
section.alt { background: var(--bg-elev); }
section.diag {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  margin: -40px 0;
  padding: 124px 0;
}

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.section-head p { color: var(--text-dim); margin: 0; max-width: 520px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
}
.bento .tile { grid-column: span 2; grid-row: span 1; }
.bento .tile.lg { grid-column: span 2; grid-row: span 1; }
.bento .tile.wide { grid-column: span 4; grid-row: span 1; }
.bento .tile.sm { grid-column: span 2; grid-row: span 1; }

.tile {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.tile:hover { border-color: rgba(0, 146, 168, 0.45); }
.tile:hover::before { opacity: 1; }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 146, 168, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tile:hover::after { opacity: 1; }

.tile .tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  border: 1px solid rgba(15, 143, 90, 0.3);
  background: rgba(15, 143, 90, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: auto;
}
.tile .tag.soon { color: var(--text-dim); border-color: var(--panel-border); background: transparent; }

.tile h3 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.tile.lg h3 { font-size: 1.72rem; }
.tile p { margin: 0 0 14px; color: var(--text-dim); font-size: 0.92rem; position: relative; z-index: 1; }
.tile .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.tile .meta span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  border: 1px solid var(--panel-border);
  padding: 3px 9px;
  border-radius: 999px;
}
.tile .go, .card .go, .stack-row .go {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--cyan);
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ---------- Simple grid (secondary use) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0, 146, 168, 0.4); }
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 146, 168, 0.14), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card .idx {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: block;
}
.card h3 { font-family: var(--font-display); margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--text);
}
.stat .num .grad {
  background: linear-gradient(120deg, var(--magenta), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}

/* ---------- Forms ---------- */
form.lead-form {
  max-width: 580px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 40px;
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(20,22,26,0.02);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: auto;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; }
.form-msg { margin-top: 16px; font-size: 0.9rem; display: none; font-family: var(--font-mono); }
.form-msg.ok { color: var(--signal); display: block; }
.form-msg.err { color: #ff6b6b; display: block; }

/* ---------- Timeline (about) ---------- */
.stack { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.stack-row {
  display: flex;
  gap: 24px;
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.stack-row:hover { border-color: rgba(0, 146, 168, 0.4); transform: translateX(6px); }
.stack-row .date {
  flex: 0 0 110px;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 600;
}
.stack-row .content h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.05rem; }

/* Small colored monogram badges standing in for certification-issuer logos
   — self-hosted CSS, no external logo assets or trademark reproduction. */
.cert-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  vertical-align: middle;
  margin-right: 6px;
  transform: translateY(-2px);
}
.cert-logo--isaca { background: #0b2265; }
.cert-logo--comptia { background: #c8102e; }
.cert-logo--aws { background: #232f3e; color: #ff9900; }
.stack-row .content p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Reveal-on-scroll ---------- */
/* Starts partly visible rather than fully hidden: if JS is slow (e.g. the
   homepage's WebGL init blocking the main thread) or never runs, content
   is still legible instead of the section reading as empty. */
[data-reveal] {
  opacity: 0.4;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
/* Extra bottom padding clears space for the fixed chat/WhatsApp buttons,
   which would otherwise sit on top of the footer's "Contact" link when
   the page is scrolled all the way down. */
footer { border-top: 1px solid var(--panel-border); padding: 48px 0 110px; color: var(--text-dim); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 22px; font-family: var(--font-mono); }
.footer-links a:hover { color: var(--cyan); }

@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile, .bento .tile.lg, .bento .tile.wide, .bento .tile.sm { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 720px) {
  .nav-inner { padding: 16px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  section { padding: 72px 0; }
  section.diag { padding: 90px 0; }
  .hero { padding-top: 82px; }
  .ghost-type { font-size: clamp(4.5rem, 28vw, 7rem); }
  .photo-frame { max-width: 230px; }
  h1.headline { font-size: clamp(1.75rem, 8.5vw, 2.25rem); line-height: 1.22; max-width: 100%; }
  .subhead { font-size: 1rem; }
  .btn { width: 100%; justify-content: center; }
}

/* ---------- Utilities ---------- */
.hero--tight { padding-bottom: 40px; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.cta-row--center { justify-content: center; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Chat assistant ---------- */
.chat-fabs {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.whatsapp-fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.25s ease;
}
.whatsapp-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4); }
.whatsapp-fab svg { width: 26px; height: 26px; }

.chatbot { position: relative; }

.chatbot-toggle {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.25s ease, transform 0.2s var(--ease);
}
.chatbot-toggle::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--magenta);
  opacity: 0.5;
  animation: chatbotPulse 2.4s ease-out infinite;
}
.chatbot.open .chatbot-toggle::before { display: none; }
@keyframes chatbotPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.28); opacity: 0; }
}
.chatbot-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24); }
.chatbot-toggle svg { width: 24px; height: 24px; }
.chatbot-toggle .icon-close { display: none; }
.chatbot.open .chatbot-toggle .icon-chat { display: none; }
.chatbot.open .chatbot-toggle .icon-close { display: block; }

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-elev);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s var(--ease);
}
.chatbot.open .chatbot-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
}
.chatbot-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chatbot-avatar svg { width: 20px; height: 20px; }
.chatbot-header-text { flex: 1; min-width: 0; }
.chatbot-header-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.chatbot-status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3cffb0;
  box-shadow: 0 0 0 0 rgba(60, 255, 176, 0.6);
  animation: chatbotStatusPulse 2s ease-in-out infinite;
  flex: 0 0 auto;
}
@keyframes chatbotStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(60, 255, 176, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(60, 255, 176, 0); }
}
.chatbot-header-text .status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.9;
  margin-top: 1px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chatbot-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chatbot-msg.bot {
  align-self: flex-start;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chatbot-msg.error { color: var(--danger, #b3261e); border-color: rgba(200, 16, 20, 0.3); }
.chatbot-msg a { text-decoration: underline; }

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}
.chatbot-chip {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chatbot-chip:hover { border-color: var(--cyan); color: var(--cyan); }

.chatbot-typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.chatbot-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim);
  animation: chatbotTyping 1.2s ease-in-out infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.15s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatbotTyping { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--panel-border);
}
.chatbot-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(20, 22, 26, 0.02);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: auto;
}
.chatbot-input-row input:focus { outline: none; border-color: var(--cyan); }
.chatbot-input-row button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--magenta), var(--cyan));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.chatbot-input-row button svg { width: 17px; height: 17px; }
.chatbot-input-row button:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 480px) {
  .chat-fabs { right: 16px; bottom: 16px; }
  .chatbot-panel { right: -8px; width: calc(100vw - 32px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-mesh span, .marquee-track, .eyebrow-term .caret, h1.headline .grad {
    animation: none !important;
  }
  [data-reveal], h1.headline .word span {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}
