:root {
  --bg: #f4f6fa;
  --ink: #1f1f1f;
  --hover: #0f172a;
  --text: #475569;
  --text-soft: #64748b;
  --muted: #94a3b8;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  --glass-border: 1px solid rgba(255, 255, 255, 0.92);
  --glass-shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  --glass-blur: blur(22px) saturate(1.8);
  --purple-badge-bg: #eef2ff;
  --purple-badge-text: #4f46e5;
  --blue-check: #2563eb;
  --container: 72rem;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-sans: "Inter", "SF Pro Text", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.9), transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(224, 231, 255, 0.45), transparent 38%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  z-index: 1000;
  border-radius: 999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* =====================================================
   FLOATING GLASS NAVIGATION DOCK
   ===================================================== */
.dock-wrapper {
  position: fixed;
  top: 1.35rem;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 1rem;
  pointer-events: none;
}

.glass-dock {
  pointer-events: auto;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(84px, 108px));
  align-items: center;
  padding: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72));
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff;
}

.dock-pill {
  position: absolute;
  top: 0.38rem;
  bottom: 0.38rem;
  left: 0.38rem;
  width: calc((100% - 0.76rem) / 4);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.45);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.dock-tab {
  position: relative;
  z-index: 1;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0.5rem 0.65rem;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.2s ease;
}

.dock-tab svg {
  transition: transform 0.2s ease;
}

.dock-tab:hover:not(.is-active) {
  color: var(--hover);
}

.dock-tab.is-active {
  color: #ffffff;
}

/* =====================================================
   PAGE SHELL & GLASS CARD PRIMITIVES
   ===================================================== */
.page-shell {
  padding-top: 7.75rem;
}

.tab-panel[hidden] {
  display: none !important;
}

.tab-panel {
  animation: tabFadeIn 0.26s ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-card {
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-xl);
}

/* =====================================================
   HERO SECTION (HOME TAB)
   ===================================================== */
.hero-section {
  padding-top: 1.25rem;
  padding-bottom: 4.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.48fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero-name {
  font-size: clamp(2.35rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 0.55rem;
}

.hero-role {
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-soft);
  margin: 0 0 1.4rem;
}

.hero-bio {
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--text);
  margin: 0 0 1.5rem;
  max-width: 60ch;
}

.hero-bio strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
}

.stat-pill strong {
  color: var(--ink);
  font-weight: 700;
}

.stat-pill span {
  color: var(--text-soft);
}

/* Interactive "Ask Raynold" Card */
.ask-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ask-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.96rem;
  color: var(--ink);
}

.ask-sparkle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.82rem;
}

.ask-badge {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.9);
}

.ask-input-wrap {
  position: relative;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(125deg, #93c5fd, #c4b5fd, #fbcfe8, #fde68a, #6ee7b7);
  box-shadow: 0 10px 28px -14px rgba(59, 130, 246, 0.35);
}

.ask-input-wrap textarea {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 0.9rem 1.05rem;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  resize: none;
  outline: none;
  display: block;
}

.ask-input-wrap textarea::placeholder {
  color: var(--muted);
}

.ask-response {
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
}

.ask-response-inner strong {
  color: var(--ink);
}

.ask-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggest-chip {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.suggest-chip:hover {
  border-color: var(--ink);
  background: #f8fafc;
  transform: translateY(-1px);
}

.ask-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.btn-dark-pill {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.68rem 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-dark-pill:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.45);
}

.btn-outline-pill {
  appearance: none;
  border: 1px solid var(--border-medium);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.68rem 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.btn-outline-pill:hover {
  border-color: var(--ink);
  background: #f8fafc;
  transform: translateY(-1px);
}

.btn-lg-pill {
  padding: 0.82rem 1.6rem;
  font-size: 0.92rem;
}

.ask-footnote {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-soft);
  line-height: 1.5;
}

/* =====================================================
   RIGHT COLUMN PROFILE & TOUCHPOINTS CARD
   ===================================================== */
.profile-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.profile-avatar-wrap {
  display: flex;
  justify-content: center;
}

.profile-avatar-shield {
  position: relative;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 4px solid #ffffff;
  box-shadow: 0 18px 36px -14px rgba(15, 23, 42, 0.35);
  display: grid;
  place-items: center;
}

.avatar-initials {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.avatar-status-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  border: 3px solid #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.profile-meta-list {
  display: grid;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-meta-item svg {
  color: var(--text-soft);
  flex-shrink: 0;
}

.profile-meta-item a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.mini-copy-btn {
  margin-left: auto;
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.mini-copy-btn:hover {
  color: var(--ink);
  border-color: var(--border-medium);
}

.profile-privacy-box {
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.profile-privacy-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.profile-privacy-box p {
  margin: 0;
}

.touchpoints-head {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.touchpoints-list {
  display: grid;
  gap: 0.55rem;
}

.touchpoint-btn {
  width: 100%;
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.78rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.touchpoint-btn:hover {
  border-color: var(--border-medium);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -14px rgba(15, 23, 42, 0.2);
}

.tp-arrow {
  color: var(--text-soft);
  font-size: 0.9rem;
}

/* =====================================================
   SECTION BANNERS & HEADINGS
   ===================================================== */
.section-banner {
  margin-bottom: 2.5rem;
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.65rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

.page-headline {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.14;
  color: var(--ink);
  max-width: 24ch;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 64ch;
  margin: 0;
}

/* =====================================================
   MULTI-ROW SKILLS MARQUEE (ajgarrigues.com style)
   ===================================================== */
.marquee-section {
  padding-block: 2.5rem 4.5rem;
}

.marquee-stack {
  display: grid;
  gap: 2.15rem;
}

.marquee-category {
  display: grid;
  gap: 0.85rem;
}

.marquee-cat-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.marquee-cat-header h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.marquee-cat-header span {
  font-size: 0.86rem;
  color: var(--text-soft);
}

.marquee-viewport {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marqueeScroll 32s linear infinite;
}

.marquee-track.marquee-reverse {
  animation-direction: reverse;
  animation-duration: 36s;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.glass-tile {
  width: 118px;
  height: 114px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
  border: 1px solid #ffffff;
  box-shadow: 0 16px 34px -18px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.glass-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -16px rgba(15, 23, 42, 0.24), 0 0 0 1px rgba(15, 23, 42, 0.09);
}

.glass-tile img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 9px;
}

.glass-tile span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

/* =====================================================
   EXPERIENCE & PROJECTS 2-COLUMN WIDE CARDS
   ===================================================== */
.tab-section {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
}

.stack-cards {
  display: grid;
  gap: 1.75rem;
}

.wide-card {
  padding: clamp(1.5rem, 3vw, 2.35rem);
  display: grid;
  grid-template-columns: 0.95fr 1.85fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: start;
}

.wide-card[hidden] {
  display: none !important;
}

.wide-card-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.company-badge-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.rounded-icon {
  border-radius: 10px;
}

.date-pill {
  display: inline-block;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background: var(--purple-badge-bg);
  color: var(--purple-badge-text);
  font-size: 0.74rem;
  font-weight: 600;
}

.wide-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0.15rem 0 0;
  line-height: 1.3;
}

.wide-card-org {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
}

.wide-card-loc {
  margin: 0.15rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.wide-card-right {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.wide-card-summary {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.68;
}

.sub-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
}

.impact-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.35rem;
}

.impact-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

.check-icon {
  width: 17px;
  height: 17px;
  color: var(--blue-check);
  flex-shrink: 0;
  margin-top: 0.18rem;
}

.stack-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.clean-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.clean-pills li {
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pill-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Project Left Column Brand Elements */
.project-brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.35rem;
}

.project-hero-icon {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.25);
  border: 1px solid var(--border-subtle);
}

.project-icon-tile {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}

.mini-app-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 0.35rem;
}

.mini-app-grid img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  object-fit: cover;
}

.project-links-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.ext-pill-link {
  appearance: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.48rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ext-pill-link:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* Filter Group on Projects Tab */
.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter-btn {
  appearance: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

/* =====================================================
   EDUCATION TAB (3-COLUMN CAMPUS CARDS + CERTIFICATIONS)
   ===================================================== */
.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.edu-card {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-card:hover {
  transform: translateY(-3px);
}

.edu-photo-wrap {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  background: #e2e8f0;
}

.edu-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.edu-illus-arch {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 50%, #f8fafc 100%);
}

.edu-illus-ai {
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 50%, #f8fafc 100%);
}

.edu-illus-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.edu-illus-icons img {
  width: 56px;
  height: 56px;
  padding: 0.7rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 24px -10px rgba(15, 23, 42, 0.14);
  object-fit: contain;
}

.edu-illus-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.edu-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.edu-card:hover .edu-photo {
  transform: scale(1.03);
}

.edu-body {
  padding: 0.15rem 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.edu-date-badge {
  display: inline-block;
  padding: 0.24rem 0.72rem;
  border-radius: 999px;
  background: var(--purple-badge-bg);
  color: var(--purple-badge-text);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.edu-degree {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.edu-school {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text);
}

.edu-location {
  margin: 0.1rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.edu-notes {
  margin: 0.4rem 0 0;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.58;
}

/* Certifications Grid inside Education Tab */
.trainings-subblock {
  padding-top: 1rem;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.cert-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cert-domain {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-soft);
}

.cert-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0.15rem 0 0;
  line-height: 1.35;
}

.cert-issuer {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple-badge-text);
}

.cert-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.58;
  flex: 1;
}

/* =====================================================
   COLLABORATE FOOTER CTA CARD (ajgarrigues.com style)
   ===================================================== */
.collaborate-section {
  padding-block: 1.5rem 3.5rem;
}

.collaborate-card {
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.collaborate-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 28ch;
  margin: 0.35rem 0 1rem;
}

.collaborate-sub {
  font-size: 1.02rem;
  color: var(--text);
  max-width: 56ch;
  margin: 0 0 1.85rem;
}

.collaborate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.collaborate-contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.collaborate-contact-strip a:hover {
  color: var(--ink);
}

/* =====================================================
   SITE FOOTER
   ===================================================== */
.site-footer {
  padding-bottom: 2.5rem;
  font-size: 0.84rem;
  color: var(--text-soft);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tab-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0.2rem 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-soft);
  cursor: pointer;
}

.footer-tab-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* =====================================================
   NATIVE <dialog> CASE STUDY MODAL
   ===================================================== */
dialog {
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff;
  border-radius: var(--radius-xl);
  background: #ffffff;
  color: var(--ink);
  width: min(680px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, 0.32);
}

dialog::backdrop {
  background-color: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.dialog-card {
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.dialog-header h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.dialog-role {
  margin: 0.25rem 0 0;
  color: var(--purple-badge-text);
  font-size: 0.88rem;
  font-weight: 600;
}

.icon-close-btn {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #f8fafc;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-close-btn:hover {
  border-color: var(--ink);
}

.dialog-body {
  display: grid;
  gap: 1.15rem;
}

.dialog-body h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin: 0 0 0.45rem;
}

.dialog-body p,
.dialog-body ul:not(.clean-pills) {
  margin: 0;
  color: var(--text);
  font-size: 0.94rem;
}

.dialog-body ul:not(.clean-pills) {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* =====================================================
   OPEN SOURCE & INDIE PROJECTS (VaporSend & FreePlay)
   ===================================================== */
.project-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.24rem 0.68rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.project-status-badge.status-soon {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.26);
}

.project-status-badge.status-oss {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.26);
}

.project-icon-vapor {
  background: linear-gradient(135deg, #0b1120, #112240);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.28);
}

.project-icon-freeplay {
  background: linear-gradient(135deg, #18181b, #27272a);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.28);
}

.project-preview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

.preview-thumb {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1020;
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.preview-thumb:hover,
.preview-thumb:focus-visible {
  transform: translateY(-2px);
  border-color: #0284c7;
  box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.35);
  outline: none;
}

.preview-thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.preview-thumb figcaption {
  padding: 0.42rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #cbd5e1;
  background: #0f172a;
  text-align: center;
}

.dialog-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.dialog-gallery-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0b1020;
}

.dialog-gallery-item img {
  width: 100%;
  height: auto;
}

.dialog-gallery-item figcaption {
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #e2e8f0;
  background: #0f172a;
}

.touchpoint-coffee:hover,
.ext-pill-coffee:hover,
.btn-coffee-pill:hover {
  border-color: #d97706;
  background: rgba(254, 243, 199, 0.55);
  color: #92400e;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .wide-card {
    grid-template-columns: 1fr;
  }

  .edu-cards-grid,
  .certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .glass-dock {
    grid-template-columns: repeat(4, minmax(68px, 1fr));
    width: 100%;
    max-width: 380px;
  }

  .page-shell {
    padding-top: 6.75rem;
  }

  .edu-cards-grid,
  .certs-grid,
  .impact-grid,
  .project-preview-strip {
    grid-template-columns: 1fr;
  }
}
