/* Product page: architecture and principles, after Dilara's mockups (design/reference/architecture.png, principles.png). */

/* ===== page hero ===== */

/* the terrain render is a window capture: its title bar, map controls, bottom toolbar and the dark desktop strip along its
   right edge (the last 6 %) stay outside the hero, so no hard edge shows at the right */
.teo-website-platform-page .teo-website-page-hero-image {
  inset: -6% -14% -7% 0;
  background-position: 40% 50%;
}

/* ===== architecture: three lit tiers on a dark studio floor ===== */

.teo-website-architecture-scene {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(88px, 11vw, 160px) 0 clamp(96px, 13vw, 190px);
}

/* the scene keeps its own breathing room after the page hero */
.teo-website-page-hero + .teo-website-architecture-scene {
  padding-top: clamp(64px, 9vw, 136px);
}

/* near black on the left, a shaft of blue light from the top right corner, a cool haze behind the diagram */
.teo-website-architecture-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, #03091c 0%, rgba(3, 9, 28, 0) 12%, rgba(3, 9, 28, 0) 86%, #03091c 100%),
    radial-gradient(12% 64% at 94% 14%, rgba(120, 190, 255, 0.7), rgba(52, 140, 255, 0.36) 45%, rgba(20, 100, 240, 0) 100%),
    radial-gradient(34% 86% at 100% 4%, rgba(34, 118, 255, 0.8), rgba(12, 84, 226, 0.4) 46%, rgba(4, 60, 190, 0) 86%),
    linear-gradient(244deg, rgba(40, 138, 252, 0.3) 0%, rgba(1, 74, 201, 0.1) 26%, rgba(1, 74, 201, 0) 44%),
    radial-gradient(38% 46% at 66% 40%, rgba(14, 66, 190, 0.42), rgba(8, 50, 160, 0.14) 60%, rgba(8, 50, 160, 0) 86%),
    linear-gradient(90deg, #000208 0%, #00040f 40%, #01091f 100%);
}

.teo-website-architecture-split {
  grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
  gap: clamp(24px, 2vw, 28px);
  align-items: center;
}

/* the text sits a little above the diagram's middle, as in the mockup */
.teo-website-architecture-split .teo-website-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding-bottom: clamp(0px, 7vw, 110px);
}

.teo-website .teo-website-architecture-split .teo-website-title {
  max-width: 9em;
  margin-right: -140px;
  font-size: clamp(34px, 4.45vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.teo-website-architecture-split .teo-website-title em {
  background-image: linear-gradient(180deg, #c6e9ff 0%, #8cc4f0 100%);
}

.teo-website-architecture-split .teo-website-lead {
  max-width: 25em;
  margin-top: 30px;
  margin-right: -64px;
  font-size: clamp(16px, 1.42vw, 20.5px);
  line-height: 1.7;
  color: #d3deeb;
}

/* the diagram */
.teo-website-architecture {
  --teo-architecture-client-row: 86%;
  --teo-architecture-client-gap: clamp(16px, 2.2vw, 32px);
  --teo-architecture-store-gap: clamp(14px, 1.7vw, 24px);
  --teo-architecture-store-row: 100%;
  /* on wide screens the diagram reaches a little into the page margin, as the mockup's does */
  --teo-architecture-bleed: clamp(0px, (100vw - var(--teo-website-shell)) / 2, 48px);
  --teo-architecture-wire: #9ff4ff;
  /* centres of the outer cards, measured from the edge of the wire zones */
  --teo-architecture-client-center: calc((100% - var(--teo-architecture-client-row)) / 2 + (var(--teo-architecture-client-row) - 2 * var(--teo-architecture-client-gap)) / 6);
  --teo-architecture-store-center: calc((100% - var(--teo-architecture-store-row)) / 2 + (var(--teo-architecture-store-row) - 2 * var(--teo-architecture-store-gap)) / 6);
  position: relative;
  display: block;
  width: calc(100% + var(--teo-architecture-bleed));
  max-width: 830px;
  margin: 0 calc(-1 * var(--teo-architecture-bleed)) 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
}

/* the wet floor: a horizon of light behind the pedestal, then a dark blue floor that fades towards the text and the
   bottom of the scene; it hangs on the diagram so the horizon stays at the pedestal whatever the section's height */
.teo-website-architecture::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 46%;
  left: -80%;
  right: -40%;
  height: 86%;
  background:
    radial-gradient(24% 5% at 70% 14%, rgba(150, 210, 255, 0.42), rgba(77, 164, 255, 0.12) 55%, rgba(77, 164, 255, 0) 100%),
    radial-gradient(22% 9% at 86% 17%, rgba(60, 150, 255, 0.38), rgba(60, 150, 255, 0) 100%),
    radial-gradient(40% 46% at 64% 38%, rgba(14, 70, 190, 0.42), rgba(8, 44, 130, 0.16) 60%, rgba(8, 44, 130, 0) 100%),
    linear-gradient(180deg, rgba(6, 30, 84, 0) 4%, rgba(6, 30, 84, 0.6) 14%, rgba(3, 18, 52, 0.5) 48%, rgba(3, 9, 28, 0) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 4%, #000 46%, #000 88%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 4%, #000 46%, #000 88%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.teo-website-architecture .teo-website-architecture-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.teo-website-architecture .teo-website-architecture-clients {
  width: var(--teo-architecture-client-row);
  margin: 0 auto;
  gap: var(--teo-architecture-client-gap);
}

.teo-website-architecture .teo-website-architecture-stores {
  width: var(--teo-architecture-store-row);
  margin-left: calc((100% - var(--teo-architecture-store-row)) / 2);
  gap: var(--teo-architecture-store-gap);
}

/* glass slabs with a lit edge; the slab's thickness shows as a lighter steel edge on the right and bottom */
.teo-website-architecture .teo-website-architecture-node {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: auto;
  gap: 14px;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1.5px solid rgba(120, 190, 255, 0.8);
  border-top-color: #b4dcff;
  border-left-color: rgba(170, 215, 255, 0.9);
  background: linear-gradient(160deg, rgba(56, 110, 196, 0.42), rgba(10, 30, 74, 0.82) 48%, rgba(3, 13, 38, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 20px rgba(77, 164, 255, 0.2),
    4px 5px 0 -1px rgba(64, 124, 214, 0.75),
    4px 5px 0 0.5px rgba(150, 205, 255, 0.35),
    0 0 26px rgba(42, 120, 255, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: 500;
  line-height: 1.25;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teo-website-architecture .teo-website-architecture-node:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 0 24px rgba(77, 164, 255, 0.28),
    4px 5px 0 -1px rgba(64, 124, 214, 0.75),
    4px 5px 0 0.5px rgba(150, 205, 255, 0.35),
    0 0 34px rgba(42, 140, 255, 0.7),
    0 20px 40px rgba(0, 0, 0, 0.5);
}

/* the stores mirror in the wet floor as soft streaks under their lit edges */
.teo-website-architecture .teo-website-architecture-store::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: calc(100% + 10px);
  left: 3%;
  right: 1%;
  height: 110px;
  background:
    radial-gradient(5% 100% at 1.5% 0%, rgba(130, 200, 255, 0.6), rgba(130, 200, 255, 0) 100%),
    radial-gradient(5% 100% at 98.5% 0%, rgba(130, 200, 255, 0.6), rgba(130, 200, 255, 0) 100%),
    radial-gradient(9% 80% at 16% 0%, rgba(120, 190, 255, 0.4), rgba(120, 190, 255, 0) 100%),
    radial-gradient(50% 70% at 50% 0%, rgba(60, 140, 255, 0.24), rgba(60, 140, 255, 0) 100%);
  filter: blur(4px);
  pointer-events: none;
}

.teo-website-architecture .teo-website-architecture-node i {
  flex: none;
  color: #7cc0ff;
  line-height: 1;
  text-shadow: 0 0 6px rgba(157, 229, 255, 0.55), 0 0 18px rgba(77, 164, 255, 0.6);
}

.teo-website-architecture .teo-website-architecture-client {
  flex-direction: column;
  gap: 12px;
  min-height: 120px;
  font-size: clamp(15px, 1.25vw, 18px);
  text-align: center;
}

.teo-website-architecture .teo-website-architecture-client i {
  font-size: clamp(28px, 2.4vw, 35px);
}

.teo-website-architecture .teo-website-architecture-store {
  justify-content: flex-start;
  min-height: 108px;
  padding: 14px 12px 14px 20px;
  font-size: clamp(14px, 1.06vw, 15.5px);
}

.teo-website-architecture .teo-website-architecture-store i {
  font-size: clamp(24px, 2vw, 29px);
}

/* TeoServer: a lit box with a metal side face, standing on a dark pedestal */
.teo-website-architecture-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.teo-website-architecture .teo-website-architecture-server {
  width: 60%;
  max-width: 460px;
  min-height: 118px;
  justify-content: flex-start;
  gap: 20px;
  padding: 16px 20px 16px clamp(24px, 2.6vw, 38px);
  border: 2px solid rgba(110, 200, 255, 0.95);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(24, 78, 160, 0.6), #001c48 52%, #00112d);
  box-shadow:
    inset 0 2px 0 rgba(200, 235, 255, 0.35),
    inset 0 0 26px rgba(77, 164, 255, 0.3),
    0 0 0 1px rgba(110, 200, 255, 0.3),
    0 0 36px rgba(42, 140, 255, 0.8),
    0 26px 40px rgba(0, 0, 0, 0.6);
  font-size: clamp(16px, 1.36vw, 20px);
  text-align: left;
  white-space: nowrap;
}

.teo-website-architecture .teo-website-architecture-server:hover {
  transform: none;
  box-shadow:
    inset 0 2px 0 rgba(200, 235, 255, 0.35),
    inset 0 0 26px rgba(77, 164, 255, 0.34),
    0 0 0 1px rgba(110, 200, 255, 0.36),
    0 0 44px rgba(42, 140, 255, 0.9),
    0 26px 40px rgba(0, 0, 0, 0.6);
}

.teo-website-architecture .teo-website-architecture-server i {
  font-size: clamp(28px, 2.4vw, 35px);
}

/* the box seen a little from above and from the left: a steel top face over the lit front and a side face with vents,
   both stepping back up and to the right */
.teo-website-architecture-server-top {
  position: absolute;
  top: -10px;
  left: 18px;
  right: -4px;
  height: 10px;
  border-radius: 14px 18px 0 0 / 10px 10px 0 0;
  border: 1px solid rgba(150, 210, 255, 0.6);
  border-bottom: none;
  background: linear-gradient(180deg, #6f9edf, #3a6fc0 60%, #2a5aa8);
  box-shadow: inset 0 1px 0 rgba(225, 242, 255, 0.55), 0 -4px 14px rgba(77, 164, 255, 0.35);
  pointer-events: none;
}

.teo-website-architecture-server::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: 9px;
  right: -30px;
  width: 30px;
  border: 1.5px solid rgba(140, 205, 255, 0.6);
  border-left: none;
  border-radius: 0 16px 14px 0;
  background: linear-gradient(90deg, #5b84c4, #3a66ae 40%, #24498e 75%, #1b3c7c);
  box-shadow: inset 0 1px 0 rgba(220, 240, 255, 0.45), inset -3px 0 6px rgba(160, 210, 255, 0.25), 10px 0 30px rgba(42, 107, 255, 0.45);
}

/* the vents on the side face */
.teo-website-architecture-server::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: 22%;
  height: 46%;
  right: -21px;
  width: 13px;
  background: radial-gradient(circle, rgba(2, 10, 30, 0.9) 1.1px, rgba(2, 10, 30, 0) 1.7px) 0 0 / 4.4px 7px;
}

/* the pedestal: a dark rounded slab, its top face lit along the front edge, a thick front face below it */
.teo-website-architecture-pedestal {
  position: absolute;
  z-index: -1;
  top: calc(100% - 30px);
  left: 50%;
  width: 78%;
  height: 78px;
  transform: translateX(-50%);
  border-radius: 70px / 22px;
  background: linear-gradient(180deg, #071533 0%, #040c22 55%, #020717 100%);
  box-shadow: inset 0 -1px 0 rgba(77, 164, 255, 0.4), 0 0 46px rgba(42, 107, 255, 0.3), 0 30px 34px rgba(0, 0, 0, 0.7);
}

/* the top face */
.teo-website-architecture-pedestal::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 42px;
  border-radius: 70px / 21px;
  background: radial-gradient(60% 90% at 50% 30%, #163a7a, #0c2552 55%, #081a3e);
  box-shadow: inset 0 1px 0 rgba(140, 200, 255, 0.5), inset 0 -2px 0 rgba(120, 200, 255, 0.85), 0 2px 10px rgba(77, 164, 255, 0.5);
}

/* the light behind the pedestal, where the floor meets the haze */
.teo-website-architecture-stage::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: -6%;
  right: -16%;
  top: 40%;
  height: 130px;
  background: radial-gradient(50% 50% at 54% 50%, rgba(77, 164, 255, 0.34), rgba(77, 164, 255, 0) 72%);
  pointer-events: none;
}

/* the flare at the pedestal's right end: a hot point and a short horizontal streak */
.teo-website-architecture-stage::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: calc(100% - 26px);
  left: calc(89% - 80px);
  width: 160px;
  height: 22px;
  background:
    radial-gradient(12% 40% at 50% 50%, #f2fdff, rgba(170, 236, 255, 0.85) 45%, rgba(77, 180, 255, 0) 100%),
    radial-gradient(50% 18% at 50% 50%, rgba(190, 236, 255, 0.85), rgba(77, 164, 255, 0) 100%),
    radial-gradient(30% 50% at 50% 50%, rgba(77, 164, 255, 0.45), rgba(77, 164, 255, 0) 100%);
  pointer-events: none;
}

/* glowing wires: three lines into the server, one trunk out to the stores */
.teo-website-architecture-wires {
  position: relative;
  height: 76px;
  --teo-architecture-pulse-distance: 76px;
}

.teo-website-architecture-wires-out {
  z-index: 2;
  height: 84px;
  --teo-architecture-pulse-distance: 84px;
}

.teo-website-architecture-wire {
  position: absolute;
  border: 0 solid var(--teo-architecture-wire);
  filter: drop-shadow(0 0 2px #4da4ff) drop-shadow(0 0 7px rgba(42, 107, 255, 0.85));
}

.teo-website-architecture-wire-stem {
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--teo-architecture-wire);
}

.teo-website-architecture-wire-drop-left, .teo-website-architecture-wire-drop-right {
  top: 0;
  height: 36px;
  width: calc(50% - 24px - var(--teo-architecture-client-center) + 1px);
  border-bottom-width: 2px;
}

.teo-website-architecture-wire-drop-left {
  left: calc(var(--teo-architecture-client-center) - 1px);
  border-left-width: 2px;
  border-bottom-left-radius: 10px;
}

.teo-website-architecture-wire-drop-right {
  right: calc(var(--teo-architecture-client-center) - 1px);
  border-right-width: 2px;
  border-bottom-right-radius: 10px;
}

.teo-website-architecture-wire-turn-left, .teo-website-architecture-wire-turn-right {
  top: 34px;
  bottom: 0;
  width: 13px;
  border-top-width: 2px;
}

.teo-website-architecture-wire-turn-left {
  left: calc(50% - 24px);
  border-right-width: 2px;
  border-top-right-radius: 10px;
}

.teo-website-architecture-wire-turn-right {
  right: calc(50% - 24px);
  border-left-width: 2px;
  border-top-left-radius: 10px;
}

/* bright points where the wires touch the server */
.teo-website-architecture-wires-in .teo-website-architecture-wire-stem::after,
.teo-website-architecture-wire-turn-left::after,
.teo-website-architecture-wire-turn-right::after {
  content: '';
  position: absolute;
  bottom: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8fdff;
  box-shadow: 0 0 6px 2px rgba(104, 241, 254, 0.9), 0 0 16px 4px rgba(18, 107, 234, 0.8);
}

.teo-website-architecture-wires-in .teo-website-architecture-wire-stem::after {
  left: -2px;
}

.teo-website-architecture-wire-turn-left::after {
  right: -4px;
}

.teo-website-architecture-wire-turn-right::after {
  left: -4px;
}

.teo-website-architecture-wire-trunk {
  top: 50px;
  bottom: 0;
  left: calc(var(--teo-architecture-store-center) - 1px);
  right: calc(var(--teo-architecture-store-center) - 1px);
  border-width: 2px 2px 0 2px;
  border-radius: 10px 10px 0 0;
}

/* a small packet of light runs down each centre wire */
.teo-website-architecture-wire-stem::before {
  content: '';
  position: absolute;
  top: 0;
  left: -2px;
  width: 6px;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(232, 253, 255, 0), #e8fdff 60%, rgba(232, 253, 255, 0));
  opacity: 0;
  animation: teo-website-architecture-pulse 3.2s ease-in infinite;
}

.teo-website-architecture-wires-out .teo-website-architecture-wire-stem::before {
  animation-delay: 1.1s;
}

@keyframes teo-website-architecture-pulse {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }

  20% {
    opacity: 1;
  }

  70% {
    opacity: 1;
    transform: translateY(calc(var(--teo-architecture-pulse-distance) - 14px));
  }

  100% {
    opacity: 0;
    transform: translateY(calc(var(--teo-architecture-pulse-distance) - 14px));
  }
}

/* staged entrance: clients, wires in, server, wires out, stores */
.teo-website-architecture-clients, .teo-website-architecture-wires, .teo-website-architecture-stage, .teo-website-architecture-stores {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.teo-website-architecture-clients {
  transform: translateY(-14px);
  transition-delay: 0.1s;
}

.teo-website-architecture-wires {
  transform: scaleY(0.2);
  transform-origin: 50% 0;
}

.teo-website-architecture-wires-in {
  transition-delay: 0.35s;
}

.teo-website-architecture-stage {
  transform: translateY(10px);
  transition-delay: 0.5s;
}

.teo-website-architecture-wires-out {
  transition-delay: 0.7s;
}

.teo-website-architecture-stores {
  transform: translateY(14px);
  transition-delay: 0.85s;
}

.teo-website-architecture.teo-website-visible .teo-website-architecture-clients,
.teo-website-architecture.teo-website-visible .teo-website-architecture-wires,
.teo-website-architecture.teo-website-visible .teo-website-architecture-stage,
.teo-website-architecture.teo-website-visible .teo-website-architecture-stores {
  opacity: 1;
  transform: none;
}

/* ===== principles: why Şimşek, under a layered map render ===== */

.teo-website-principle-section {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(72px, 7.6vw, 110px) 0 clamp(72px, 8vw, 116px);
  background:
    linear-gradient(180deg, #03091c 0%, rgba(3, 9, 28, 0) 14%, rgba(3, 9, 28, 0) 88%, #03091c 100%),
    radial-gradient(26% 46% at 100% 38%, rgba(3, 105, 243, 0.5), rgba(3, 105, 243, 0) 72%),
    radial-gradient(34% 26% at 70% 14%, rgba(27, 95, 189, 0.4), rgba(27, 95, 189, 0) 72%),
    radial-gradient(28% 30% at 0% 88%, rgba(4, 59, 141, 0.5), rgba(4, 59, 141, 0) 72%),
    linear-gradient(180deg, #03091c, #000b1b 50%, #03091c);
}

.teo-website-principle-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.teo-website-principle-contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(120, 180, 255, 0.11);
  stroke-width: 1;
}

/* the render bleeds off the top and right edges and melts into the page on the left and at the bottom */
.teo-website .teo-website-principle-layers {
  position: absolute;
  top: 0;
  right: 0;
  width: min(63.5vw, 1060px);
  max-width: none;
  height: auto;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 20%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 70%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 20%), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 12%, #000 70%, rgba(0, 0, 0, 0) 100%);
  mask-composite: intersect;
}

.teo-website-principle-heading {
  position: relative;
  max-width: 560px;
  margin-bottom: clamp(36px, 4.4vw, 60px);
}

.teo-website-principle-eyebrow {
  margin-bottom: clamp(18px, 2.2vw, 30px);
}

/* the short rule after İLKELER */
.teo-website-principle-eyebrow::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 66px;
  height: 1px;
  margin: -2px 0 0 20px;
  background: linear-gradient(90deg, #78a9e7, rgba(120, 169, 231, 0));
}

.teo-website .teo-website-principle-title {
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 700;
}

/* "Şimşek?" on its own line in a pale vertical gradient; the padding keeps the cedillas inside the clipped background */
.teo-website-principle-title em {
  display: block;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  background-image: linear-gradient(180deg, #e4f5ff 8%, #9fd3fb 88%);
}

/* one glass panel of three by two cells */
.teo-website-principle-panel {
  position: relative;
  margin: 0 -28px;
  border-radius: 18px;
  border: 1px solid rgba(77, 164, 255, 0.24);
  border-right-color: rgba(13, 107, 194, 0.85);
  background: linear-gradient(90deg, rgba(1, 12, 30, 0.66) 0%, rgba(2, 18, 44, 0.58) 55%, rgba(4, 40, 104, 0.52) 100%);
  box-shadow: inset 0 1px 0 rgba(160, 210, 255, 0.08), 0 1px 0 rgba(77, 164, 255, 0.45), 0 22px 50px -22px rgba(42, 107, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* the lit line along the bottom edge, brightest where the columns meet it */
.teo-website-principle-panel::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.75) 22%, rgba(144, 215, 255, 0.9) 50%, rgba(77, 164, 255, 0.75) 78%, rgba(77, 164, 255, 0));
  box-shadow: 0 0 10px 1px rgba(42, 107, 255, 0.55);
  pointer-events: none;
}

.teo-website-principle-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 18px;
  background:
    radial-gradient(48px 8px at 33.333% 50%, rgba(170, 225, 255, 0.85), rgba(77, 164, 255, 0) 100%),
    radial-gradient(48px 8px at 66.667% 50%, rgba(170, 225, 255, 0.85), rgba(77, 164, 255, 0) 100%);
  pointer-events: none;
}

.teo-website-principle-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

/* column dividers, fading at both ends */
.teo-website-principle-grid::before, .teo-website-principle-grid::after {
  content: '';
  position: absolute;
  top: 34px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.42) 16%, rgba(77, 164, 255, 0.42) 84%, rgba(77, 164, 255, 0));
  pointer-events: none;
}

.teo-website-principle-grid::before {
  left: 33.333%;
}

.teo-website-principle-grid::after {
  left: 66.667%;
}

.teo-website-principle-cell {
  position: relative;
  padding: clamp(28px, 2.8vw, 40px) clamp(24px, 3.2vw, 46px) clamp(24px, 2.1vw, 30px);
}

.teo-website-principle-cell:nth-child(3n + 2) {
  transition-delay: 0.08s;
}

.teo-website-principle-cell:nth-child(3n) {
  transition-delay: 0.16s;
}

/* row divider, made of the first row's bottom edges and fading at the panel's ends */
.teo-website-principle-cell::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 1px;
  display: none;
  background: rgba(77, 164, 255, 0.4);
  pointer-events: none;
}

.teo-website-principle-cell:nth-child(-n + 3)::after {
  display: block;
}

.teo-website-principle-cell:nth-child(1)::after {
  left: 28px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.4) 40%);
}

.teo-website-principle-cell:nth-child(3)::after {
  right: 28px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0.4) 60%, rgba(77, 164, 255, 0));
}

/* light points where the dividers cross */
.teo-website-principle-spark {
  position: absolute;
  z-index: 1;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  display: none;
  border-radius: 50%;
  background: radial-gradient(circle, #f2feff 0 30%, rgba(144, 215, 255, 0.9) 55%, rgba(77, 164, 255, 0) 75%);
  box-shadow: 0 0 10px 3px rgba(77, 164, 255, 0.85);
  animation: teo-website-principle-spark 3.2s ease-in-out infinite;
}

/* the short lens streak through the point */
.teo-website-principle-spark::before {
  content: '';
  position: absolute;
  top: 3.5px;
  left: -40px;
  width: 88px;
  height: 1px;
  background: linear-gradient(90deg, rgba(190, 233, 255, 0), rgba(190, 233, 255, 0.9) 50%, rgba(190, 233, 255, 0));
}

.teo-website-principle-cell:nth-child(1) .teo-website-principle-spark, .teo-website-principle-cell:nth-child(2) .teo-website-principle-spark {
  display: block;
}

.teo-website-principle-cell:nth-child(2) .teo-website-principle-spark {
  animation-delay: 1.6s;
}

@keyframes teo-website-principle-spark {
  0%, 100% {
    opacity: 0.7;
  }

  50% {
    opacity: 1;
  }
}

.teo-website-principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(54px, 4.8vw, 70px);
  height: clamp(52px, 4.6vw, 67px);
  border-radius: 14px;
  border: 1px solid rgba(77, 164, 255, 0.5);
  border-top-color: #4481bc;
  border-left-color: #4481bc;
  background: linear-gradient(135deg, #0a2142, #020f1f);
  box-shadow: inset 0 0 12px rgba(77, 164, 255, 0.15);
  color: #ace2fb;
  font-size: clamp(25px, 2.2vw, 32px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.teo-website-principle-icon i {
  line-height: 1;
}

.teo-website-principle-cell:hover .teo-website-principle-icon {
  border-color: rgba(144, 215, 255, 0.85);
  box-shadow: inset 0 0 14px rgba(77, 164, 255, 0.25), 0 0 18px rgba(42, 107, 255, 0.45);
}

.teo-website .teo-website-principle-cell h3 {
  margin: clamp(14px, 1.3vw, 19px) 0 0;
  color: #fff;
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.teo-website-principle-cell p {
  max-width: 38ch;
  margin: clamp(10px, 1vw, 14px) 0 0;
  color: #c4e0f8;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
}

/* ===== standards: the explorer in the principles' glass ===== */

.teo-website-standards-section {
  isolation: isolate;
}

/* a cool haze behind the panel; no overflow clipping here, so the areas stay sticky */
.teo-website-standards-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36% 40% at 72% 58%, rgba(14, 66, 190, 0.3), rgba(14, 66, 190, 0) 72%),
    radial-gradient(20% 30% at 100% 40%, rgba(3, 105, 243, 0.26), rgba(3, 105, 243, 0) 72%),
    radial-gradient(26% 26% at 0% 86%, rgba(4, 59, 141, 0.3), rgba(4, 59, 141, 0) 72%);
  pointer-events: none;
}

.teo-website-standards-section .teo-website-standards-tab {
  border-radius: 12px;
  color: #b9cbe6;
}

.teo-website-standards-section .teo-website-standards-tab i {
  color: #7fa6d8;
}

.teo-website-standards-section .teo-website-standards-tab:hover {
  border-color: rgba(77, 164, 255, 0.2);
  background: rgba(6, 22, 56, 0.55);
  color: #fff;
}

.teo-website-standards-section .teo-website-standards-tab.teo-website-active {
  border-color: rgba(110, 180, 255, 0.5);
  border-top-color: rgba(160, 210, 255, 0.6);
  background: linear-gradient(100deg, rgba(14, 40, 96, 0.78), rgba(8, 30, 78, 0.6));
  box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.12), 0 0 22px rgba(42, 107, 255, 0.3);
  color: #fff;
}

.teo-website-standards-section .teo-website-standards-tab.teo-website-active i {
  color: #ace2fb;
  text-shadow: 0 0 10px rgba(77, 164, 255, 0.7);
}

/* the chosen area's panel: the principles' glass, lit along the bottom */
.teo-website-standards-section .teo-website-standards-panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 18px;
  border: 1px solid rgba(77, 164, 255, 0.24);
  border-right-color: rgba(13, 107, 194, 0.85);
  background: linear-gradient(100deg, rgba(1, 12, 30, 0.72) 0%, rgba(2, 18, 44, 0.64) 55%, rgba(4, 40, 104, 0.56) 100%);
  box-shadow: inset 0 1px 0 rgba(160, 210, 255, 0.08), 0 1px 0 rgba(77, 164, 255, 0.45), 0 22px 50px -22px rgba(42, 107, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.teo-website-standards-section .teo-website-standards-panel::after {
  content: '';
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.75) 22%, rgba(144, 215, 255, 0.9) 50%, rgba(77, 164, 255, 0.75) 78%, rgba(77, 164, 255, 0));
  box-shadow: 0 0 10px 1px rgba(42, 107, 255, 0.55);
  pointer-events: none;
}

/* the area's icon on the principles' lit tile */
.teo-website-standards-section .teo-website-standards-panel-head {
  gap: 16px;
  margin-bottom: 24px;
}

.teo-website-standards-section .teo-website-standards-panel-head i {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(77, 164, 255, 0.5);
  border-top-color: #4481bc;
  border-left-color: #4481bc;
  background: linear-gradient(135deg, #0a2142, #020f1f);
  box-shadow: inset 0 0 12px rgba(77, 164, 255, 0.15);
  color: #ace2fb;
  font-size: 21px;
  line-height: 1;
}

.teo-website .teo-website-standards-section .teo-website-standards-panel-head h3 {
  color: #fff;
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.teo-website-standards-section .teo-website-standard {
  border-color: rgba(77, 164, 255, 0.2);
  background: linear-gradient(160deg, rgba(10, 30, 70, 0.5), rgba(2, 10, 28, 0.6));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.teo-website-standards-section .teo-website-standard:hover {
  border-color: rgba(120, 190, 255, 0.5);
  box-shadow: 0 0 20px rgba(42, 107, 255, 0.28);
}

.teo-website-standards-section .teo-website-standard p {
  color: #b9cbe6;
  font-size: 14px;
}

/* ===== narrower screens ===== */

@media (max-width: 1080px) {
  /* the architecture stacks: text first, the diagram centred under it */
  .teo-website-architecture-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .teo-website-architecture-split .teo-website-heading {
    padding-bottom: 0;
  }

  .teo-website .teo-website-architecture-split .teo-website-title {
    max-width: none;
    margin-right: 0;
  }

  .teo-website-architecture-split .teo-website-lead {
    margin-right: 0;
  }

  .teo-website-architecture {
    --teo-architecture-bleed: 0px;
    max-width: 780px;
    margin: 0 auto;
  }

  /* principles: two columns, one column divider, two row dividers */
  .teo-website-principle-panel {
    margin: 0;
  }

  .teo-website-principle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teo-website-principle-grid::before {
    left: 50%;
  }

  .teo-website-principle-grid::after {
    display: none;
  }

  .teo-website-principle-cell:nth-child(3n + 2), .teo-website-principle-cell:nth-child(3n) {
    transition-delay: 0s;
  }

  .teo-website-principle-cell:nth-child(even) {
    transition-delay: 0.08s;
  }

  .teo-website-principle-cell:nth-child(-n + 4)::after {
    display: block;
  }

  .teo-website-principle-cell:nth-child(odd)::after {
    left: 28px;
    right: 0;
    background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.4) 40%);
  }

  .teo-website-principle-cell:nth-child(even)::after {
    left: 0;
    right: 28px;
    background: linear-gradient(90deg, rgba(77, 164, 255, 0.4) 60%, rgba(77, 164, 255, 0));
  }

  .teo-website-principle-cell:nth-child(2) .teo-website-principle-spark {
    display: none;
  }

  .teo-website-principle-cell:nth-child(3) .teo-website-principle-spark {
    display: block;
  }

  .teo-website-principle-panel::before {
    background: radial-gradient(48px 8px at 50% 50%, rgba(170, 225, 255, 0.85), rgba(77, 164, 255, 0) 100%);
  }

  .teo-website .teo-website-principle-layers {
    width: 70vw;
    opacity: 0.85;
  }
}

@media (max-width: 900px) {
  /* the render becomes a band above the heading */
  .teo-website-principle-section {
    padding-top: 0;
  }

  .teo-website-principle-art {
    position: relative;
    inset: auto;
    margin-bottom: -14vw;
  }

  .teo-website .teo-website-principle-layers {
    position: relative;
    width: 100%;
    opacity: 1;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0) 100%);
  }
}

@media (max-width: 600px) {
  /* clients stay three across, the server spans the width, the stores stack */
  .teo-website-architecture {
    --teo-architecture-client-row: 100%;
    --teo-architecture-client-gap: 8px;
    --teo-architecture-store-row: 100%;
  }

  .teo-website-architecture .teo-website-architecture-client {
    min-height: 96px;
    gap: 8px;
    padding: 14px 6px;
    font-size: 14px;
  }

  .teo-website-architecture .teo-website-architecture-client i {
    font-size: 26px;
  }

  .teo-website-architecture-wires {
    height: 56px;
    --teo-architecture-pulse-distance: 56px;
  }

  .teo-website-architecture-wire-drop-left, .teo-website-architecture-wire-drop-right {
    height: 26px;
  }

  .teo-website-architecture-wire-turn-left, .teo-website-architecture-wire-turn-right {
    top: 24px;
  }

  .teo-website-architecture .teo-website-architecture-server {
    width: 100%;
    max-width: none;
    min-height: 84px;
    gap: 14px;
    padding: 14px 18px;
    font-size: 16px;
  }

  .teo-website-architecture .teo-website-architecture-server i {
    font-size: 28px;
  }

  .teo-website-architecture-server::after, .teo-website-architecture-server::before, .teo-website-architecture-pedestal,
  .teo-website-architecture-server-top, .teo-website-architecture-stage::after, .teo-website-architecture .teo-website-architecture-store::after {
    display: none;
  }

  /* the floor sits under the last store, the horizon behind the stacked stores */
  .teo-website-architecture::before {
    top: 62%;
    left: -10%;
    right: -10%;
    height: 60%;
  }

  .teo-website-architecture-wires-out {
    height: 40px;
    --teo-architecture-pulse-distance: 40px;
  }

  .teo-website-architecture-wire-trunk {
    display: none;
  }

  .teo-website-architecture .teo-website-architecture-stores {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .teo-website-architecture .teo-website-architecture-store {
    min-height: 68px;
    font-size: 15px;
  }

  /* a short stem joins the stacked stores */
  .teo-website-architecture-store + .teo-website-architecture-store::before {
    content: '';
    position: absolute;
    top: -18px;
    left: calc(50% - 1px);
    width: 2px;
    height: 16px;
    background: var(--teo-architecture-wire);
    filter: drop-shadow(0 0 2px #4da4ff) drop-shadow(0 0 6px rgba(42, 107, 255, 0.85));
  }

  .teo-website-architecture .teo-website-architecture-node {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 0 14px rgba(77, 164, 255, 0.16), 3px 4px 0 -1px #0b3a8c,
      0 0 14px rgba(42, 107, 255, 0.35);
  }

  /* principles: one column, row dividers only */
  .teo-website-principle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teo-website-principle-grid::before {
    display: none;
  }

  .teo-website-principle-cell:nth-child(even) {
    transition-delay: 0s;
  }

  .teo-website-principle-cell:nth-child(-n + 5)::after {
    display: block;
    left: 20px;
    right: 20px;
    background: linear-gradient(90deg, rgba(77, 164, 255, 0), rgba(77, 164, 255, 0.4) 25%, rgba(77, 164, 255, 0.4) 75%, rgba(77, 164, 255, 0));
  }

  .teo-website-principle-cell:nth-child(1) .teo-website-principle-spark, .teo-website-principle-cell:nth-child(3) .teo-website-principle-spark,
  .teo-website-principle-panel::before {
    display: none;
  }

  .teo-website-principle-cell {
    padding: 26px 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teo-website-architecture-clients, .teo-website-architecture-wires, .teo-website-architecture-stage, .teo-website-architecture-stores {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .teo-website-architecture-wire-stem::before, .teo-website-principle-spark {
    animation: none;
  }

  .teo-website-architecture-wire-stem::before {
    display: none;
  }

  .teo-website-architecture .teo-website-architecture-node, .teo-website-principle-icon, .teo-website-standards-section .teo-website-standard {
    transition: none;
  }

  .teo-website-architecture .teo-website-architecture-node:hover, .teo-website-standards-section .teo-website-standard:hover {
    transform: none;
  }
}
