:root {
  --bg: #050914;
  --panel: #0a1220;
  --panel-2: #0f1b2d;
  --ink: #f8fbff;
  --text: #c9d7e8;
  --muted: #7f91aa;
  --line: #1d2e45;
  --teal: #33f5df;
  --blue: #5aa7ff;
  --amber: #f3b34c;
  --shadow: 0 28px 90px rgba(0, 0, 0, .4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(51, 245, 223, .12), transparent 28rem),
    radial-gradient(circle at 84% 14%, rgba(90, 167, 255, .12), transparent 32rem),
    linear-gradient(180deg, #050914 0%, #07101d 46%, #050914 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(114, 138, 170, .2);
  background: rgba(5, 9, 20, .9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  background: #ffffff;
  color: var(--bg);
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  color: #9dafc5;
  font-size: .93rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--teal);
}

main {
  width: min(1160px, calc(100% - 34px));
  margin: 0 auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 9vw, 8.4rem);
  line-height: .88;
}

h1,
h2,
h3,
p,
a,
span,
strong,
em,
code {
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.25;
}

p {
  color: var(--text);
  line-height: 1.72;
}

.hero {
  display: flex;
  min-height: calc(100vh - 74px);
  align-items: center;
  padding: clamp(66px, 9vw, 128px) 0;
}

.hero-copy,
.code-card,
.project-card,
.timeline a,
.contact,
.info-grid article {
  min-width: 0;
}

.hero-copy {
  max-width: 850px;
}

.terminal-line,
.section-label {
  display: block;
  margin: 0 0 16px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  font-weight: 800;
}

.subtitle {
  max-width: 730px;
  margin-bottom: 0;
  color: #e8f2ff;
  font-size: clamp(1.18rem, 1.8vw, 1.5rem);
  font-weight: 680;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.hero-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #041018;
}

.button.secondary {
  color: #ffffff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(51, 245, 223, .16);
}

.code-card {
  overflow: hidden;
  border: 1px solid rgba(114, 138, 170, .24);
  border-radius: 18px;
  background: rgba(10, 18, 32, .84);
  box-shadow: var(--shadow);
}

.code-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(114, 138, 170, .2);
  background: rgba(255, 255, 255, .03);
}

.code-title span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff5f57;
}

.code-title span:nth-child(2) {
  background: #ffbd2e;
}

.code-title span:nth-child(3) {
  background: #28c840;
}

.code-title strong {
  margin-left: 8px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .82rem;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  white-space: pre-wrap;
}

code,
.prompt {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

code {
  color: #d9f7ff;
  font-size: .95rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.prompt {
  margin: 0;
  padding: 0 24px 24px;
  color: var(--teal);
  font-size: .9rem;
}

.section {
  padding: 86px 0;
  border-top: 1px solid rgba(114, 138, 170, .18);
}

.split,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .48fr) minmax(320px, .52fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
}

.about-section .split {
  grid-template-columns: minmax(480px, .58fr) minmax(360px, .42fr);
  align-items: center;
}

.about-section h2 {
  max-width: 680px;
}

.body-copy p:last-child,
.section-heading p,
.compact-split p {
  margin-bottom: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.info-grid article,
.project-card,
.timeline a {
  border: 1px solid rgba(114, 138, 170, .22);
  background:
    linear-gradient(145deg, rgba(51, 245, 223, .07), transparent 44%),
    rgba(10, 18, 32, .86);
}

.info-grid article {
  padding: 20px;
  border-radius: 14px;
}

.info-grid span,
.project-card span,
.timeline span {
  display: block;
  margin-bottom: 11px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.info-grid strong {
  display: block;
  color: #ffffff;
  line-height: 1.45;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.project-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.project-card p {
  margin-bottom: 0;
}

.project-card a {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(51, 245, 223, .36);
  border-radius: 8px;
  color: #ffffff;
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
}

.project-card a:hover,
.project-card a:focus-visible,
.timeline a:hover,
.timeline a:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 14px 38px rgba(51, 245, 223, .1);
}

.nvidia-course-card {
  grid-column: span 2;
}

.mini-course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.mini-course-list p {
  min-height: 112px;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid rgba(114, 138, 170, .18);
  border-radius: 12px;
  background: rgba(6, 15, 28, .58);
  color: #cfe0f3;
  font-size: .92rem;
  line-height: 1.58;
}

.mini-course-list strong {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  line-height: 1.35;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.timeline a {
  display: grid;
  grid-template-columns: 220px minmax(260px, .5fr) 1fr;
  gap: 22px;
  align-items: center;
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
}

.timeline span {
  margin-bottom: 0;
}

.timeline strong {
  color: #ffffff;
  line-height: 1.35;
}

.timeline em {
  color: var(--text);
  font-style: normal;
  line-height: 1.55;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.skill-cloud span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(114, 138, 170, .24);
  border-radius: 999px;
  background: rgba(10, 18, 32, .86);
  color: #d9e8f7;
  font-weight: 820;
}

.writing-section {
  padding-block: 70px;
}

.compact-split {
  align-items: center;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 34px;
}

.article-card {
  display: block;
  max-width: 760px;
  padding: 24px;
  border: 1px solid rgba(114, 138, 170, .22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(51, 245, 223, .07), transparent 44%),
    rgba(10, 18, 32, .86);
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.article-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-card p {
  margin-bottom: 0;
}

.article-card small {
  display: inline-flex;
  margin-top: 18px;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(114, 138, 170, .28);
  border-radius: 999px;
  color: #d9e8f7;
  font-size: .82rem;
  font-weight: 850;
}

.handbook-card {
  max-width: 100%;
  border-color: rgba(51, 245, 223, .34);
  background:
    linear-gradient(145deg, rgba(51, 245, 223, .12), transparent 44%),
    linear-gradient(180deg, rgba(10, 18, 32, .96), rgba(9, 16, 29, .9));
}

.handbook-card h3 {
  max-width: 760px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.article-card:hover,
.article-card:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 14px 38px rgba(51, 245, 223, .1);
}

.article-shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 82px 0 104px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.article-hero {
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(114, 138, 170, .22);
}

.article-hero h1 {
  max-width: 980px;
  font-size: clamp(2.45rem, 5vw, 4.7rem);
  line-height: 1;
}

.dfir-article .article-hero h1 {
  max-width: 1080px;
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  line-height: 1.05;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.article-meta span {
  display: inline-flex;
  max-width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(114, 138, 170, .26);
  border-radius: 999px;
  background: rgba(10, 18, 32, .82);
  color: #d9e8f7;
  font-size: .88rem;
  font-weight: 820;
}

.article-toc {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  margin-bottom: 64px;
  padding: 26px;
  border: 1px solid rgba(114, 138, 170, .22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(51, 245, 223, .08), transparent 42%),
    rgba(10, 18, 32, .86);
}

.article-toc strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.article-toc div {
  display: block;
  columns: 2 280px;
  column-gap: 34px;
}

.article-toc a {
  display: block;
  break-inside: avoid;
  margin-bottom: 11px;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.45;
  text-decoration: none;
}

.article-toc a:hover,
.article-toc a:focus-visible {
  color: var(--teal);
}

.article-content {
  counter-reset: article-section;
}

.article-section {
  max-width: 900px;
  padding: 46px 0;
  border-top: 1px solid rgba(114, 138, 170, .18);
}

.article-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-abstract {
  max-width: 940px;
  padding: 30px;
  border: 1px solid rgba(51, 245, 223, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(51, 245, 223, .08), transparent 46%),
    rgba(10, 18, 32, .82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

.article-abstract h2 {
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-abstract p:last-child {
  margin-bottom: 0;
}

.article-content h2 {
  max-width: 820px;
  margin: 0 0 22px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.article-content .article-abstract h2 {
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-content p {
  max-width: 860px;
  margin-bottom: 18px;
  color: #d6e3f3;
  font-size: 1.07rem;
  line-height: 1.86;
}

.article-content a {
  color: var(--teal);
  overflow-wrap: anywhere;
}

.article-content ul {
  max-width: 840px;
  margin: 18px 0 24px;
  padding-left: 24px;
  color: var(--text);
}

.article-content li {
  margin-bottom: 11px;
  color: #d6e3f3;
  line-height: 1.76;
}

.article-list {
  border-left: 3px solid rgba(51, 245, 223, .65);
}

.article-flow-line {
  max-width: 920px;
  padding: 16px 18px;
  border: 1px solid rgba(51, 245, 223, .24);
  border-radius: 12px;
  background: rgba(51, 245, 223, .06);
  color: #eaffff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .98rem;
  line-height: 1.65;
}

.academic-article .intro-section p:first-child {
  color: #ffffff;
  max-width: 920px;
  margin-bottom: 34px;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 760;
  line-height: 1.14;
}

.soc-article {
  max-width: 960px;
}

.soc-article .back-link {
  margin-bottom: 28px;
}

.soc-article .article-hero {
  max-width: 900px;
  margin-bottom: 18px;
  padding-bottom: 30px;
}

.soc-article .article-hero h1 {
  max-width: 880px;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.06;
}

.soc-article .article-toc {
  display: none;
}

.soc-article .article-content {
  max-width: 820px;
}

.soc-article .article-section {
  max-width: 820px;
  padding: 36px 0;
}

.soc-article .article-section:first-child {
  padding-top: 8px;
}

.soc-article .article-content h2 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.18;
}

.soc-article .article-content p,
.soc-article .article-content li {
  max-width: 760px;
  color: #dce8f6;
  font-size: 1.02rem;
  line-height: 1.82;
}

.soc-article .article-content p {
  margin-bottom: 14px;
}

.soc-article .intro-section p:first-child {
  max-width: 780px;
  margin-bottom: 16px;
  color: #f7fbff;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  font-weight: 650;
  line-height: 1.62;
}

.soc-article .article-callout {
  margin: 22px 0 6px;
  padding: 18px 20px;
  border-left: 3px solid var(--teal);
  border-radius: 0 12px 12px 0;
  background: rgba(51, 245, 223, .07);
  color: #ffffff;
  font-weight: 780;
}

.soc-article .article-list {
  margin: 14px 0 18px;
  padding: 16px 22px 16px 38px;
  border: 1px solid rgba(114, 138, 170, .18);
  border-left: 3px solid rgba(51, 245, 223, .65);
  border-radius: 12px;
  background: rgba(10, 18, 32, .46);
}

.article-section[id="resources-from-this-journey"] {
  margin-top: 26px;
  max-width: 920px;
  padding: 30px;
  border: 1px solid rgba(114, 138, 170, .22);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(51, 245, 223, .08), transparent 42%),
    rgba(10, 18, 32, .86);
}

.article-section[id="resources-from-this-journey"] h2 {
  margin-bottom: 18px;
}

.article-section[id="resources-from-this-journey"] ul {
  margin-bottom: 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .34fr);
  gap: 34px;
  align-items: center;
  margin: 0 0 56px;
  padding: 34px;
  border: 1px solid rgba(114, 138, 170, .22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(51, 245, 223, .12), transparent 46%),
    #0a1220;
  box-shadow: var(--shadow);
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  margin-bottom: 0;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.contact-links a::after {
  content: "Open";
  color: var(--teal);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .78rem;
}

@media (max-width: 1100px) {
  .hero,
  .split,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nvidia-course-card {
    grid-column: span 2;
  }

  .timeline a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-toc {
    grid-template-columns: 1fr;
  }

  .article-toc div {
    columns: 1;
  }
}

@media (max-width: 720px) {
  body {
    overflow-x: hidden;
  }

  main {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
  }

  .site-header {
    display: grid;
    padding-inline: 14px;
  }

  .nav-links {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  h1 {
    font-size: clamp(3rem, 14vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.65rem);
  }

  .hero {
    min-height: auto;
    padding: 54px 0 72px;
  }

  .hero-copy,
  .code-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .subtitle {
    max-width: 30ch;
    font-size: 1rem;
    line-height: 1.65;
  }

  .article-shell {
    width: 100%;
    max-width: 100%;
    padding: 48px 0 76px;
    overflow-x: hidden;
  }

  .article-hero h1 {
    width: 16ch;
    max-width: 100%;
    font-size: clamp(1.72rem, 8vw, 2.05rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dfir-article .article-hero h1 {
    width: 16ch !important;
    max-width: 100% !important;
    font-size: clamp(1.42rem, 6.3vw, 1.68rem);
    line-height: 1.16;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .article-meta span {
    max-width: calc(100vw - 28px);
    min-height: auto;
    padding: 8px 11px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .article-toc {
    width: 100%;
    max-width: 100%;
    padding: 22px;
  }

  .article-toc div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    columns: auto;
  }

  .article-toc a {
    width: 100%;
    max-width: 25ch;
    font-size: .9rem;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all;
  }

  .article-section {
    width: 100%;
    max-width: 100%;
  }

  .article-toc a,
  .article-content p,
  .article-content li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .nvidia-course-card {
    grid-column: auto;
  }

  .mini-course-list {
    grid-template-columns: 1fr;
  }

  .mini-course-list p {
    min-height: auto;
  }

  .academic-article .intro-section p:first-child {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }

  pre {
    overflow-x: hidden;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .info-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .section {
    padding: 62px 0;
  }

  .contact {
    padding: 24px;
  }
}

.course-path {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.course-path article {
  border: 1px solid rgba(45, 245, 226, 0.18);
  background: rgba(8, 18, 33, 0.78);
  border-radius: 18px;
  padding: 22px;
}

.course-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(45, 245, 226, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.course-path h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.course-path p {
  margin: 0 0 14px;
}

.course-path strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .course-path {
    grid-template-columns: 1fr;
  }

  .course-path article {
    padding: 18px;
  }
}
