:root {
  --bg: #101713;
  --surface: #17221c;
  --surface-2: #1c2922;
  --text: #f2f3ed;
  --muted: #aab5ac;
  --line: rgba(221, 234, 224, 0.14);
  --accent: #b6f39b;
  --ink: #101713;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --header-height: 78px;
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-editorial: 460ms;
  --duration-snappy: 280ms;
}

:root[data-theme="light"] {
  --bg: #edf0ea;
  --surface: #f8faf7;
  --surface-2: #e1e7df;
  --text: #172019;
  --muted: #526159;
  --line: rgba(23, 32, 25, 0.18);
  --accent: #2f6743;
  --ink: #f7f8f2;
}

* { box-sizing: border-box; }
.disable-transitions,
.disable-transitions *,
.disable-transitions *::before,
.disable-transitions *::after {
  transition: none !important;
}
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
html, body {
  overflow-x: clip;
  max-width: 100%;
}
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  transition: none;
}
html { background-color: var(--bg); }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.09'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: 
rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 10px 14px; background: var(--accent); 
color: var(--ink); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

/* ==========================================================================
   Executive Modern Motion System - Scroll Progress & Reveal Animations
   ========================================================================== */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #34d399, var(--accent));
  transform-origin: 0% 50%;
  transform: scaleX(0);
  will-change: transform;
  z-index: 12;
  pointer-events: none;
  box-shadow: 0 0 10px var(--accent);
}

:root[data-theme="light"] .scroll-progress-bar {
  background: linear-gradient(90deg, #234330, #34a853, #234330);
  box-shadow: 0 0 8px rgba(35, 67, 48, 0.4);
}

/* Scroll-Driven Reveal Cascade */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 550ms var(--ease-editorial),
              transform 550ms var(--ease-editorial);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Tactile Mobile Touch Physics (:active) */
@media (hover: none) and (pointer: coarse) {
  .hero-btn-primary:active,
  .hero-btn-resume:active,
  .cert-card:active,
  .channel-card:active,
  .featured-project:active,
  .writeup-card:active,
  .cert-filter-btn:active,
  .cert-btn-preview:active,
  .cert-btn-verify:active {
    transform: scale(0.97) !important;
    transition-duration: 90ms !important;
  }
}


.nav-shell, .footer-shell {
  width: min(1380px, calc(100% - 64px));
  margin-inline: auto;
}
.nav-shell { height: var(--header-height); display: grid; grid-template-columns: 1fr auto 44px; align-items: center; 
gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; 
letter-spacing: -.02em; }
.brand-mark { width: 11px; aspect-ratio: 1; border-radius: 50% 50% 50% 12%; background: var(--accent); transform: 
rotate(-30deg); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; transition: color 280ms var(--ease-editorial); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: 
var(--accent); transition: right 360ms var(--ease-editorial); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { right: 0; }
.theme-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); 
background: transparent; cursor: pointer; transition: transform 320ms var(--ease-editorial), border-color 280ms ease, background 280ms ease; }
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--accent); }
.theme-icon { display: block; font-size: 19px; transform: rotate(-35deg); }
.menu-toggle { display: none; }

/* ==========================================================================
   Editorial Executive Studio - Entrance & Breathing Keyframes
   ========================================================================== */
@keyframes editorialBeacon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 14px var(--accent);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.85);
    box-shadow: 0 0 4px var(--accent);
  }
}

@keyframes editorialRevealUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes editorialArchReveal {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero {
  width: min(1240px, calc(100% - 64px));
  min-height: min(calc(100dvh - var(--header-height)), 860px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 460px);
  align-items: center;
  gap: clamp(40px, 5vw, 84px);
  padding-block: clamp(48px, 6vh, 90px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 28px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  animation: editorialRevealUp 0.5s var(--ease-editorial) 0.05s both;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: editorialBeacon 2.8s var(--ease-editorial) infinite;
  flex-shrink: 0;
  display: inline-block;
}

.availability-text {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: inline-block;
}

:root[data-theme="light"] .availability {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(35, 67, 48, 0.25);
  box-shadow: 0 4px 14px -2px rgba(23, 32, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

:root[data-theme="light"] .availability-dot {
  background: #2f6743;
  box-shadow: 0 0 10px #2f6743;
}

:root[data-theme="light"] .availability-text {
  color: #172019;
}
.hero h1 {
  animation: editorialRevealUp 0.6s var(--ease-editorial) 0.12s both;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 5.8vw, 104px);
  line-height: .92;
  font-weight: 400;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}
.hero-lead {
  animation: editorialRevealUp 0.65s var(--ease-editorial) 0.20s both;
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
}
/* ==========================================================================
   Hero Action Buttons Redesign (Executive Prestige Standard)
   ========================================================================== */
.hero-actions {
  animation: editorialRevealUp 0.7s var(--ease-editorial) 0.28s both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

/* Base Pill Styling for Hero Buttons */
.hero-btn-primary,
.hero-btn-resume {
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 380ms var(--ease-editorial),
              box-shadow 380ms var(--ease-editorial),
              background 320ms ease,
              border-color 320ms ease,
              color 320ms ease,
              filter 320ms ease;
}

/* 1. Primary Action: Explore My Work */
.hero-btn-primary {
  background: var(--accent);
  color: #101713;
  border: 1px solid var(--accent);
  box-shadow:
    0 8px 24px -4px rgba(182, 243, 155, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hero-btn-primary .hero-btn-icon {
  flex-shrink: 0;
  transition: transform 320ms var(--ease-editorial);
}

.hero-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.04);
  box-shadow:
    0 18px 42px -6px rgba(182, 243, 155, 0.58),
    0 0 0 1px rgba(182, 243, 155, 0.45);
}

.hero-btn-primary:hover .hero-btn-icon {
  transform: translateX(5px);
}

.hero-btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 14px -2px rgba(182, 243, 155, 0.35);
}

/* Light Theme for Primary */
:root[data-theme="light"] .hero-btn-primary {
  background: #234330;
  color: #ffffff;
  border-color: #234330;
  box-shadow:
    0 8px 24px -4px rgba(35, 67, 48, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

:root[data-theme="light"] .hero-btn-primary:hover {
  background: #172d20;
  border-color: #172d20;
  box-shadow:
    0 16px 36px -6px rgba(35, 67, 48, 0.45),
    0 0 0 1px rgba(35, 67, 48, 0.3);
}

/* 2. Secondary Action: View Resume */
.hero-btn-resume {
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow:
    0 4px 16px -2px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-resume-icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 360ms var(--ease-editorial), color 300ms ease;
}

.hero-arrow {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  transition: transform 320ms var(--ease-editorial), color 300ms ease;
}

.hero-btn-resume:hover {
  transform: translateY(-4px);
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
  border-color: rgba(182, 243, 155, 0.45);
  box-shadow:
    0 16px 36px -8px rgba(0, 0, 0, 0.45),
    0 0 20px -4px rgba(182, 243, 155, 0.22);
  color: var(--text);
}

.hero-btn-resume:hover .hero-resume-icon {
  transform: scale(1.15) rotate(-5deg);
  color: var(--accent);
}

.hero-btn-resume:hover .hero-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

.hero-btn-resume:active {
  transform: translateY(0) scale(0.98);
}

/* Light Theme for Resume Button */
:root[data-theme="light"] .hero-btn-resume {
  background: rgba(23, 32, 25, 0.04);
  border-color: rgba(23, 32, 25, 0.16);
  color: var(--text);
  box-shadow: 0 4px 14px -2px rgba(23, 32, 25, 0.06);
}

:root[data-theme="light"] .hero-btn-resume:hover {
  background: rgba(23, 32, 25, 0.08);
  border-color: rgba(35, 67, 48, 0.45);
  box-shadow:
    0 12px 26px -6px rgba(23, 32, 25, 0.14),
    0 0 16px -4px rgba(35, 67, 48, 0.15);
}

:root[data-theme="light"] .hero-btn-resume:hover .hero-resume-icon {
  color: #234330;
}

:root[data-theme="light"] .hero-btn-resume:hover .hero-arrow {
  color: #234330;
}
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 
20px; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: 14px; transition: transform 180ms ease, 
background-color 180ms ease, border-color 180ms ease; }
.button:active { transform: translateY(1px) scale(.98); }
.button-primary { background: var(--accent); color: var(--ink); border: 1px solid var(--accent); }
.button-primary:hover { transform: translateY(-2px); filter: brightness(.96); }
.button-text { padding-inline: 0; min-height: 44px; border-bottom: 1px solid var(--line); border-radius: 0; }
.button-text:hover { border-color: var(--accent); }

.hero-profile {
  animation: editorialArchReveal 0.75s var(--ease-editorial) 0.18s both;
  position: relative;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  align-self: center;
}
.profile-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 440px;
  max-height: 580px;
  overflow: hidden;
  border-radius: 180px 180px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 32px 72px -16px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, .04);
  transition: transform 460ms var(--ease-editorial), box-shadow 460ms var(--ease-editorial);
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(.88) contrast(1.02);
  transition: transform 520ms var(--ease-editorial), filter 420ms ease;
}
.hero-profile:hover .profile-frame {
  box-shadow: 0 40px 84px -18px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hero-profile:hover .profile-frame img {
  transform: scale(1.025);
  filter: saturate(.94) contrast(1.04);
}
.profile-caption {
  position: absolute;
  left: -28px;
  bottom: 28px;
  width: min(240px, calc(100% - 20px));
  padding: 18px 22px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transition: transform 380ms var(--ease-editorial), box-shadow 380ms var(--ease-editorial);
}
.hero-profile:hover .profile-caption {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
}
.profile-caption strong, .profile-caption span { display: block; }
.profile-caption strong { font-size: 15px; font-weight: 700; color: var(--text); }
.profile-caption span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.section { width: min(1380px, calc(100% - 64px)); margin-inline: auto; padding-block: clamp(88px, 11vw, 150px); 
border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 90px 1fr; align-items: start; margin-bottom: 54px; }
.section-index { margin: 12px 0 0; color: var(--accent); font-size: 13px; font-family: ui-monospace, SFMono-Regular, 
Menlo, monospace; }
.section-heading h2 { max-width: 800px; margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 82px); 
line-height: .95; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 8vw, 110px); align-items: start; }
.about-lead { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.06; 
letter-spacing: -.025em; }
.about-copy { max-width: 560px; padding-left: 28px; border-left: 1px solid var(--line); }
.about-copy > p { margin: 0 0 28px; color: var(--muted); line-height: 1.75; }
.about-practice { margin: 0; }
.about-practice div { display: grid; grid-template-columns: 38px 1fr; align-items: baseline; min-height: 52px; 
border-top: 1px solid var(--line); }
.about-practice div:last-child { border-bottom: 1px solid var(--line); }
.about-practice dt { color: var(--accent); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.about-practice dd { margin: 0; padding-block: 16px; color: var(--text); font-size: 14px; }
.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 68px; border-top: 1px solid 
var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { min-height: 130px; display: flex; flex-direction: column; justify-content: center; padding: 20px 
28px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-family: var(--serif); font-size: 42px; line-height: 1; color: var(--accent); }
.proof-strip span { margin-top: 10px; color: var(--muted); font-size: 13px; }

.featured-project { position: relative; isolation: isolate; z-index: 1; display: grid; grid-template-columns: 
minmax(140px, 180px) 1fr; min-height: 380px; padding: clamp(26px, 3.5vw, 38px); overflow: hidden; background: 
var(--surface); border-left: 3px solid var(--accent); gap: 24px;
transition: transform 420ms var(--ease-editorial), box-shadow 420ms var(--ease-editorial), border-color 320ms ease; }
.featured-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.featured-project + .featured-project { margin-top: 18px; }
.project-meta { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding-right: 12px; 
color: var(--muted); font-size: 12px; }
.project-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-content h3, .project-row h3, .experience-card h3, .writeup-list h3 { margin: 0; font-family: var(--serif); 
font-weight: 400; letter-spacing: -.02em; }
.project-content h3 { max-width: 820px; font-size: clamp(36px, 4.4vw, 68px); line-height: .96; }
.project-content > p { margin: 20px 0 0; color: var(--muted); max-width: 680px; }
.tag-list, .lab-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li, .lab-list span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; font-size: 12px; 
color: var(--muted); }
.project-link { margin-top: 28px; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in 
srgb, var(--accent) 45%, transparent); font-weight: 700; font-size: 14px; }
.project-status {
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 999px;
  color: var(--accent);
  font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.flagship-project { border-left-color: #7ee6c4; }

.case-page {
  min-height: 100vh;
}
.case-hero {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(72px, 10vw, 130px) 54px;
}
.case-breadcrumb {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}
.case-breadcrumb a { color: var(--accent); text-decoration: none; }
.case-title {
  max-width: 960px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(58px, 8vw, 112px);
  line-height: .88;
  letter-spacing: -.055em;
  font-weight: 400;
  text-wrap: balance;
}
.case-subtitle {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}
.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.case-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  font-size: 12px;
}
.case-actions {
  width: min(1240px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px auto 0;
}
.case-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 34px clamp(88px, 10vw, 140px);
}
.case-section {
  padding-block: clamp(58px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.case-section-heading {
  max-width: 780px;
  margin: 0 0 34px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .96;
  font-weight: 400;
  letter-spacing: -.035em;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.summary-card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.summary-card strong {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 13px;
}
.summary-card p { margin: 0; color: var(--muted); }
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.architecture-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.architecture-grid strong { display: block; margin-bottom: 12px; }
.architecture-grid p { margin: 0; color: var(--muted); }
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metrics-row div {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border-right: 1px solid var(--line);
}
.metrics-row div:last-child { border-right: 0; }
.metrics-row strong {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}
.metrics-row span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.math-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  min-width: 0;
}
.math-grid article {
  min-width: 0;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.math-grid strong { display: block; margin-bottom: 12px; }
.math-grid p { margin: 0; color: var(--muted); line-height: 1.7; }
.math-grid code { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.math-equation {
  min-height: 96px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  margin: 16px 0;
  padding: 18px 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  text-align: center;
}
.math-equation math { color: var(--text); font-family: "Times New Roman", serif; font-size: 18px; }
.pipeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pipeline-step {
  min-height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px;
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.pipeline-step:last-child { border-right: 0; }
.pipeline-step:not(:last-child)::after {
  content: "�'";
  position: absolute;
  right: -7px;
  z-index: 2;
  color: var(--accent);
  background: var(--bg);
}
.coverage-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.coverage-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.coverage-table th,
.coverage-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.coverage-table th {
  color: var(--muted);
  font-size: 12px;
}
.decision-list,
.quality-list,
.limitation-list,
.skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.decision-list li,
.quality-list li,
.limitation-list li,
.skills-list li {
  position: relative;
  padding: 16px 20px 16px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.decision-list li::before,
.quality-list li::before,
.limitation-list li::before,
.skills-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.case-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.case-story {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.case-story h3 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
}
.case-story p { margin: 0 0 12px; color: var(--muted); }
.case-story strong { color: var(--text); }
.case-detail {
  border-top: 1px solid var(--line);
}
.case-detail summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}
.case-detail p { margin-top: 0; color: var(--muted); }
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.flow-grid article {
  min-height: 210px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-grid span { display: block; margin-bottom: 24px; color: var(--accent); font-size: 12px; }
.flow-grid strong { display: block; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.flow-grid p { margin: 12px 0 0; color: var(--muted); }
.ai-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.case-lead { max-width: 650px; margin: 0 0 24px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.ai-steps { margin: 0; padding-left: 22px; color: var(--muted); }
.ai-steps li { margin-bottom: 12px; padding-left: 6px; }
.ai-steps strong { color: var(--text); }
.chatml-block {
  min-height: 260px;
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.code-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.code-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
}
.code-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.code-block {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre;
}
.decisions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.decisions-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.decisions-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 15px;
}
.decisions-grid p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.decisions-grid span {
  display: block;
  color: var(--accent);
  font-size: 12px;
}
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.engineering-card {
  min-height: 140px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.engineering-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 14px;
}
.engineering-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.case-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(38px, 6vw, 64px);
  background: var(--accent);
  color: var(--ink);
}
.case-final h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  font-weight: 400;
}
.case-final .button-primary { background: var(--ink); color: var(--text); border-color: var(--ink); }
.case-final-links { display: flex; flex-wrap: wrap; gap: 16px; }
.project-row { position: relative; isolation: isolate; z-index: 1; display: grid; grid-template-columns: 220px 1fr; 
gap: 0; padding: 48px 38px 30px; border-bottom: 1px solid var(--line); }
.project-row h3 { font-size: 38px; }
.project-row p { max-width: 620px; color: var(--muted); margin-bottom: 0; }

.experience-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
.experience-card { min-height: 360px; display: flex; flex-direction: column; padding: 34px; background: 
var(--surface); border-top: 1px solid var(--line); }
.experience-card.featured-experience { background: var(--surface-2); }
.experience-top { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }
.experience-top strong { color: var(--accent); font-weight: 600; }
.experience-card h3 { margin-top: 50px; font-size: 42px; line-height: 1; }
.experience-card p { max-width: 650px; color: var(--muted); }
.experience-card .project-link { margin-top: auto; }
.lab-list { margin: 12px 0 24px; }

.lab-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.lab-rank-panel {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  padding: 26px;
  color: #f4f6ef;
  background: #183c2b;
}
.cyber-panel { background: #25233c; }
.redteam-panel { background: #401a1d; }
.redteam-panel .rank-meter span { width: 74%; background: #ff6b70; box-shadow: 0 0 16px #ff6b70; }
.lab-rank-panel::after {
  content: "";
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  right: -70px;
  bottom: -110px;
  border: 28px solid rgba(182, 243, 155, .12);
  border-radius: 50%;
}
.cyber-panel::after { border-color: rgba(146, 165, 255, .14); }
.rank-panel-head { display: flex; justify-content: space-between; align-items: center; }
.rank-panel-head a { color: rgba(244, 246, 239, .72); font-size: 12px; text-decoration: none; }
.platform-name { font-weight: 700; font-size: 13px; }
.rank-number { display: block; margin-top: 36px; font-family: var(--serif); font-size: 76px; line-height: .8; }
.lab-rank-panel p { margin: 12px 0 24px; color: rgba(244, 246, 239, .68); font-size: 13px; }
.rank-meter { position: absolute; left: 26px; right: 26px; bottom: 22px; height: 3px; background: 
rgba(255,255,255,.12); }
.rank-meter span { display: block; width: 68%; height: 100%; background: var(--accent); box-shadow: 0 0 16px 
var(--accent); }
.tryhack-panel .rank-meter span { width: 82%; }
.cyber-panel .rank-meter span { width: 82%; background: #aeb8ff; box-shadow: 0 0 16px #aeb8ff; }
.lab-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.lab-tabs { display: flex; align-items: center; gap: 4px; }
.lab-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.lab-tab span { margin-left: 4px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; 
font-size: 11px; }
.lab-tab.active { border-color: var(--line); color: var(--text); background: var(--surface); }
.lab-search input {
  width: 210px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface);
}
.lab-search input::placeholder { color: var(--muted); }
.lab-grid {
  display: block;
  min-height: 480px;
}

/* Offscreen rendering optimization for mobile & desktop */
#experience,
#proficiencies,
#offensive-toolkit,
#certifications {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.lab-group {
  margin-top: 54px;
  padding: 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 38%, transparent);
}
.lab-group-walkthrough { border-top: 3px solid #70c99b; }
.lab-group-challenge { border-top: 3px solid #e7b86a; }
.lab-group-cyber { border-top: 3px solid #9aa8ff; }
.lab-group-red-team {
  position: relative;
  border: 1px solid rgba(255, 107, 112, .22);
  border-top: 4px solid #c9434a;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 107, 112, .09), transparent 24rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 90%, #c9434a 10%), var(--bg));
}
.lab-group-red-team::before {
  content: "OFFENSIVE SECURITY / AUTHORIZED LABS";
  position: absolute;
  right: 24px;
  top: 24px;
  color: rgba(255, 107, 112, .78);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
.lab-group-red-team .lab-group-head { min-height: 72px; border-top-color: rgba(255, 107, 112, .18); }
.lab-group-red-team .lab-group-head span { color: #ff777c; border-color: rgba(255, 107, 112, .32); }
.lab-group-red-team .lab-group-head h3 { font-size: 34px; }
.lab-group-red-team .lab-collection {
  grid-template-columns: repeat(3, 1fr);
}
.red-team-intro {
  border-color: rgba(255, 107, 112, .18);
  background:
    linear-gradient(90deg, rgba(255, 107, 112, .07), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 107, 112, .035) 31px 32px),
    color-mix(in srgb, var(--surface) 82%, transparent);
}
.red-team-intro .cyber-intro-copy { border-right-color: rgba(255, 107, 112, .14); }
.red-team-intro .cyber-kicker { color: #ff777c; }
.red-team-intro .cyber-intro-metrics div { border-right-color: rgba(255, 107, 112, .14); }
.lab-card.red-team-card {
  min-height: 190px;
  border-color: rgba(255, 107, 112, .28);
  background:
    linear-gradient(145deg, rgba(255, 107, 112, .09), transparent 48%),
    linear-gradient(145deg, #32191c, #1b1113);
  box-shadow: inset 0 -32px 52px rgba(255, 107, 112, .035);
}
.lab-card.red-team-card .cyber-card-category,
.lab-card.red-team-card .cyber-case-code,
.lab-card.red-team-card .cyber-lab-link { color: #ff9a9e; }
.lab-card.red-team-card .cyber-card-status::before { background: #ff777c; box-shadow: 0 0 8px rgba(255, 119, 124, .7); 
}
.lab-card.red-team-card h4 { letter-spacing: -.015em; }
.lab-group:first-child { margin-top: 12px; }
.lab-group-head {
  min-height: 54px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
}
.lab-group-head span {
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font: 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lab-group-head h3 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.lab-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}
.lab-group-walkthrough .lab-collection,
.lab-group-challenge .lab-collection,
.lab-group-cyber .lab-collection,
.lab-group-red-team .lab-collection {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.lab-card.lab-walkthrough {
  min-height: 150px;
  justify-content: flex-end;
  border-radius: 8px;
  border: 1px solid rgba(121, 201, 160, .22);
  background: linear-gradient(145deg, color-mix(in srgb, #79c9a0 9%, var(--surface)), var(--surface));
}
.lab-card.lab-challenge {
  min-height: 210px;
  padding: 20px 22px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #2c281f, #453829);
  color: #fff5d7;
  box-shadow: inset 0 1px rgba(255, 245, 215, .08);
}
:root[data-theme="light"] .lab-card.lab-challenge { background: linear-gradient(135deg, #eee4c9, #dbc99e); color: 
#302a1d; }
.lab-card.lab-challenge::before {
  width: 116px;
  top: -64px;
  right: -32px;
  border-width: 18px;
  border-color: rgba(238, 188, 92, .28);
}
.lab-card.lab-challenge strong { max-width: 220px; font-size: 30px; }
.lab-card.lab-challenge .lab-platform { color: rgba(255, 245, 215, .62); }
:root[data-theme="light"] .lab-card.lab-challenge .lab-platform { color: #716a58; }
.lab-card.lab-cyberdefenders {
  min-height: 168px;
  border: 1px solid rgba(174, 184, 255, .18);
  border-radius: 6px;
  background: linear-gradient(145deg, #292a48, #171827);
  box-shadow: inset 0 -30px 50px rgba(125, 139, 236, .04);
}
:root[data-theme="light"] .lab-card.lab-cyberdefenders {
  background: linear-gradient(145deg, #dddff2, #cfd2e8);
  border-color: rgba(75, 82, 139, .24);
}
.lab-card.lab-cyberdefenders .lab-platform { color: #b9bfff; }
:root[data-theme="light"] .lab-card.lab-cyberdefenders .lab-platform { color: #555b9b; }
.lab-card.lab-cyberdefenders strong { max-width: 210px; font-family: var(--sans); font-size: 17px; line-height: 1.15; 
font-weight: 700; }
.lab-card.lab-cyberdefenders::before {
  border-color: rgba(174, 184, 255, .16);
}
.lab-group-cyber {
  position: relative;
  margin-top: 68px;
  padding: 22px;
  border: 1px solid rgba(93, 222, 181, .22);
  border-top: 4px solid #5ddeb5;
  background:
    radial-gradient(circle at 92% 12%, rgba(93, 222, 181, .09), transparent 22rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, #5ddeb5 8%), var(--bg));
}
.lab-group-cyber::before {
  content: "BLUE TEAM / DFIR";
  position: absolute;
  right: 24px;
  top: 24px;
  color: rgba(93, 222, 181, .7);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.lab-group-cyber .lab-group-head {
  min-height: 72px;
  border-top-color: rgba(93, 222, 181, .18);
}
.lab-group-cyber .lab-group-head span { color: #5ddeb5; border-color: rgba(93, 222, 181, .28); }
.lab-group-cyber .lab-group-head h3 { font-size: 34px; }
.cyber-lab-intro {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: stretch;
  margin-bottom: 18px;
  border: 1px solid rgba(93, 222, 181, .16);
  background:
    linear-gradient(90deg, rgba(93, 222, 181, .07), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(93, 222, 181, .035) 31px 32px),
    color-mix(in srgb, var(--surface) 82%, transparent);
}
.cyber-intro-copy { padding: clamp(20px, 2.5vw, 30px); border-right: 1px solid rgba(93, 222, 181, .14); }
.cyber-kicker {
  margin: 0 0 12px;
  color: #5ddeb5;
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cyber-intro-copy h4 {
  max-width: 650px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: .98;
  letter-spacing: -.025em;
}
.cyber-intro-copy > p:last-child { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.cyber-intro-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: center; }
.cyber-intro-metrics div { min-height: 96px; display: flex; flex-direction: column; justify-content: center; padding: 
clamp(10px, 1.5vw, 18px); border-right: 1px solid rgba(93, 222, 181, .14); }
.cyber-intro-metrics div:last-child { border-right: 0; }
.cyber-intro-metrics strong { color: #7ee6c4; font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); 
line-height: 1; }
.cyber-intro-metrics span { margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; 
letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lab-card.lab-cyberdefenders {
  min-height: 190px;
  padding: 20px;
  border-radius: 10px;
  border-color: rgba(93, 222, 181, .16);
  background:
    linear-gradient(135deg, rgba(93, 222, 181, .09), transparent 38%),
    linear-gradient(145deg, #172329, #11191d);
  isolation: isolate;
}
:root[data-theme="light"] .lab-card.lab-cyberdefenders {
  background:
    linear-gradient(135deg, rgba(46, 139, 112, .12), transparent 38%),
    linear-gradient(145deg, #e1ede7, #cfded7);
  border-color: rgba(46, 139, 112, .24);
}
.lab-card.lab-cyberdefenders::before {
  width: 118px;
  right: -74px;
  top: -82px;
  border-width: 1px;
  border-radius: 0;
  border-color: rgba(93, 222, 181, .28);
  box-shadow: 22px 22px 0 rgba(93, 222, 181, .035), 44px 44px 0 rgba(93, 222, 181, .025);
  transform: rotate(45deg);
}
.lab-card.lab-cyberdefenders::after {
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 94%, rgba(93, 222, 181, .14) 94% 100%),
    linear-gradient(rgba(93, 222, 181, .055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 18px;
}
.lab-card.lab-cyberdefenders .lab-platform { color: #7ee6c4; letter-spacing: .08em; }
.lab-card.lab-cyberdefenders .lab-code { top: 43px; right: 20px; color: rgba(126, 230, 196, .72); }
.lab-card.lab-cyberdefenders strong {
  max-width: 240px;
  padding-right: 34px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 400;
}
.lab-card.lab-cyberdefenders .lab-status { color: rgba(215, 247, 235, .68); }
.lab-card.lab-cyberdefenders .lab-status i { background: #5ddeb5; box-shadow: 0 0 14px rgba(93, 222, 181, .75); }
.lab-card.lab-cyberdefenders:hover {
  border-color: rgba(93, 222, 181, .72);
  background-color: transparent;
  box-shadow: 0 18px 42px rgba(4, 32, 26, .36), inset 0 0 0 1px rgba(93, 222, 181, .08);
}
.lab-card.lab-cyberdefenders .lab-arrow { color: #7ee6c4; }
.lab-card.lab-cyberdefenders {
  min-height: 260px;
  justify-content: flex-start;
  padding: 22px;
  border-radius: 2px;
  border-color: rgba(93, 222, 181, .18);
  background:
    linear-gradient(135deg, rgba(93, 222, 181, .07), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(153, 222, 200, .025) 25px 26px),
    #111b1e;
  box-shadow: inset 0 -1px rgba(93, 222, 181, .12);
}
:root[data-theme="light"] .lab-card.lab-cyberdefenders {
  background:
    linear-gradient(135deg, rgba(46, 139, 112, .08), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(46, 139, 112, .04) 25px 26px),
    #dfeae5;
}
.lab-card.lab-cyberdefenders::before {
  width: 150px;
  height: 150px;
  right: -106px;
  top: -102px;
  border: 1px solid rgba(126, 230, 196, .3);
  border-radius: 50%;
  transform: none;
  box-shadow: 0 0 0 18px rgba(93, 222, 181, .025), 0 0 0 36px rgba(93, 222, 181, .018);
}
.lab-card.lab-cyberdefenders::after { background: none; }
.cyber-card-top { display: flex; justify-content: space-between; align-items: center; }
.cyber-case-code { color: #7ee6c4; font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 
.08em; }
.cyber-card-status {
  color: rgba(215, 247, 235, .62);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.cyber-card-status::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; 
border-radius: 50%; background: #5ddeb5; box-shadow: 0 0 8px rgba(93, 222, 181, .8); }
.cyber-card-category {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 34px;
  color: #9cdac4;
  font-size: 11px;
  font-weight: 700;
}
.cyber-card-category span { width: 18px; height: 2px; background: #5ddeb5; }
.lab-card.lab-cyberdefenders h4 {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.02;
  font-weight: 400;
}
.lab-card.lab-cyberdefenders p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.cyber-lab-link {
  position: relative;
  z-index: 2;
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid rgba(93, 222, 181, .32);
  border-radius: 2px;
  color: #7ee6c4;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.cyber-lab-link span { font-size: 14px; }
.cyber-lab-link:hover { background: rgba(93, 222, 181, .09); border-color: #5ddeb5; transform: translateY(-2px); }
.lab-card.lab-cyberdefenders:hover { border-color: rgba(126, 230, 196, .6); box-shadow: 0 20px 42px rgba(4, 28, 24, 
.4), inset 0 -1px rgba(93, 222, 181, .2); }
.cyber-explore-more {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 20px;
  border: 1px solid rgba(93, 222, 181, .28);
  border-radius: 2px;
  color: #7ee6c4;
  background: rgba(93, 222, 181, .045);
  cursor: pointer;
  font-weight: 700;
}
.cyber-explore-more b { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(93, 222, 
181, .32); font-size: 18px; font-weight: 400; }

.lab-group-walkthrough,
.lab-group-challenge {
  position: relative;
  margin-top: 68px;
  padding: 22px;
  border: 1px solid rgba(93, 222, 181, .18);
  border-top: 4px solid #5ddeb5;
  background:
    radial-gradient(circle at 92% 12%, rgba(93, 222, 181, .07), transparent 22rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, #5ddeb5 8%), var(--bg));
}
.lab-group-challenge {
  border-top-color: #b9a56f;
  border-color: rgba(185, 165, 111, .22);
  background:
    radial-gradient(circle at 92% 12%, rgba(185, 165, 111, .08), transparent 22rem),
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, #b9a56f 8%), var(--bg));
}
.lab-group-walkthrough::before,
.lab-group-challenge::before {
  position: absolute;
  right: 24px;
  top: 24px;
  color: rgba(93, 222, 181, .68);
  font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.lab-group-walkthrough::before { content: "TRYHACKME / LEARNING"; }
.lab-group-challenge::before { content: "TRYHACKME / SCENARIOS"; color: rgba(185, 165, 111, .8); }
.lab-group-walkthrough .lab-group-head,
.lab-group-challenge .lab-group-head { min-height: 72px; }
.lab-group-walkthrough .lab-group-head h3,
.lab-group-challenge .lab-group-head h3 { font-size: 34px; }
.lab-group-walkthrough .lab-group-head span { color: #5ddeb5; border-color: rgba(93, 222, 181, .28); }
.lab-group-challenge .lab-group-head span { color: #d0bd82; border-color: rgba(185, 165, 111, .32); }
.thm-lab-intro {
  border-color: rgba(93, 222, 181, .16);
  background:
    linear-gradient(90deg, rgba(93, 222, 181, .065), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(93, 222, 181, .035) 31px 32px),
    color-mix(in srgb, var(--surface) 82%, transparent);
}
.lab-group-challenge .thm-lab-intro {
  border-color: rgba(185, 165, 111, .18);
  background:
    linear-gradient(90deg, rgba(185, 165, 111, .08), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(185, 165, 111, .035) 31px 32px),
    color-mix(in srgb, var(--surface) 82%, transparent);
}
.lab-card.thm-walkthrough,
.lab-card.thm-challenge {
  min-height: 260px;
  justify-content: flex-start;
  padding: 22px;
  border-radius: 2px;
  border-color: rgba(93, 222, 181, .18);
  background:
    linear-gradient(135deg, rgba(93, 222, 181, .07), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(153, 222, 200, .025) 25px 26px),
    #111b1e;
}
.lab-card.thm-challenge {
  border-color: rgba(185, 165, 111, .22);
  background:
    linear-gradient(135deg, rgba(185, 165, 111, .09), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(185, 165, 111, .025) 25px 26px),
    #191917;
}
:root[data-theme="light"] .lab-card.thm-walkthrough,
:root[data-theme="light"] .lab-card.thm-challenge {
  background:
    linear-gradient(135deg, rgba(46, 139, 112, .08), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(46, 139, 112, .04) 25px 26px),
    #dfeae5;
}
.lab-card.thm-challenge::before { border-color: rgba(185, 165, 111, .3); }
.lab-card.thm-challenge .cyber-case-code,
.lab-card.thm-challenge .cyber-card-category,
.lab-card.thm-challenge .cyber-lab-link { color: #d0bd82; }
.lab-card.thm-challenge .cyber-card-category span { background: #b9a56f; }
.lab-card.thm-challenge .cyber-card-status::before { background: #b9a56f; box-shadow: 0 0 8px rgba(185, 165, 111, 
.65); }
.lab-card.thm-challenge .cyber-lab-link { border-color: rgba(185, 165, 111, .32); }
.lab-card.thm-challenge .cyber-lab-link:hover { background: rgba(185, 165, 111, .09); border-color: #b9a56f; }
.lab-card {
  position: relative;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: transform 380ms var(--ease-editorial), border-color 300ms ease, background 300ms ease, box-shadow 380ms var(--ease-editorial);
}
.lab-card::before {
  content: "";
  position: absolute;
  width: 70px;
  aspect-ratio: 1;
  right: -18px;
  top: -38px;
  border-radius: 50%;
  border: 12px solid color-mix(in srgb, var(--accent) 12%, transparent);
}
.lab-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 72%, color-mix(in srgb, var(--accent) 6%, transparent) 72% 100%);
}
.lab-card:hover { transform: translateY(-5px); border-color: var(--accent); background-color: var(--surface-2); 
box-shadow: 0 16px 32px color-mix(in srgb, var(--bg) 78%, transparent); }
.lab-card[data-platform="cyberdefenders"]::before { border-color: rgba(174, 184, 255, .14); }
.lab-card .lab-platform {
  position: absolute;
  top: 14px;
  left: 18px;
  color: var(--muted);
  font-size: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.lab-card strong { position: relative; z-index: 1; max-width: 260px; font-family: var(--serif); font-size: 21px; 
line-height: 1.05; font-weight: 400; }
.lab-code { position: absolute; right: 16px; top: 14px; color: var(--muted); font: 700 9px ui-monospace, 
SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.lab-status { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; 
color: var(--muted); font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; 
letter-spacing: .08em; }
.lab-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 
color-mix(in srgb, var(--accent) 70%, transparent); }
.lab-card .lab-arrow { position: absolute; right: 14px; bottom: 14px; color: var(--accent); opacity: 0; transform: 
translate(-4px, 4px); transition: opacity 180ms ease, transform 180ms ease; }
.lab-card:hover .lab-arrow { opacity: 1; transform: translate(0, 0); }
.lab-empty { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line); color: var(--muted); text-align: 
center; }

.investigation-intro {
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) minmax(130px, 170px);
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: 18px;
  padding: clamp(24px, 3vw, 38px) clamp(20px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 5px;
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 24%),
    linear-gradient(135deg, var(--surface), transparent);
}
.investigation-intro > p {
  align-self: start;
  margin: 4px 0 0;
  color: var(--accent);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.investigation-intro h3 { max-width: 700px; margin: 0; font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); 
line-height: .95; font-weight: 400; letter-spacing: -.035em; }
.investigation-intro h3 em { color: var(--accent); font-weight: 400; }
.investigation-intro div > p { max-width: 650px; margin: 18px 0 0; color: var(--muted); }
.investigation-intro > strong { justify-self: end; width: 170px; min-height: 118px; display: flex; flex-direction: 
column; justify-content: center; border-left: 1px solid var(--line); padding-left: 28px; color: var(--muted); 
font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.investigation-intro > strong span { color: var(--accent); font: 400 54px/.9 var(--serif); letter-spacing: -.04em; }
.writeup-list { display: grid; gap: 12px; }
.writeup-card {
  --case-accent: var(--accent);
  position: relative;
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  transition: transform 420ms var(--ease-editorial), border-color 320ms ease, box-shadow 420ms var(--ease-editorial);
}
.writeup-card::before { content: ""; position: absolute; left: 0; top: 0; width: 4px; height: 100%; background: 
var(--case-accent); }
.writeup-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -150px; bottom: -170px; 
border-radius: 50%; border: 28px solid color-mix(in srgb, var(--case-accent) 7%, transparent); pointer-events: none; }
.writeup-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--case-accent) 55%, var(--line));
  box-shadow: 0 20px 44px color-mix(in srgb, var(--bg) 72%, transparent);
  background:
    radial-gradient(circle 180px at var(--pointer-x, 80%) var(--pointer-y, 30%), color-mix(in srgb, var(--case-accent) 
10%, transparent), transparent 72%),
    var(--surface);
}
.writeup-memory { --case-accent: #7cb9b5; }
.writeup-cyber { --case-accent: #d9a85e; }
.writeup-network { --case-accent: #8da2e7; }
.writeup-number { display: flex; flex-direction: column; justify-content: space-between; padding: 24px 22px; 
border-right: 1px solid var(--line); }
.writeup-number span { color: var(--case-accent); font: 400 50px/1 var(--serif); }
.writeup-number small { max-width: 85px; color: var(--muted); font: 700 9px/1.5 ui-monospace, monospace; 
text-transform: uppercase; letter-spacing: .09em; }
.writeup-main { padding: 28px 36px 24px; }
.writeup-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.writeup-tags span { min-height: 24px; display: inline-flex; align-items: center; padding-inline: 8px; border: 1px 
solid color-mix(in srgb, var(--case-accent) 28%, var(--line)); border-radius: 3px; color: var(--case-accent); font: 
700 9px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .06em; }
.writeup-card h3 { position: relative; z-index: 1; max-width: 620px; margin: 0; font-family: var(--serif); font-size: 
clamp(32px, 4vw, 48px); line-height: 1; font-weight: 400; }
.writeup-main > p { max-width: 640px; margin: 16px 0 18px; color: var(--muted); font-size: 14px; }
.writeup-actions { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text); font-size: 11px; }
.writeup-actions span::before { content: "�-�"; margin-right: 7px; color: var(--case-accent); font-size: 7px; }
.writeup-card > a { position: relative; z-index: 2; align-self: center; justify-self: end; min-width: 150px; min-height: 
64px; display: flex; align-items: center; justify-content: space-between; margin: 20px; padding-inline: 16px 12px; 
border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; 
font-size: 12px; font-weight: 700; transition: border-color 280ms var(--ease-editorial), color 280ms var(--ease-editorial); }
.writeup-card > a b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: 
var(--surface); background: var(--case-accent); font-size: 16px; transition: transform 320ms var(--ease-editorial); }
.writeup-card > a:hover { border-color: var(--case-accent); color: var(--case-accent); }
.writeup-card > a:hover b { transform: translate(2px, -2px) rotate(0deg); }

.tool-explorer {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.defensive-toolkit-intro {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 38%),
    var(--surface);
}
.defensive-toolkit-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.defensive-toolkit-intro h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 400;
}
.defensive-toolkit-status {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.defensive-toolkit-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 80%, transparent);
}
.defensive-toolkit-status strong,
.defensive-toolkit-status small { display: block; }
.defensive-toolkit-status strong { font-size: 12px; }
.defensive-toolkit-status small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.tool-explorer-head {
  min-height: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}
.tool-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.tool-filter {
  min-height: 38px;
  flex: 0 0 auto;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.tool-filter:hover { color: var(--text); }
.tool-filter.active { border-color: var(--line); color: var(--text); background: var(--surface); }
.tool-search input {
  width: 190px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding-inline: 12px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}
.tool-search input:focus { border-color: var(--accent); }
.tool-workspace {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, .62fr);
}
.tool-list {
  max-height: 520px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  scrollbar-width: thin;
}
.tool-row {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease;
}
.tool-row:hover { background: var(--surface); }
.tool-row.active {
  background: var(--surface-2);
  box-shadow: inset 3px 0 var(--accent);
}
.tool-row-index {
  color: var(--accent);
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.tool-row-copy strong, .tool-row-copy small { display: block; }
.tool-row-copy strong { font-size: 14px; }
.tool-row-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; 
letter-spacing: .07em; }
.tool-row-level { color: var(--muted); font: 700 10px ui-monospace, monospace; }
.tool-detail {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 68px);
  background: radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 24%), 
var(--surface);
}
.tool-detail::before { display: none; }
.tool-detail-category { color: var(--accent); font: 700 11px ui-monospace, monospace; text-transform: uppercase; 
letter-spacing: .12em; }
.tool-detail h3 { position: relative; z-index: 1; max-width: 560px; margin: 18px 0 14px; font-family: var(--serif); 
font-size: clamp(46px, 6vw, 78px); line-height: .92; font-weight: 400; letter-spacing: -.035em; }
.tool-detail-description { position: relative; z-index: 1; max-width: 590px; margin: 0; color: var(--muted); }
.tool-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 
36px; }
.tool-metric { min-height: 110px; padding: 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, 
var(--bg) 24%, transparent); }
.tool-metric-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.tool-meter { height: 5px; margin-top: 18px; overflow: hidden; border-radius: 4px; background: var(--line); }
.tool-meter span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, 
var(--accent), color-mix(in srgb, var(--accent) 35%, white)); transition: width 520ms var(--ease-editorial); }
.tool-use { margin-top: 16px; color: var(--text); font-size: 12px; line-height: 1.7; }

.red-toolkit-shell {
  border-top: 3px solid #c9434a;
  border-bottom: 1px solid rgba(255, 107, 112, .22);
  background:
    linear-gradient(135deg, rgba(201, 67, 74, .08), transparent 38%),
    var(--surface);
}
.red-toolkit-intro {
  min-height: 220px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 107, 112, .18);
}
.red-toolkit-kicker {
  margin: 0 0 12px;
  color: #ff777c;
  font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.red-toolkit-intro h3 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 62px);
  line-height: .96;
  letter-spacing: -.03em;
  font-weight: 400;
}
.red-toolkit-status {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 107, 112, .18);
  background: rgba(201, 67, 74, .05);
}
.red-toolkit-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff777c; box-shadow: 0 0 14px 
rgba(255, 119, 124, .8); }
.red-toolkit-status strong, .red-toolkit-status small { display: block; }
.red-toolkit-status strong { font-size: 12px; }
.red-toolkit-status small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.red-toolkit-controls {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-inline: 18px;
  border-bottom: 1px solid rgba(255, 107, 112, .18);
}
.red-tool-filters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.red-tool-filter {
  min-height: 38px;
  flex: 0 0 auto;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.red-tool-filter.active { border-color: rgba(255, 107, 112, .24); color: #ff999d; background: rgba(201, 67, 74, .08); }
.red-tool-search input {
  width: 210px;
  height: 42px;
  border: 1px solid rgba(255, 107, 112, .18);
  border-radius: 3px;
  padding-inline: 12px;
  color: var(--text);
  background: var(--bg);
}
.red-tool-search input:focus { border-color: #ff777c; outline: none; }
.red-tool-workspace {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(280px, .38fr) minmax(0, .62fr);
}
.red-tool-list {
  max-height: 520px;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 107, 112, .18);
  scrollbar-width: thin;
}
.red-tool-row {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid rgba(255, 107, 112, .12);
  color: var(--text);
  text-align: left;
  background: transparent;
  cursor: pointer;
}
.red-tool-row:hover { background: rgba(201, 67, 74, .06); }
.red-tool-row.active { background: rgba(201, 67, 74, .11); box-shadow: inset 3px 0 #ff777c; }
.red-tool-row > span:first-child { color: #ff777c; font: 700 10px ui-monospace, monospace; }
.red-tool-row strong, .red-tool-row small { display: block; }
.red-tool-row strong { font-size: 14px; }
.red-tool-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.red-tool-row b { color: var(--muted); font: 700 10px ui-monospace, monospace; }
.red-tool-detail {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 107, 112, .09), transparent 25%),
    var(--surface);
}
.red-tool-detail::before { display: none; }
.red-tool-detail-main { position: relative; z-index: 1; }
.red-tool-detail-category { color: #ff777c; font: 700 11px ui-monospace, monospace; text-transform: uppercase; 
letter-spacing: .1em; }
.red-tool-detail h3 { max-width: 620px; margin: 18px 0 14px; font-family: var(--serif); font-size: clamp(46px, 6vw, 
76px); line-height: .92; letter-spacing: -.035em; font-weight: 400; }
.red-tool-detail-main p { max-width: 600px; margin: 0; color: var(--muted); }
.red-tool-metrics { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; 
margin-top: 36px; }
.red-tool-metrics > div { min-height: 110px; padding: 18px; border-top: 1px solid rgba(255, 107, 112, .18); 
background: color-mix(in srgb, var(--bg) 24%, transparent); }
.red-tool-metrics span { display: block; color: var(--muted); font-size: 11px; }
.red-tool-metrics strong { display: block; margin-top: 14px; font-size: 16px; }
.red-tool-meter { height: 5px; margin-top: 18px; overflow: hidden; background: rgba(255, 107, 112, .12); }
.red-tool-meter span { height: 100%; display: block; background: linear-gradient(90deg, #c9434a, #ff777c); }

/* ==========================================================================
   Credentials & Certifications Redesign (Executive Prestige Standard)
   ========================================================================== */

/* Section Intro & Metrics Strip */
.cert-section {
  position: relative;
}

.cert-intro-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.cert-lead {
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

.cert-highlights-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cert-metric-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  border: 1px solid var(--line);
}

.cert-metric-value {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.cert-metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

/* Category Filter Tabs Bar */
.cert-filters-wrap {
  margin-bottom: 28px;
}

.cert-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cert-filters::-webkit-scrollbar {
  display: none;
}

.cert-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 45%, transparent);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s ease;
}

.cert-filter-btn:hover {
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}

.cert-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #101713;
  font-weight: 600;
  box-shadow: 0 4px 18px -4px rgba(182, 243, 155, 0.4);
}

.cert-filter-btn.active .cert-filter-count {
  background: rgba(16, 23, 19, 0.2);
  color: #101713;
}

:root[data-theme="light"] .cert-filter-btn.active {
  background: #234330;
  border-color: #234330;
  color: #ffffff;
  box-shadow: 0 4px 18px -4px rgba(35, 67, 48, 0.35);
}

:root[data-theme="light"] .cert-filter-btn.active .cert-filter-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Credential Grid & Cards
   -------------------------------------------------------------------------- */
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

/* Provider Color System */
.cert-card[data-provider="tryhackme"] { --provider: #d73b4c; --provider-2: #ff4e63; }
.cert-card[data-provider="cip"]        { --provider: #00b4d8; --provider-2: #0077b6; }
.cert-card[data-provider="icsi"]       { --provider: #e21b2f; --provider-2: #b31221; }
.cert-card[data-provider="cisco"]      { --provider: #049fd9; --provider-2: #005073; }
.cert-card[data-provider="ibm"]        { --provider: #0f62fe; --provider-2: #4589ff; }
.cert-card[data-provider="maryland"]   { --provider: #e21833; --provider-2: #ffd200; }
.cert-card[data-provider="isc2"]       { --provider: #29a33b; --provider-2: #1d6b2b; }
/* Google Official 4-Color Branding System */
.cert-card[data-provider="google"],
.cert-card[data-provider="google-cloud"] {
  --provider: #4285f4;
  --provider-2: #34a853;
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  background:
    radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.16) 0%, transparent 48%),
    radial-gradient(circle at 90% 100%, rgba(52, 168, 83, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(251, 188, 5, 0.08) 0%, transparent 38%),
    radial-gradient(circle at 0% 0%, rgba(234, 67, 53, 0.08) 0%, transparent 36%),
    var(--surface);
  border: 1px solid rgba(66, 133, 244, 0.32);
}

/* 4-Color Google Refraction Bar */
.cert-card[data-provider="google"] .cert-card-refract,
.cert-card[data-provider="google-cloud"] .cert-card-refract {
  background: linear-gradient(90deg, 
    #4285f4 0% 25%, 
    #ea4335 25% 50%, 
    #fbbc05 50% 75%, 
    #34a853 75% 100%
  );
  height: 4px;
}

.cert-card[data-provider="google"]:hover .cert-card-refract,
.cert-card[data-provider="google-cloud"]:hover .cert-card-refract {
  height: 5px;
  box-shadow: 0 2px 18px rgba(66, 133, 244, 0.7), 0 2px 10px rgba(234, 67, 53, 0.4);
}

/* Google Card Header & Badge */
.cert-card[data-provider="google"] .cert-issuer-badge,
.cert-card[data-provider="google-cloud"] .cert-issuer-badge {
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.35);
  color: #8ab4f8;
}

.cert-card[data-provider="google"] .cert-auth-chip,
.cert-card[data-provider="google-cloud"] .cert-auth-chip {
  background: rgba(52, 168, 83, 0.12);
  border-color: rgba(52, 168, 83, 0.3);
  color: #34a853;
}

/* Google Card Hover State */
.cert-card[data-provider="google"]:hover,
.cert-card[data-provider="google-cloud"]:hover {
  border-color: #4285f4;
  box-shadow:
    0 22px 48px -10px rgba(66, 133, 244, 0.35),
    0 0 0 1px rgba(66, 133, 244, 0.45);
}

.cert-card[data-provider="google"]:hover .cert-title,
.cert-card[data-provider="google-cloud"]:hover .cert-title {
  color: #8ab4f8;
}

/* Google Card Skills & Meta */
.cert-card[data-provider="google"] .cert-skill-pill,
.cert-card[data-provider="google-cloud"] .cert-skill-pill {
  border-color: rgba(66, 133, 244, 0.22);
}

/* Google Action CTAs */
.cert-card[data-provider="google"] .cert-btn-preview,
.cert-card[data-provider="google-cloud"] .cert-btn-preview {
  background: rgba(66, 133, 244, 0.18);
  border-color: rgba(66, 133, 244, 0.45);
  color: #d2e3fc;
}

.cert-card[data-provider="google"] .cert-btn-preview:hover,
.cert-card[data-provider="google-cloud"] .cert-btn-preview:hover {
  background: #4285f4;
  color: #ffffff;
  border-color: #4285f4;
  box-shadow: 0 6px 20px -4px rgba(66, 133, 244, 0.65);
}

.cert-card[data-provider="google"] .cert-btn-verify:hover,
.cert-card[data-provider="google-cloud"] .cert-btn-verify:hover {
  border-color: #34a853;
  color: #34a853;
  background: rgba(52, 168, 83, 0.12);
}

/* Google Light Mode Branding */
:root[data-theme="light"] .cert-card[data-provider="google"],
:root[data-theme="light"] .cert-card[data-provider="google-cloud"] {
  background:
    radial-gradient(circle at 100% 0%, rgba(66, 133, 244, 0.10) 0%, transparent 48%),
    radial-gradient(circle at 90% 100%, rgba(52, 168, 83, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 10% 100%, rgba(251, 188, 5, 0.06) 0%, transparent 38%),
    var(--surface);
  border-color: rgba(66, 133, 244, 0.28);
  box-shadow: 0 8px 24px -6px rgba(66, 133, 244, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

:root[data-theme="light"] .cert-card[data-provider="google"]:hover,
:root[data-theme="light"] .cert-card[data-provider="google-cloud"]:hover {
  border-color: #1a73e8;
  box-shadow: 0 18px 38px -8px rgba(66, 133, 244, 0.32), 0 0 0 1px rgba(66, 133, 244, 0.4);
}

:root[data-theme="light"] .cert-card[data-provider="google"]:hover .cert-title,
:root[data-theme="light"] .cert-card[data-provider="google-cloud"]:hover .cert-title {
  color: #1a73e8;
}

:root[data-theme="light"] .cert-card[data-provider="google"] .cert-issuer-badge,
:root[data-theme="light"] .cert-card[data-provider="google-cloud"] .cert-issuer-badge {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.32);
  color: #1a73e8;
}

:root[data-theme="light"] .cert-card[data-provider="google"] .cert-btn-preview,
:root[data-theme="light"] .cert-card[data-provider="google-cloud"] .cert-btn-preview {
  color: #1a73e8;
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.38);
}

:root[data-theme="light"] .cert-card[data-provider="google"] .cert-btn-preview:hover,
:root[data-theme="light"] .cert-card[data-provider="google-cloud"] .cert-btn-preview:hover {
  background: #1a73e8;
  color: #ffffff;
  border-color: #1a73e8;
}
.cert-card[data-provider="deeplearning"]{ --provider: #18a8c9; --provider-2: #6750a4; }

/* The Holographic Credential Card */
.cert-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 92% 4%, color-mix(in srgb, var(--provider) 12%, transparent) 0%, transparent 48%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--provider) 28%, var(--line));
  box-shadow:
    0 10px 30px -8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform 420ms var(--ease-editorial), box-shadow 420ms var(--ease-editorial), border-color 300ms ease, opacity 300ms ease;
}

.cert-card.cert-hidden {
  display: none !important;
}

.cert-card:hover {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px);
  border-color: color-mix(in srgb, var(--provider) 65%, transparent);
  box-shadow:
    0 24px 52px -12px color-mix(in srgb, var(--provider) 30%, transparent),
    0 0 0 1px color-mix(in srgb, var(--provider) 40%, transparent);
}

.cert-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--provider) 65%, white);
  outline-offset: 4px;
}

/* Top Refraction Accent Line */
.cert-card-refract {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--provider), var(--provider-2));
  transition: height 320ms var(--ease-editorial), box-shadow 320ms ease;
  z-index: 2;
}

.cert-card:hover .cert-card-refract {
  height: 5px;
  box-shadow: 0 2px 14px var(--provider);
}

/* Card Content Container */
.cert-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px 22px;
  position: relative;
  z-index: 1;
}

/* Card Header: Issuer + Live Auth Chip */
.cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: 2px;
}

.cert-issuer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--provider) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--provider) 26%, transparent);
  color: var(--provider);
}

.cert-issuer-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--provider);
  flex-shrink: 0;
}

.cert-issuer-name {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.cert-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: #34d399;
}

/* Card Body */
.cert-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cert-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: -0.015em;
  transition: color 0.2s ease;
}

.cert-card:hover .cert-title {
  color: color-mix(in srgb, var(--provider) 35%, var(--text));
}

.cert-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px 0;
}

/* Skills Competency Tags */
.cert-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.cert-skill-pill {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  border: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Card Metadata (ID + Issue Date) */
.cert-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
  border: 1px solid var(--line);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 11px;
  margin-top: auto;
  margin-bottom: 18px;
}

.cert-meta-label {
  color: var(--muted);
  margin-right: 4px;
}

.cert-meta-code {
  color: var(--text);
  font-weight: 600;
}

.cert-meta-value {
  color: var(--text);
  font-weight: 600;
}

/* Card Interactive Action CTAs */
.cert-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cert-btn-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--provider) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--provider) 42%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-btn-preview svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cert-btn-preview:hover {
  background: var(--provider);
  color: #ffffff;
  border-color: var(--provider);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px var(--provider);
}

.cert-btn-preview:hover svg {
  transform: scale(1.15);
}

.cert-btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-btn-verify .cert-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.cert-btn-verify:hover {
  border-color: var(--provider);
  color: var(--text);
  background: color-mix(in srgb, var(--provider) 12%, transparent);
  transform: translateY(-1px);
}

.cert-btn-verify:hover .cert-arrow {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Light Mode Overrides
   -------------------------------------------------------------------------- */
:root[data-theme="light"] .cert-card {
  background:
    radial-gradient(ellipse at 92% 4%, color-mix(in srgb, var(--provider) 9%, transparent) 0%, transparent 48%),
    var(--surface);
  border-color: rgba(23, 32, 25, 0.14);
  box-shadow: 0 8px 24px -6px rgba(23, 32, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .cert-card:hover {
  box-shadow:
    0 16px 36px -8px color-mix(in srgb, var(--provider) 24%, transparent),
    0 0 0 1px color-mix(in srgb, var(--provider) 40%, transparent);
}

:root[data-theme="light"] .cert-auth-chip {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}

:root[data-theme="light"] .cert-card-meta {
  background: rgba(23, 32, 25, 0.04);
  border-color: rgba(23, 32, 25, 0.1);
}

:root[data-theme="light"] .cert-btn-preview {
  background: color-mix(in srgb, var(--provider) 14%, transparent);
  color: var(--text);
}

:root[data-theme="light"] .cert-btn-preview:hover {
  background: var(--provider);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Responsive Layout for Credentials
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .cert-intro-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cert-highlights-strip {
    width: 100%;
    justify-content: flex-start;
  }
  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cert-card-inner {
    padding: 22px 18px 18px;
  }
  .dialog-bar {
    padding-inline: 14px;
    height: 60px;
  }
  .dialog-verify-link span:first-child {
    display: none;
  }
  .dialog-verify-link::before {
    content: "Verify";
  }
}

/* ==========================================================================
   Contact Section & Social Hub (Cybersecurity Command Station)
   ========================================================================== */
.contact-section {
  width: min(1240px, calc(100% - 48px));
  margin: 50px auto 70px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 50px -15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 100% 0%, rgba(182, 243, 155, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle at 0% 100%, rgba(182, 243, 155, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="light"] .contact-section {
  background: var(--surface);
  box-shadow: 0 20px 44px -12px rgba(23, 32, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

:root[data-theme="light"] .contact-section::before {
  background: radial-gradient(circle at 100% 0%, rgba(47, 103, 67, 0.08) 0%, transparent 70%);
}

:root[data-theme="light"] .contact-section::after {
  background: radial-gradient(circle at 0% 100%, rgba(47, 103, 67, 0.05) 0%, transparent 70%);
}

.contact-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
  gap: 52px;
  align-items: center;
  padding: clamp(36px, 5.5vw, 68px);
}

.contact-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(182, 243, 155, 0.1);
  border: 1px solid rgba(182, 243, 155, 0.25);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="light"] .contact-badge {
  background: rgba(47, 103, 67, 0.08);
  border-color: rgba(47, 103, 67, 0.25);
  color: var(--accent);
}

.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: editorialBeacon 2.8s var(--ease-editorial) infinite;
}

@keyframes contactPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  font-weight: 400;
}

.contact-section h2 em {
  font-style: italic;
  color: var(--accent);
  font-family: var(--serif);
}

.contact-lead {
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 540px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

/* Email Button - Ultra Legible in Both Themes */
.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: #101713;
  border: 1px solid var(--accent);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 22px -6px rgba(182, 243, 155, 0.35);
}

.contact-email-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(182, 243, 155, 0.5);
  filter: brightness(1.06);
}

.contact-email-btn:hover svg {
  transform: scale(1.1);
}

:root[data-theme="light"] .contact-email-btn {
  background: #234330;
  color: #ffffff !important;
  border-color: #234330;
  box-shadow: 0 8px 20px -6px rgba(35, 67, 48, 0.35);
}

:root[data-theme="light"] .contact-email-btn:hover {
  background: #172d20;
  border-color: #172d20;
  box-shadow: 0 12px 26px -6px rgba(35, 67, 48, 0.45);
}

/* Resume Button */
.contact-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-resume-btn:hover {
  border-color: color-mix(in srgb, var(--text) 45%, transparent);
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  transform: translateY(-2px);
}

.contact-resume-btn span:last-child {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-resume-btn:hover span:last-child {
  transform: translate(3px, -3px);
}

/* Direct Address */
.contact-direct-address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  color: var(--muted);
  margin-top: 4px;
}

.contact-direct-label {
  opacity: 0.8;
}

.contact-direct-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-direct-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Channels Column */
.contact-channels {
  display: flex;
  flex-direction: column;
}

.channels-title {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px 2px;
  font-weight: 600;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.channel-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-2) 65%, transparent);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: transform 380ms var(--ease-editorial), box-shadow 380ms var(--ease-editorial), border-color 300ms ease, background 380ms ease;
  overflow: hidden;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 420ms var(--ease-editorial), box-shadow 380ms ease, filter 380ms ease, border-color 300ms ease, background 300ms ease, color 300ms ease;
}

.channel-icon svg {
  display: block;
  transition: transform 420ms var(--ease-editorial);
}

.channel-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.channel-info strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.channel-info span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-arrow {
  font-size: 14px;
  color: var(--muted);
  opacity: 0.6;
  margin-left: auto;
  transition: transform 320ms var(--ease-editorial), opacity 260ms ease, color 260ms ease;
}

.channel-card:hover .channel-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}

/* --------------------------------------------------------------------------
   Channel Logo Effects
   -------------------------------------------------------------------------- */

/* 1. LinkedIn Hover */
.channel-linkedin:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 102, 194, 0.5);
  background: radial-gradient(circle at 85% 20%, rgba(10, 102, 194, 0.16), transparent 75%), color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: 0 12px 24px -8px rgba(10, 102, 194, 0.28);
}

.channel-linkedin .channel-icon {
  color: #0a66c2;
}

.channel-linkedin:hover .channel-icon {
  background: #0a66c2;
  color: #ffffff;
  border-color: #0a66c2;
  transform: scale(1.14) rotate(4deg);
  filter: drop-shadow(0 4px 14px rgba(10, 102, 194, 0.65));
}

.channel-linkedin:hover strong {
  color: #58a6ff;
}

:root[data-theme="light"] .channel-linkedin:hover strong {
  color: #0a66c2;
}

.channel-linkedin:hover .channel-arrow {
  color: #0a66c2;
}

/* 2. GitHub Hover */
.channel-github:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--text) 35%, transparent);
  background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.08), transparent 75%), color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .channel-github:hover {
  background: radial-gradient(circle at 85% 20%, rgba(23, 32, 25, 0.06), transparent 75%), color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: 0 12px 24px -8px rgba(23, 32, 25, 0.12);
}

.channel-github:hover .channel-icon {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: scale(1.14) rotate(-4deg);
  filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--text) 45%, transparent));
}

.channel-github:hover strong {
  color: var(--text);
}

/* 3. Medium Hover */
.channel-medium:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 179, 106, 0.5);
  background: radial-gradient(circle at 85% 20%, rgba(41, 179, 106, 0.16), transparent 75%), color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: 0 12px 24px -8px rgba(41, 179, 106, 0.28);
}

.channel-medium .channel-icon {
  color: #29b36a;
}

.channel-medium:hover .channel-icon {
  background: #29b36a;
  color: #ffffff;
  border-color: #29b36a;
  transform: scale(1.14) skewX(-2deg);
  filter: drop-shadow(0 4px 14px rgba(41, 179, 106, 0.65));
}

.channel-medium:hover strong {
  color: #29b36a;
}

.channel-medium:hover .channel-arrow {
  color: #29b36a;
}

/* 4. Instagram Hover */
.channel-instagram:hover {
  transform: translateY(-3px);
  border-color: rgba(220, 39, 67, 0.45);
  background: radial-gradient(circle at 90% 15%, rgba(220, 39, 67, 0.18), rgba(240, 148, 51, 0.08) 50%, transparent 80%), color-mix(in srgb, var(--surface-2) 80%, transparent);
  box-shadow: 0 12px 26px -8px rgba(220, 39, 67, 0.32);
}

.channel-instagram .channel-icon {
  color: #e1306c;
}

.channel-instagram:hover .channel-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.16) rotate(6deg);
  filter: drop-shadow(0 4px 16px rgba(220, 39, 67, 0.6)) drop-shadow(0 2px 8px rgba(240, 148, 51, 0.45));
}

.channel-instagram:hover strong {
  background: linear-gradient(90deg, #f09433, #dc2743, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.channel-instagram:hover .channel-arrow {
  color: #dc2743;
}

/* --------------------------------------------------------------------------
   Responsive Layout for Contact Section
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .contact-shell {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: clamp(28px, 5vw, 44px);
  }
}

@media (max-width: 580px) {
  .contact-section {
    margin: 36px auto 50px;
    border-radius: 20px;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-email-btn,
  .contact-resume-btn {
    justify-content: center;
  }
  .contact-direct-address {
    flex-wrap: wrap;
  }
}

footer { border-top: 1px solid var(--line); }
.footer-shell { min-height: 150px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; 
}
.footer-shell p { color: var(--muted); font-size: 12px; }
.social-links { justify-self: end; display: flex; gap: 18px; }
.social-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.social-links a:hover { color: var(--text); }

/* Enhanced Certificate Dialog (Modal) */
.certificate-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transition: opacity 380ms var(--ease-editorial), transform 380ms var(--ease-editorial);
}

.certificate-dialog::backdrop {
  background: rgba(3, 8, 5, 0.82);
  backdrop-filter: blur(12px);
}

.dialog-bar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.dialog-bar-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dialog-badge {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.dialog-bar h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: clamp(200px, 40vw, 500px);
}

.dialog-bar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dialog-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #101713;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.dialog-verify-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

:root[data-theme="light"] .dialog-verify-link {
  background: #234330;
  color: #ffffff;
}

.dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dialog-close:hover {
  background: var(--surface-2);
  border-color: color-mix(in srgb, var(--text) 30%, transparent);
}

.dialog-view-wrapper {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.dialog-view-wrapper img {
  width: auto;
  max-width: 100%;
  max-height: calc(85dvh - 120px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
  .case-hero,
  .case-actions,
  .case-shell { width: min(100% - 32px, 680px); }
  .case-section-heading { font-size: clamp(38px, 13vw, 58px); }
  .architecture-grid,
  .ai-layout,
  .math-grid { grid-template-columns: minmax(0, 1fr); }
  .math-grid article { width: 100%; box-sizing: border-box; }
  .math-equation { font-size: 14px; }
  .math-equation math { max-width: 100%; font-size: 15px; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .metrics-row div:nth-child(2) { border-right: 0; }
  .metrics-row div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .flow-grid { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card { min-height: auto; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline-step { border-bottom: 1px solid var(--line); }
  .pipeline-step:nth-child(2n) { border-right: 0; }
  .pipeline-step:last-child { grid-column: 1 / -1; border-right: 0; }
  .pipeline-step::after { display: none; }
  .case-story-grid { grid-template-columns: 1fr; }
  .code-grid, .decisions-grid, .engineering-grid { grid-template-columns: 1fr; }
  .coverage-table { min-width: 760px; white-space: normal; }
  .case-final { align-items: flex-start; flex-direction: column; }
}

:root[data-theme="light"] .site-header {
  background: rgba(237, 240, 234, .94);
}

:root[data-theme="light"] .profile-frame,
:root[data-theme="light"] .profile-caption,
:root[data-theme="light"] .featured-project,
:root[data-theme="light"] .lab-group,
:root[data-theme="light"] .investigation-intro,
:root[data-theme="light"] .writeup-card,
:root[data-theme="light"] .tool-detail,
:root[data-theme="light"] .certificate {
  background-color: var(--surface);
}

:root[data-theme="light"] .featured-project,
:root[data-theme="light"] .project-row,
:root[data-theme="light"] .lab-group,
:root[data-theme="light"] .investigation-intro,
:root[data-theme="light"] .writeup-card,
:root[data-theme="light"] .certificate-item,
:root[data-theme="light"] .certificate {
  border-color: rgba(23, 32, 25, .19);
}

:root[data-theme="light"] .profile-caption {
  box-shadow: 0 12px 32px rgba(23, 32, 25, .12);
}

:root[data-theme="light"] .lab-group-walkthrough,
:root[data-theme="light"] .lab-group-challenge,
:root[data-theme="light"] .lab-group-cyber {
  background:
    linear-gradient(135deg, rgba(47, 103, 67, .045), transparent 34%),
    var(--surface);
}

:root[data-theme="light"] .lab-card.lab-walkthrough,
:root[data-theme="light"] .lab-card.thm-walkthrough {
  border-color: rgba(47, 103, 67, .28);
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(47, 103, 67, .045) 25px 26px),
    var(--surface);
}

:root[data-theme="light"] .lab-card.lab-challenge,
:root[data-theme="light"] .lab-card.thm-challenge {
  border: 1px solid rgba(126, 105, 54, .28);
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(126, 105, 54, .05) 25px 26px),
    #f4f0e4;
  color: #302d22;
  box-shadow: 0 10px 24px rgba(53, 46, 29, .07);
}

:root[data-theme="light"] .lab-card.lab-challenge .lab-platform,
:root[data-theme="light"] .lab-card.thm-challenge .lab-platform,
:root[data-theme="light"] .lab-card.thm-challenge .cyber-card-status,
:root[data-theme="light"] .lab-card.thm-challenge .cyber-card-category {
  color: #675e43;
}

:root[data-theme="light"] .lab-card.lab-cyberdefenders,
:root[data-theme="light"] .lab-card.thm-walkthrough,
:root[data-theme="light"] .lab-card.thm-challenge {
  box-shadow: 0 10px 24px rgba(23, 32, 25, .07);
}

:root[data-theme="light"] .lab-card.lab-cyberdefenders {
  border-color: rgba(47, 103, 67, .28);
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(47, 103, 67, .045) 25px 26px),
    var(--surface);
}

:root[data-theme="light"] .lab-card.lab-cyberdefenders .lab-platform,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .cyber-case-code,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .cyber-card-category,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .cyber-lab-link,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .lab-arrow {
  color: #2f6743;
}

:root[data-theme="light"] .lab-card.lab-cyberdefenders .cyber-card-status,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .lab-status {
  color: #526159;
}

:root[data-theme="light"] .lab-card.lab-cyberdefenders .cyber-card-status::before,
:root[data-theme="light"] .lab-card.lab-cyberdefenders .lab-status i {
  background: #2f6743;
  box-shadow: none;
}

:root[data-theme="light"] .lab-card.thm-walkthrough .cyber-case-code,
:root[data-theme="light"] .lab-card.thm-walkthrough .cyber-card-category,
:root[data-theme="light"] .lab-card.thm-walkthrough .cyber-lab-link {
  color: #2f6743;
}

:root[data-theme="light"] .cyber-card-status,
:root[data-theme="light"] .cyber-card-category,
:root[data-theme="light"] .cyber-lab-link,
:root[data-theme="light"] .cyber-case-code {
  color: #526159;
}

:root[data-theme="light"] .lab-group-red-team {
  border-color: rgba(169, 45, 52, .24);
  background:
    radial-gradient(circle at 92% 8%, rgba(169, 45, 52, .06), transparent 24rem),
    var(--surface);
}
:root[data-theme="light"] .lab-card.red-team-card {
  border-color: rgba(169, 45, 52, .28);
  background:
    linear-gradient(145deg, rgba(169, 45, 52, .07), transparent 48%),
    var(--surface);
  box-shadow: 0 10px 24px rgba(80, 31, 34, .08);
}
:root[data-theme="light"] .lab-card.red-team-card .cyber-card-category,
:root[data-theme="light"] .lab-card.red-team-card .cyber-case-code,
:root[data-theme="light"] .lab-card.red-team-card .cyber-lab-link {
  color: #94323a;
}

:root[data-theme="light"] .cyber-lab-link {
  border-color: rgba(47, 103, 67, .3);
  background: rgba(47, 103, 67, .05);
}

:root[data-theme="light"] .tool-detail {
  background: radial-gradient(circle at 88% 12%, rgba(47, 103, 67, .08), transparent 24%), var(--surface);
}

:root[data-theme="light"] .red-toolkit-shell,
:root[data-theme="light"] .red-tool-detail {
  background-color: var(--surface);
}
:root[data-theme="light"] .red-toolkit-shell {
  background:
    linear-gradient(135deg, rgba(169, 45, 52, .06), transparent 38%),
    var(--surface);
}
:root[data-theme="light"] .red-tool-detail {
  background: radial-gradient(circle at 88% 12%, rgba(169, 45, 52, .07), transparent 25%), var(--surface);
}
:root[data-theme="light"] .red-tool-filter.active,
:root[data-theme="light"] .red-tool-row.active {
  background: rgba(169, 45, 52, .08);
}

:root[data-theme="light"] .certificate {
  box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px color-mix(in srgb, var(--provider) 24%, transparent), 0 
8px 20px rgba(23, 32, 25, .06);
}

:root[data-theme="light"] .certificate::after {
  background: var(--surface);
}

:root[data-theme="light"] .tool-search input,
:root[data-theme="light"] .lab-search input {
  background: var(--surface);
}

@media (max-width: 900px) {
  .tool-explorer-head { align-items: stretch; flex-direction: column; padding-block: 12px; }
  .tool-filters { width: 100%; }
  .tool-search input { width: 100%; }
  .tool-workspace { grid-template-columns: minmax(230px, .42fr) minmax(0, .58fr); }
  .tool-detail { padding: 38px 28px; }
  .tool-detail h3 { font-size: clamp(42px, 8vw, 64px); }
  .defensive-toolkit-intro { grid-template-columns: 1fr; }
  .defensive-toolkit-status { min-width: 0; width: min(220px, 100%); }
  .red-toolkit-intro { grid-template-columns: 1fr; }
  .red-toolkit-status { min-width: 0; width: min(220px, 100%); }
  .red-toolkit-controls { align-items: stretch; flex-direction: column; padding-block: 12px; }
  .red-tool-filters { width: 100%; }
  .red-tool-search input { width: 100%; }
  .red-tool-workspace { grid-template-columns: minmax(230px, .42fr) minmax(0, .58fr); }
  .red-tool-detail { padding: 38px 28px; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .nav-shell, .hero, .section, .contact-section, .footer-shell { width: min(100% - 32px, 680px); }
  .nav-shell { grid-template-columns: 1fr 44px 44px; }
  .menu-toggle { display: flex; grid-column: 2; grid-row: 1; width: 44px; height: 44px; flex-direction: column; 
align-items: center; justify-content: center; gap: 5px; border: 0; background: transparent; color: var(--text); }
  .menu-toggle span:not(.sr-only) { width: 20px; height: 1px; background: currentColor; transition: transform 180ms 
ease; }
  .theme-toggle { grid-column: 3; grid-row: 1; }
  .nav-links { position: fixed; left: 16px; right: 16px; top: 76px; display: grid; gap: 0; padding: 10px; border: 1px 
solid var(--line); background: var(--surface); transform: translateY(-12px); opacity: 0; visibility: hidden; 
transition: opacity 180ms ease, transform 180ms ease, visibility 180ms; }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 10px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 40px; padding-block: 56px 60px; }
  .hero h1 { font-size: clamp(56px, 15vw, 88px); }
  .hero-profile { width: min(460px, 88%); height: 500px; align-self: auto; margin-inline: auto 0; }
  .profile-frame { height: 500px; min-height: unset; max-height: unset; border-radius: 130px 130px 8px 8px; }
  .profile-caption { left: -20px; }
  .section-heading { grid-template-columns: 48px 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-copy { max-width: none; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .featured-project, .project-row { grid-template-columns: 1fr; }
  .project-meta { margin-bottom: 34px; }
  .project-content { grid-template-columns: 1fr; }
  .project-content .project-link { grid-column: 1; }
  .experience-grid { grid-template-columns: 1fr; }
  .lab-group-walkthrough .lab-collection,
  .lab-group-challenge .lab-collection,
  .lab-group-red-team .lab-collection,
  .lab-group-cyber .lab-collection { grid-template-columns: repeat(2, 1fr); }
  .cyber-lab-intro { grid-template-columns: 1fr; }
  .cyber-intro-copy { border-right: 0; border-bottom: 1px solid rgba(93, 222, 181, .14); }
  .cyber-intro-metrics { min-height: 110px; }
  .lab-toolbar { align-items: stretch; flex-direction: column; }
  .lab-search input { width: 100%; }
  .investigation-intro { grid-template-columns: 140px 1fr; }
  .investigation-intro > strong { display: none; }
  .writeup-card { grid-template-columns: 110px 1fr 150px; }
  .writeup-main { padding-inline: 26px; }
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .footer-shell p { grid-row: 2; }
  .social-links { grid-row: 1 / 3; }
}

@media (max-width: 560px) {
  .nav-shell, .hero, .section, .contact-section, .footer-shell { width: calc(100% - 32px); }
  .brand { font-size: 14px; }
  .hero { padding-block: 46px 56px; }
  .availability { margin-bottom: 20px; }
  .hero h1 { font-size: clamp(55px, 18vw, 78px); }
  .hero-lead { margin-top: 24px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-profile { width: calc(100% - 20px); height: 400px; }
  .profile-frame { height: 400px; min-height: unset; max-height: unset; border-radius: 110px 110px 6px 6px; }
  .profile-caption { left: -16px; bottom: 16px; width: 185px; padding: 14px 16px; }
  .section { padding-block: 76px; }
  .section-heading { grid-template-columns: 38px 1fr; margin-bottom: 38px; }
  .section-heading h2 { font-size: 48px; }
  .section-index { margin-top: 8px; }
  .about-lead { font-size: 38px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip div:last-child { grid-column: auto; border-bottom: 0; border-top: 0; }
  .featured-project { padding: 26px 22px; min-height: 460px; }
  .project-content h3 { font-size: 48px; }
  .project-row { padding-inline: 22px; }
  .project-row h3 { font-size: 34px; }
  .experience-card { min-height: 330px; padding: 26px 22px; }
  .experience-card h3 { margin-top: 36px; font-size: 38px; }
  .lab-dashboard { grid-template-columns: 1fr; }
  .lab-rank-panel { min-height: 210px; }
  .rank-number { font-size: 64px; }
  .lab-tabs { width: 100%; overflow-x: auto; }
  .lab-tab { white-space: nowrap; }
  .lab-group-cyber { padding: 14px; }
  .lab-group-cyber::before { display: none; }
  .lab-group-cyber .lab-group-head h3 { font-size: 28px; }
  .cyber-intro-copy { padding: 24px 20px; }
  .cyber-intro-copy h4 { font-size: 38px; }
  .cyber-intro-metrics div { padding: 12px; }
  .cyber-intro-metrics strong { font-size: 28px; }
  .lab-group-walkthrough .lab-collection,
  .lab-group-challenge .lab-collection,
  .lab-group-red-team .lab-collection,
  .lab-group-cyber .lab-collection { grid-template-columns: 1fr; }
  .investigation-intro { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .investigation-intro > p { align-self: auto; }
  .investigation-intro h3 { font-size: 44px; }
  .writeup-card { min-height: 430px; grid-template-columns: 76px 1fr; grid-template-rows: 1fr auto; }
  .writeup-number { grid-row: 1 / 3; padding: 20px 12px; }
  .writeup-number span { font-size: 38px; }
  .writeup-main { padding: 24px 20px; }
  .writeup-card h3 { font-size: 34px; }
  .writeup-main > p { font-size: 13px; }
  .writeup-actions { gap: 10px; }
  .writeup-card > a { grid-column: 2; justify-self: stretch; margin: 0 20px 20px; }
  .tool-explorer-head { gap: 10px; }
  .tool-search { width: 100%; }
  .tool-workspace { grid-template-columns: 1fr; }
  .tool-list { max-height: 320px; border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-detail { min-height: 420px; padding: 30px 20px; }
  .tool-detail h3 { font-size: 48px; }
  .tool-detail::before { font-size: 180px; }
  .tool-metrics { grid-template-columns: 1fr; }
  .red-tool-workspace { grid-template-columns: 1fr; }
  .red-tool-list { max-height: 320px; border-right: 0; border-bottom: 1px solid rgba(255, 107, 112, .18); }
  .red-tool-detail { min-height: 420px; padding: 30px 20px; }
  .red-tool-detail h3 { font-size: 48px; }
  .red-tool-detail::before { font-size: 180px; }
  .red-tool-metrics { grid-template-columns: 1fr; }
  .footer-shell { min-height: 190px; grid-template-columns: 1fr; align-content: center; gap: 12px; }
  .footer-shell p { grid-row: auto; margin: 0; }
  .social-links { grid-row: auto; justify-self: start; }
}

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

@media (pointer: coarse) {
  body::before { display: none; }
  .site-header { backdrop-filter: none; }
  .certificate-item { perspective: none; }
  .certificate-actions { backdrop-filter: none; }
  .certificate-dialog::backdrop { backdrop-filter: none; }
  .certificate-item:hover .certificate,
  .certificate-item:active .certificate {
    transform: none;
  }
  .certificate-view:hover,
  .certificate-verify:hover { transform: none; }
  .tool-filter,
  .red-tool-filter { min-height: 44px; padding-inline: 14px; }
  .lab-tabs,
  .tool-filters,
  .red-tool-filters { -webkit-overflow-scrolling: touch; }
}


/* Intermediate Tablet & Mobile-Desktop-Mode adjustments (<= 1100px) */
@media (max-width: 1100px) {
  .nav-shell, .hero, .section, .contact-section, .footer-shell {
    width: calc(100% - 48px);
  }
  .nav-links { gap: 16px; font-size: 13px; }
  .cyber-lab-intro {
    grid-template-columns: 1fr;
  }
  .cyber-intro-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(93, 222, 181, .14);
  }
  .cyber-intro-metrics {
    min-height: 90px;
  }
  .featured-project {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .project-meta {
    flex-direction: row;
    justify-content: space-between;
    padding-right: 0;
    margin-bottom: 16px;
  }
}



