.projects-section .project .tag {
  color: #000;
  background: #fff;
  border-color: #d6d6d6;
}

.profile-intro-text strong,
.profile-intro-text span {
  color: #edf3f5;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(2.1rem, 4.1vw, 3.3rem);
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.art-caption {
  align-items: center;
  padding: 14px 4px 2px;
  color: #b8c6c9;
  border-top: 1px solid #26383c;
}

.caption-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #e8f0f0;
}

.caption-title i {
  width: 7px;
  height: 7px;
  background: #b9f75e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #b9f75e1c;
  animation: caption-pulse 2.4s ease-in-out infinite;
}

.caption-scale {
  padding: 5px 8px;
  color: #b9f75e;
  border: 1px solid #405b32;
  border-radius: 6px;
}

.network-frame {
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.network-frame:hover {
  transform: translateY(-4px);
  border-color: #b9f75e;
  box-shadow: 0 38px 105px #0009, 0 0 30px #b9f75e12;
}

.enterprise-flow {
  stroke-dasharray: 3 9;
  animation: enterprise-traffic 1.7s linear infinite;
}

.flow-delay-1 {
  animation-delay: -.55s;
}

.flow-delay-2 {
  animation-delay: -1.05s;
}

.flow-delay-3 {
  animation-delay: -1.4s;
}

.enterprise-node {
  transition: filter .25s ease;
}

.enterprise-node:hover {
  filter: drop-shadow(0 0 7px #b9f75e38);
}

.platform-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #b9f75e;
  background: #10191e;
  border: 1px solid #33434d;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .25s ease;
}

.platform-toggle svg {
  width: 19px;
  height: 19px;
  transition: transform .25s ease;
}

.platform-toggle:hover {
  color: #10191e;
  background: #b9f75e;
  border-color: #b9f75e;
  transform: translateY(-2px);
}

.platform-toggle[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.platform-toggle:focus-visible {
  outline: 2px solid #b9f75e;
  outline-offset: 3px;
}

.platform-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  margin: auto;
  padding: 28px;
  overflow: auto;
  color: #edf3f5;
  background: #0b1117;
  border: 1px solid #40534c;
  border-radius: 14px;
  box-shadow: 0 28px 100px #000b;
}

.platform-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}

.platform-dialog[open] {
  animation: platform-reveal .24s ease both;
}

.platform-dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.platform-dialog-head .eyebrow {
  margin: 0 0 7px;
}

.platform-dialog-head h2 {
  margin: 0;
  color: #edf3f5;
  font: 700 1.35rem/1.25 var(--display);
}

.platform-dialog-head form {
  margin: 0;
}

.platform-dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #c4d0d2;
  background: #10191e;
  border: 1px solid #33434d;
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}

.platform-dialog-close:hover {
  color: #10191e;
  background: #b9f75e;
  border-color: #b9f75e;
}

.platform-device-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-device-photo {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #10191e;
  border: 1px solid #26343d;
  border-radius: 9px;
}

.platform-device-photo > img,
.platform-device-photo > svg {
  display: block;
  width: 100%;
  height: 112px;
  padding: 10px;
  object-fit: contain;
  background: linear-gradient(145deg, #17252a, #0e161b);
}

.platform-device-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px 12px;
}

.platform-device-photo figcaption strong {
  color: #e8f0f0;
  font: 600 .68rem var(--mono);
}

.platform-device-photo figcaption span {
  color: #8fa1a5;
  font-size: .68rem;
}

.platform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #26343d;
}

.platform-gallery:not([hidden]) {
  animation: platform-reveal .28s ease both;
}

.platform-card {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #10191e;
  border: 1px solid #26343d;
  border-radius: 8px;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.platform-card:hover {
  background: #14201f;
  border-color: #607e48;
  transform: translateY(-2px);
}

.platform-card img {
  display: block;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  object-fit: contain;
}

.platform-card img[src*="Sophos_logo"] {
  width: 32px;
  height: 24px;
}

.platform-card img[src*="Aruba_Networks_logo"] {
  width: 32px;
  height: 24px;
}

.platform-card h4 {
  margin: 0;
  color: #e5eeee;
  font: 600 .69rem/1.35 var(--mono);
}

.platform-card p {
  margin: 5px 0 0;
  color: #9aa9ad;
  font-size: .67rem;
  line-height: 1.5;
}

.projects-section .project .project-visual {
  background: linear-gradient(145deg, #101b20, #0b1116);
  border: 1px solid #293d3c;
  box-shadow: inset 0 1px #ffffff08;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.projects-section .project .project-visual:hover {
  border-color: #597a48;
  box-shadow: inset 0 1px #ffffff08, 0 16px 34px #0005;
  transform: translateY(-3px);
}

.project-diagram .diagram-flow {
  fill: none;
  stroke: #39535a;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-diagram .project-flow {
  fill: none;
  stroke: #b9f75e;
  stroke-width: 2.2;
  stroke-dasharray: 3 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: enterprise-traffic 1.7s linear infinite;
}

.project-diagram .diagram-node,
.project-diagram .diagram-node-soft {
  fill: #111d22;
  stroke: #344b50;
  stroke-width: 1;
  transition: stroke .25s ease, fill .25s ease;
}

.project-diagram .diagram-node-soft {
  fill: #0d171c;
}

.project-diagram .diagram-chip {
  fill: #17242a;
  stroke: #32484e;
  stroke-width: .8;
}

.project-diagram .diagram-icon {
  fill: none;
  stroke: #45d6c5;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-diagram .diagram-icon-fill {
  fill: #45d6c5;
}

.project-diagram .diagram-kicker {
  fill: #83969a;
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 1px;
}

.project-diagram .diagram-brand {
  fill: #b9f75e;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .5px;
}

.project-diagram .diagram-label {
  fill: #e2ebeb;
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 600;
}

.project-diagram .diagram-mini {
  fill: #91a2a6;
  font-family: var(--mono);
  font-size: 5.5px;
}

.project-diagram .diagram-accent {
  fill: #b9f75e;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 600;
}

.project-visual:hover .project-diagram .diagram-node,
.project-visual:hover .project-diagram .diagram-node-soft {
  stroke: #6b9448;
}

.project-visual:hover .project-diagram .project-flow {
  animation-duration: 1s;
}

.tech-carousel {
  margin-top: 62px;
  padding-top: 22px;
  border-top: 1px solid #26343d;
}

.tech-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.tech-carousel-head .eyebrow {
  margin: 0;
}

.tech-viewport:focus-visible {
  outline: 2px solid #b9f75e;
  outline-offset: 3px;
}

.tech-viewport {
  overflow: hidden;
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
  padding: 10px 2px 14px;
}

.tech-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.tech-track.is-looping {
  animation: technology-loop 48s linear infinite;
}

.tech-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  padding-right: 12px;
}

.tech-viewport:hover .tech-track,
.tech-viewport:focus-within .tech-track {
  animation-play-state: paused;
}

.tech-item {
  display: flex;
  flex: 0 0 158px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 72px;
  padding: 14px;
  color: #d7e2e3;
  background: #10191e;
  border: 1px solid #26343d;
  border-radius: 10px;
  font: 600 .7rem var(--mono);
  white-space: nowrap;
  transition: transform .28s ease, color .28s ease, background .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.tech-item img {
  display: block;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: transform .25s ease;
}

.tech-item img.wordmark-logo {
  width: 58px;
  height: auto;
}

.tech-item img.tech-logo-wide {
  width: 48px;
  height: 28px;
}

.tech-item img.aws-logo {
  padding: 3px 4px;
  background: #fff;
  border-radius: 4px;
}

.tech-item:hover {
  color: #f2f8f8;
  background: #17231e;
  border-color: #6b9448;
  box-shadow: 0 12px 26px #b9f75e12;
  transform: translateY(-3px) scale(1.035);
  z-index: 1;
}

.tech-item:hover img {
  transform: scale(1.28);
}

.tech-item:focus-visible {
  outline: 2px solid #b9f75e;
  outline-offset: 3px;
}

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

.contact-dialog {
  width: min(440px, calc(100% - 32px));
  padding: 34px;
  color: #edf3f5;
  background: #0e161c;
  border: 1px solid #405b32;
  border-radius: 14px;
  box-shadow: 0 24px 80px #000a;
}

.contact-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(4px);
}

.contact-dialog form {
  position: absolute;
  top: 12px;
  right: 12px;
  margin: 0;
}

.dialog-close {
  width: 34px;
  height: 34px;
  color: #edf3f5;
  background: transparent;
  border: 1px solid #33434d;
  border-radius: 8px;
  cursor: pointer;
}

.contact-dialog .eyebrow {
  margin: 0 0 10px;
}

.contact-dialog h2 {
  margin: 0 0 22px;
  color: #edf3f5;
  font: 800 1.7rem/1.2 var(--display);
}

.dialog-contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
  padding: 15px;
  color: #edf3f5;
  background: #121f25;
  border: 1px solid #2a3a42;
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}

.dialog-contact-link:hover {
  background: #172720;
  border-color: #b9f75e;
}

.dialog-contact-link small {
  color: #b9f75e;
  font: .65rem var(--mono);
}

.dialog-contact-link strong {
  overflow-wrap: anywhere;
  font-size: .9rem;
}

@media (max-width: 760px) {
  .tech-carousel {
    margin-top: 46px;
  }

  .tech-item {
    flex-basis: 144px;
    min-height: 68px;
  }
}

@media (max-width: 520px) {
  .platform-dialog {
    width: calc(100% - 20px);
    max-height: 90vh;
    padding: 18px;
  }

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

  .platform-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tech-viewport {
    overflow-x: auto;
    scroll-behavior: auto;
  }

  .tech-track.is-looping {
    animation: none;
  }

  .caption-title i {
    animation: none;
  }

  .network-frame,
  .project-visual,
  .enterprise-node,
  .tech-item,
  .tech-item img {
    transition: none;
  }

  .enterprise-flow,
  .project-diagram .project-flow {
    animation: none;
  }

  .platform-gallery:not([hidden]) {
    animation: none;
  }

  .platform-dialog[open] {
    animation: none;
  }
}

@keyframes platform-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes technology-loop {
  to {
    transform: translateX(-50%);
  }
}

@keyframes enterprise-traffic {
  to {
    stroke-dashoffset: -48;
  }
}

.platform-dialog {
  width: min(720px, calc(100% - 32px));
}

.platform-usage-list {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.platform-usage {
  padding: 3px 0 5px;
  transition: transform .2s ease;
}

.platform-usage:hover {
  transform: translateX(4px);
}

.platform-usage-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: #dce6e8;
  font: 500 .76rem var(--mono);
}

.platform-usage-heading strong {
  flex: 0 0 3.5ch;
  color: #b9f75e;
  text-align: right;
  font-size: .78rem;
}

.platform-dialog[open] .platform-usage-heading strong {
  animation: platform-percent-pulse 1.1s ease-in-out infinite;
}

.platform-usage-track {
  height: 10px;
  overflow: hidden;
  background: #1b292f;
  border: 1px solid #304149;
  border-radius: 99px;
}

.platform-usage-fill {
  position: relative;
  display: block;
  width: var(--usage-width);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9f75e, #45d6c5);
  box-shadow: 0 0 16px #b9f75e35;
  transform: scaleX(0);
  transform-origin: left center;
}

.platform-usage-fill::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, #ffffffa8 7px 10px, transparent 10px 18px);
  background-size: 24px 100%;
  content: '';
}

.platform-dialog[open] .platform-usage {
  animation: platform-reveal .35s ease both;
}

.platform-dialog[open] .platform-usage-fill {
  animation: platform-usage-fill .55s cubic-bezier(.2,.7,.2,1) both;
}

.platform-dialog[open] .platform-usage-fill::after {
  animation: platform-traffic-flow .55s linear infinite;
}

.platform-dialog[open] .platform-usage:nth-child(2),
.platform-dialog[open] .platform-usage:nth-child(2) .platform-usage-fill {
  animation-delay: 45ms;
}

.platform-dialog[open] .platform-usage:nth-child(3),
.platform-dialog[open] .platform-usage:nth-child(3) .platform-usage-fill {
  animation-delay: 90ms;
}

.platform-dialog[open] .platform-usage:nth-child(4),
.platform-dialog[open] .platform-usage:nth-child(4) .platform-usage-fill {
  animation-delay: 135ms;
}

.platform-dialog[open] .platform-usage:nth-child(5),
.platform-dialog[open] .platform-usage:nth-child(5) .platform-usage-fill {
  animation-delay: 180ms;
}

.platform-dialog[open] .platform-usage:nth-child(6),
.platform-dialog[open] .platform-usage:nth-child(6) .platform-usage-fill {
  animation-delay: 225ms;
}

.platform-dialog[open] .platform-usage:nth-child(7),
.platform-dialog[open] .platform-usage:nth-child(7) .platform-usage-fill {
  animation-delay: 270ms;
}

.platform-dialog[open] .platform-usage:nth-child(8),
.platform-dialog[open] .platform-usage:nth-child(8) .platform-usage-fill {
  animation-delay: 315ms;
}

@keyframes platform-usage-fill {
  to {
    transform: scaleX(1);
  }
}

@keyframes platform-traffic-flow {
  to {
    background-position: 24px 0;
  }
}

@keyframes platform-percent-pulse {
  0%,
  100% {
    text-shadow: 0 0 0 #b9f75e00;
  }

  50% {
    color: #d8ffad;
    text-shadow: 0 0 9px #b9f75eaa;
  }
}

@media (prefers-reduced-motion: reduce) {
  .platform-usage,
  .platform-usage-fill,
  .platform-usage-fill::after,
  .platform-usage-heading strong {
    animation: none !important;
    transition: none;
    transform: none;
  }
}