:root {
  color-scheme: dark;
  --bg: #070914;
  --bg-soft: #0b0e1c;
  --panel: #0f1325;
  --panel-strong: #13182d;
  --text: #f4f6ff;
  --muted: #a7adc4;
  --dim: #747c99;
  --line: rgba(137, 149, 217, 0.2);
  --line-strong: rgba(124, 137, 255, 0.38);
  --accent: #6f78ff;
  --accent-bright: #8f95ff;
  --cyan: #5dd7f5;
  --success: #73e2a7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --radius-sm: 14px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 86% 8%, rgba(91, 101, 226, 0.17), transparent 28rem),
    radial-gradient(circle at 8% 32%, rgba(61, 194, 231, 0.08), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.section {
  padding: 112px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  max-width: 760px;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.accent-text {
  color: var(--accent-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(143, 149, 255, 0.12);
  background: rgba(7, 9, 20, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(111, 120, 255, 0.28), rgba(93, 215, 245, 0.07));
  box-shadow: inset 0 0 18px rgba(111, 120, 255, 0.16);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-name {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(111, 120, 255, 0.12);
  color: var(--text);
}

.nav-social {
  border: 1px solid var(--line) !important;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 76px);
  align-items: center;
  overflow: hidden;
  padding: 76px 0;
}

.hero::after {
  position: absolute;
  top: 9%;
  right: -9rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(111, 120, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(111, 120, 255, 0.025),
    0 0 0 110px rgba(111, 120, 255, 0.018);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--cyan);
  content: "";
}

.hero h1 {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(3.1rem, 8vw, 6.45rem);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.hero-title {
  display: block;
  margin-top: 18px;
  color: var(--accent-bright);
  font-size: clamp(1.45rem, 3.3vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  color: var(--dim);
  font-size: 0.9rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(115, 226, 167, 0.09);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(111, 120, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--accent-bright);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  box-shadow: none;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(111, 120, 255, 0.08);
}

.portrait-frame {
  position: relative;
  width: min(100%, 430px);
  justify-self: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 44% 44% 18px 18px;
  background: linear-gradient(145deg, rgba(111, 120, 255, 0.13), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  position: absolute;
  inset: -24px 30% 62% -24px;
  z-index: -1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  content: "";
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 42% 42% 12px 12px;
  object-fit: cover;
  object-position: 50% 47%;
  filter: saturate(0.92) contrast(1.04);
}

.portrait-label {
  position: absolute;
  right: -18px;
  bottom: 32px;
  max-width: 180px;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(11, 14, 28, 0.94);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.portrait-label strong {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
}

.stats-strip {
  border-block: 1px solid var(--line);
  background: rgba(15, 19, 37, 0.52);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--text);
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-grid,
.opportunity-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 8vw, 108px);
}

.about-aside {
  position: sticky;
  top: 112px;
  align-self: start;
}

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

.principle {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(15, 19, 37, 0.55);
}

.principle-index {
  color: var(--accent-bright);
  font-weight: 900;
}

.principle h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 46px;
}

.skill-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(145deg, rgba(111, 120, 255, 0.07), transparent 42%),
    var(--panel);
  transition: transform 180ms ease, border-color 180ms ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.skill-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.skill-card p {
  margin: 12px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c4cae3;
  font-size: 0.72rem;
  font-weight: 700;
}

.projects-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(111, 120, 255, 0.035), transparent 16%),
    var(--bg-soft);
}

.projects-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--accent);
  background: rgba(111, 120, 255, 0.12);
  color: var(--text);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

.project-card {
  display: grid;
  min-height: 100%;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-card[hidden] {
  display: none;
}

.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.projects-more-button {
  min-width: 154px;
  cursor: pointer;
}

.projects-more-button[hidden] {
  display: none;
}

.project-thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050713;
}

.project-thumb::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 9, 20, 0.72), transparent 56%);
  content: "";
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 16 / 8.4;
  object-fit: cover;
  transition: transform 350ms ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.025);
}

.project-number {
  position: absolute;
  right: 17px;
  bottom: 12px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.project-category {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(1.16rem, 2.2vw, 1.48rem);
  line-height: 1.22;
}

.project-card p {
  margin: 14px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.project-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.project-link:hover::after {
  transform: translateX(4px);
}

.timeline {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.timeline-period {
  color: var(--accent-bright);
  font-size: 0.86rem;
  font-weight: 900;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1.25rem;
}

.timeline-company {
  margin: 5px 0 16px;
  color: var(--cyan);
  font-size: 0.88rem;
  font-weight: 800;
}

.timeline-content ul,
.opportunity-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.timeline-content li + li,
.opportunity-list li + li {
  margin-top: 7px;
}

.timeline-impact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--cyan);
  background: color-mix(in srgb, var(--cyan) 7%, transparent);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.timeline-impact strong {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.cert-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.cert-date {
  color: var(--accent-bright);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-card h3 {
  margin: 16px 0 7px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.cert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.cert-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 700;
}

.opportunity-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 10%, rgba(111, 120, 255, 0.22), transparent 24rem),
    var(--panel);
  box-shadow: var(--shadow);
}

.opportunity-card::after {
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(93, 215, 245, 0.15);
  border-radius: 50%;
  content: "";
}

.opportunity-list {
  position: relative;
  z-index: 1;
  padding-top: 12px;
}

.contact-strip {
  padding: 0 0 112px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(111, 120, 255, 0.13), rgba(15, 19, 37, 0.9));
}

.contact-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.1;
}

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

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-hero {
  padding: 86px 0 64px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--dim);
  font-size: 0.8rem;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 70px;
  align-items: end;
}

.project-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.project-objective {
  max-width: 820px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.project-facts {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.project-fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.project-fact:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.project-fact span {
  color: var(--dim);
}

.project-fact strong {
  text-align: right;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 52px 0;
}

.summary-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.summary-card h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
}

.summary-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.summary-card li + li {
  margin-top: 7px;
}

.report-shell {
  padding: 70px 0 112px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.report-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.report-content {
  max-width: 1120px;
}

.report-content h2 {
  margin: 64px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.report-content h3 {
  margin: 38px 0 14px;
  font-size: 1.25rem;
}

.report-content p {
  color: var(--muted);
}

.report-content code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel);
  color: var(--cyan);
  font-size: 0.88em;
}


.report-content ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.report-content li + li {
  margin-top: 6px;
}

.report-extra {
  padding-top: 12px;
}

.md-table-wrap {
  overflow-x: auto;
  margin: 18px 0 28px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #02030a;
  box-shadow: var(--shadow);
}

.md-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.92rem;
}

.md-table th,
.md-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.md-table th {
  color: var(--text);
  font-weight: 750;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.md-table tr:last-child td {
  border-bottom: 0;
}

.md-table code {
  white-space: nowrap;
}

.md-quote {
  margin: 16px 0 22px;
  padding: 14px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  background: rgba(56, 189, 248, 0.06);
  color: #d9dded;
}

.md-pre {
  margin: 16px 0 24px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #02030a;
  color: #d9dded;
  font-size: 0.86rem;
  line-height: 1.55;
}

.md-pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.evidence-item {
  margin: 22px 0 62px;
}

.evidence-caption {
  margin: 0 0 13px !important;
  color: #d9dded !important;
  font-weight: 750;
}

.evidence-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #02030a;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.evidence-link img {
  width: 100%;
  height: auto;
  max-height: none;
}

.lightbox {
  width: min(96vw, 1500px);
  max-width: none;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #060812;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
}

.lightbox p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.lightbox button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.not-found {
  display: grid;
  min-height: 70vh;
  place-items: center;
  text-align: center;
}

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr 0.72fr;
    gap: 44px;
  }

  .portrait-label {
    right: -6px;
  }

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

  .project-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

  .project-fact {
    display: block;
    padding: 0 12px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .project-fact:last-child {
    border-right: 0;
  }

  .project-fact strong {
    display: block;
    margin-top: 5px;
    text-align: left;
  }
}

@media (max-width: 840px) {
  .section {
    padding: 86px 0;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    max-height: 0;
    gap: 4px;
    overflow: hidden;
    border-bottom: 1px solid transparent;
    background: rgba(7, 9, 20, 0.98);
    opacity: 0;
    pointer-events: none;
    transition: max-height 220ms ease, opacity 180ms ease;
  }

  .site-nav[data-open="true"] {
    max-height: calc(100vh - 76px);
    min-height: calc(100vh - 76px);
    padding: 18px 20px 26px;
    border-color: var(--line);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 16px;
    font-size: 1rem;
  }

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

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

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

  .portrait-frame {
    width: min(88%, 430px);
    justify-self: center;
  }

  .about-grid,
  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .about-aside {
    position: static;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--content));
  }

  .section {
    padding: 72px 0;
  }

  .brand-name {
    display: none;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.5rem);
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .portrait-frame {
    width: 100%;
  }

  .portrait-label {
    right: 8px;
    bottom: 20px;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .skills-grid,
  .cert-grid,
  .project-summary-grid {
    grid-template-columns: 1fr;
  }

  .projects-heading,
  .report-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-body {
    padding: 22px;
  }

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

  .project-fact {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    width: 98vw;
    padding: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
