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

.krt-root {
  --krt-teal: #0d8f88;
  --krt-teal-deep: #052f35;
  --krt-night: #071719;
  --krt-gold: #d8b65b;
  --krt-gold-light: #f5e6c4;
  --krt-ivory: #f3ead8;
  --krt-node-size: 128px;
  position: relative;
  z-index: 20;
  width: min(100%, 1120px);
  margin: -3.3rem auto 6rem;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(216, 182, 91, 0.32);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 177, 165, 0.24), transparent 31%),
    radial-gradient(circle at 82% 22%, rgba(216, 182, 91, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(5, 54, 58, 0.985), rgba(4, 20, 23, 0.995));
  box-shadow: 0 35px 90px rgba(0, 17, 19, 0.62), inset 0 0 84px rgba(21, 178, 166, 0.07);
  color: var(--krt-ivory);
  font-family: Montserrat, sans-serif;
  scroll-margin-top: 104px;
}

/* Preserve Revelation geometry if the shared Portal runtime decorates this section. */
.krt-root.kp-card.kp-dock {
  overflow: hidden !important;
  border: 1px solid rgba(216, 182, 91, 0.32) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(24, 177, 165, 0.24), transparent 31%),
    radial-gradient(circle at 82% 22%, rgba(216, 182, 91, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(5, 54, 58, 0.985), rgba(4, 20, 23, 0.995)) !important;
}

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

.krt-panel[hidden],
.krt-coradi-note[hidden] {
  display: none !important;
}

.krt-preview-safety {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  margin: 0 0 2rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(216, 182, 91, 0.27);
  border-radius: 13px;
  background: rgba(216, 182, 91, 0.07);
  color: rgba(245, 230, 196, 0.82);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.krt-intro {
  max-width: 780px;
  margin: 0 auto clamp(1.8rem, 4vw, 3.1rem);
  padding: 0 clamp(0rem, 4vw, 3.5rem);
  text-align: center;
}

.krt-intro-logo {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto 0.55rem;
  object-fit: contain;
  filter: brightness(1.08) saturate(1.12) drop-shadow(0 0 20px rgba(216, 182, 91, 0.3));
}

.krt-eyebrow,
.krt-panel-kicker,
.krt-section-label,
.krt-concept-card > span {
  margin: 0 0 0.65rem;
  color: var(--krt-gold);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.5;
  text-transform: uppercase;
}

.krt-intro h2,
.krt-panel h2,
.krt-section h3,
.krt-concept-card h3,
.krt-social-grid h3,
.krt-code-relation h3 {
  margin: 0;
  color: var(--krt-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

.krt-intro h2 {
  font-size: clamp(2.3rem, 6vw, 4.85rem);
}

.krt-intro > p:not(.krt-eyebrow, .krt-coradi-note) {
  max-width: 670px;
  margin: 1rem auto 0;
  color: rgba(243, 234, 216, 0.8);
  line-height: 1.75;
}

.krt-coradi {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(216, 182, 91, 0.42);
  border-radius: 999px !important;
  background: rgba(3, 31, 34, 0.78);
  color: var(--krt-gold-light);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.krt-coradi img {
  width: 28px;
  height: 28px;
  margin-right: 0.55rem;
  object-fit: contain;
}

.krt-coradi-note {
  max-width: 520px;
  margin: 0.85rem auto 0 !important;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(216, 182, 91, 0.2);
  border-radius: 12px;
  background: rgba(216, 182, 91, 0.06);
  font-size: 0.8rem;
}

.krt-selector {
  display: grid;
  min-height: 470px;
  place-items: center;
}

.krt-orbit {
  --krt-trinity-rotation: 0deg;
  position: relative;
  width: min(430px, 88vw);
  aspect-ratio: 1;
}

.krt-orbit-circle,
.krt-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(216, 182, 91, 0.64);
  stroke-width: 0.58;
  filter: drop-shadow(0 0 8px rgba(216, 182, 91, 0.2));
}

.krt-rotor {
  position: absolute;
  z-index: 3;
  inset: 0;
  transform: rotate(var(--krt-trinity-rotation));
  transform-origin: 50% 50%;
  transition: transform 850ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.krt-node {
  position: absolute;
  z-index: 3;
  display: flex;
  width: var(--krt-node-size);
  height: var(--krt-node-size);
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.72rem;
  border: 1px solid rgba(216, 182, 91, 0.54);
  border-radius: 50% !important;
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 182, 91, 0.14), transparent 38%),
    radial-gradient(circle, rgba(12, 108, 103, 0.9), rgba(3, 29, 32, 0.98) 73%);
  box-shadow: 0 0 0 1px rgba(216, 182, 91, 0.06), 0 0 32px rgba(2, 25, 28, 0.65);
  color: #fff7e6;
  font: inherit;
  line-height: 1.08;
  text-align: center;
  cursor: pointer;
  transition: transform 850ms cubic-bezier(0.2, 0.75, 0.22, 1), border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.krt-node-label {
  display: flex;
  width: 90%;
  min-height: 2.15em;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  font-size: 0.7rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-align: center;
}

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

.krt-node[aria-pressed="true"] {
  border-color: rgba(245, 230, 196, 0.98);
  background:
    radial-gradient(circle at 50% 30%, rgba(216, 182, 91, 0.27), transparent 40%),
    radial-gradient(circle, rgba(15, 139, 131, 0.96), rgba(3, 31, 34, 0.99) 74%);
  box-shadow: 0 0 0 1px rgba(245, 230, 196, 0.23), 0 0 40px rgba(26, 190, 178, 0.35);
}

.krt-node:focus-visible,
.krt-coradi:focus-visible,
.krt-primary-action:focus-visible,
.krt-secondary-action:focus-visible {
  outline: 2px solid #fff0c7;
  outline-offset: 5px;
}

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

.krt-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(216, 182, 91, 0.24);
  border-radius: 50%;
  background: rgba(4, 48, 51, 0.92);
  box-shadow: 0 0 48px rgba(16, 157, 147, 0.36), 0 0 24px rgba(216, 182, 91, 0.15);
}

.krt-center-logo {
  width: 82px;
  height: auto;
  object-fit: contain;
  filter: brightness(1.1) saturate(1.12) drop-shadow(0 0 13px rgba(216, 182, 91, 0.46));
}

.krt-panel {
  max-width: 920px;
  min-height: 260px;
  margin: 0 auto;
  padding: clamp(1.35rem, 4vw, 2.7rem);
  border: 1px solid rgba(216, 182, 91, 0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(14, 115, 108, 0.13), rgba(255, 255, 255, 0.022));
}

.krt-panel h2 {
  font-size: clamp(2.05rem, 5vw, 3.7rem);
}

.krt-panel > p:not(.krt-panel-kicker),
.krt-section > p:not(.krt-section-label),
.krt-concept-card p,
.krt-social-grid p,
.krt-code-relation > p:not(.krt-section-label),
.krt-steps p {
  margin: 1rem 0 0;
  color: rgba(243, 234, 216, 0.82);
  font-size: clamp(0.95rem, 1.7vw, 1.07rem);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.krt-portal-axis,
.krt-relation-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  color: var(--krt-gold);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.krt-portal-axis i,
.krt-relation-flow i {
  color: rgba(216, 182, 91, 0.56);
  font-style: normal;
}

.krt-primary-action,
.krt-secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px !important;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.krt-primary-action {
  border: 1px solid rgba(216, 182, 91, 0.66);
  background: linear-gradient(135deg, rgba(216, 182, 91, 0.19), rgba(16, 139, 131, 0.15));
  color: #fff3d2;
}

.krt-secondary-action {
  border: 1px solid rgba(243, 234, 216, 0.22);
  background: rgba(4, 35, 38, 0.7);
  color: rgba(243, 234, 216, 0.86);
}

.krt-concept-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.krt-concept-card,
.krt-social-grid article {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid rgba(216, 182, 91, 0.17);
  border-radius: 16px;
  background: rgba(9, 78, 76, 0.12);
}

.krt-concept-card h3,
.krt-social-grid h3 {
  font-size: clamp(1.22rem, 2.4vw, 1.72rem);
}

.krt-section,
.krt-code-relation {
  margin-top: 1.4rem;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid rgba(216, 182, 91, 0.17);
  border-radius: 18px;
  background: rgba(3, 29, 32, 0.68);
}

.krt-section h3,
.krt-code-relation h3 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.krt-steps {
  display: grid;
  gap: 0.72rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.krt-steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid rgba(216, 182, 91, 0.12);
  border-radius: 14px;
  background: rgba(16, 139, 131, 0.05);
}

.krt-steps li > strong {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(216, 182, 91, 0.43);
  border-radius: 50%;
  color: var(--krt-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-variant-numeric: lining-nums;
}

.krt-steps h4 {
  margin: 0;
  color: var(--krt-gold-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.krt-steps p {
  margin-top: 0.35rem;
}

.krt-boundary {
  padding: 0.9rem 1rem;
  border-left: 2px solid rgba(216, 182, 91, 0.62);
  background: rgba(216, 182, 91, 0.05);
}

.krt-boundary strong {
  color: #ffefc2;
}

.krt-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.krt-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.krt-social-grid article > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 0.75rem;
  place-items: center;
  border: 1px solid rgba(216, 182, 91, 0.42);
  border-radius: 50%;
  color: var(--krt-gold);
  font-family: "Cormorant Upright", Georgia, serif;
  font-variant-numeric: lining-nums;
}

.krt-future {
  border-color: rgba(216, 182, 91, 0.31);
  background: rgba(216, 182, 91, 0.07);
}

.krt-code-relation {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 182, 91, 0.1), transparent 50%),
    rgba(3, 29, 32, 0.72);
}

.krt-relation-symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--krt-gold);
  font-size: 1.35rem;
}

.krt-relation-symbols img {
  width: 82px;
  height: 58px;
  object-fit: contain;
  filter: brightness(1.08) saturate(1.1) drop-shadow(0 0 10px rgba(216, 182, 91, 0.3));
}

.krt-relation-flow {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .krt-rotor,
  .krt-node {
    transition: none;
  }
}

@media (max-width: 760px) {
  .krt-root {
    --krt-node-size: 108px;
    width: min(calc(100% - 12px), 1120px);
    margin-top: -2rem;
    padding: 1rem;
    border-radius: 24px;
  }

  .krt-selector {
    min-height: 390px;
  }

  .krt-orbit {
    width: min(352px, 86vw);
  }

  .krt-center {
    width: 78px;
    height: 78px;
  }

  .krt-center-logo {
    width: 68px;
  }

  .krt-concept-grid,
  .krt-social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .krt-preview-safety {
    justify-content: center;
    text-align: center;
  }

  .krt-intro {
    padding-inline: 0.25rem;
  }

  .krt-intro-logo {
    width: 98px;
  }

  .krt-intro h2 {
    font-size: clamp(2.1rem, 12vw, 3.05rem);
  }

  .krt-selector {
    min-height: 350px;
  }

  .krt-orbit {
    width: min(318px, 82vw);
  }

  .krt-root {
    --krt-node-size: 94px;
  }

  .krt-node {
    padding: 0.5rem;
  }

  .krt-node-label {
    font-size: 0.6rem;
    overflow-wrap: anywhere;
  }

  .krt-node strong {
    font-size: 1.08rem;
  }

  .krt-center {
    width: 66px;
    height: 66px;
  }

  .krt-center-logo {
    width: 58px;
  }

  .krt-panel {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .krt-panel h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .krt-primary-action,
  .krt-secondary-action {
    width: 100%;
    min-width: 0;
    margin-top: 0.85rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .krt-portal-axis,
  .krt-relation-flow {
    justify-content: center;
    font-size: 0.62rem;
    text-align: center;
  }

  .krt-steps li {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 0.78rem;
  }
}

@media (max-width: 390px) {
  .krt-root {
    --krt-node-size: 88px;
    width: calc(100% - 8px);
    padding: 0.75rem;
  }

  .krt-orbit {
    width: min(292px, 80vw);
  }

  .krt-node-label {
    font-size: 0.56rem;
  }

  .krt-node strong {
    font-size: 1rem;
  }
}
