:root {
  --primary-color: #28e98c;
  --primary-gradient: linear-gradient(135deg, #28e98c, #14c5fd);
  --accent: var(--primary-color);
}

.tt-scroll-orb {
  position: fixed;
  left: 0;
  top: 0;
  width: min(clamp(120px, 16vw, 210px), calc(100vw - 32px), calc(100svh - 32px));
  aspect-ratio: 1;
  z-index: 80;
  pointer-events: none;
  --orb-x: max(12px, calc(100vw - clamp(120px, 16vw, 210px) - 16px));
  --orb-y: 18vh;
  --orb-tilt: 0deg;
  --orb-bob: 0px;
  transform: translate3d(var(--orb-x), calc(var(--orb-y) + var(--orb-bob)), 0) rotate(var(--orb-tilt));
  filter: drop-shadow(0 18px 28px rgba(20, 197, 253, 0.28));
  will-change: transform;
}

/* Docked assistant orb for dense tool pages (window.TT_ORB_DOCKED). */
.tt-scroll-orb.tt-scroll-orb--docked {
  width: 72px;
  --orb-x: calc(100vw - 104px);
  --orb-y: calc(100vh - 96px);
  filter: drop-shadow(0 10px 18px rgba(20, 197, 253, 0.25));
}

.tt-scroll-orb__lottie {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tt-scroll-orb.is-loaded .tt-scroll-orb__lottie {
  opacity: 1;
}

.tt-footer-robot {
  position: relative;
  padding: 48px 15px 100px;
  min-height: 540px;
  overflow: visible !important;
  z-index: 3;
}

.tt-footer-robot__copy {
  max-width: 770px;
  margin: 0 auto 10px;
}

.tt-footer-robot__copy h2 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(28px, 5vw, 48px);
}

.tt-footer-robot__stage {
  position: relative;
  width: min(850px, 100%);
  height: clamp(420px, 65vw, 620px);
  margin: 0 auto;
  overflow: visible;
}

.tt-footer-robot__canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tt-footer-robot.is-loaded .tt-footer-robot__canvas {
  opacity: 1;
}

.tt-footer-robot__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #bfefff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

.tt-footer-robot.is-loaded .tt-footer-robot__loading,
.tt-footer-robot.has-error .tt-footer-robot__loading {
  display: none;
}

.tt-footer-robot__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px auto 0;
}

.tt-footer-robot__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 124px;
  min-height: 46px;
  padding: 10px 22px;
  border: 1px solid rgba(40, 233, 140, 0.45);
  border-radius: 999px;
  background: #182521;
  color: #dfffee;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tt-footer-robot__action i { font-size: 20px; }

.tt-footer-robot__action--link,
.tt-footer-robot__action--link:hover { text-decoration: none; }

.tt-footer-robot__action--link:hover {
  background: #28e98c;
  border-color: #28e98c;
  color: #102018;
}

.tt-footer-robot__action:hover:not(:disabled),
.tt-footer-robot__action[aria-pressed="true"] {
  background: #28e98c;
  border-color: #28e98c;
  color: #102018;
}

.tt-footer-robot__action:focus-visible {
  outline: 2px solid #14c5fd;
  outline-offset: 4px;
}

.tt-footer-robot__action:disabled {
  cursor: default;
  opacity: 0.45;
}

.tt-footer-robot__action[aria-pressed="true"]:disabled { opacity: 1; }

.tt-footer-robot__status {
  min-height: 24px;
  margin: 12px 15px 0;
  color: #acbcb5;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .tt-footer-robot__action { transition: none; }
}

.color-boxed .tt-color-auto {
  background: conic-gradient(from 90deg, #28e98c, #14c5fd, #8e2de2, #ff00cc, #fe6f1d, #28e98c) !important;
}

.portfolio-implementation-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--primary-color);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.portfolio-implementation-link:hover,
.portfolio-implementation-link:focus-visible {
  background: var(--primary-color);
  color: #101b17;
}

.workspace-menu-link {
  border: 1px solid var(--primary-color);
  border-radius: 4px;
}

body:not(.home1-page) {
  min-height: 100vh;
  background: #1f1f1f;
  color: #999;
  font-family: Inter, system-ui, sans-serif;
}

body:not(.home1-page) .body-overlay,
body:not(.home1-page) #background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

body:not(.home1-page) .global-color {
  position: fixed;
  left: 0;
  top: 50px;
  z-index: 100;
}

body:not(.home1-page) .global-color .setting-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  margin-top: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 20, 20, 0.7);
  border-radius: 5px;
}

body:not(.home1-page) .global-color .inner {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: rgba(8, 8, 8, 0.86);
}

body:not(.home1-page) .global-color.active .inner {
  opacity: 1;
  visibility: visible;
}

body:not(.home1-page) .global-color-option {
  position: relative;
  max-width: 720px;
  margin: 12vh auto 0;
  padding: 40px 28px;
}

body:not(.home1-page) .color-boxed {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body:not(.home1-page) .color-boxed a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: inline-block;
}

body:not(.home1-page) .color-boxed a.clr-active {
  border-color: #fff;
}

body:not(.home1-page) .tt-site-footer.footer-area,
body:not(.home1-page) .footer-area {
  position: relative;
  z-index: 2;
  padding: 70px 24px;
  background: rgba(20, 20, 20, 0.88);
  display: grid;
}

body:not(.home1-page) .footer-area .custom-container {
  width: min(1130px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

body:not(.home1-page) .footer-area h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 18px;
}

body:not(.home1-page) .footer-area a,
body:not(.home1-page) .footer-area p,
body:not(.home1-page) .footer-area .sub-title {
  color: #ccc;
}

button.tt-scroll-orb {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.tt-scroll-orb:focus-visible {
  outline: 2px solid #7eeeff;
  outline-offset: 4px;
  border-radius: 50%;
}

.tt-tally.is-done {
  animation: ttTallyPop 0.45s ease;
}

@keyframes ttTallyPop {
  40% { transform: scale(1.06); }
}

.tt-hero-parallax {
  position: relative;
  height: clamp(460px, 78vw, 700px);
  margin: 42px 0 8px;
  isolation: isolate;
  overflow: hidden;
}

.tt-hero-parallax__slot {
  position: absolute;
  will-change: transform;
}

.tt-hero-parallax__slot--left,
.tt-hero-parallax__slot--right {
  width: min(48%, 360px);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  z-index: 1;
}

.tt-hero-parallax__slot--left {
  left: 0;
  top: 7%;
  transform: translate3d(-112%, 0, 0);
}

.tt-hero-parallax__slot--right {
  right: 0;
  top: 16%;
  transform: translate3d(112%, 0, 0);
}

.tt-hero-parallax__slot--front {
  left: 50%;
  bottom: 0;
  width: min(64%, 460px);
  z-index: 3;
  transform: translate3d(-50%, 118%, 0);
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.55));
}

.tt-hero-parallax.is-in .tt-hero-parallax__slot--left,
.tt-hero-parallax.is-in .tt-hero-parallax__slot--right {
  transform: none;
  transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.tt-hero-parallax.is-in .tt-hero-parallax__slot--right {
  transition-delay: 0.08s;
}

.tt-hero-parallax.is-in .tt-hero-parallax__slot--front {
  transform: translate3d(-50%, 0, 0);
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.16s;
}

.tt-hero-parallax__slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tt-hero-parallax__slot--front img {
  height: auto;
  object-fit: contain;
}

.service-item {
  overflow: visible;
}

.service-tilt {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 132px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: rotate(10deg) translate(10px, -6px) scale(0.92);
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.service-item:hover .service-tilt,
.service-item:focus-within .service-tilt {
  opacity: 1;
  transform: rotate(-12deg) translate(-4px, 2px) scale(1);
}

.tt-chat {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(380px, calc(100vw - 24px));
}

.tt-chat__panel {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 560px);
  border: 1px solid rgba(126, 238, 255, 0.28);
  border-radius: 18px;
  background: rgba(6, 12, 20, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.tt-chat__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(126, 238, 255, 0.16);
  color: #e8fbff;
  font: 700 13px/1.2 Inter, system-ui, sans-serif;
}

.tt-chat__bar button,
.tt-chat__form button {
  border: 0;
  border-radius: 999px;
  background: #14c5fd;
  color: #041018;
  font: 700 12px/1 Inter, system-ui, sans-serif;
  padding: 8px 12px;
  cursor: pointer;
}

.tt-chat__log {
  flex: 1;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-chat__bubble {
  margin: 0;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  color: #e7f7ff;
  font: 400 14px/1.45 Inter, system-ui, sans-serif;
  white-space: pre-wrap;
}

.tt-chat__bubble--assistant {
  align-self: flex-start;
  background: rgba(20, 197, 253, 0.12);
}

.tt-chat__bubble--user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
}

.tt-chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(126, 238, 255, 0.16);
}

.tt-chat__form textarea {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(126, 238, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 10px;
  font: 400 14px/1.4 Inter, system-ui, sans-serif;
}

.tt-chat__note {
  margin: 0;
  padding: 0 12px 12px;
  color: #8fb4c2;
  font: 400 11px/1.4 Inter, system-ui, sans-serif;
}

@media (max-width: 720px) {
  .tt-hero-parallax {
    height: 520px;
  }

  .tt-hero-parallax__slot--left,
  .tt-hero-parallax__slot--right {
    width: 46%;
  }

  .tt-hero-parallax__slot--front {
    width: 78%;
  }

  .service-tilt {
    width: 108px;
    height: 78px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-scroll-orb {
    transform: translate3d(var(--orb-x), var(--orb-y), 0);
  }

  .tt-hero-parallax__slot,
  .tt-hero-parallax.is-in .tt-hero-parallax__slot--front {
    transform: none !important;
    transition: none !important;
  }

  .tt-hero-parallax__slot--front {
    left: 18%;
    width: min(70%, 420px);
  }

  .tt-tally.is-done,
  .service-tilt {
    animation: none;
    transition: none;
  }
}

/* ISP and Web3 resource cards */
.tt-resources { padding: 54px 0; }
.tt-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tt-resource-card { border: 1px solid #ffffff28; border-radius: 20px; overflow: hidden; background: rgba(12,18,26,.9); }
.tt-resource-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.tt-resource-card div { padding: 22px; }
.tt-resource-card h3 { font-size: 22px; color: #fff; }
.tt-resource-card p { color: #bdc7d1; line-height: 1.7; }
.tt-resource-card a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 4px; }
.tt-image-credit { font-size: 12px; color: #b5c1cd; margin-top: 10px; }
@media (max-width: 800px) { .tt-resource-grid { grid-template-columns: 1fr; } }

.post-sources a { color: var(--primary-color); text-underline-offset: 3px; }

#blog-form label { flex-direction: column; align-items: stretch; }
#blog-form label[hidden] { display: none !important; }
#blog-form fieldset { border: 1px solid var(--line); border-radius: 12px; }
#blog-form fieldset label, #blog-form label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
#blog-form input[type="checkbox"] { width: auto; }
#blog-admin-status { overflow-wrap: anywhere; }


[hidden] { display: none !important; }

.clients-logos img.partner-logo-transparent:hover { opacity: 1; }

.clients-logos img { width: 100%; height: 140px; padding: 10px; object-fit: contain; background: transparent; opacity: .3; transition: opacity .3s; }
.clients-logos img:hover { opacity: 1; }

/* Robot teardown popup (opened from the footer robot's "See inside") */
html.tt-modal-open,
html.tt-modal-open body {
  overflow: hidden !important;
}

.tt-teardown-modal {
  width: min(1680px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #0b0d0f;
  color: #eef3f6;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.tt-teardown-modal[open] {
  animation: tt-teardown-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tt-teardown-modal::backdrop {
  background: rgba(3, 5, 6, 0.72);
  backdrop-filter: blur(4px);
}

@keyframes tt-teardown-in {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

.tt-teardown-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0d0f;
}

.tt-teardown-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(11, 13, 15, 0.72);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tt-teardown-modal__close:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(30, 36, 40, 0.9);
}

.tt-teardown-modal__close:focus-visible {
  outline: 2px solid #14c5fd;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .tt-teardown-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .tt-teardown-modal__close { top: 10px; right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tt-teardown-modal[open] { animation: none; }
}

/* Links into the TeknTandao platform (a.tt-platform-link[data-platform-path]): a small trailing
   new-tab icon that stays inline (service-card icons are otherwise absolutely placed), wrapping
   labels on narrow screens and a visible keyboard focus ring. */
.tt-platform-link {
  overflow-wrap: anywhere;
}

.services-items .service-item .tt-platform-link__icon,
.tt-platform-link__icon {
  position: static;
  display: inline;
  margin-left: 4px;
  font-size: 13px;
  vertical-align: baseline;
}

.services-items .service-item .projects a:focus-visible,
.services-items .service-item h2 a:focus-visible,
.footer-area .footer-links a:focus-visible,
.tt-platform-link:focus-visible {
  outline: 2px solid var(--primary-color, #28e98c);
  outline-offset: 3px;
  border-radius: 4px;
}
