:root {
  --bg-ink: #020b12;
  --bg-ink-2: #071826;
  --panel: #ffffff;
  --panel-soft: #f4f8fb;
  --line: #d8e3ea;
  --text: #132433;
  --muted: #5a6d7c;
  --cyan: #18c7d3;
  --cyan-dark: #058696;
  --navy: #082338;
  --gold: #d9a928;
  --shadow: 0 18px 42px rgba(5, 18, 28, 0.12);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--cyan);
  color: #001018;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
}

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

.portfolio-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
}

.portfolio-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  background: rgba(3, 14, 23, 0.96);
  border-bottom: 1px solid rgba(24, 199, 211, 0.18);
  backdrop-filter: blur(14px);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-lockup:hover,
.portfolio-nav .nav-link:hover {
  color: #fff;
}

.brand-mark {
  display: grid;
  overflow: hidden;
  width: 44px;
  height: 50px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border: 2px solid var(--cyan);
  background: #dfe8ec;
  clip-path: polygon(50% 0, 95% 20%, 86% 78%, 50% 100%, 14% 78%, 5% 20%);
}

.brand-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 16%;
}

.brand-name,
.brand-subtitle {
  display: block;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--cyan);
  font-size: 0.82rem;
}

.portfolio-nav .nav-link {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 600;
  font-size: 0.95rem;
}

.portfolio-nav .nav-link.active {
  color: var(--cyan);
}

.portfolio-nav .nav-split-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.portfolio-nav .nav-main-link {
  padding-right: 0.28rem;
}

.portfolio-nav .nav-dropdown-toggle {
  border: 0;
  padding-right: 0.55rem;
  padding-left: 0.12rem;
  background: transparent;
}

.portfolio-nav .nav-dropdown-toggle::after {
  margin-left: 0;
  vertical-align: 0.12em;
}

.portfolio-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  z-index: 1000;
  min-width: 180px;
  margin-top: 0;
  border: 1px solid rgba(24, 199, 211, 0.28);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(5, 22, 34, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.portfolio-dropdown.show {
  display: block;
}

.portfolio-dropdown .dropdown-item {
  border-radius: 5px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
}

.portfolio-dropdown .dropdown-item:hover,
.portfolio-dropdown .dropdown-item:focus {
  color: #001016;
  background: var(--cyan);
}

.portfolio-nav .nav-link:focus-visible,
.portfolio-dropdown .dropdown-item:focus-visible,
.portfolio-nav .nav-resume:focus-visible {
  outline: 3px solid rgba(24, 199, 211, 0.35);
  outline-offset: 3px;
}

@media (hover: hover) and (min-width: 992px) {
  .portfolio-nav .nav-split-item::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: max(100%, 180px);
    height: 20px;
    content: "";
  }

  .portfolio-nav .portfolio-dropdown {
    top: calc(100% + 20px) !important;
    right: auto !important;
    bottom: auto !important;
    left: 0 !important;
    transform: none !important;
  }

  .portfolio-nav .nav-split-item:hover > .portfolio-dropdown,
  .portfolio-nav .nav-split-item:focus-within > .portfolio-dropdown {
    display: block;
  }
}

@media (max-width: 991.98px) {
  .portfolio-nav .navbar-nav {
    gap: 4px;
    align-items: stretch !important;
    padding: 14px 0 8px;
  }

  .portfolio-nav .nav-split-item {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .portfolio-nav .nav-main-link {
    padding-right: 0.75rem;
  }

  .portfolio-nav .nav-dropdown-toggle {
    justify-self: end;
    min-width: 44px;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .portfolio-nav .portfolio-dropdown {
    grid-column: 1 / -1;
    width: 100%;
    margin: 2px 0 8px;
    position: static;
  }

  .portfolio-nav .nav-resume {
    width: 100%;
    margin-top: 6px;
  }
}

.btn {
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

.btn-outline-cyan {
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.btn-outline-cyan:hover,
.btn-primary-cyan {
  border-color: var(--cyan);
  background: linear-gradient(135deg, #14d4e0, #28b8bf);
  color: #001016;
}

.btn-primary-cyan:hover {
  background: #0fc6d0;
  color: #001016;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 72% 45%, rgba(24, 199, 211, 0.24), transparent 24%),
    linear-gradient(120deg, #020b12 0%, #061829 56%, #04101b 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(24, 199, 211, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 199, 211, 0.12) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 84%, transparent);
}

.hero::after {
  background:
    radial-gradient(circle at 22% 55%, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 34%, rgba(24, 199, 211, 0.3) 0 1px, transparent 2px);
  background-size: 92px 92px, 118px 118px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.25fr) 270px minmax(240px, 0.85fr);
  gap: 46px;
  align-items: center;
  padding: 56px 0 46px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 0.94;
}

.hero-role {
  margin: 14px 0 8px;
  color: var(--cyan);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 850;
}

.hero-study {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 650;
}

.hero-summary {
  max-width: 660px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
}

.focus-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.focus-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  min-width: 190px;
  align-items: center;
}

.focus-item strong,
.focus-item small {
  display: block;
}

.focus-item small {
  color: rgba(255, 255, 255, 0.74);
}

.focus-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(24, 199, 211, 0.76);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(24, 199, 211, 0.18), rgba(24, 199, 211, 0.03));
  box-shadow:
    inset 0 0 18px rgba(24, 199, 211, 0.12),
    0 0 18px rgba(24, 199, 211, 0.12);
}

.focus-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--focus-symbol) center / contain no-repeat;
}

.operations-icon {
  --focus-symbol: url("../images/focus-operations.svg");
}

.security-icon {
  --focus-symbol: url("../images/focus-security-controls.svg");
}

.automation-icon {
  --focus-symbol: url("../images/focus-automation.svg");
}

.role-entry-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.role-entry-row a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(24, 199, 211, 0.62);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  background: rgba(3, 22, 34, 0.72);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.role-entry-row a:hover,
.role-entry-row a:focus-visible {
  color: #001016;
  background: var(--cyan);
  outline: none;
}

.headshot-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: #e7ecef;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.headshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

.contact-panel {
  display: grid;
  gap: 13px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  font-weight: 780;
  letter-spacing: 0;
}

.contact-panel p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 30px;
  margin: 0;
}

.contact-panel p.linkedin-contact,
.contact-panel p.github-contact {
  grid-template-columns: 34px 1fr;
}

.contact-panel .location-icon,
.contact-panel .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
}

.contact-panel .location-icon img,
.contact-panel .contact-icon img {
  display: block;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(17, 215, 232, 0.24));
}

.contact-panel .location-icon img {
  width: 30px;
}

.contact-panel .contact-icon img {
  width: 23px;
}

.contact-panel .contact-text,
.contact-panel a {
  color: #fff;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.25;
  text-decoration: none;
}

.icon-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.contact-panel a.linkedin-link,
.contact-panel a.github-link {
  color: var(--cyan);
  font-size: inherit;
  font-weight: inherit;
  text-shadow: 0 0 12px rgba(24, 199, 211, 0.18);
}

.contact-panel .linkedin-icon img,
.contact-panel .github-icon img {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}

.icon-button img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.contact-panel a:hover,
.text-link:hover,
.evidence-card a:hover {
  color: var(--cyan-dark);
}

.credential-highlights {
  padding: 28px 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(24, 199, 211, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbfd 0%, #edf6fa 100%);
  background-size: 72px 72px, auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 26px rgba(14, 40, 57, 0.08);
}

.credential-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.credential-highlight-card {
  display: flex;
  min-height: 286px;
  flex-direction: column;
  border: 1px solid #cfe0e8;
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 38px rgba(5, 18, 28, 0.1);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.credential-highlight-card:hover,
.credential-highlight-card:focus-visible {
  border-color: var(--cyan);
  color: var(--text);
  outline: 3px solid rgba(24, 199, 211, 0.18);
  box-shadow: 0 22px 46px rgba(5, 18, 28, 0.14);
  transform: translateY(-2px);
}

.credential-card-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.credential-kicker {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--cyan);
}

.credential-highlight-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 900;
}

.credential-highlight-card p {
  margin: 0;
  color: var(--muted);
}

.degree-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: auto;
}

.degree-badge-grid span {
  display: grid;
  min-height: 58px;
  align-content: center;
  border: 1px solid #cfe0e8;
  border-radius: var(--radius-sm);
  padding: 9px;
  background: #f6fbfd;
}

.degree-badge-grid strong,
.degree-badge-grid small {
  display: block;
}

.degree-badge-grid strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.degree-badge-grid small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.credential-badge-grid {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.comptia-badge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comptia-cert-badge {
  display: grid;
  min-height: 64px;
  align-content: center;
  border: 1px solid rgba(238, 34, 39, 0.2);
  border-left: 5px solid #ed1c24;
  border-radius: var(--radius-sm);
  padding: 10px;
  background: linear-gradient(135deg, #fff, #fff6f6);
}

.comptia-cert-badge strong,
.comptia-cert-badge small {
  display: block;
}

.comptia-cert-badge strong {
  color: #ed1c24;
  font-size: 0.88rem;
  font-weight: 950;
}

.comptia-cert-badge small {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
}

.testout-badge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.testout-cert-badge {
  display: grid;
  min-height: 112px;
  place-items: end center;
  border: 1px solid #d9e5eb;
  border-radius: var(--radius-sm);
  padding: 10px;
  background: #fff;
}

.testout-cert-badge img {
  display: block;
  width: min(100%, 118px);
  height: auto;
}

.section-band {
  padding: 70px 0;
}

main section[id] {
  scroll-margin-top: 86px;
}

.section-anchor {
  display: block;
  height: 1px;
  scroll-margin-top: 92px;
}

.section-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.section-heading-spread {
  justify-content: space-between;
}

.section-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.section-heading h2,
.resume-band h2,
.contact-band h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 900;
}

.section-heading p,
.resume-band p,
.contact-band p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
}

.heading-rule {
  width: 5px;
  min-width: 5px;
  height: 36px;
  margin-top: 5px;
  background: var(--cyan);
}

.work-band {
  background: var(--panel-soft);
}

.focus-section {
  background:
    linear-gradient(90deg, rgba(24, 199, 211, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f8fbfd 0%, #eef6fa 100%);
  background-size: 74px 74px, auto;
  border-bottom: 1px solid var(--line);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.focus-card {
  min-height: 190px;
  border: 1px solid #cfe0e8;
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(5, 18, 28, 0.08);
}

.focus-number {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid rgba(24, 199, 211, 0.38);
  border-radius: 999px;
  color: var(--cyan-dark);
  background: #e9fbfd;
  font-size: 0.78rem;
  font-weight: 950;
}

.focus-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.06rem;
  font-weight: 900;
}

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

.impact-section {
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(24, 199, 211, 0.18), transparent 28%),
    linear-gradient(135deg, #04101b 0%, #071927 54%, #04101b 100%);
}

.impact-section .section-heading h2,
.impact-section .section-heading p {
  color: #fff;
}

.impact-section .section-heading p,
.impact-card p {
  color: rgba(255, 255, 255, 0.78);
}

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

.impact-card {
  min-height: 100%;
  border: 1px solid rgba(24, 199, 211, 0.24);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(6, 28, 43, 0.82);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.impact-card-primary {
  background: rgba(10, 48, 68, 0.9);
}

.impact-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.24rem;
  font-weight: 900;
}

.impact-card p {
  margin: 0;
}

.impact-card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--cyan);
}

.impact-card-link:hover,
.impact-card-link:focus-visible {
  color: #fff;
}

.impact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.impact-tags span {
  border: 1px solid rgba(24, 199, 211, 0.34);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--cyan);
  background: rgba(2, 11, 18, 0.38);
  font-size: 0.78rem;
  font-weight: 900;
}

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

.work-card,
.credential-list article,
.teaching-grid article,
.download-cards article,
.contact-form,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.work-card {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cyan-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card h3,
.evidence-card h3,
.credential-list h3,
.teaching-grid h3,
.download-cards h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.24rem;
  font-weight: 900;
}

.meta {
  margin: 5px 0 16px;
  color: var(--muted);
  font-style: italic;
}

.work-card ul,
.credential-list ul {
  margin: 0;
  padding-left: 1.15rem;
}

.work-card li,
.credential-list li {
  margin-bottom: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.featured-section {
  background: var(--panel-soft);
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.evidence-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.evidence-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  background: var(--bg-ink);
}

.evidence-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.evidence-body p:not(.eyebrow) {
  color: var(--muted);
}

.evidence-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 18px;
}

.evidence-badges span {
  border: 1px solid rgba(24, 199, 211, 0.38);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--cyan-dark);
  background: #eefbfc;
  font-size: 0.74rem;
  font-weight: 900;
}

.evidence-card a,
.text-link {
  margin-top: auto;
  color: var(--cyan-dark);
  font-weight: 900;
  text-decoration: none;
}

.artifact-section {
  background: #06131f;
  color: #fff;
}

.artifact-section .section-heading h2,
.artifact-section .section-heading p {
  color: #fff;
}

.artifact-section .section-heading p {
  color: rgba(255, 255, 255, 0.74);
}

.artifact-group {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
  align-items: start;
}

.artifact-group + .artifact-group {
  margin-top: 38px;
}

.artifact-label {
  position: sticky;
  top: 100px;
  padding-top: 4px;
}

.artifact-label span,
.artifact-label strong {
  display: block;
}

.artifact-label span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.artifact-label strong {
  margin-top: 5px;
  font-size: 1.2rem;
  line-height: 1.2;
}

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

.artifact-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.artifact-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.artifact-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #fff;
}

.artifact-document-mark {
  display: grid;
  height: 180px;
  place-items: center;
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(24, 199, 211, 0.18), rgba(255, 255, 255, 0.04)),
    #071826;
  font-size: 2.6rem;
  font-weight: 950;
  letter-spacing: 0;
}

.artifact-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.artifact-body h3 {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 900;
}

.artifact-body p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}

.link-row a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.link-row a:hover {
  color: #fff;
}

.evidence-body .link-row {
  margin-top: auto;
}

.evidence-body .link-row a:hover {
  color: var(--cyan-dark);
}

.evidence-body .gallery-action-row {
  margin-top: auto;
}

.evidence-body .gallery-action-row a {
  margin-top: 0;
}

.evidence-card .gallery-icon-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: transparent;
}

.featured-grid .gallery-action-row {
  gap: 9px;
}

.featured-grid .case-study-link {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 0.78rem;
}

.featured-grid .gallery-icon-links {
  gap: 5px;
}

.featured-grid .gallery-icon-link {
  width: 30px;
  height: 30px;
}

.featured-grid .gallery-icon-link img {
  width: 16px;
  height: 16px;
}

.featured-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 24px;
}

.featured-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.credential-section,
.teaching-strip {
  background: linear-gradient(180deg, #f8fbfd, #eef6fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credentials-layout {
  display: grid;
  gap: 22px;
}

.credential-list {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 18px;
}

.credential-list article {
  padding: 26px;
}

.proof-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.proof-grid a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--cyan-dark);
  background: #f7fbfd;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.proof-grid a:hover {
  border-color: var(--cyan);
  background: #e9fbfd;
}

.credential-profile-link {
  display: inline-block;
  margin-top: 18px;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.teaching-grid article {
  padding: 24px;
}

.teaching-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.resume-band {
  background: #fff;
}

.resume-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 46px;
  align-items: center;
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-cards article {
  padding: 26px;
}

.download-cards p {
  margin-bottom: 22px;
}

.looking-for {
  margin-top: 24px;
  border-left: 5px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: var(--panel-soft);
}

.looking-for h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.12rem;
  font-weight: 900;
}

.looking-for p {
  margin: 0;
}

.contact-band {
  color: #fff;
  background: linear-gradient(120deg, #020b12, #061d2e);
}

.contact-band h2,
.contact-band p {
  color: #fff;
}

.contact-band p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.contact-form {
  display: grid;
  gap: 9px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.contact-form label {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 12px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(24, 199, 211, 0.18);
}

.invalid-feedback {
  color: #ffb3b3;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #001016;
  background: var(--cyan);
  font-weight: 900;
  box-shadow: var(--shadow);
}

.gallery-page {
  background: #f7fbfd;
}

.gallery-hero {
  color: #fff;
  background:
    radial-gradient(circle at 72% 30%, rgba(24, 199, 211, 0.2), transparent 24%),
    linear-gradient(120deg, #020b12, #082338);
}

.gallery-hero .portfolio-shell {
  padding: 58px 0 54px;
}

.gallery-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.96;
}

.gallery-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.gallery-main {
  padding: 42px 0 72px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.45fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.gallery-search {
  display: grid;
  gap: 8px;
}

.gallery-search label {
  color: var(--navy);
  font-weight: 900;
}

.gallery-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  background: #f7fbfd;
}

.gallery-search input:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(24, 199, 211, 0.18);
}

.gallery-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-button,
.text-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--navy);
  background: #fff;
  font-weight: 850;
}

.filter-button:hover,
.filter-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.filter-button.is-active {
  border-color: var(--cyan);
  color: #001016;
  background: var(--cyan);
}

.gallery-status {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.gallery-status p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.text-button {
  color: var(--cyan-dark);
  background: #f7fbfd;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  overflow: hidden;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

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

.gallery-card img,
.gallery-card .artifact-document-mark {
  width: 100%;
  height: 190px;
}

.gallery-card img {
  object-fit: cover;
  background: var(--bg-ink);
}

.gallery-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.gallery-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.22rem;
  font-weight: 900;
}

.gallery-card p:not(.eyebrow) {
  color: var(--muted);
}

.gallery-card .link-row {
  margin-top: auto;
}

.gallery-card .link-row a {
  color: var(--cyan-dark);
}

.gallery-card .link-row a:hover,
.gallery-card .link-row a:focus-visible {
  color: var(--navy);
}

.gallery-action-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
}

.gallery-action-row-support-only {
  justify-content: flex-end;
}

.case-study-link {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(24, 199, 211, 0.5);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cyan-dark);
  background: #eefbfc;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.case-study-link:hover,
.case-study-link:focus-visible {
  border-color: var(--cyan);
  color: #001016;
  background: var(--cyan);
  outline: none;
}

.gallery-icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.gallery-icon-link {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 199, 211, 0.32);
  border-radius: 999px;
  background: #f7fbfd;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.gallery-icon-link:hover,
.gallery-icon-link:focus-visible {
  border-color: var(--cyan);
  background: #e9fbfd;
  outline: 3px solid rgba(24, 199, 211, 0.16);
  transform: translateY(-1px);
}

.gallery-card .gallery-icon-link img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: transparent;
}

.gallery-empty {
  margin: 28px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  text-align: center;
  font-weight: 850;
}

.project-page {
  background: #f7fbfd;
}

.project-hero {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(120deg, #020b12, #082338);
}

.project-hero .portfolio-shell {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
}

.project-hero p {
  color: rgba(255, 255, 255, 0.82);
}

.project-hero img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.project-hero img.wide-dashboard {
  object-fit: contain;
  background: #dce9f3;
}

.project-content {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 40px;
  padding: 56px 0;
}

.project-meta,
.project-story {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.project-meta {
  align-self: start;
  padding: 24px;
}

.project-story {
  padding: 30px;
}

.project-story h2,
.project-meta h2 {
  color: var(--navy);
  font-weight: 900;
}

.project-story h2:not(:first-child) {
  margin-top: 30px;
}

.project-story img {
  border-radius: var(--radius);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0 6px;
}

.project-gallery figure,
.project-evidence {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7fbfd;
}

.project-gallery figure {
  overflow: hidden;
}

.project-gallery img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.project-gallery.wide-gallery img {
  object-fit: contain;
  background: #fff;
}

.project-gallery.three-up-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-video-frame {
  overflow: hidden;
  margin: 18px 0 8px;
  border: 1px solid rgba(24, 199, 211, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(24, 199, 211, 0.16), transparent 34%),
    #061522;
  box-shadow: 0 18px 42px rgba(0, 28, 43, 0.14);
}

.project-video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.project-site-frame {
  overflow: hidden;
  margin: 18px 0 8px;
  border: 1px solid rgba(24, 199, 211, 0.32);
  border-radius: var(--radius);
  background: #061522;
  box-shadow: 0 18px 42px rgba(0, 28, 43, 0.14);
}

.project-site-frame::before {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(24, 199, 211, 0.24);
  background: #0b1622;
  color: var(--muted);
  content: "Live website preview";
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-site-frame iframe {
  display: block;
  width: 100%;
  height: 720px;
  border: 0;
  background: #fff;
}

.project-code-frame {
  overflow: hidden;
  margin: 18px 0 8px;
  border: 1px solid rgba(24, 199, 211, 0.3);
  border-radius: var(--radius);
  background: #061522;
  box-shadow: 0 18px 42px rgba(0, 28, 43, 0.14);
}

.project-code-frame iframe {
  display: block;
  width: 100%;
  height: 480px;
  border: 0;
  background: #061522;
}

.project-evidence {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
}

.project-evidence img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.project-evidence img.evidence-diagram-large {
  max-height: 680px;
}

.project-evidence .link-row {
  margin-top: 4px;
}

.project-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 4px;
}

.project-evidence-actions .gallery-icon-link {
  width: 38px;
  height: 38px;
  background: #fff;
}

.project-evidence-actions .gallery-icon-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  background: transparent;
}

.deck-viewer {
  display: grid;
  gap: 14px;
  margin: 22px 0 18px;
  padding: 18px;
  border: 1px solid rgba(24, 199, 211, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(24, 199, 211, 0.14), transparent 34%),
    #071826;
  box-shadow: 0 18px 40px rgba(0, 21, 33, 0.18);
}

.deck-viewer:focus {
  outline: 3px solid rgba(24, 199, 211, 0.42);
  outline-offset: 3px;
}

.deck-viewer-header,
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.deck-viewer-header h3 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
}

.deck-download {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.deck-download:hover,
.deck-download:focus-visible {
  color: #001521;
  background: var(--cyan);
}

.deck-frame {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #dbe8f3;
}

.project-story .deck-frame img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 0;
}

.deck-controls {
  color: rgba(255, 255, 255, 0.84);
}

.deck-controls button,
.deck-thumbnail {
  border: 1px solid rgba(24, 199, 211, 0.62);
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
}

.deck-controls button {
  min-width: 112px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
}

.deck-controls button:hover:not(:disabled),
.deck-controls button:focus-visible,
.deck-thumbnail:hover,
.deck-thumbnail:focus-visible {
  color: #001521;
  background: var(--cyan);
}

.deck-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.deck-counter {
  min-width: 118px;
  text-align: center;
  font-weight: 800;
}

.deck-thumbnails {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-color: var(--cyan) rgba(255, 255, 255, 0.12);
}

.deck-thumbnail {
  flex: 0 0 112px;
  padding: 3px;
  border-radius: var(--radius-sm);
}

.project-story .deck-thumbnail img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 2px);
}

.deck-thumbnail.is-active {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--cyan);
}

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

  .contact-panel {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .credential-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .degree-highlight {
    grid-column: 1 / -1;
  }

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

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

  .impact-card-primary {
    grid-column: 1 / -1;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gallery-status {
    justify-items: start;
  }

  .work-grid,
  .teaching-grid,
  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: minmax(660px, 1.45fr) 280px minmax(230px, 0.75fr);
    gap: 34px;
  }

  .hero-role {
    font-size: 1.65rem;
  }
}

@media (max-width: 860px) {
  .portfolio-shell {
    width: min(100% - 28px, 720px);
  }

  .hero-grid,
  .credentials-layout,
  .resume-grid,
  .contact-grid,
  .project-hero .portfolio-shell,
  .project-content,
  .artifact-group {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

  .headshot-frame {
    max-width: 280px;
  }

  .contact-panel,
  .credential-highlight-grid,
  .focus-grid,
  .project-grid,
  .featured-grid,
  .impact-grid,
  .credential-list,
  .work-grid,
  .teaching-grid,
  .download-cards,
  .artifact-grid,
  .project-gallery,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .project-code-frame iframe {
    height: 380px;
  }

  .project-site-frame iframe {
    height: 560px;
  }

  .degree-highlight {
    grid-column: auto;
  }

  .impact-card-primary {
    grid-column: auto;
  }

  .section-heading-spread {
    flex-wrap: wrap;
  }

  .section-actions {
    flex-basis: calc(100% - 19px);
    width: auto;
    margin-left: 19px;
  }

  .artifact-label {
    position: static;
  }

  .deck-viewer-header,
  .deck-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .deck-download,
  .deck-controls button,
  .deck-counter {
    width: 100%;
    text-align: center;
  }

}

@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;
  }
}
