html[data-kft-preview="foundation-trinity-v1"] { scroll-behavior: smooth; }
.kft-root, .kft-root * { box-sizing: border-box; }
.kft-root {
  --kft-earth: #17130b;
  --kft-deep: #090b07;
  --kft-gold: #d7b85e;
  --kft-light: #f0ddb0;
  --kft-ivory: #f3ead9;
  --kft-emerald: #2c8a68;
  --kft-node-size: 26%;
  position: relative;
  z-index: 20;
  width: min(calc(100% - 32px), 1120px);
  margin: -2rem auto 6rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgba(215, 184, 94, 0.3);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 184, 94, 0.16), transparent 31%),
    radial-gradient(circle at 82% 20%, rgba(44, 138, 104, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(29, 24, 14, 0.98), rgba(7, 12, 8, 0.99));
  box-shadow: 0 36px 90px rgba(3, 5, 3, 0.65), inset 0 0 72px rgba(44, 138, 104, 0.06);
  color: var(--kft-ivory);
  font-family: Montserrat, sans-serif;
  scroll-margin-top: 112px;
}
.kft-root.kp-card.kp-dock {
  overflow: hidden !important;
  border: 1px solid rgba(215, 184, 94, 0.3) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 18% 14%, rgba(215, 184, 94, 0.16), transparent 31%),
    radial-gradient(circle at 82% 20%, rgba(44, 138, 104, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(29, 24, 14, 0.98), rgba(7, 12, 8, 0.99)) !important;
  box-shadow: 0 36px 90px rgba(3, 5, 3, 0.65), inset 0 0 72px rgba(44, 138, 104, 0.06) !important;
}
.kft-root button, .kft-root a { touch-action: manipulation; }
.kft-panel[hidden], .kft-coradi-note[hidden] { display: none !important; }
.kft-preview-safety {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin: -.15rem 0 2rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(215, 184, 94, .24);
  border-radius: 14px;
  background: rgba(44, 138, 104, .09);
  color: rgba(240, 221, 176, .82);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.45;
  text-transform: uppercase;
}
.kft-intro {
  position: relative;
  max-width: 780px;
  margin: 0 auto clamp(1.6rem, 4vw, 3rem);
  padding: 0 clamp(0rem, 4vw, 4rem);
  text-align: center;
}
.kft-intro-logo {
  display: block;
  width: clamp(92px, 15vw, 138px);
  height: auto;
  margin: 0 auto .75rem;
  object-fit: contain;
  filter: saturate(1.12) brightness(1.08) drop-shadow(0 0 18px rgba(215, 184, 94, .32));
}
.kft-eyebrow, .kft-panel-kicker, .kft-section-label,
.kft-concept-card > span, .kft-flow article > span {
  margin: 0 0 .65rem;
  color: var(--kft-gold);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}
.kft-intro h2, .kft-panel h2, .kft-section h3,
.kft-concept-card h3, .kft-social-grid h3 {
  margin: 0;
  color: var(--kft-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-weight: 500;
  line-height: 1.05;
}
.kft-intro h2 { font-size: clamp(2.3rem, 6vw, 4.8rem); }
.kft-intro > p:not(.kft-eyebrow, .kft-coradi-note) {
  max-width: 660px;
  margin: 1rem auto 0;
  color: rgba(243, 234, 217, .78);
  line-height: 1.72;
}
.kft-coradi {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  padding: .72rem 1rem;
  border: 1px solid rgba(215, 184, 94, .38);
  border-radius: 999px;
  background: rgba(9, 14, 9, .78);
  color: var(--kft-light);
  font: inherit;
  font-size: .76rem;
  cursor: pointer;
}
.kft-coradi img { width: 28px; height: 28px; margin-right: .55rem; object-fit: contain; }
.kft-coradi-note {
  margin: .9rem auto 0 !important;
  padding: .75rem 1rem;
  border: 1px solid rgba(215, 184, 94, .2);
  border-radius: 12px;
  background: rgba(44, 138, 104, .08);
  color: rgba(243, 234, 217, .84) !important;
  font-size: .82rem;
}
.kft-selector { display: grid; min-height: 450px; place-items: center; }
.kft-orbit {
  --kft-trinity-rotation: 0deg;
  position: relative;
  width: min(420px, 88vw);
  aspect-ratio: 1;
}
.kft-geometry {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(215, 184, 94, .68);
  stroke-width: .62;
  filter: drop-shadow(0 0 8px rgba(44, 138, 104, .25));
}
.kft-geometry mask circle { fill: #000; stroke: none; filter: none; }
.kft-rotor {
  position: absolute;
  z-index: 3;
  inset: 0;
  transform: rotate(var(--kft-trinity-rotation));
  transform-origin: 50% 50%;
  transition: transform 850ms cubic-bezier(.2,.75,.22,1);
}
.kft-node {
  position: absolute;
  z-index: 3;
  display: flex;
  width: var(--kft-node-size);
  height: var(--kft-node-size);
  transform: translate(-50%, -50%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .22rem;
  padding: .75rem;
  border: 1px solid rgba(215, 184, 94, .56);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 31%, rgba(44, 138, 104, .16), transparent 40%),
    radial-gradient(circle, rgba(32, 27, 16, .98), rgba(7, 12, 8, 1) 74%);
  box-shadow: 0 0 0 1px rgba(215, 184, 94, .06), 0 0 30px rgba(3, 9, 5, .7);
  color: #f6eedf;
  font: inherit;
  line-height: 1.12;
  text-align: center;
  cursor: pointer;
  transition: transform 850ms cubic-bezier(.2,.75,.22,1), border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, background 180ms ease;
}
.kft-node-label {
  display: grid;
  width: 100%;
  min-height: 2.2em;
  place-items: center;
  margin-inline: auto;
  font-size: .72rem;
  letter-spacing: 0;
  line-height: 1.05;
  text-align: center;
}
.kft-node-label-line { display: block; max-width: 100%; white-space: nowrap; }
.kft-node strong {
  color: var(--kft-light);
  font-family: "Cormorant Upright", Georgia, serif;
  font-size: 1.45rem;
  font-variant-numeric: lining-nums;
  font-weight: 600;
}
.kft-root .kft-node[aria-pressed="true"] {
  border-color: rgba(240, 221, 176, .98) !important;
  background-color: rgba(8, 34, 24, .99) !important;
  background-image: radial-gradient(circle at 50% 30%, rgba(236, 205, 116, .25), transparent 42%), radial-gradient(circle, rgba(29, 112, 82, .96), rgba(8, 34, 24, .99) 76%) !important;
  box-shadow: 0 0 0 1px rgba(240, 221, 176, .2), 0 0 40px rgba(44, 138, 104, .48) !important;
  color: #fff8e8 !important;
}
.kft-node:focus-visible, .kft-coradi:focus-visible,
.kft-primary-action:focus-visible, .kft-secondary-action:focus-visible,
.kft-text-link:focus-visible { outline: 2px solid #f5df9c; outline-offset: 5px; }
.kft-node--portal { top: 16%; left: 50%; }
.kft-node--engineering { top: 67%; left: 20.6%; }
.kft-node--social { top: 67%; left: 79.4%; }
.kft-center {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(215, 184, 94, .2);
  border-radius: 50%;
  background: rgba(11, 20, 13, .96);
  box-shadow: 0 0 46px rgba(44, 138, 104, .36), 0 0 24px rgba(215, 184, 94, .17);
}
.kft-center-logo { width: 76px; height: 76px; object-fit: contain; filter: saturate(1.18) brightness(1.1) drop-shadow(0 0 12px rgba(215,184,94,.48)); }
.kft-panel {
  max-width: 920px;
  min-height: 240px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.7rem);
  border: 1px solid rgba(215, 184, 94, .2);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(22, 28, 18, .9), rgba(11, 10, 7, .94));
  box-shadow: inset 0 0 50px rgba(44, 138, 104, .035);
}
.kft-panel h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
.kft-panel > p:not(.kft-panel-kicker) { max-width: 780px; color: rgba(243,234,217,.78); line-height: 1.75; }
.kft-axis, .kft-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: .7rem;
  margin: 1.8rem 0;
}
.kft-axis span {
  padding: .65rem .85rem;
  border: 1px solid rgba(215,184,94,.22);
  border-radius: 999px;
  color: var(--kft-gold);
  font-size: .66rem;
  letter-spacing: .12em;
}
.kft-axis i, .kft-flow i { align-self: center; color: rgba(215,184,94,.48); font-style: normal; }
.kft-concept-grid, .kft-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.kft-social-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.kft-concept-card, .kft-social-grid article, .kft-flow article {
  padding: 1.2rem;
  border: 1px solid rgba(215,184,94,.16);
  border-radius: 18px;
  background: rgba(44,138,104,.055);
}
.kft-concept-card h3, .kft-social-grid h3 { font-size: 1.55rem; }
.kft-concept-card p, .kft-social-grid p, .kft-flow p { margin-bottom: 0; color: rgba(243,234,217,.7); line-height: 1.62; }
.kft-social-grid article > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: .7rem;
  place-items: center;
  border: 1px solid rgba(215,184,94,.4);
  border-radius: 50%;
  color: var(--kft-gold);
  font-size: .7rem;
}
.kft-section {
  margin-top: 2rem;
  padding: clamp(1.2rem,3vw,2rem);
  border: 1px solid rgba(215,184,94,.14);
  border-radius: 20px;
  background: rgba(3,8,5,.28);
}
.kft-section h3 { font-size: clamp(1.8rem,4vw,2.8rem); }
.kft-section p { color: rgba(243,234,217,.74); line-height: 1.72; }
.kft-steps { display: grid; gap: .9rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.kft-steps li { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 1rem; align-items: start; padding: 1rem; border: 1px solid rgba(215,184,94,.13); border-radius: 16px; background: rgba(44,138,104,.045); }
.kft-steps li > strong { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(215,184,94,.35); border-radius: 50%; color: var(--kft-gold); font-family: Georgia,serif; }
.kft-steps h4 { margin: .1rem 0 .35rem; color: var(--kft-light); font-size: 1rem; }
.kft-steps p { margin: 0; }
.kft-steps blockquote {
  margin: 0;
  border-left: 2px solid rgba(215,184,94,.48);
  padding-left: 1rem;
  color: rgba(243,234,217,.82);
  font-family: Georgia, serif;
  font-size: .96rem;
  line-height: 1.68;
}
.kft-practice-logo { float: right; width: 88px; margin: -.25rem 0 .5rem 1rem; }
.kft-practice-logo img { width: 100%; height: auto; object-fit: contain; }
.kft-boundary, .kft-future { border-color: rgba(44,138,104,.32); background: rgba(44,138,104,.09); }
.kft-flow article { flex: 1; min-width: 0; }
.kft-flow article > span { display: block; }
.kft-aforism { margin: 2rem 0 0; padding: 1.5rem; border-left: 2px solid var(--kft-gold); background: rgba(215,184,94,.06); color: var(--kft-light); font-family: "Cormorant Upright",Georgia,serif; font-size: clamp(1.35rem,3vw,2rem); line-height: 1.35; }
.kft-panel-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.kft-primary-action, .kft-secondary-action, .kft-text-link {
  min-height: 46px;
  padding: .72rem 1rem;
  border-radius: 999px;
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
}
.kft-primary-action { border: 1px solid rgba(240,221,176,.62); background: linear-gradient(135deg,#d7b85e,#9b7430); color: #171006; }
.kft-secondary-action { border: 1px solid rgba(215,184,94,.28); background: rgba(44,138,104,.12); color: var(--kft-light); }
.kft-text-link { border: 1px dashed rgba(215,184,94,.24); background: transparent; color: rgba(240,221,176,.64); cursor: not-allowed; }
@media (max-width: 720px) {
  .kft-root { width: min(calc(100% - 16px),1120px); margin-top: -1rem; padding: 1rem; border-radius: 22px; }
  .kft-preview-safety { display: grid; justify-content: stretch; text-align: center; }
  .kft-intro { padding-inline: .35rem; }
  .kft-intro h2 { font-size: clamp(2rem,11vw,3.3rem); }
  .kft-selector { min-height: 340px; }
  .kft-orbit { width: min(310px,94vw); }
  .kft-node { padding: .55rem; }
  .kft-node-label { font-size: .59rem; }
  .kft-node strong { font-size: 1.2rem; }
  .kft-center { width: 68px; height: 68px; }
  .kft-center-logo { width: 58px; height: 58px; }
  .kft-panel { padding: 1.15rem; border-radius: 18px; }
  .kft-panel h2 { font-size: clamp(1.8rem,9vw,2.7rem); }
  .kft-concept-grid, .kft-social-grid { grid-template-columns: 1fr; }
  .kft-axis { flex-wrap: wrap; }
  .kft-flow { display: grid; }
  .kft-flow i { transform: rotate(90deg); justify-self: center; }
  .kft-steps li { grid-template-columns: 1fr; }
  .kft-practice-logo { float: none; width: 72px; margin: .4rem auto .8rem; }
  .kft-panel-actions { display: grid; }
  .kft-primary-action, .kft-secondary-action, .kft-text-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .kft-rotor, .kft-node { transition-duration: .01ms !important; }
}


/* r12 — isolate Foundation mobile from the global Portal 13 enhancer. */
@media (max-width: 720px) {
  #kft-trinity-foundation + main section.grid.kp-card {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card {
    max-width: 100% !important;
    padding: 24px !important;
    border: 1px solid rgba(176, 141, 85, 0.20) !important;
    background: linear-gradient(to bottom right, rgba(28, 25, 23, 0.70), rgba(0, 0, 0, 0.40), rgba(53, 41, 20, 0.10)) !important;
    box-shadow: none !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > div.absolute.inset-0 > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: 0.32 !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > div.absolute.inset-0 > div.absolute.inset-0 {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.80)) !important;
    mix-blend-mode: normal !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > .relative.z-10 > .flex.items-start.justify-between {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 36px !important;
    gap: 12px !important;
    align-items: start !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > .relative.z-10 > .flex.items-start.justify-between > h3 {
    min-width: 0 !important;
    color: transparent !important;
    font-size: clamp(23px, 6.9vw, 27px) !important;
    line-height: 1.12 !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > .relative.z-10 > .flex.items-start.justify-between > div {
    display: grid !important;
    width: 36px !important;
    height: 36px !important;
    padding: 5px !important;
    place-items: center !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > .relative.z-10 > .flex.items-start.justify-between > div > img {
    width: 24px !important;
    height: 24px !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > .relative.z-10 > p {
    color: rgba(245, 230, 196, 0.90) !important;
    font-family: inherit !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92) !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > button {
    background: rgba(0, 0, 0, 0.48) !important;
    color: #e6d298 !important;
  }

  body > .kft-foundation-newsletter {
    top: 84px !important;
    right: 8px !important;
    left: auto !important;
    width: min(300px, calc(100vw - 16px)) !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body > .kft-foundation-newsletter > div {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  body > .kft-foundation-newsletter h3 {
    padding-right: 28px !important;
    margin-bottom: 2px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  body > .kft-foundation-newsletter p {
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
  }

  body > .kft-foundation-newsletter form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 82px !important;
    gap: 6px !important;
  }

  body > .kft-foundation-newsletter input,
  body > .kft-foundation-newsletter form button[type="submit"] {
    min-width: 0 !important;
    height: 40px !important;
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  /* Give the approved 94vw orbit a viewport-centred mobile canvas. */
  #kft-trinity-foundation.kft-root.kp-card.kp-dock {
    width: calc(100vw - 16px) !important;
    margin-left: calc((100% - (100vw - 16px)) / 2) !important;
    margin-right: calc((100% - (100vw - 16px)) / 2) !important;
  }

  #kft-trinity-foundation .kft-orbit {
    left: auto;
    margin-left: calc((100% - min(310px, 94vw)) / 2);
    margin-right: 0;
    transform: none;
  }

  /* Restore the Trinidad's own surfaces after the global enhancer adds kp-card. */
  .kft-root .kft-panel.kp-card {
    border: 1px solid rgba(215, 184, 94, 0.20) !important;
    background: linear-gradient(145deg, rgba(22, 28, 18, 0.90), rgba(11, 10, 7, 0.94)) !important;
    box-shadow: inset 0 0 50px rgba(44, 138, 104, 0.035) !important;
  }

  .kft-root .kft-concept-card.kp-card,
  .kft-root .kft-social-grid article.kp-card,
  .kft-root .kft-flow article.kp-card {
    border: 1px solid rgba(215, 184, 94, 0.16) !important;
    background: rgba(44, 138, 104, 0.055) !important;
    box-shadow: none !important;
  }

  .kft-root .kft-section.kp-card {
    border: 1px solid rgba(215, 184, 94, 0.14) !important;
    background: rgba(3, 8, 5, 0.28) !important;
    box-shadow: none !important;
  }

  .kft-root .kft-section.kft-boundary.kp-card,
  .kft-root .kft-section.kft-future.kp-card {
    border-color: rgba(44, 138, 104, 0.32) !important;
    background: rgba(44, 138, 104, 0.09) !important;
  }

  .kft-root .kft-center-logo {
    height: 58px !important;
  }

  .kft-root .kft-coradi img {
    height: 28px !important;
  }

  body > .kft-foundation-newsletter.kft-newsletter-collapsed {
    display: none !important;
  }

  .kft-newsletter-reopen {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin: 14px auto 0;
    padding: 8px 14px;
    border: 1px solid rgba(216, 184, 106, 0.55);
    border-radius: 999px;
    background: rgba(6, 6, 8, 0.94);
    color: #f0ddb0;
    box-shadow: 0 0 20px rgba(216, 184, 106, 0.16);
    font: 600 12px/1.2 Montserrat, sans-serif;
    letter-spacing: 0.04em;
  }

  .kft-newsletter-reopen[hidden] {
    display: none !important;
  }

  .kft-foundation-mobile-bottom-clearance {
    padding-bottom: 176px !important;
  }
}


/* r13 — mobile image visibility, visible signup, touch reader. */
@media (max-width: 720px) {
  #kft-trinity-foundation + main section.grid > div.kp-card > div.absolute.inset-0 > img {
    opacity: 0.62 !important;
  }

  #kft-trinity-foundation + main section.grid > div.kp-card > div.absolute.inset-0 > div.absolute.inset-0 {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.64) 52%, rgba(0, 0, 0, 0.76)) !important;
  }

  body > .kft-foundation-newsletter {
    top: 98px !important;
    display: block !important;
  }

  .kft-foundation-reader {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    scroll-padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
  }

  .kft-foundation-reader > div {
    padding-bottom: max(40px, env(safe-area-inset-bottom)) !important;
  }
}
