.technology {
  --tech-red: #f45460;
  --tech-muted: #b8b5b9;
  --tech-rule: #303034;
  background: #101012;
  color: #f7f6f5;
  padding: clamp(76px, 9vw, 136px) 0;
}

.technology .tech-wrap {
  width: min(1280px, 88%);
  margin-inline: auto;
}

.technology .tech-header {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(210px, .72fr);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 54px);
}

.technology .tech-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #dedcde;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.technology .tech-kicker::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tech-red);
  content: "";
}

.technology .tech-title {
  max-width: 11.75em;
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 650;
  letter-spacing: -.068em;
  line-height: 1;
  text-wrap: balance;
}

.technology .tech-deck {
  max-width: 20ch;
  margin: 0 0 5px;
  color: var(--tech-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  letter-spacing: -.015em;
  line-height: 1.45;
}

.technology .tech-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  border: 1px solid var(--tech-rule);
}

.technology .tech-figure {
  display: grid;
  grid-template-rows: auto minmax(166px, 1fr) auto;
  min-width: 0;
  min-height: 362px;
  margin: 0;
  padding: clamp(20px, 3vw, 42px);
  background-color: #151518;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px),
    linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 28px 28px;
  border-right: 1px solid var(--tech-rule);
}

.technology .tech-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: -.005em;
}

.technology .tech-caption span:last-child {
  color: var(--tech-muted);
  font-size: .6875rem;
  font-weight: 550;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.technology .tech-diagram {
  --tech-node-size: clamp(50px, 6vw, 82px);
  display: grid;
  align-items: center;
  padding-block: 20px 10px;
}

.technology .tech-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

.technology .tech-route::before {
  position: absolute;
  inset: calc(var(--tech-node-size) / 2) calc(100% / 6) auto;
  height: 1px;
  background: #5e5c63;
  content: "";
}

.technology .tech-route::after {
  position: absolute;
  inset: calc(var(--tech-node-size) / 2 - 2px) 50% auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: 0 0 12px #f454604a;
  background: var(--tech-red);
  content: "";
  transform: translateX(-50%);
  opacity: 0;
  transition: left .2s ease, opacity .2s ease;
}

.technology[data-tech-active="storage"] .tech-route::after {
  left: 33.333%;
  opacity: 1;
}

.technology[data-tech-active="cell"] .tech-route::after,
.technology[data-tech-active="drive"] .tech-route::after {
  left: 66.667%;
  opacity: 1;
}

.technology .tech-node {
  --tech-node-stroke: #85828c;
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  color: var(--tech-muted);
}

.technology[data-tech-active="storage"] .tech-node--storage,
.technology[data-tech-active="cell"] .tech-node--cell,
.technology[data-tech-active="drive"] .tech-node--drive {
  --tech-node-stroke: var(--tech-red);
  color: #f7f6f5;
}

.technology .tech-node-shell {
  display: grid;
  place-items: center;
  width: var(--tech-node-size);
  aspect-ratio: 1;
  position: relative;
  border: 1px solid #514f56;
  border-radius: 12%;
  background: #19191d;
  color: var(--tech-node-stroke);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.technology[data-tech-active="storage"] .tech-node--storage .tech-node-shell,
.technology[data-tech-active="cell"] .tech-node--cell .tech-node-shell,
.technology[data-tech-active="drive"] .tech-node--drive .tech-node-shell {
  border-color: #f4546080;
  background: #292025;
}

.technology .tech-node-label {
  font-size: clamp(.6875rem, 1.1vw, .8125rem);
  font-weight: 600;
  letter-spacing: .004em;
  line-height: 1.2;
  text-align: center;
}

.technology .tech-tank,
.technology .tech-stack,
.technology .tech-motor {
  display: block;
  position: relative;
  border: 1px solid currentColor;
}

.technology .tech-tank {
  width: 62%;
  height: 34%;
  border-radius: 999px;
  transform: translateX(-3%);
}

.technology .tech-tank::before {
  position: absolute;
  inset: 0 28% 0 27%;
  border-inline: 1px solid currentColor;
  content: "";
  opacity: .65;
}

.technology .tech-tank::after {
  position: absolute;
  inset: 35% auto 35% 100%;
  width: 13%;
  border: 1px solid currentColor;
  border-left: 0;
  border-radius: 0 2px 2px 0;
  content: "";
}

.technology .tech-stack {
  width: 50%;
  height: 41%;
  border-radius: 3px;
}

.technology .tech-stack::before {
  position: absolute;
  inset: 0 18%;
  border-inline: 1px solid currentColor;
  opacity: .74;
  content: "";
}

.technology .tech-stack::after {
  position: absolute;
  inset: -16% 34%;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}

.technology .tech-motor {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
}

.technology .tech-motor::before {
  position: absolute;
  inset: 17%;
  border: 1px dashed currentColor;
  border-radius: 50%;
  content: "";
}

.technology .tech-motor::after {
  position: absolute;
  inset: 39%;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.technology .tech-management {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding-top: 13px;
  border-top: 1px dashed #48474c;
  color: var(--tech-muted);
  font-size: .71875rem;
  line-height: 1.4;
  text-align: center;
}

.technology .tech-management-mark {
  flex: none;
  width: 7px;
  height: 7px;
  transform: translateY(-1px) rotate(45deg);
  border: 1px solid var(--tech-red);
}

.technology .tech-details {
  padding: clamp(20px, 3.25vw, 48px);
  background: #18181b;
}

.technology .tech-tabs {
  display: grid;
  border-bottom: 1px solid var(--tech-rule);
}

.technology .tech-tab {
  display: grid;
  grid-template-columns: 6px 1fr 12px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--tech-rule);
  background: transparent;
  color: var(--tech-muted);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}

.technology .tech-tab::before {
  width: 6px;
  height: 6px;
  border: 1px solid #848187;
  border-radius: 50%;
  content: "";
}

.technology .tech-tab::after {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  content: "";
}

.technology .tech-tab:hover,
.technology .tech-tab[aria-selected="true"] {
  color: #f7f6f5;
}

.technology .tech-tab[aria-selected="true"]::before {
  border-color: var(--tech-red);
  background: var(--tech-red);
}

.technology .tech-tab[aria-selected="true"]::after {
  color: var(--tech-red);
}

.technology .tech-tab:focus-visible,
.technology .tech-detail:focus-visible {
  outline: 2px solid var(--tech-red);
  outline-offset: 3px;
}

.technology .tech-tabs[hidden],
.technology .tech-detail[hidden] {
  display: none;
}

.technology .tech-tabs:not([hidden]) + .tech-copy {
  margin-top: 23px;
}

.technology .tech-detail + .tech-detail {
  margin-top: 21px;
}

.technology[data-tech-active] .tech-detail {
  margin-top: 0;
}

.technology .tech-detail h3 {
  margin: 0 0 9px;
  color: #f7f6f5;
  font-size: clamp(1.25rem, 2.15vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -.036em;
  line-height: 1.1;
}

.technology .tech-detail p {
  max-width: 43ch;
  margin: 0;
  color: var(--tech-muted);
  font-size: .9375rem;
  line-height: 1.5;
}

@media (max-width: 770px) {
  .technology .tech-header,
  .technology .tech-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .technology .tech-header {
    gap: 16px;
  }

  .technology .tech-title {
    max-width: 14ch;
    text-wrap: pretty;
  }

  .technology .tech-deck {
    max-width: 36ch;
    margin-bottom: 0;
  }

  .technology .tech-figure {
    min-height: 244px;
    border-right: 0;
    border-bottom: 1px solid var(--tech-rule);
  }

  .technology .tech-detail p {
    min-height: 3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .technology .tech-route::after,
  .technology .tech-node-shell,
  .technology .tech-tab {
    transition: none;
  }
}
