/* Alternating section rhythm */
@media (min-width: 1041px) {
  .capability-header > div {
    grid-column: 2;
    grid-row: 1;
  }

  .capability-header > p {
    grid-column: 1;
    grid-row: 1;
    max-width: 520px;
    padding-right: 24px;
  }
}

/* Borderless product demo with a diffuse color field. */
.product-gallery .gallery-frame {
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.product-gallery .gallery-frame::before {
  content: "";
  position: absolute;
  inset: 7% 3% 4%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  border-radius: 28%;
  background:
    radial-gradient(circle at 18% 44%, rgba(0, 167, 196, 0.34), transparent 42%),
    radial-gradient(circle at 79% 28%, rgba(118, 87, 216, 0.24), transparent 40%),
    radial-gradient(circle at 52% 88%, rgba(22, 164, 119, 0.2), transparent 42%);
  filter: blur(48px);
  transform: scale(1.08);
}

.theme-dark .product-gallery .gallery-frame::before {
  opacity: 0.82;
  background:
    radial-gradient(circle at 18% 44%, rgba(39, 195, 213, 0.38), transparent 42%),
    radial-gradient(circle at 79% 28%, rgba(155, 134, 238, 0.26), transparent 40%),
    radial-gradient(circle at 52% 88%, rgba(56, 189, 145, 0.24), transparent 42%);
}

.product-gallery .gallery-viewport {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background: transparent;
  box-shadow:
    -28px 22px 76px rgba(0, 167, 196, 0.15),
    30px 18px 82px rgba(118, 87, 216, 0.11),
    0 34px 90px rgba(22, 164, 119, 0.09);
  overflow: hidden;
}

.theme-dark .product-gallery .gallery-viewport {
  box-shadow:
    -30px 24px 88px rgba(39, 195, 213, 0.2),
    32px 20px 92px rgba(155, 134, 238, 0.14),
    0 38px 96px rgba(56, 189, 145, 0.11);
}

.gallery-tabs {
  width: min(940px, 94%);
  margin: 18px auto 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  border: 1px solid rgba(81, 119, 145, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(21, 58, 74, 0.1);
  backdrop-filter: blur(18px);
}

.gallery-tabs button,
.gallery-tabs button:last-child {
  --tab-accent: var(--cyan);
  position: relative;
  min-width: 0;
  min-height: 50px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tab-accent) 18%, transparent);
  border-radius: 7px;
  color: #52687a;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tab-accent) 7%, white), rgba(255, 255, 255, 0.56));
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gallery-tabs button:nth-child(1) { --tab-accent: #00a7c4; }
.gallery-tabs button:nth-child(2) { --tab-accent: #7657d8; }
.gallery-tabs button:nth-child(3) { --tab-accent: #e78b2e; }
.gallery-tabs button:nth-child(4) { --tab-accent: #16a477; }

.gallery-tabs button::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 3px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  opacity: 0;
  background: var(--tab-accent);
  box-shadow: 0 0 13px color-mix(in srgb, var(--tab-accent) 64%, transparent);
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-tabs button:hover,
.gallery-tabs button:focus-visible {
  color: #172d3f;
  border-color: color-mix(in srgb, var(--tab-accent) 34%, transparent);
  background: color-mix(in srgb, var(--tab-accent) 11%, white);
  transform: translateY(-1px);
}

.gallery-tabs button.is-active {
  color: #0b2133;
  border-color: color-mix(in srgb, var(--tab-accent) 46%, transparent);
  background: color-mix(in srgb, var(--tab-accent) 17%, white);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--tab-accent) 16%, transparent);
  transform: translateY(-1px);
}

.gallery-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.theme-dark .gallery-tabs {
  border-color: rgba(159, 190, 212, 0.22);
  background: rgba(6, 14, 24, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.theme-dark .gallery-tabs button,
.theme-dark .gallery-tabs button:last-child {
  color: #aebdca;
  border-color: color-mix(in srgb, var(--tab-accent) 15%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--tab-accent) 7%, rgba(11, 23, 36, 0.9)), rgba(8, 17, 28, 0.7));
}

.theme-dark .gallery-tabs button:hover,
.theme-dark .gallery-tabs button:focus-visible {
  color: #e6eef2;
  border-color: color-mix(in srgb, var(--tab-accent) 28%, transparent);
  background: color-mix(in srgb, var(--tab-accent) 10%, rgba(8, 18, 30, 0.95));
}

.theme-dark .gallery-tabs button.is-active {
  color: #f4f8fa;
  border-color: color-mix(in srgb, var(--tab-accent) 42%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--tab-accent) 22%, rgba(13, 28, 43, 0.98)), rgba(11, 24, 38, 0.94));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tab-accent) 12%, transparent), 0 10px 28px color-mix(in srgb, var(--tab-accent) 15%, rgba(0, 0, 0, 0.28));
}

/* Orchid capability workspace, adapted for both themes. */
.capabilities {
  position: relative;
  padding: 86px 0 92px;
  overflow: hidden;
  border-top: 1px solid rgba(72, 110, 136, 0.1);
  border-bottom: 1px solid rgba(72, 110, 136, 0.1);
  background:
    radial-gradient(circle at 16% 42%, rgba(0, 167, 196, 0.09), transparent 27%),
    radial-gradient(circle at 88% 72%, rgba(118, 87, 216, 0.07), transparent 25%),
    linear-gradient(180deg, #f7fafb 0%, #eef4f6 100%);
}

.theme-dark .capabilities {
  border-color: rgba(156, 191, 214, 0.09);
  background:
    radial-gradient(circle at 16% 42%, rgba(29, 133, 160, 0.1), transparent 27%),
    radial-gradient(circle at 88% 72%, rgba(91, 102, 190, 0.08), transparent 25%),
    linear-gradient(180deg, #08111c 0%, #070c14 100%);
  backdrop-filter: none;
}

.capability-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(84, 122, 148, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 122, 148, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.theme-dark .capability-grid-bg {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(134, 170, 196, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 170, 196, 0.075) 1px, transparent 1px);
}

.capability-header-new {
  position: relative;
  z-index: 1;
}

.capability-header-new h2 {
  max-width: 960px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.theme-dark .capability-header-new h2 {
  color: #f3f8fa;
  font-weight: 500;
}

.capability-map {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 82px;
  align-items: stretch;
}

.agent-entry {
  position: relative;
  min-height: 696px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 167, 196, 0.22);
  border-radius: 15px;
  background:
    radial-gradient(circle at 50% 18%, rgba(0, 167, 196, 0.12), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 247, 0.96));
  box-shadow: 0 28px 70px rgba(22, 56, 77, 0.13), inset 0 0 60px rgba(0, 167, 196, 0.025);
}

.theme-dark .agent-entry {
  border-color: rgba(87, 193, 208, 0.25);
  background:
    radial-gradient(circle at 50% 18%, rgba(36, 137, 255, 0.14), transparent 34%),
    linear-gradient(160deg, rgba(15, 34, 49, 0.96), rgba(7, 16, 27, 0.96));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32), inset 0 0 60px rgba(39, 212, 223, 0.025);
}

.agent-entry::before {
  content: "";
  position: absolute;
  top: -142px;
  right: -118px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(0, 167, 196, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(0, 167, 196, 0.025), 0 0 0 76px rgba(0, 167, 196, 0.015);
}

.entry-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #687d8e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.entry-topline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.entry-topline i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.agent-entry h3 {
  position: relative;
  margin: 76px 0 30px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
}

.theme-dark .agent-entry h3 {
  color: #eef5f6;
  font-weight: 500;
}

.entry-prompt {
  position: relative;
  min-height: 104px;
  padding: 19px 52px 19px 18px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(91, 128, 153, 0.2);
  border-radius: 11px;
  color: #42586b;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.theme-dark .entry-prompt {
  border-color: rgba(147, 183, 205, 0.18);
  color: #b9c7cf;
  background: rgba(3, 10, 18, 0.55);
}

.entry-prompt [data-prompt-rotator] {
  min-height: 2.8em;
  display: inline-flex;
  align-items: center;
}

.entry-prompt [data-prompt-rotator]::after {
  content: "";
  width: 1px;
  height: 1.35em;
  margin-left: 3px;
  flex: 0 0 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px color-mix(in srgb, var(--cyan) 55%, transparent);
  animation: promptCaret 900ms steps(1, end) infinite;
}

@keyframes promptCaret {
  50% { opacity: 0; }
}

.entry-submit {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 30px;
  height: 30px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #051319;
  border: 0;
  border-radius: 8px;
  background: var(--cyan);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cyan) 22%, transparent);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  transition: transform 170ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 170ms ease, background 170ms ease;
}

.entry-submit:hover,
.entry-submit:focus-visible {
  background: #62e4d1;
  box-shadow: 0 11px 30px rgba(39, 212, 223, 0.32);
  transform: translateY(-2px);
  outline: 2px solid rgba(126, 232, 240, 0.55);
  outline-offset: 3px;
}

.entry-submit:active { transform: translateY(0) scale(0.9); }
.entry-submit.is-clicked { animation: entrySubmitFeedback 420ms cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes entrySubmitFeedback {
  45% { transform: scale(0.86); box-shadow: 0 0 0 8px rgba(39, 212, 223, 0.1); }
  100% { transform: scale(1); }
}

.entry-flow {
  margin: 33px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  list-style: none;
}

.entry-flow li {
  position: relative;
  min-height: 35px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 12px;
  color: #607384;
  font-size: 11px;
}

.theme-dark .entry-flow li { color: #7f909d; }

.entry-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 34px;
  width: 1px;
  height: 21px;
  background: rgba(91, 128, 153, 0.24);
}

.entry-flow i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(91, 128, 153, 0.24);
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}

.entry-flow .is-done { color: #526a7c; }
.entry-flow .is-done i { color: var(--green); border-color: color-mix(in srgb, var(--green) 28%, transparent); background: color-mix(in srgb, var(--green) 7%, transparent); }
.entry-flow .is-live { color: #27475c; }
.entry-flow .is-live i { border-color: color-mix(in srgb, var(--cyan) 34%, transparent); background: color-mix(in srgb, var(--cyan) 8%, transparent); }
.entry-flow .is-live i::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.theme-dark .entry-flow .is-done { color: #aebdc6; }
.theme-dark .entry-flow .is-live { color: #d2dde2; }

.entry-foot {
  margin-top: auto;
  padding-top: 19px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(91, 128, 153, 0.18);
  font-size: 9px;
}

.entry-foot span { color: #617587; text-transform: uppercase; letter-spacing: 0.1em; }
.entry-foot b { color: #4b6275; font-weight: 700; }
.theme-dark .entry-foot span { color: #7f909d; }
.theme-dark .entry-foot b { color: #bdcbd2; }

.capability-lanes {
  display: grid;
  gap: 13px;
}

.capability-lane {
  --domain: var(--cyan);
  position: relative;
  min-height: 222px;
  padding: 28px 28px 28px 22px;
  display: grid;
  grid-template-columns: 36px minmax(230px, 0.9fr) minmax(300px, 1.1fr);
  gap: 25px;
  align-items: center;
  border: 1px solid rgba(102, 139, 164, 0.2);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 18px 44px rgba(29, 61, 80, 0.05);
  transition: border-color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-dark .capability-lane {
  border-color: rgba(141, 177, 201, 0.14);
  background: rgba(10, 20, 32, 0.72);
  box-shadow: none;
}

.capability-lane::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -83px;
  width: 82px;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 145, 172, 0.05), color-mix(in srgb, var(--domain) 55%, transparent));
}

.capability-lane::after {
  content: "";
  position: absolute;
  left: -4px;
  top: calc(50% - 4px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--domain);
  box-shadow: 0 0 13px color-mix(in srgb, var(--domain) 70%, transparent);
}

.capability-lane:hover,
.capability-lane:focus-within {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--domain) 38%, transparent);
  background: color-mix(in srgb, var(--domain) 5%, white);
}

.theme-dark .capability-lane:hover,
.theme-dark .capability-lane:focus-within {
  background: rgba(12, 25, 39, 0.9);
}

.lane-violet { --domain: var(--violet); }
.lane-amber { --domain: var(--orange); }

.lane-index {
  align-self: stretch;
  display: grid;
  place-items: center;
}

.lane-index i {
  width: 2px;
  height: 72%;
  min-height: 86px;
  max-height: 116px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--domain) 22%, var(--domain) 78%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--domain) 32%, transparent);
  opacity: 0.72;
}

.lane-copy h3 {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
}

.theme-dark .lane-copy h3 { color: #eaf2f4; font-weight: 600; }

.lane-copy p {
  margin: 0;
  color: #607487;
  font-size: 12px;
  line-height: 1.75;
}

.theme-dark .lane-copy p { color: #b9c6ce; }

.capability-lane ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.capability-lane li {
  min-height: 36px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #425a6d;
  border: 1px solid rgba(102, 139, 164, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.theme-dark .capability-lane li {
  color: #c0ccd3;
  border-color: rgba(144, 179, 202, 0.15);
  background: rgba(5, 13, 22, 0.46);
}

.capability-lane li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--domain);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Transparent brand artwork in the company section. */
.about-mark,
.theme-dark .about-mark {
  min-height: 220px;
  padding: 24px;
  border: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  overflow: visible;
}

.about-mark img {
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
}

.theme-dark .about-mark img {
  filter: grayscale(1) brightness(0) invert(1);
}

@media (max-width: 1240px) {
  .capability-map { grid-template-columns: 330px minmax(0, 1fr); gap: 58px; }
  .capability-lane::before { left: -59px; width: 58px; }
  .capability-lane { grid-template-columns: 34px minmax(210px, 0.85fr) minmax(260px, 1fr); }
}

@media (max-width: 980px) {
  .capability-map { grid-template-columns: 1fr; }
  .agent-entry { min-height: 570px; }
  .capability-lane::before { display: none; }
}

@media (max-width: 760px) {
  .gallery-tabs { width: 100%; gap: 3px; padding: 4px; }
  .gallery-tabs button,
  .gallery-tabs button:last-child { min-height: 56px; padding: 4px 3px; font-size: 9px; line-height: 1.3; }
  .capabilities { padding: 76px 0 68px; }
  .capability-header-new h2 { font-size: 34px; }
  .capability-map { margin-top: 42px; gap: 16px; }
  .agent-entry { min-height: 540px; padding: 21px; }
  .agent-entry h3 { margin-top: 58px; font-size: 29px; }
  .capability-lane { padding: 22px 18px; grid-template-columns: 26px minmax(0, 1fr); gap: 15px; }
  .capability-lane ul { grid-column: 2; }
  .lane-copy h3 { font-size: 20px; }
  .capability-lane li { min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .about-mark,
  .theme-dark .about-mark { min-height: 150px; padding: 8px 0; }
  .about-mark img { width: min(84vw, 310px); }
}

/* Agent execution sequence */
.loop-flow {
  --loop-progress: 0;
  position: relative;
}

.loop-flow::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--orange), var(--coral));
  transform: scaleX(var(--loop-progress));
  transform-origin: left center;
  transition: transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.loop-flow.is-recovering::after {
  transform: scaleX(1);
  animation: loopRecoverHorizontal 920ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loop-flow.loop-no-transition::after {
  transition: none;
}

.loop-flow > div {
  --step-color: var(--cyan);
  z-index: 1;
  opacity: 1;
  transition: opacity 320ms ease, transform 320ms ease;
}

.loop-flow > div:nth-child(2) { --step-color: var(--green); }
.loop-flow > div:nth-child(3) { --step-color: var(--orange); }
.loop-flow > div:nth-child(4) { --step-color: var(--coral); }

.loop-flow > div::before {
  z-index: 2;
  background: var(--step-color);
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 260ms ease;
}

.loop-flow.loop-motion-ready > div {
  opacity: 0.46;
}

.loop-flow.loop-motion-ready.is-in-view > div {
  opacity: 0.72;
}

.loop-flow.loop-motion-ready > div.is-complete,
.loop-flow.loop-motion-ready > div.is-current {
  opacity: 1;
}

.loop-flow > div.is-current {
  transform: none;
}

.loop-flow > div.is-current::before {
  transform: scale(1.65);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--step-color) 15%, transparent), 0 0 19px var(--step-color);
}

.loop-flow > div.is-complete::before {
  transform: scale(1.14);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--step-color) 11%, transparent);
}

.loop-flow > div b,
.loop-flow > div p,
.loop-flow > div span {
  transition: color 260ms ease, opacity 260ms ease;
}

.loop-flow > div.is-current b {
  color: var(--step-color);
}

.loop-flow > div.is-current p {
  color: var(--ink-soft);
}

@keyframes loopRecoverHorizontal {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 0 100%); }
}

@keyframes loopRecoverVertical {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(100% 0 0 0); }
}

/* Proof metrics */
.proof-bar b[data-count-to] {
  display: inline-block;
  min-width: 4.7ch;
  text-align: center;
  transform-origin: center bottom;
  backface-visibility: hidden;
}

.proof-bar b[data-count-to].is-counting {
  animation: metricFlip 320ms ease-in-out infinite;
}

.proof-bar b[data-count-to].is-settled {
  animation: metricSettle 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes metricFlip {
  0% { transform: perspective(280px) rotateX(-12deg) translateY(2px); opacity: 0.74; }
  50% { transform: perspective(280px) rotateX(0deg) translateY(0); opacity: 1; }
  100% { transform: perspective(280px) rotateX(9deg) translateY(-1px); opacity: 0.82; }
}

@keyframes metricSettle {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Foundation reveal */
.foundation-years {
  position: relative;
  display: inline-block;
  color: #ffffff;
}

.foundation-years::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}

.foundation.foundation-motion-ready .foundation-intro > * {
  opacity: 0;
  transform: translateX(-24px);
}

.foundation.foundation-motion-ready .foundation-stack article {
  opacity: 0;
  transform: translateX(28px);
}

.foundation.foundation-motion-ready.is-visible .foundation-intro > * {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 620ms cubic-bezier(0.22, 1, 0.36, 1), transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.foundation.foundation-motion-ready.is-visible .foundation-intro > h2 {
  transition-delay: 90ms;
}

.foundation.foundation-motion-ready.is-visible .foundation-intro > p:not(.section-eyebrow) {
  transition-delay: 170ms;
}

.foundation.foundation-motion-ready.is-visible .foundation-quote {
  transition-delay: 250ms;
}

.foundation.foundation-motion-ready.is-visible .foundation-years::after {
  transform: scaleX(1);
  transition: transform 820ms cubic-bezier(0.22, 1, 0.36, 1) 420ms;
}

.foundation.foundation-motion-ready.is-visible .foundation-stack article {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--foundation-delay, 0ms),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--foundation-delay, 0ms);
}

/* Brand mark and client proof */
.about-mark {
  padding: 24px;
  background: #ffffff;
  background-image: none;
  overflow: hidden;
}

.about-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.client-trust-header h2 {
  font-size: 46px;
  line-height: 1.18;
}

.client-trust-copy p {
  font-size: 17px;
}

/* Three vertical capability workstreams */
.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line);
}

.capability-domain {
  --domain-panel: rgba(255, 255, 255, 0.38);
  --domain-panel-hover: rgba(240, 247, 249, 0.92);
  position: relative;
  min-width: 0;
  min-height: 520px;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  padding: 30px 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: var(--domain-panel);
  overflow: hidden;
  transition: background 280ms ease, transform 280ms ease;
}

.theme-dark .capability-domain {
  --domain-panel: rgba(10, 25, 41, 0.34);
  --domain-panel-hover: rgba(17, 37, 57, 0.72);
}

.capability-domain:last-child {
  border-right: 0;
}

.capability-domain::before {
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--domain-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.capability-domain::after {
  content: "";
  position: absolute;
  top: 64px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--domain-color);
  box-shadow: 0 0 14px var(--domain-color);
  opacity: 0;
}

.capability-domain:hover {
  background: var(--domain-panel-hover);
  transform: translateY(-6px);
}

.capability-domain:hover::before,
.capability-domain:focus-within::before,
.capability-domain.is-visible::before {
  transform: scaleX(1);
}

.capability-domain.is-visible::after {
  animation: capabilitySignal 5.4s ease-in-out infinite;
  animation-delay: calc(var(--domain-delay, 0ms) + 700ms);
}

.capability-index {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  color: var(--domain-color);
  font-size: 12px;
}

.capability-index::after {
  content: "ACTIVE";
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  opacity: 0.78;
}

.domain-heading {
  min-height: 104px;
}

.domain-heading h3 {
  margin-top: 12px;
  font-size: 25px;
}

.domain-agent-work {
  min-height: 172px;
  margin-top: 15px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.domain-agent-work p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
}

.domain-products {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.domain-products li {
  width: 100%;
  min-height: 39px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  transform: translateX(0);
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.domain-products li:last-child {
  border-bottom: 0;
}

.capability-domain:hover .domain-products li {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.domain-products li:hover {
  color: var(--ink);
  transform: translateX(5px);
}

.capability-list.capabilities-motion-ready .capability-domain {
  opacity: 0;
  transform: translateY(28px);
}

.capability-list.capabilities-motion-ready .capability-domain.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--domain-delay, 0ms),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1) var(--domain-delay, 0ms),
    background 280ms ease;
}

.capability-list.capabilities-motion-ready .capability-domain.is-visible:hover {
  transform: translateY(-6px);
}

@keyframes capabilitySignal {
  0%, 14% { top: 64px; opacity: 0; }
  24% { opacity: 0.9; }
  76% { opacity: 0.9; }
  90%, 100% { top: calc(100% - 38px); opacity: 0; }
}

@media (max-width: 1040px) {
  .capability-header > div,
  .capability-header > p {
    grid-column: auto;
    grid-row: auto;
  }

  .capability-header > p {
    padding-right: 0;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-domain {
    min-height: 0;
    padding: 28px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-domain:last-child {
    border-bottom: 0;
  }

  .domain-products {
    grid-column: auto;
    margin-top: auto;
  }
}

/* The demo videos already contain their own Mac-style window. */
.product-gallery .gallery-frame {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.product-gallery .gallery-viewport {
  border-radius: 8px;
  background: transparent;
  overflow: hidden;
}

.product-gallery .gallery-arrow {
  top: 50%;
}

@media (max-width: 620px) {
  .loop-flow {
    grid-template-columns: 1fr;
    margin-left: 5px;
    padding-left: 27px;
    border-top: 0;
    border-left: 1px solid var(--line-dark);
  }

  .loop-flow::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: -1px;
    width: 2px;
    height: auto;
    transform: scaleY(var(--loop-progress));
    transform-origin: center top;
  }

  .loop-flow.is-recovering::after {
    transform: scaleY(1);
    animation-name: loopRecoverVertical;
  }

  .loop-flow > div {
    min-height: 112px;
    padding: 13px 0 19px;
  }

  .loop-flow > div::before {
    top: 20px;
    left: -32px;
  }

  .loop-flow > div span {
    margin-bottom: 8px;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-domain {
    min-height: 0;
    padding: 27px 22px 25px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-domain:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .capability-domain:last-child {
    border-bottom: 0;
  }

  .capability-index {
    min-height: 24px;
    margin-bottom: 23px;
  }

  .domain-heading,
  .domain-agent-work {
    grid-column: auto;
    min-height: 0;
  }

  .domain-agent-work {
    margin-top: 20px;
    padding-top: 18px;
  }

  .domain-products {
    grid-column: auto;
    margin-top: 24px;
  }

  .client-trust-header h2 {
    font-size: 36px;
  }

  .client-trust-copy p {
    font-size: 15px;
  }
}

/* Navigation theme control */
.ambient-canvas {
  display: none;
}

.theme-dark .ambient-canvas {
  display: block;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.theme-switch button {
  min-width: 43px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.theme-switch button:hover {
  color: var(--ink);
}

.theme-switch button.is-active {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--blue) 24%, transparent);
}

.theme-switch button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.theme-switch-mobile {
  width: max-content;
  margin: 5px 12px 12px;
}

/* Official-site-inspired client proof */
.client-trust {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  background: #101724;
}

.client-trust::before {
  content: "X";
  position: absolute;
  top: -170px;
  left: 50%;
  z-index: -2;
  color: rgba(39, 195, 213, 0.045);
  font-size: 620px;
  font-weight: 950;
  line-height: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.client-trust::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(145, 168, 188, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 168, 188, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.42) 66%, transparent);
  pointer-events: none;
}

.client-trust-header {
  display: block;
  text-align: center;
}

.client-trust-header > div {
  display: flex;
  justify-content: center;
}

.client-trust-header .section-eyebrow {
  display: none;
}

.client-trust-header h2 {
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  color: #ffffff;
}

.client-title-logo {
  width: 96px;
  height: 50px;
  display: block;
  flex: 0 0 96px;
  overflow: hidden;
}

.client-title-logo img {
  width: auto;
  max-width: none;
  height: 50px;
  display: block;
  filter: grayscale(1) brightness(0) invert(1);
}

.client-trust-copy {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0;
}

.client-trust-copy p {
  max-width: 930px;
  margin: 18px auto 0;
  color: rgba(224, 234, 242, 0.74);
  line-height: 1.9;
  text-align: center;
}

.client-trust-copy a,
.theme-dark .client-trust-copy a {
  margin-top: 18px;
  color: #50c9dc;
}

.client-logo-wall {
  position: relative;
  z-index: 1;
  margin-top: 48px;
}

.foundation {
  overflow: hidden;
}

@media (max-width: 1360px) {
  .header-tools {
    gap: 10px;
  }

  .header-login {
    display: none;
  }
}

@media (max-width: 620px) {
  .client-trust::before {
    top: -35px;
    font-size: 380px;
  }

  .client-trust-header h2 {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 32px;
  }

  .client-title-logo {
    width: 78px;
    height: 42px;
    flex-basis: 78px;
  }

  .client-title-logo img {
    height: 42px;
  }
}

/* Final artwork overrides stay last because this file also contains legacy layout rules. */
.product-gallery .gallery-viewport {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #edf3f7;
  clip-path: inset(0 round 18px);
  overflow: hidden;
}

.product-gallery .gallery-frame::after {
  content: "";
  position: absolute;
  inset: -10px -12px 8px;
  z-index: 0;
  pointer-events: none;
  border-radius: 28px;
  opacity: 0.48;
  background:
    radial-gradient(ellipse at 9% 46%, rgba(37, 205, 220, 0.62), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(121, 102, 224, 0.48), transparent 38%),
    radial-gradient(ellipse at 56% 98%, rgba(44, 188, 146, 0.46), transparent 44%);
  filter: blur(25px);
  transform: scale(1.015);
  animation: product-edge-breathe 7s ease-in-out infinite alternate;
}

.theme-dark .product-gallery .gallery-frame::after {
  opacity: 0.66;
  background:
    radial-gradient(ellipse at 8% 48%, rgba(39, 195, 213, 0.7), transparent 42%),
    radial-gradient(ellipse at 90% 18%, rgba(132, 108, 232, 0.58), transparent 39%),
    radial-gradient(ellipse at 54% 98%, rgba(48, 197, 148, 0.5), transparent 45%);
}

@keyframes product-edge-breathe {
  0% { opacity: 0.38; transform: scale(1.005); }
  100% { opacity: 0.68; transform: scale(1.035); }
}

.product-gallery .product-slide,
.product-gallery .corehr-video-stage,
.product-gallery video {
  border-radius: inherit;
}

.product-gallery .product-slide {
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: none;
  animation: none;
  background: #e7eff4;
  contain: paint;
}

.product-gallery .product-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: none;
}

.theme-dark .product-gallery .gallery-viewport,
.theme-dark .product-gallery .product-slide {
  background: #081523;
}

.product-gallery .product-slide-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: none;
  transition: none;
  animation: none;
}

.product-gallery .product-slide.is-video-ready .product-slide-poster {
  opacity: 0;
  visibility: hidden;
}

.product-gallery .product-slide > video,
.product-gallery .corehr-video-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  transform: none;
  transition: none;
  animation: none;
}

.product-gallery video,
.product-gallery .corehr-demo-video,
.product-gallery .corehr-demo-video.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transform: none;
  transition: none;
  animation: none;
}

.product-gallery .corehr-demo-video,
.product-gallery .kernnex-demo-video,
.product-gallery .maiduo-demo-video,
.product-gallery .paytax-demo-video {
  object-fit: cover;
}

.hero-product-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 10px 16px 9px;
  border: 1px solid rgba(43, 101, 136, 0.3);
  border-radius: 999px;
  color: #1c4662;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(24, 80, 111, 0.08);
  backdrop-filter: blur(14px);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: 72px;
  line-height: 1.02;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.78;
}

.hero-product-pill span {
  color: #5e7181;
}

.theme-dark .hero-product-pill {
  border-color: rgba(113, 174, 211, 0.32);
  color: #f0f6fa;
  background: rgba(8, 20, 32, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 16px 34px rgba(0, 0, 0, 0.16);
}

.theme-dark .hero-product-pill span {
  color: #b7c7d4;
}

.button-primary {
  color: #ffffff;
  border-color: rgba(91, 167, 245, 0.56);
  background: linear-gradient(110deg, #126edc 0%, #218fe9 44%, #36b3e2 72%, #5f7ff0 100%);
  background-size: 220% 100%;
  box-shadow: 0 14px 34px rgba(24, 119, 222, 0.28);
  animation: hero-button-gradient 7s ease-in-out infinite;
}

.button-primary:hover {
  color: #ffffff;
  background: linear-gradient(110deg, #1c7ce8 0%, #2d9cf3 44%, #46bee9 72%, #708ef7 100%);
  background-size: 220% 100%;
  box-shadow: 0 18px 42px rgba(31, 132, 232, 0.38);
}

@keyframes hero-button-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero::before {
  background: linear-gradient(90deg, #176fdb 0%, #2696e6 50%, #43aee4 76%, #6889ef 100%);
  box-shadow: 0 0 28px rgba(32, 132, 226, 0.32);
}

.stage-label b {
  color: #2c8fe7;
}

.stage-label i {
  background: #2c8fe7;
  animation-name: stage-blue-pulse;
}

@keyframes stage-blue-pulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 143, 231, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(44, 143, 231, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 143, 231, 0); }
}

.foundation::before {
  background: rgba(47, 140, 255, 0.16);
  box-shadow: 360px 0 rgba(69, 126, 232, 0.09), 720px 0 rgba(91, 111, 219, 0.08);
}

.foundation-quote {
  border-left-color: #2f8cff;
}

.foundation-quote span,
.foundation-stack article > span {
  color: #58a7ff;
}

.foundation-years::after {
  background: linear-gradient(90deg, #2f8cff 0%, #75c8ff 46%, #4d72ef 100%);
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(47, 140, 255, 0.32);
}

.foundation.foundation-motion-ready.is-visible .foundation-years::after {
  animation: foundation-line-flow 2.8s ease-in-out 1.2s infinite;
}

@keyframes foundation-line-flow {
  0%, 100% { background-position: 100% 50%; opacity: 0.72; }
  50% { background-position: 0% 50%; opacity: 1; }
}

.entry-topline span {
  color: #267fdc;
}

.entry-topline i {
  background: #2f8cff;
  box-shadow: 0 0 10px rgba(47, 140, 255, 0.72);
}

.theme-dark .entry-topline span {
  color: #58a7ff;
}

.client-trust-copy a,
.theme-dark .client-trust-copy a {
  color: #2f8cff;
  text-decoration-color: rgba(47, 140, 255, 0.42);
  text-underline-offset: 5px;
}

.client-trust-copy a:hover,
.theme-dark .client-trust-copy a:hover {
  color: #58a7ff;
  text-decoration-line: underline;
}

.contact {
  min-height: 230px;
  padding-top: 38px;
  padding-bottom: 38px;
}

@media (max-width: 1240px) {
  .hero-copy h1 {
    font-size: 60px;
  }
}

.about-mark,
.theme-dark .about-mark {
  min-height: 220px;
  padding: 24px;
  border: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  overflow: visible;
}

.about-mark img {
  width: min(100%, 460px);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: none;
}

.theme-dark .about-mark img {
  filter: grayscale(1) brightness(0) invert(1);
}

@media (max-width: 760px) {
  .product-gallery .gallery-viewport {
    border-radius: 12px;
    clip-path: inset(0 round 12px);
  }

  .hero-product-pill {
    margin-bottom: 14px;
    padding: 8px 12px 7px;
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 15px;
    line-height: 1.72;
  }

  .contact {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .about-mark,
  .theme-dark .about-mark {
    min-height: 150px;
    padding: 8px 0;
  }

  .about-mark img {
    width: min(84vw, 310px);
  }
}

@media (max-width: 520px) {
  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 14px;
  }
}

/* Click-open navigation aligned with the current KNX product taxonomy. */
.desktop-nav .nav-trigger {
  min-height: 40px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.desktop-nav .nav-trigger:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 7px;
  border-radius: 2px;
}

.nav-dropdown.is-open .nav-trigger::before {
  transform: translateY(2px) rotate(225deg);
}

.nav-products,
.nav-solutions {
  width: min(850px, calc(100vw - 48px));
  grid-template-columns: minmax(210px, 0.72fr) minmax(380px, 1.28fr);
  gap: 0;
  padding: 30px 32px 32px;
}

.nav-menu-group {
  min-width: 0;
}

.nav-menu-group + .nav-menu-group {
  margin-left: 30px;
  padding-left: 30px;
  border-left: 1px solid #e4eaee;
}

.nav-menu-group b {
  margin-bottom: 14px;
  padding-bottom: 11px;
  font-size: 13px;
}

.nav-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 22px;
}

.nav-menu-compact .nav-menu-links {
  grid-template-columns: 1fr;
}

.nav-menu-links a {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.nav-dropdown.is-open .nav-mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown:not(.is-open) .nav-mega {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
}

.theme-dark .nav-menu-group + .nav-menu-group {
  border-left-color: rgba(166, 192, 213, 0.14);
}

.mobile-nav-group {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 6px 24px 4px;
  color: var(--blue);
  background: #eef4f7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.theme-dark .mobile-nav-group {
  color: var(--cyan);
  background: #0a1624;
}

@media (max-width: 1180px) and (min-width: 1041px) {
  .nav-products,
  .nav-solutions {
    left: 38%;
    width: min(760px, calc(100vw - 36px));
  }
}

/* Quiet segmented control: one shared surface, color reserved for selection. */
.product-gallery .gallery-tabs {
  padding: 4px;
  gap: 0;
  border: 1px solid rgba(81, 119, 145, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.product-gallery .gallery-tabs button,
.product-gallery .gallery-tabs button:last-child {
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #607487;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.product-gallery .gallery-tabs button::after {
  right: 24%;
  bottom: 3px;
  left: 24%;
  height: 2px;
  box-shadow: none;
}

.product-gallery .gallery-tabs button:hover,
.product-gallery .gallery-tabs button:focus-visible {
  border: 0;
  color: #21394b;
  background: color-mix(in srgb, var(--tab-accent) 7%, transparent);
  box-shadow: none;
  transform: none;
}

.product-gallery .gallery-tabs button.is-active {
  border: 0;
  color: #132b3d;
  background: color-mix(in srgb, var(--tab-accent) 10%, transparent);
  box-shadow: none;
  transform: none;
}

.theme-dark .product-gallery .gallery-tabs {
  border-color: rgba(159, 190, 212, 0.2);
  background: rgba(7, 17, 28, 0.76);
  box-shadow: none;
}

.theme-dark .product-gallery .gallery-tabs button,
.theme-dark .product-gallery .gallery-tabs button:last-child {
  border: 0;
  color: #aebdca;
  background: transparent;
  box-shadow: none;
}

.theme-dark .product-gallery .gallery-tabs button:hover,
.theme-dark .product-gallery .gallery-tabs button:focus-visible {
  color: #eef6fa;
  background: color-mix(in srgb, var(--tab-accent) 8%, transparent);
}

.theme-dark .product-gallery .gallery-tabs button.is-active {
  color: #f5fbff;
  background: color-mix(in srgb, var(--tab-accent) 12%, transparent);
  box-shadow: none;
}
