:root {
  --ink: #132022;
  --muted: #5a686b;
  --paper: #f7faf9;
  --panel: #ffffff;
  --line: #dce7e5;
  --teal: #0d8c94;
  --cyan: #16c7d8;
  --gold: #c99b4a;
  --charcoal: #101819;
  --shadow: 0 18px 45px rgba(18, 32, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: #087d87;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 250, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  font-weight: 700;
}

.button:hover {
  background: #0a7178;
  text-decoration: none;
}

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(9, 17, 18, 0.95) 0%, rgba(9, 17, 18, 0.78) 42%, rgba(9, 17, 18, 0.22) 100%),
    url("assets/hero-cyber-research.png") center / cover no-repeat,
    var(--charcoal);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: clamp(520px, 72vh, 720px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 64px 0 92px;
}

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

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  max-width: 820px;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d9eeee;
  font-size: clamp(1.04rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button.light {
  color: var(--teal);
  background: #fff;
  border: 1px solid var(--line);
}

.button.light:hover {
  color: #fff;
  background: var(--teal);
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.section.compact {
  padding: 56px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.profile-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}

.profile-photo {
  width: min(100%, 280px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(18, 32, 34, 0.07);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
}

.callout {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.card {
  min-height: 100%;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(18, 32, 34, 0.07);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.card .meta {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-hero {
  background: #142124;
  color: #fff;
}

.page-hero .section {
  padding: 72px 0;
}

.page-hero p {
  max-width: 760px;
  color: #cfe5e5;
  font-size: 1.12rem;
}

.content {
  max-width: 900px;
}

.content.wide {
  max-width: none;
}

.timeline {
  display: grid;
  gap: 20px;
}

.entry {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 0;
}

.entry time,
.entry .date {
  display: block;
  margin-bottom: 6px;
  color: var(--teal);
  font-weight: 700;
}

.entry p {
  margin: 6px 0 0;
  color: var(--muted);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat {
  padding: 22px;
  background: #e9f6f5;
  border: 1px solid #cce7e5;
  border-radius: 6px;
}

.stat strong {
  display: block;
  color: var(--teal);
  font-size: 2rem;
  line-height: 1;
}

.credential-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.credential-strip span {
  padding: 8px 12px;
  color: #d9eeee;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.profile-links a {
  font-weight: 700;
}

.accordion {
  display: grid;
  gap: 14px;
}

details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(18, 32, 34, 0.06);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 700;
}

details[open] summary {
  border-bottom: 1px solid var(--line);
}

.details-body {
  padding: 20px 22px 24px;
  color: var(--muted);
}

.details-body p {
  margin: 0 0 12px;
}

.details-body p:last-child {
  margin-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag-row span {
  padding: 6px 10px;
  color: #245153;
  background: #e9f6f5;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

.video-frame {
  position: relative;
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.redirect-note {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.site-footer {
  color: #d7eeee;
  background: #111b1d;
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner a {
  color: #9be8ee;
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero-inner {
    min-height: 560px;
    padding: 56px 0;
  }

  .split,
  .profile-split,
  .grid,
  .grid.two,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .footer-inner {
    flex-direction: column;
  }
}

.credential-strip span[title] {
  cursor: help;
}

.pub-hero-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
}

.pub-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #9be8ee;
  font-weight: 700;
}

.pub-nav-link.next {
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 820px) {
  .pub-hero-grid {
    grid-template-columns: 1fr;
  }

  .pub-nav-link.next {
    justify-content: flex-start;
    text-align: left;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--charcoal);
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(22, 199, 216, 0.75);
  outline-offset: 3px;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

summary a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .nav {
    min-height: 64px;
    padding: 10px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 8px 0 12px;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(9, 17, 18, 0.95) 0%, rgba(9, 17, 18, 0.88) 58%, rgba(9, 17, 18, 0.54) 100%),
      url("assets/hero-cyber-research.png") center / cover no-repeat,
      var(--charcoal);
  }

  .hero-inner {
    min-height: auto;
    padding: 56px 0 68px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .profile-photo {
    width: min(72vw, 280px);
  }

  summary {
    padding: 18px;
  }

  .details-body {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .section,
  .section.compact {
    width: min(100% - 24px, 1120px);
    padding: 44px 0;
  }

  .hero-inner {
    width: min(100% - 24px, 1120px);
    padding: 44px 0 56px;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }

  .card,
  .callout,
  .stat {
    padding: 20px;
  }

  .credential-strip span,
  .tag-row span {
    max-width: 100%;
  }

  .footer-inner {
    padding: 34px 0;
  }
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: min(300px, 58vw);
  min-height: 52px;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 920px) {
  .brand-logo {
    width: min(260px, calc(100vw - 96px));
    min-height: 44px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: min(230px, calc(100vw - 86px));
  }
}

.brand-logo {
  width: min(390px, 62vw);
}

@media (max-width: 920px) {
  .brand-logo {
    width: min(320px, calc(100vw - 96px));
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: min(286px, calc(100vw - 82px));
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: min(252px, calc(100vw - 78px));
  }
}
