html[data-kot-preview="order-trinity-v3"] {
  scroll-behavior: smooth;
}

.kot-root,
.kot-root * {
  box-sizing: border-box;
}

.kot-root {
  --kot-gold: #d8b86a;
  --kot-gold-light: #f2dda0;
  --kot-ink: #030504;
  --kot-node-size: 124px;
  position: relative;
  z-index: 20;
  width: min(100% - 32px, 1120px);
  margin: -2rem auto 6rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(216, 184, 106, 0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 28%, rgba(216, 184, 106, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(13, 18, 15, 0.97), rgba(2, 4, 3, 0.99));
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5), inset 0 0 55px rgba(216, 184, 106, 0.03);
  color: #ece9df;
  font-family: Montserrat, sans-serif;
  scroll-margin-top: 112px;
}

.kot-root button,
.kot-root a {
  touch-action: manipulation;
}

.kot-intro {
  position: relative;
  max-width: 760px;
  margin: 0 auto clamp(1.6rem, 4vw, 3rem);
  padding: 0 clamp(0rem, 4vw, 4rem);
  text-align: center;
}

.kot-eyebrow,
.kot-panel-kicker {
  margin: 0 0 0.65rem;
  color: var(--kot-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.kot-intro h2,
.kot-panel h2 {
  margin: 0;
  color: var(--kot-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.98;
}

.kot-intro > p:last-of-type {
  max-width: 620px;
  margin: 1rem auto 0;
  color: rgba(236, 233, 223, 0.72);
  line-height: 1.7;
}

.kot-coradi {
  position: absolute;
  top: -0.2rem;
  right: 0;
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(216, 184, 106, 0.28);
  border-radius: 999px;
  background: rgba(3, 7, 5, 0.88);
  color: var(--kot-gold-light);
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.kot-coradi-symbol {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(216, 184, 106, 0.52));
}

.kot-coradi-note {
  margin-top: 1rem !important;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(216, 184, 106, 0.2);
  border-radius: 12px;
  background: rgba(216, 184, 106, 0.06);
  color: rgba(236, 233, 223, 0.82) !important;
  font-size: 0.8rem;
}

.kot-selector {
  display: grid;
  place-items: center;
  min-height: 450px;
}

.kot-orbit {
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1;
  transform-origin: 50% 50%;
  transition: transform 850ms cubic-bezier(0.22, 0.78, 0.22, 1);
}

.kot-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(216, 184, 106, 0.58);
  stroke-width: 0.62;
  filter: drop-shadow(0 0 6px rgba(216, 184, 106, 0.18));
}

.kot-node {
  position: absolute;
  z-index: 3;
  width: var(--kot-node-size);
  height: var(--kot-node-size);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.75rem;
  border: 1px solid rgba(216, 184, 106, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(216, 184, 106, 0.12), rgba(4, 8, 6, 0.97) 69%);
  box-shadow: 0 0 0 1px rgba(216, 184, 106, 0.05), 0 0 26px rgba(0, 0, 0, 0.48);
  color: #eee9db;
  font: inherit;
  line-height: 1.16;
  text-align: center;
  cursor: pointer;
  transition: transform 850ms cubic-bezier(0.22, 0.78, 0.22, 1), border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.kot-node span {
  max-width: 100%;
  font-size: 0.78rem;
}

.kot-node strong {
  color: var(--kot-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.45rem;
  font-variant-numeric: lining-nums;
  font-weight: 600;
}

.kot-node[data-selected="true"],
.kot-node[aria-pressed="true"] {
  border-color: rgba(242, 221, 160, 0.98);
  box-shadow: 0 0 0 1px rgba(242, 221, 160, 0.22), 0 0 34px rgba(216, 184, 106, 0.48);
  color: #fff8e8;
}

.kot-node:focus-visible,
.kot-coradi:focus-visible,
.kot-primary-action:focus-visible,
.kot-relation:focus-visible {
  outline: 2px solid #fff1bd;
  outline-offset: 5px;
}

.kot-node--portal { top: 16%; left: 50%; }
.kot-node--engineering { top: 67%; left: 20.6%; }
.kot-node--social { top: 67%; left: 79.4%; }

.kot-center {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(3, 6, 4, 0.82);
  box-shadow: 0 0 44px rgba(216, 184, 106, 0.22);
}

.kot-center-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 13px rgba(216, 184, 106, 0.58));
}

.kot-panel,
.kot-relations {
  max-width: 840px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid rgba(216, 184, 106, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.kot-panel {
  min-height: 260px;
}

.kot-panel h2 {
  font-size: clamp(2rem, 5vw, 3.55rem);
}

.kot-panel > p:not(.kot-panel-kicker),
.kot-relations > p:not(.kot-panel-kicker) {
  margin: 1rem 0 0;
  color: rgba(236, 233, 223, 0.78);
  font-size: clamp(0.96rem, 1.8vw, 1.1rem);
  line-height: 1.78;
}

.kot-source-note,
.kot-status-note {
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 184, 106, 0.13);
  font-size: 0.82rem !important;
}

.kot-primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.78rem 1.25rem;
  border: 1px solid rgba(216, 184, 106, 0.55);
  border-radius: 999px;
  background: rgba(216, 184, 106, 0.1);
  color: var(--kot-gold-light);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
}

.kot-relations {
  margin-top: 1.3rem;
}

.kot-relations h3 {
  margin: 0;
  color: var(--kot-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  font-weight: 500;
}

.kot-relation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.kot-relation {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 76px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(216, 184, 106, 0.18);
  border-radius: 15px;
  background: rgba(2, 5, 4, 0.72);
  color: #eee8da;
  text-decoration: none;
}

.kot-relation img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(216, 184, 106, 0.25));
}

.kot-relation span,
.kot-relation small {
  display: block;
}

.kot-relation strong {
  color: var(--kot-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.22rem;
}

.kot-relation small {
  margin-top: 0.2rem;
  color: rgba(236, 233, 223, 0.63);
  font-size: 0.74rem;
  line-height: 1.4;
}

.kot-preview-boundary {
  margin: 1.3rem auto 0;
  color: rgba(236, 233, 223, 0.52);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .kot-node:hover {
    border-color: rgba(242, 221, 160, 0.92);
    box-shadow: 0 0 32px rgba(216, 184, 106, 0.38);
    color: #fff8e8;
  }
  .kot-relation:hover,
  .kot-primary-action:hover,
  .kot-coradi:hover {
    border-color: rgba(242, 221, 160, 0.62);
    background: rgba(216, 184, 106, 0.12);
  }
}

@media (max-width: 640px) {
  html[data-kot-preview="order-trinity-v3"] .kot-official-intro {
    display: none !important;
  }

  .kot-root {
    --kot-node-size: 94px;
    width: calc(100vw - 16px);
    margin-top: -4rem;
    margin-left: calc((100% - 100vw) / 2 + 8px);
    padding: 1.25rem 1rem 1.75rem;
    border-radius: 22px;
  }
  .kot-intro {
    padding: 2.5rem 0.35rem 0;
  }
  .kot-intro h2 {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.05;
  }
  .kot-coradi {
    top: 0;
    right: 0.1rem;
  }
  .kot-selector {
    min-height: 300px;
  }
  .kot-orbit {
    width: min(270px, 82vw);
  }
  .kot-node {
    padding: 0.45rem;
  }
  .kot-node span {
    font-size: 0.63rem;
    line-height: 1.08;
  }
  .kot-node strong {
    font-size: 1.1rem;
  }
  .kot-center {
    width: 64px;
    height: 64px;
  }
  .kot-center-logo {
    width: 58px;
    height: 58px;
  }
  .kot-panel,
  .kot-relations {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }
  .kot-panel {
    min-height: 300px;
    margin-top: calc(8rem + max(0px, 100svh - 844px));
  }
  .kot-panel > p:not(.kot-panel-kicker),
  .kot-relations > p:not(.kot-panel-kicker) {
    font-size: 1rem;
    line-height: 1.7;
  }
  .kot-source-note,
  .kot-status-note {
    font-size: 1rem !important;
    line-height: 1.65;
  }
  .kot-status-note {
    padding-right: 4.5rem;
    padding-bottom: 0.5rem;
  }
  .kot-relation-grid {
    grid-template-columns: 1fr;
  }

  button[aria-label="12 + 1 PORTALES"] > span[data-kadistu-original-nav-label="true"] {
    display: none !important;
  }

  button[aria-label="Scroll to top"] {
    right: 0 !important;
    bottom: 6.25rem !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0.55rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-kot-preview="order-trinity-v3"] {
    scroll-behavior: auto;
  }
  .kot-orbit,
  .kot-node,
  .kot-root * {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}
