/* Stack Global brand overrides */
/* Planning & Strategy card — capabilities list */
.stack-capabilities {
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.25rem 1rem;
  background: #f2fdfe;
  border: 1px solid rgb(0 197 204 / 0.2);
}

.dark .stack-capabilities {
  background: rgb(0 197 204 / 0.08);
  border-color: rgb(0 197 204 / 0.25);
}

.stack-capabilities__heading {
  margin-bottom: 0.75rem;
}

.stack-capabilities__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.stack-capabilities__list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(15 39 71 / 0.85);
}

.dark .stack-capabilities__list li {
  color: rgb(255 255 255 / 0.8);
}

.stack-capabilities__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00c5cc;
  box-shadow: 0 0 0 3px rgb(0 197 204 / 0.2);
}

/* How Stack Helps — stacked cards keep titles visible while scrolling */
.js-stack-cards-titles {
    --stack-cards-title-step: 3.75rem;
    --stack-cards-stick-base: 7rem;
    --stack-cards-content-gap: 20px;
}

.js-stack-cards-titles .stack-cards__item {
    position: sticky;
    transform-origin: top center;
    overflow: hidden;
    isolation: isolate;
}

.js-stack-cards-titles .stack-cards__item > figure {
    z-index: 0;
}

.js-stack-cards-titles .stack-cards__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--stack-cards-content-gap);
}

.js-stack-cards-titles .stack-cards__item[data-stack-index="0"] {
    top: var(--stack-cards-stick-base);
    z-index: 1;
}

.js-stack-cards-titles .stack-cards__item[data-stack-index="1"] {
    top: calc(var(--stack-cards-stick-base) + var(--stack-cards-title-step) * 1);
    z-index: 2;
}

.js-stack-cards-titles .stack-cards__item[data-stack-index="2"] {
    top: calc(var(--stack-cards-stick-base) + var(--stack-cards-title-step) * 2);
    z-index: 3;
}

.js-stack-cards-titles .stack-cards__item[data-stack-index="3"] {
    top: calc(var(--stack-cards-stick-base) + var(--stack-cards-title-step) * 3);
    z-index: 4;
}

.js-stack-cards-titles .stack-cards__head {
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: calc(var(--text-heading-5, 1.5rem) * 1.4 * 2);
    text-align: left;
    position: relative;
    z-index: 2;
    padding: 0 0 0.75rem;
    margin: 0;
    border: none;
    border-bottom: 1px solid rgb(0 197 204 / 0.15);
    background: inherit;
    flex-shrink: 0;
}

.js-stack-cards-titles .stack-cards__head .text-heading-5 {
    line-height: 1.4;
}

.js-stack-cards-titles .stack-cards__inner .stack-cards__head {
    background: inherit;
}

.js-stack-cards-titles .stack-cards__body {
    transform-origin: top center;
    will-change: transform;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.js-stack-cards-titles .stack-cards__body > :first-child {
    margin-top: 0;
}

@media (max-width: 1023px) {
    .js-stack-cards-titles .stack-cards__item[data-stack-index="1"],
    .js-stack-cards-titles .stack-cards__item[data-stack-index="2"],
    .js-stack-cards-titles .stack-cards__item[data-stack-index="3"] {
        top: calc(var(--stack-cards-stick-base) + var(--stack-cards-title-step));
    }
}

.header-four .stack-header-logo {
    height: 1.5rem;
    width: auto;
    max-width: 100px;
}

/* About the Founders */
.stack-founders {
    background-color: #ffffff !important;
}

.stack-founder-card {
    border: 1px solid rgb(0 197 204 / 0.15);
    height: 100%;
}

.stack-founder-card__image {
    width: 168px;
    height: 168px;
    background: #e8eaed;
}

@media (min-width: 640px) {
    .stack-founder-card__image {
        width: 200px;
        height: 200px;
    }
}

.dark .stack-founders .stack-founder-card__image {
    background: #e8eaed;
}

/* Results — tabbed case studies (home) */
.stack-results-header__accent {
    color: #00c5cc;
}

.stack-results-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.75rem 1.5rem;
    border-radius: 2rem;
    background: #111111;
}

@media (min-width: 768px) {
    .stack-results-cta {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 2rem 2.5rem;
    }
}

.stack-results-cta__text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.stack-results-cta__copy {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
}

@media (min-width: 768px) {
    .stack-results-cta__copy {
        font-size: 1.5rem;
    }
}

.stack-results-cta__sub {
    margin: 0;
    max-width: 36rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.55);
}

.stack-results-cta__accent {
    color: #00c5cc;
}

.stack-results-cta__btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    background: #00c5cc;
    color: #111111;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.stack-results-cta__btn:hover {
    background: #00b3ba;
    color: #111111;
}

@media (min-width: 768px) {
    .stack-results-cta__btn {
        padding: 1rem 2rem;
        font-size: 1.0625rem;
    }
}

.stack-results-cta__arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.stack-results-tabs {
    max-width: 1100px;
    margin: 0 auto;
}

.stack-results-tabs__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid rgb(14 39 71 / 0.12);
}

.dark .stack-results-tabs__nav {
    border-bottom-color: rgb(255 255 255 / 0.12);
}

.stack-results-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem 1.25rem 1.125rem;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, color 0.2s;
}

.stack-results-tab.is-active {
    border-bottom-color: #00c5cc;
}

.stack-results-tab__case {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(14 39 71 / 0.45);
}

.stack-results-tab.is-active .stack-results-tab__case {
    color: #00c5cc;
}

.dark .stack-results-tab__case {
    color: rgb(255 255 255 / 0.45);
}

.stack-results-tab__label {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgb(14 39 71 / 0.55);
}

.stack-results-tab.is-active .stack-results-tab__label {
    color: #0e2747;
}

.dark .stack-results-tab.is-active .stack-results-tab__label {
    color: var(--color-accent);
}

.stack-results-tabs__panels {
    padding-top: 1.5rem;
}

.stack-results-panel:not(.is-active) {
    display: none;
}

.stack-results-card {
    border: 1px solid rgb(14 39 71 / 0.1);
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
}

.dark .stack-results-card {
    background: var(--color-background-5, #1e293b);
    border-color: rgb(255 255 255 / 0.1);
}

.stack-results-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgb(14 39 71 / 0.08);
}

.dark .stack-results-card__header {
    border-bottom-color: rgb(255 255 255 / 0.08);
}

.stack-results-card__case {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00c5cc;
}

.stack-results-card__title {
    margin: 0.25rem 0 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0e2747;
}

.dark .stack-results-card__title {
    color: var(--color-accent);
}

.stack-results-card__meta {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgb(14 39 71 / 0.5);
    text-align: right;
}

.dark .stack-results-card__meta {
    color: rgb(255 255 255 / 0.5);
}

.stack-results-card__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem;
}

@media (min-width: 900px) {
    .stack-results-card__body {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: 2.5rem 3rem;
        padding: 2rem 2.25rem 2.25rem;
    }
}

.stack-results-outcome {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 0.25rem;
}

@media (min-width: 900px) {
    .stack-results-outcome {
        border-right: 1px solid rgb(14 39 71 / 0.08);
        padding-right: 2.5rem;
    }

    .dark .stack-results-outcome {
        border-right-color: rgb(255 255 255 / 0.08);
    }
}

.stack-results-outcome__label {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00c5cc;
}

.stack-results-outcome__hero {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
}

.stack-results-outcome__hero-value {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #00c5cc;
}

.stack-results-outcome__hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.35rem;
}

.stack-results-outcome__hero-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.2;
    color: #0e2747;
}

.dark .stack-results-outcome__hero-title {
    color: var(--color-accent);
}

.stack-results-outcome__hero-sub {
    font-size: 1rem;
    line-height: 1.3;
    color: rgb(14 39 71 / 0.5);
}

.dark .stack-results-outcome__hero-sub {
    color: rgb(255 255 255 / 0.5);
}

.stack-results-outcome__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(14 39 71 / 0.08);
}

.dark .stack-results-outcome__stats {
    border-top-color: rgb(255 255 255 / 0.08);
}

.stack-results-outcome__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-right: 0.75rem;
    border-right: 1px solid rgb(14 39 71 / 0.08);
}

.stack-results-outcome__stat:last-child {
    border-right: none;
    padding-right: 0;
}

.dark .stack-results-outcome__stat {
    border-right-color: rgb(255 255 255 / 0.08);
}

.stack-results-outcome__stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.1;
    color: #0e2747;
}

.dark .stack-results-outcome__stat-value {
    color: var(--color-accent);
}

.stack-results-outcome__stat-label {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgb(14 39 71 / 0.5);
}

.dark .stack-results-outcome__stat-label {
    color: rgb(255 255 255 / 0.5);
}

.stack-results-outcome__note {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(14 39 71 / 0.55);
    border-left: 3px solid #00c5cc;
}

.dark .stack-results-outcome__note {
    color: rgb(255 255 255 / 0.55);
}

.stack-results-context {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stack-results-context__label {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(14 39 71 / 0.45);
}

.dark .stack-results-context__label {
    color: rgb(255 255 255 / 0.45);
}

.stack-results-context__label--accent {
    color: #00c5cc;
}

.stack-results-context__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgb(14 39 71 / 0.72);
}

.dark .stack-results-context__text {
    color: rgb(255 255 255 / 0.72);
}

.stack-results-context__block--addressed {
    padding: 1rem 1.125rem;
    border-radius: 12px;
    background: rgb(0 197 204 / 0.06);
    border-left: 3px solid #00c5cc;
}

.stack-results-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.stack-results-pills li {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #00c5cc;
    background: rgb(0 197 204 / 0.1);
    border: 1px solid rgb(0 197 204 / 0.2);
}

.stack-results-context__quote {
    margin: 0;
    font-size: 0.9375rem;
    font-style: italic;
    line-height: 1.55;
    color: rgb(14 39 71 / 0.55);
}

.dark .stack-results-context__quote {
    color: rgb(255 255 255 / 0.55);
}

/* How we work — 3-step section (ai-gadgets style) */
.stack-how-we-work__steps {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
}

.stack-how-we-work__step {
    flex: 1 1 0;
    min-width: 0;
    width: 33.333%;
    max-width: none;
}

@media (min-width: 768px) {
    .stack-how-we-work__steps {
        gap: 2rem;
    }
}

.stack-how-we-work__connector {
    display: none;
    position: absolute;
    top: 22%;
    left: 17%;
    z-index: 0;
    height: 1px;
    width: calc(100% - 35%);
    background: repeating-linear-gradient(
        to right,
        rgb(0 0 0 / 0.2) 0 4px,
        transparent 4px 8px
    );
}

@media (min-width: 640px) {
    .stack-how-we-work__connector {
        display: block;
    }
}

@media (min-width: 860px) {
    .stack-how-we-work__connector {
        top: 27.5%;
    }
}

.dark .stack-how-we-work__connector {
    background: repeating-linear-gradient(
        to right,
        rgb(255 255 255 / 0.25) 0 4px,
        transparent 4px 8px
    );
}

.stack-how-we-work__step-num {
    font-weight: 500;
    line-height: 1;
    min-width: 3.5rem;
    text-align: center;
    border-radius: 9999px;
}

/* Stack marketing pages — alternating section backgrounds (homepage + about) */
.stack-page-section--light {
    background-color: #ffffff !important;
}

.stack-page-section--muted {
    background-color: var(--color-background-2, #f5f6f8) !important;
}

.dark .stack-page-section--muted {
    background-color: var(--color-background-5, #0f172a) !important;
}

.stack-page-section--dark,
.stack-how-we-work--dark-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #0e2747 0%, #0a1d35 42%, #061428 100%) !important;
}

.stack-page-section--dark::before,
.stack-how-we-work--dark-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 50% -5%, rgb(0 197 204 / 0.18) 0%, transparent 58%);
    pointer-events: none;
}

.stack-page-section--dark .main-container,
.stack-how-we-work--dark-gradient .main-container {
    position: relative;
    z-index: 1;
}

.stack-page-section--dark h1,
.stack-page-section--dark h2,
.stack-page-section--dark h3,
.stack-page-section--dark h5,
.stack-how-we-work--dark-gradient h2,
.stack-how-we-work--dark-gradient h5 {
    color: #fff !important;
}

.stack-page-section--dark p,
.stack-page-section--dark .text-secondary,
.stack-page-section--dark .text-secondary\/60,
.stack-page-section--dark .text-secondary\/70,
.stack-page-section--dark .text-secondary\/80,
.stack-how-we-work--dark-gradient p {
    color: rgb(255 255 255 / 0.72) !important;
}

.stack-page-section--dark .badge-cyan {
    color: #00c5cc !important;
    background: rgb(0 197 204 / 0.12) !important;
}

.stack-page-section--dark .accordion-item {
    background: #ffffff !important;
}

.stack-page-section--dark .accordion-item .text-secondary,
.stack-page-section--dark .accordion-item .text-secondary\/70 {
    color: rgb(14 39 71 / 0.85) !important;
}

.stack-page-section--dark .accordion-item h2,
.stack-page-section--dark .accordion-item h3,
.stack-page-section--dark .accordion-item span.text-heading-6 {
    color: #0e2747 !important;
}

.stack-how-we-work--dark-gradient .stack-how-we-work__step-num {
    background: #fff !important;
    color: #0e2747 !important;
    border-color: rgb(0 197 204 / 0.4) !important;
}

.stack-how-we-work--dark-gradient .stack-how-we-work__connector {
    background: repeating-linear-gradient(
        to right,
        rgb(255 255 255 / 0.28) 0 4px,
        transparent 4px 8px
    );
}

/* About page — photo + overlay background (Our mission; formerly About us hero) */
.stack-about-photo-bg {
    position: relative;
    overflow: hidden;
    background-image: url("../images/ns-img-295.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
}

.stack-about-photo-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgb(6 20 40 / 0.5) 0%,
        rgb(14 39 71 / 0.78) 50%,
        rgb(10 29 53 / 0.92) 100%
    );
    pointer-events: none;
    z-index: 0;
}

.stack-about-photo-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 75% 55% at 50% -5%, rgb(0 197 204 / 0.22) 0%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}

.stack-about-photo-bg .main-container {
    position: relative;
    z-index: 1;
}

.stack-about-photo-bg h2,
.stack-about-photo-bg .text-secondary,
.stack-about-photo-bg .text-heading-6 {
    color: #fff !important;
}

.stack-about-photo-bg p {
    color: rgb(255 255 255 / 0.88) !important;
}

.stack-about-photo-bg .badge-cyan {
    color: #00c5cc !important;
    background: rgb(0 197 204 / 0.12) !important;
}

/* About page — clear fixed .header-four (match homepage hero offsets) */
.stack-about-page {
    --stack-header-clear: 5.75rem;
}

@media (min-width: 768px) {
    .stack-about-page {
        --stack-header-clear: 6.75rem;
    }
}

@media (min-width: 1280px) {
    .stack-about-page {
        --stack-header-clear: 7.5rem;
    }
}

/* About page — hero gradient (navy → ocean blue → cyan → site peach) */
.stack-hww-hero.stack-about-hero {
    background-color: #010610 !important;
    background-image: linear-gradient(
        180deg,
        #010610 0%,
        #0e2747 20%,
        #05668d 44%,
        #0096c7 64%,
        #5ed9ec 80%,
        #ffb9a2 100%
    ) !important;
}

.stack-hww-hero.stack-about-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 52% at 78% 18%, rgb(0 150 199 / 0.26) 0%, transparent 58%),
        radial-gradient(ellipse 62% 48% at 18% 86%, rgb(255 185 162 / 0.22) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.stack-about-hero__visual {
    padding: 0 !important;
    overflow: visible;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
}

.stack-about-hero__figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.stack-about-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

/* Our mission — sit below hero; no negative margin (was pulling copy under fixed nav) */
.stack-about-mission {
    position: relative;
    z-index: 1;
    margin-top: 0 !important;
    padding-top: 4.5rem !important;
    overflow: visible;
}

@media (min-width: 768px) {
    .stack-about-mission {
        padding-top: 5.5rem !important;
    }
}

@media (min-width: 1280px) {
    .stack-about-mission {
        padding-top: 6rem !important;
    }
}

.stack-about-mission .main-container {
    padding-top: 0.5rem;
}

html:has(.header-four.fixed) {
    scroll-padding-top: var(--stack-header-clear, 6rem);
}

/* About page — founders on light band */
.stack-about-page .stack-founders.stack-page-section--light {
    background-color: #ffffff !important;
}

/* Technology section — intro above Talk to sales */
.stack-tech-outro,
.stack-tech-outro p {
    color: #ffffff;
}

/* Technology section — equal-height card pairs per row */
@media (min-width: 768px) {
    .stack-tech-cards > [class*="col-span"] {
        display: flex;
        flex-direction: column;
    }

    .stack-tech-card {
        flex: 1 1 auto;
        min-height: 100%;
    }
}

.stack-tech-card__icon {
    display: inline-block;
    line-height: 1;
}

/* Footer */
footer.bg-secondary {
    background-color: #0e2747 !important;
}

/* Footer — Company & Legal aligned right */
@media (min-width: 768px) {
    .stack-footer-nav {
        justify-content: end;
        column-gap: 4rem;
    }

    .stack-footer-nav > .md\:col-span-4:first-of-type {
        grid-column: 5 / span 4;
    }

    .stack-footer-nav > .md\:col-span-4:nth-of-type(2) {
        grid-column: 9 / span 4;
    }
}

@media (min-width: 1280px) {
    .stack-footer-nav {
        margin-left: auto;
        max-width: 62%;
    }
}

@media (max-width: 767px) {
    .stack-footer-nav > .md\:col-span-4 {
        grid-column: auto;
    }
}

/* Homepage — animated hero canvas (Figma color-cut prototype) */
.stack-hero-visual {
    width: 100%;
}

.stack-hero-visual__frame {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: #03060f;
    min-height: 420px;
    aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
    .stack-hero-visual__frame {
        min-height: 520px;
    }
}

.stack-hero-visual__canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.stack-hero-visual__reset {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(0, 212, 255, 0.28);
    border-radius: 9999px;
    background: rgba(3, 12, 28, 0.72);
    color: rgba(200, 230, 255, 0.88);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stack-hero-visual.has-interacted .stack-hero-visual__reset {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.stack-hero-visual__reset:hover {
    background: rgba(0, 197, 204, 0.18);
    border-color: rgba(0, 197, 204, 0.45);
    color: #00c5cc;
}

.stack-hero-visual__reset:active {
    transform: rotate(-30deg);
}

.stack-hero-visual__corners {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stack-hero-visual__corner {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border-color: rgba(0, 212, 255, 0.3);
}

.stack-hero-visual__corner--tl {
    top: 0;
    left: 0;
    border-top: 1px solid;
    border-left: 1px solid;
}

.stack-hero-visual__corner--tr {
    top: 0;
    right: 0;
    border-top: 1px solid;
    border-right: 1px solid;
}

.stack-hero-visual__corner--bl {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid;
    border-left: 1px solid;
}

.stack-hero-visual__corner--br {
    right: 0;
    bottom: 0;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.stack-hero-visual__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-hero-visual.is-overlay-visible .stack-hero-visual__overlay {
    opacity: 1;
    transform: scale(1);
}

.stack-hero-visual__overlay-card {
    position: relative;
    min-width: 18rem;
    max-width: 60%;
    padding: 1.75rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 197, 204, 0.5);
    background: rgba(3, 12, 28, 0.88);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 60px rgba(0, 197, 204, 0.2), 0 8px 40px rgba(0, 0, 0, 0.6);
}

.stack-hero-visual__overlay-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 197, 204, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.stack-hero-visual__overlay-label {
    position: relative;
    margin: 0 0 0.625rem;
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #00c5cc;
}

.stack-hero-visual__overlay-logo {
    position: relative;
    display: block;
    height: 3rem;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.stack-hero-visual__overlay-copy {
    position: relative;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(200, 230, 255, 0.8);
}

.stack-hero-visual__process {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 1rem 2rem;
    pointer-events: none;
}

.stack-hero-visual__process-lead {
    margin: 0 0 1.25rem;
    max-width: none;
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    color: rgba(252, 252, 252, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.8);
}

.stack-hero-visual__process-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.stack-hero-process-btn {
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 767px) {
    .stack-hero-visual__process-lead {
        font-size: 0.8125rem;
    }

    .stack-hero-visual__process-list {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 20rem;
    }

    .stack-hero-process-btn {
        justify-content: center;
        width: 100%;
        white-space: normal;
    }
}

/* Homepage — diagnostic CTA above footer */
.stack-diagnostic-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        #0e2747 0%,
        #0e3d6b 28%,
        #05668d 52%,
        #0096c7 78%,
        #00c5cc 100%
    ) !important;
}

.stack-diagnostic-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgb(0 197 204 / 0.35) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.stack-diagnostic-cta__glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    margin: 0;
}

.stack-diagnostic-cta__glow img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-diagnostic-cta__glow--left {
    bottom: -45%;
    left: -32%;
    width: min(620px, 80vw);
    height: min(620px, 80vw);
    opacity: 0.75;
}

.stack-diagnostic-cta .main-container {
    position: relative;
    z-index: 1;
}

.stack-diagnostic-cta h2 {
    color: #ffffff !important;
}

.stack-diagnostic-cta__accent {
    color: #00c5cc;
}

.stack-diagnostic-cta p.text-tagline-1 {
    color: rgb(255 255 255 / 0.72) !important;
}

.stack-diagnostic-cta__actions {
    width: 100%;
}

.stack-diagnostic-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 10.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.stack-diagnostic-cta__btn--primary {
    background: #00c5cc;
    color: #0e2747;
    border: 1px solid #00c5cc;
    box-shadow: 0 0 24px rgb(0 197 204 / 0.35);
}

.stack-diagnostic-cta__btn--primary:hover {
    background: #00b3ba;
    border-color: #00b3ba;
    color: #0e2747;
    box-shadow: 0 0 32px rgb(0 197 204 / 0.45);
}

.stack-diagnostic-cta__btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgb(0 197 204 / 0.55);
}

.stack-diagnostic-cta__btn--ghost:hover {
    background: rgb(0 197 204 / 0.08);
    border-color: #00c5cc;
    color: #ffffff;
}

.stack-diagnostic-cta__arrow {
    font-size: 1.125rem;
    line-height: 1;
}

.stack-diagnostic-cta__note {
    margin: 0;
    padding-top: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.45) !important;
}

/* How we work — bottom CTA band */
.stack-cta-band.stack-cta-band--dark {
    background-color: #0e2747 !important;
    background-image: none !important;
}

.stack-cta-band--dark h2 {
    color: #ffffff !important;
}

.stack-cta-band--dark .stack-hww-cta__lead {
    color: rgb(255 255 255 / 0.72) !important;
}

.stack-cta-band--dark .badge-cyan {
    color: #00c5cc !important;
    background: rgb(0 197 204 / 0.12) !important;
}

.dark .stack-cta-band.stack-cta-band--dark {
    background-color: #0e2747 !important;
}

.dark .stack-cta-band--dark h2 {
    color: #ffffff !important;
}

.dark .stack-cta-band--dark .stack-hww-cta__lead {
    color: rgb(255 255 255 / 0.72) !important;
}

:root,
.dark {
    --color-ns-green: #00c5cc;
    --color-ns-green-light: rgba(0, 197, 204, 0.22);
    --color-ns-cyan: #00c5cc;
    --color-ns-cyan-light: rgba(0, 197, 204, 0.18);
    --color-gradient-6: linear-gradient(#00c5cc 0%, #00c5cc 100%);
    --color-gradient-7: linear-gradient(#fff 0%, #00c5cc 100%);
    --color-ns-yellow: #f2fdfe;
    --color-ns-yellow-light: #f2fdfe;
}

/* Platform page — hero gradient (purple → home coral #ffc2ad) */
.stack-hww-hero.stack-platform-hero {
    background-color: #050a12 !important;
    background-image: linear-gradient(
        180deg,
        #050a12 0%,
        #0e2747 18%,
        #1a1447 38%,
        #5a00e0 58%,
        #7c6aff 74%,
        #d4a0ff 86%,
        #ffc2ad 100%
    ) !important;
}

.stack-hww-hero.stack-platform-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 75% 55% at 80% 15%, rgb(124 106 255 / 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 65% 50% at 15% 85%, rgb(255 194 173 / 0.22) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.stack-platform-hero .btn-secondary,
.stack-platform-hero .btn-secondary.dark\:btn-accent,
.dark .stack-platform-hero .btn-secondary,
.dark .stack-platform-hero .btn-secondary.dark\:btn-accent {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0e2747 !important;
}

.stack-platform-hero .btn-secondary:hover,
.stack-platform-hero .btn-secondary.hover\:btn-primary:hover,
.dark .stack-platform-hero .btn-secondary:hover,
.dark .stack-platform-hero .btn-secondary.hover\:btn-primary:hover,
.dark .stack-platform-hero .btn-secondary.dark\:hover\:btn-primary:hover {
    background-color: rgb(255 255 255 / 0.9) !important;
    border-color: #ffffff !important;
    color: #0e2747 !important;
}

.stack-platform-hero .btn-secondary span,
.stack-platform-hero .btn-secondary:hover span {
    color: inherit !important;
}

.stack-platform-hero .stack-hww-hero__btn-ghost {
    background-color: transparent !important;
    border: 1.5px solid #ffffff !important;
    color: #ffffff !important;
}

.stack-platform-hero .stack-hww-hero__btn-ghost:hover {
    background-color: rgb(255 255 255 / 0.12) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.stack-platform-hero .stack-hww-hero__btn-ghost span,
.stack-platform-hero .stack-hww-hero__btn-ghost:hover span {
    color: inherit !important;
}

/* Contact page — Email us card */
.stack-contact-email-card {
    background-color: #0e2747 !important;
}

/* Static marketing pages — card grids */
.stack-page-cards-grid {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
}

.stack-page-card {
    border: 1px solid rgb(14 39 71 / 0.08);
}

.dark .stack-page-card {
    border-color: rgb(255 255 255 / 0.08);
}

/* About page — values cards (services.html Our Services layout, Stack value icons) */
.stack-value-card__icon--services {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* How we work page — Figma layout, Stack tokens */
.stack-hww-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: #010610 !important;
    background-image: linear-gradient(
        180deg,
        #010610 0%,
        #061428 22%,
        #0e2747 48%,
        #05668d 72%,
        #0096c7 88%,
        #00c5cc 100%
    ) !important;
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .stack-hww-hero {
        padding-top: 7.25rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 768px) {
    .stack-hww-hero {
        padding-top: 8.75rem;
        padding-bottom: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .stack-hww-hero {
        padding-top: 9.5rem;
        padding-bottom: 5rem;
    }
}

@media (min-width: 1280px) {
    .stack-hww-hero {
        padding-top: 10.25rem;
        padding-bottom: 5.5rem;
    }
}

.stack-hww-hero .main-container {
    position: relative;
    z-index: 1;
}

.stack-hww-hero__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .stack-hww-hero__layout {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 3rem;
    }
}

.stack-hww-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

/* Hero right column — engagement flow (light panel on dark hero) */
.stack-hww-hero__flow {
    width: 100%;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    text-align: left;
}

@media (min-width: 768px) {
    .stack-hww-hero__flow {
        padding: 2rem 2rem 1.75rem;
    }
}

.stack-hww-hero-flow__label {
    margin: 0 0 1.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00c5cc;
}

.stack-hww-hero-flow__steps {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.stack-hww-hero-flow__step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.stack-hww-hero-flow__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--step-color, #334eff);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.stack-hww-hero-flow__title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0e2747;
}

.stack-hww-hero-flow__body {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(14 39 71 / 0.55);
}

.stack-hww-hero-flow__divider {
    margin: 1.5rem 0 1.25rem;
    border: 0;
    border-top: 1px solid rgb(14 39 71 / 0.12);
}

.stack-hww-hero-flow__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.stack-hww-hero-flow__stat-value {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    line-height: 1.1;
    color: #334eff;
}

.stack-hww-hero-flow__stat-label {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgb(14 39 71 / 0.5);
}

.stack-hww-hero__title {
    opacity: 1 !important;
    color: #fff !important;
}

.stack-hww-hero .badge.badge-cyan {
    background: #7ceff3 !important;
    color: #0e2747 !important;
}

.stack-hww-hero .btn-secondary,
.stack-hww-hero .btn-secondary.dark\:btn-accent,
.dark .stack-hww-hero .btn-secondary,
.dark .stack-hww-hero .btn-secondary.dark\:btn-accent {
    background-color: #00c5cc !important;
    border-color: #00c5cc !important;
    color: #0e2747 !important;
}

.stack-hww-hero .btn-secondary:hover,
.stack-hww-hero .btn-secondary.hover\:btn-primary:hover,
.dark .stack-hww-hero .btn-secondary:hover,
.dark .stack-hww-hero .btn-secondary.hover\:btn-primary:hover,
.dark .stack-hww-hero .btn-secondary.dark\:hover\:btn-primary:hover {
    background-color: #7ceff3 !important;
    border-color: #7ceff3 !important;
    color: #0e2747 !important;
}

.stack-hww-hero .btn-secondary span,
.stack-hww-hero .btn-secondary:hover span {
    color: inherit !important;
}

.stack-hww-hero .stack-hww-hero__btn-ghost {
    background-color: transparent !important;
    border: 1.5px solid #00c5cc !important;
    color: #00c5cc !important;
    box-shadow: none !important;
}

.stack-hww-hero .stack-hww-hero__btn-ghost:hover {
    background-color: #7ceff3 !important;
    border-color: #7ceff3 !important;
    color: #0e2747 !important;
}

.stack-hww-hero .stack-hww-hero__btn-ghost span,
.stack-hww-hero .stack-hww-hero__btn-ghost:hover span {
    color: inherit !important;
}

.stack-hww-hero__subtitle {
    color: rgb(255 255 255 / 0.75);
}

.stack-hww-hero [data-ns-animate] {
    opacity: 1 !important;
}

.stack-hww-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #fff;
    background: rgb(0 197 204 / 0.12);
    border: 1px solid rgb(0 197 204 / 0.28);
}

.stack-hww-flow-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgb(14 39 71 / 0.08);
    height: 100%;
}

.dark .stack-hww-flow-card {
    background: var(--color-background-6, #1e293b);
    border-color: rgb(255 255 255 / 0.08);
}

.stack-hww-flow-card__num {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #00c5cc;
    margin-bottom: 0.75rem;
}

.stack-hww-flow-card__title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.dark .stack-hww-flow-card__title {
    color: var(--color-accent);
}

.stack-hww-flow-card__body {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(14 39 71 / 0.65);
}

.dark .stack-hww-flow-card__body {
    color: rgb(255 255 255 / 0.7);
}

.stack-hww-stat__value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 500;
    line-height: 1.1;
    color: var(--color-secondary);
}

.dark .stack-hww-stat__value {
    color: var(--color-accent);
}

.stack-hww-stat__label {
    margin-top: 0.35rem;
    font-size: 0.9375rem;
    color: rgb(14 39 71 / 0.55);
}

.dark .stack-hww-stat__label {
    color: rgb(255 255 255 / 0.55);
}

/* 3-step process — 50/50 columns (Tailwind lg:grid-cols-2 not in main.css) */
.stack-hww-phase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .stack-hww-phase {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 4rem;
    }
}

.stack-hww-phase__copy,
.stack-hww-phase__output {
    width: 100%;
    min-width: 0;
}

.stack-hww-phase__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stack-hww-phase__index {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background-color: var(--phase-accent, #00c5cc);
}

.stack-hww-phase__name {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #051133;
}

.dark .stack-hww-phase__name {
    color: #051133;
}

.stack-hww-phase__heading {
    max-width: 34rem;
}

.stack-hww-phase__list li {
    position: relative;
    padding-left: 1.25rem;
}

.stack-hww-phase__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00c5cc;
}

/* Phase output card — right column */
.stack-hww-phase__output {
    position: relative;
    padding: 1.5rem 1.5rem 1.75rem;
    border-radius: 16px;
    background: rgb(0 197 204 / 0.08);
    border: 1px solid rgb(0 197 204 / 0.22);
    overflow: hidden;
}

@media (min-width: 1024px) {
    .stack-hww-phase__output {
        padding: 1.75rem 1.75rem 2rem;
    }
}

.stack-hww-phase__watermark {
    position: absolute;
    right: 0.25rem;
    bottom: -0.5rem;
    font-size: clamp(4.5rem, 10vw, 7rem);
    font-weight: 500;
    line-height: 1;
    color: rgb(0 197 204 / 0.14);
    pointer-events: none;
    user-select: none;
}

.stack-hww-phase__output-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: #00c5cc;
}

.stack-hww-phase__output-icon-svg {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.stack-hww-phase__output-head {
    position: relative;
    z-index: 1;
    max-width: 16rem;
}

.stack-hww-phase__output-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0e2747;
}

.stack-hww-phase__output-subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgb(14 39 71 / 0.55);
}

.dark .stack-hww-phase__output-title {
    color: var(--color-accent);
}

.dark .stack-hww-phase__output-subtitle {
    color: rgb(255 255 255 / 0.6);
}

.stack-hww-phase__output-card {
    position: relative;
    z-index: 1;
    margin-top: 1.25rem;
    padding: 1.25rem 1.35rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgb(14 39 71 / 0.06);
    box-shadow: 0 1px 3px rgb(14 39 71 / 0.04);
}

.dark .stack-hww-phase__output-card {
    background: var(--color-background-6, #1e293b);
    border-color: rgb(255 255 255 / 0.08);
}

.stack-hww-phase__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgb(14 39 71 / 0.75);
}

.dark .stack-hww-phase__checklist li {
    color: rgb(255 255 255 / 0.8);
}

.stack-hww-phase__checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15em;
    border-radius: 4px;
    background-color: #00c5cc;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='1.5' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.65rem;
}

.stack-hww-phase__findings {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.stack-hww-phase__finding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid color-mix(in srgb, var(--finding-color, #00c5cc) 28%, white);
    border-radius: 12px;
    background-color: #ffffff;
}

.stack-hww-phase__finding-lead {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.35rem;
}

.stack-hww-phase__finding-index {
    flex-shrink: 0;
    width: auto;
    min-width: 1.125rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1;
    color: var(--finding-color, #00c5cc);
}

.stack-hww-phase__finding-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background-color: var(--finding-color, #00c5cc);
    color: #ffffff;
}

.stack-hww-phase__finding-icon svg {
    width: 18px;
    height: 18px;
}

.stack-hww-phase__finding-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.dark .stack-hww-phase__finding {
    background-color: #ffffff;
}

.stack-hww-phase__finding-text {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #0e2747;
}

.stack-hww-phase__finding-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--finding-color, #00c5cc);
    background: color-mix(in srgb, var(--finding-color, #00c5cc) 12%, white);
    border: 1px solid color-mix(in srgb, var(--finding-color, #00c5cc) 22%, white);
}

.stack-hww-phase__output-card:has(.stack-hww-phase__findings) {
    padding: 0.75rem;
    background: #ffffff;
}

/* Step 1 (Assess) — #334EFF accent */
.stack-hww-phase--assess {
    --phase-accent: #334eff;
    --phase-accent-soft: rgb(51 78 255 / 0.08);
    --phase-accent-border: rgb(51 78 255 / 0.24);
    --phase-accent-muted: rgb(51 78 255 / 0.14);
    --phase-accent-badge-bg: rgb(51 78 255 / 0.12);
    --phase-accent-badge-border: rgb(51 78 255 / 0.28);
}

.stack-hww-phase--assess .stack-hww-phase__list li::before {
    background: var(--phase-accent);
}

.stack-hww-phase--assess .stack-hww-phase__output {
    background: var(--phase-accent-soft);
    border-color: var(--phase-accent-border);
}

.stack-hww-phase--assess .stack-hww-phase__watermark {
    color: var(--phase-accent-muted);
}

.stack-hww-phase--assess .stack-hww-phase__output-icon {
    background: var(--phase-accent);
}

.stack-hww-phase--assess .stack-hww-phase__checklist li::before {
    background-color: var(--phase-accent);
}

/* Step 2 (Recommend) — #8700CD accent */
.stack-hww-phase--recommend {
    --phase-accent: #8700cd;
    --phase-accent-soft: rgb(135 0 205 / 0.08);
    --phase-accent-border: rgb(135 0 205 / 0.24);
    --phase-accent-muted: rgb(135 0 205 / 0.14);
    --phase-accent-badge-bg: rgb(135 0 205 / 0.12);
    --phase-accent-badge-border: rgb(135 0 205 / 0.28);
}

.stack-hww-phase--recommend .stack-hww-phase__list li::before {
    background: var(--phase-accent);
}

.stack-hww-phase--recommend .stack-hww-phase__output {
    background: var(--phase-accent-soft);
    border-color: var(--phase-accent-border);
}

.stack-hww-phase--recommend .stack-hww-phase__watermark {
    color: var(--phase-accent-muted);
}

.stack-hww-phase--recommend .stack-hww-phase__output-icon {
    background: var(--phase-accent);
}

.stack-hww-phase--recommend .stack-hww-phase__checklist li::before {
    background-color: var(--phase-accent);
}

/* Step 3 (Execute) — #FF4D70 accent */
.stack-hww-phase--execute {
    --phase-accent: #ff4d70;
    --phase-accent-soft: rgb(255 77 112 / 0.08);
    --phase-accent-border: rgb(255 77 112 / 0.24);
    --phase-accent-muted: rgb(255 77 112 / 0.14);
    --phase-accent-badge-bg: rgb(255 77 112 / 0.12);
    --phase-accent-badge-border: rgb(255 77 112 / 0.28);
}

.stack-hww-phase--execute .stack-hww-phase__list li::before {
    background: var(--phase-accent);
}

.stack-hww-phase--execute .stack-hww-phase__output {
    background: var(--phase-accent-soft);
    border-color: var(--phase-accent-border);
}

.stack-hww-phase--execute .stack-hww-phase__watermark {
    color: var(--phase-accent-muted);
}

.stack-hww-phase--execute .stack-hww-phase__output-icon {
    background: var(--phase-accent);
}

.stack-hww-phase--execute .stack-hww-phase__checklist li::before {
    background-color: var(--phase-accent);
}

/* AI Technology Foundation — left tabs, right panel */
.stack-hww-ai__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .stack-hww-ai__layout {
        grid-template-columns: minmax(280px, 340px) 1fr;
        gap: 1.5rem 2rem;
    }
}

.stack-hww-ai-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stack-hww-ai-tab {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.stack-hww-ai-tab.is-active {
    background: #ffffff;
    border-color: rgb(14 39 71 / 0.08);
    box-shadow: 0 8px 28px rgb(14 39 71 / 0.08);
}

.stack-hww-ai__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--pillar-color, #00c5cc) 14%, white);
    color: var(--pillar-color, #00c5cc);
}

.stack-hww-ai-tab.is-active .stack-hww-ai__icon,
.stack-hww-ai-panel__header .stack-hww-ai__icon {
    background-color: var(--pillar-color, #00c5cc);
    color: #ffffff;
}

.stack-hww-ai-tab__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.stack-hww-ai-tab__label {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0e2747;
}

.stack-hww-ai-tab__tag {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--pillar-color, #00c5cc);
}

.stack-hww-ai-tab__count {
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgb(14 39 71 / 0.45);
    margin-top: 0.15rem;
}

.stack-hww-ai-tab__indicator {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
    margin-left: auto;
    border-radius: 50%;
    border: 1.5px solid rgb(14 39 71 / 0.18);
    background: transparent;
}

.stack-hww-ai-tab.is-active .stack-hww-ai-tab__indicator {
    border: none;
    background-color: var(--pillar-color, #00c5cc);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='1.5' d='M2.5 6l2.5 2.5 4.5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.7rem;
}

.stack-hww-ai-panels {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgb(14 39 71 / 0.08);
    box-shadow: 0 8px 32px rgb(14 39 71 / 0.06);
    padding: 1.75rem 1.75rem 1.5rem;
    min-height: 100%;
}

@media (min-width: 768px) {
    .stack-hww-ai-panels {
        padding: 2rem 2.25rem 1.75rem;
    }
}

.stack-hww-ai-panel:not(.is-active) {
    display: none;
}

.stack-hww-ai-panel__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stack-hww-ai-panel__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #0e2747;
}

.stack-hww-ai-panel__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pillar-color, #00c5cc);
}

.stack-hww-ai-panel__label {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(14 39 71 / 0.4);
}

.stack-hww-ai-cap-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.stack-hww-ai-cap {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pillar-color, #00c5cc) 10%, white);
}

.stack-hww-ai-cap__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: var(--pillar-color, #00c5cc);
}

.stack-hww-ai-cap__text {
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #0e2747;
}

.stack-hww-ai-panel__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
    padding-top: 0.25rem;
}

.stack-hww-ai-panel__note {
    margin: 0;
    font-size: 0.8125rem;
    color: rgb(14 39 71 / 0.45);
}

/* Every Challenge — 4 cards in one row */
.stack-hww-challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .stack-hww-challenges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .stack-hww-challenges-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Match homepage stack-tech-card icons — thin line icon font, single color */
.stack-hww-challenge-card__icon {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 2.25rem;
    line-height: 1;
    color: #0e2747 !important;
}

.dark .stack-hww-challenge-card__icon {
    color: var(--color-accent, #f5f6f8) !important;
}

.stack-hww-challenge-card h3 {
    margin-top: 0;
}

.stack-hww-outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    width: 100%;
}

@media (min-width: 768px) {
    .stack-hww-outcomes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.stack-hww-outcome-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    min-height: 13.5rem;
    padding: 1.75rem 1.5rem !important;
    border: none !important;
    border-radius: 28px !important;
    background: linear-gradient(180deg, #00c5cc 0%, #7ceff3 100%) !important;
    box-shadow: none;
}

.stack-hww-outcomes-grid .stack-hww-outcome-card:nth-child(1) {
    background: linear-gradient(180deg, #00c5cc 0%, #5ed9ec 55%, #7ceff3 100%) !important;
}

.stack-hww-outcomes-grid .stack-hww-outcome-card:nth-child(2) {
    background: linear-gradient(165deg, #00c5cc 0%, #7ceff3 100%) !important;
}

.stack-hww-outcomes-grid .stack-hww-outcome-card:nth-child(3) {
    background: linear-gradient(180deg, #00b8bf 0%, #7ceff3 100%) !important;
}

.dark .stack-hww-outcome-card {
    background: linear-gradient(180deg, #00c5cc 0%, #7ceff3 100%) !important;
}

.stack-hww-outcome-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 0.875rem;
    color: #0e2747;
}

.stack-hww-outcome-card__icon-svg {
    display: block;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    shape-rendering: geometricPrecision;
}

.stack-hww-outcome-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0e2747 !important;
}

.stack-hww-outcome-card__body {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgb(14 39 71 / 0.58) !important;
}

.stack-hww-cta-stat__value {
    font-size: 1.25rem;
    font-weight: 500;
    color: #0e2747;
}

.stack-hww-cta-stat__label {
    font-size: 0.875rem;
    color: rgb(14 39 71 / 0.55);
    margin-top: 0.25rem;
}

/* Platform page — HWW layout + stackglobal.io homepage content */
.stack-platform-hero__visual {
    padding: 0 !important;
    overflow: visible;
    background: transparent !important;
    border-radius: 0;
    box-shadow: none;
}

.stack-platform-hero__figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: none;
}

.stack-platform-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

.stack-platform-xray__layout {
    align-items: stretch;
}

.stack-platform-xray-panels {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.stack-platform-xray-panel {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.stack-platform-xray-panel__figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(14 39 71 / 0.08);
    background: #ffffff;
    box-shadow: 0 12px 40px rgb(14 39 71 / 0.1);
}

.stack-platform-xray-panel__img {
    display: block;
    width: 100%;
    height: auto;
}

.stack-platform-phase__visual {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(14 39 71 / 0.08);
    background: #ffffff;
    box-shadow: 0 12px 40px rgb(14 39 71 / 0.08);
}

.stack-platform-phase__figure {
    margin: 0;
}

.stack-platform-phase__img {
    display: block;
    width: 100%;
    height: auto;
}

.stack-platform-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stack-platform-features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.stack-platform-feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgb(14 39 71 / 0.08);
    box-shadow: 0 8px 28px rgb(14 39 71 / 0.06);
}

.dark .stack-platform-feature-card {
    background: var(--color-background-6, #1e293b);
    border-color: rgb(255 255 255 / 0.08);
}

.stack-platform-feature-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.stack-platform-feature-card__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0e2747;
}

.dark .stack-platform-feature-card__title {
    color: var(--color-accent);
}

.stack-platform-feature-card__tag {
    margin: -0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--feature-color, #00c5cc);
}

.stack-platform-feature-card__body {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgb(14 39 71 / 0.72);
}

.dark .stack-platform-feature-card__body {
    color: rgb(255 255 255 / 0.72);
}

.stack-platform-integrations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .stack-platform-integrations {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 4rem;
    }
}

.stack-platform-integrations__visual {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgb(14 39 71 / 0.08);
    box-shadow: 0 12px 40px rgb(14 39 71 / 0.08);
}

.stack-platform-integrations__img {
    display: block;
    width: 100%;
    height: auto;
}

/* Platform — Real results (dark testimonial cards) */
.stack-platform-results {
    background: #050a12;
}

.stack-platform-results__badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgb(0 197 204 / 0.4);
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00c5cc;
}

.stack-platform-results__accent {
    background: linear-gradient(90deg, #00c5cc 0%, #5eead4 45%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stack-platform-results__subtitle {
    margin: 0 auto;
    max-width: 34rem;
    color: rgb(148 163 184 / 0.95);
}

.stack-platform-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1120px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stack-platform-cases-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        align-items: stretch;
    }
}

.stack-platform-case-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 14px;
    background: #0c1420;
    border: 1px solid rgb(255 255 255 / 0.06);
}

.stack-platform-case-card--featured {
    border-color: rgb(0 197 204 / 0.42);
    box-shadow:
        0 0 0 1px rgb(0 197 204 / 0.18),
        0 16px 48px rgb(0 197 204 / 0.1);
}

.stack-platform-case-card__stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 1.25rem;
}

.stack-platform-case-card__stat-value {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1;
    color: #22d3ee;
}

.stack-platform-case-card__stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgb(148 163 184 / 0.85);
}

.stack-platform-case-card__divider {
    height: 1px;
    margin-bottom: 1.25rem;
    background: rgb(255 255 255 / 0.08);
}

.stack-platform-case-card__quote {
    margin: 0;
    flex: 1;
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
}

.stack-platform-case-card__quote-mark {
    flex-shrink: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    color: #00c5cc;
}

.stack-platform-case-card__quote p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgb(255 255 255 / 0.92);
}

.stack-platform-case-card__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

.stack-platform-case-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: var(--avatar-color, #00c5cc);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.stack-platform-case-card__author {
    min-width: 0;
}

.stack-platform-case-card__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.stack-platform-case-card__role {
    margin: 0.15rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgb(148 163 184 / 0.9);
}

/* Legal pages — privacy policy, terms */
.stack-legal-document {
    max-width: 800px;
    margin: 0 auto;
}

.stack-legal-document__header {
    margin-bottom: 2rem;
}

.stack-legal-document__title {
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
}

.dark .stack-legal-document__title {
    color: var(--color-accent);
}

.stack-legal-document__meta {
    color: rgb(14 39 71 / 0.7);
}

.dark .stack-legal-document__meta {
    color: rgb(255 255 255 / 0.65);
}

.stack-legal-document__toc {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border: 1px solid rgb(14 39 71 / 0.12);
    border-radius: 12px;
    background: rgb(255 255 255 / 0.6);
}

.dark .stack-legal-document__toc {
    border-color: rgb(255 255 255 / 0.1);
    background: rgb(255 255 255 / 0.03);
}

.stack-legal-document__toc ul {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stack-legal-document__toc a {
    color: #05668d;
    text-decoration: underline;
}

.dark .stack-legal-document__toc a {
    color: #00c5cc;
}

.stack-legal-document__section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px;
}

.stack-legal-document__heading {
    margin-bottom: 1rem;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.35;
    color: var(--color-secondary);
}

.dark .stack-legal-document__heading {
    color: var(--color-accent);
}

.stack-legal-document__subheading {
    margin-top: 1.25rem;
    margin-bottom: 0.625rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #05668d;
}

.dark .stack-legal-document__subheading {
    color: #00c5cc;
}

.stack-legal-document p {
    margin-bottom: 1rem;
    line-height: 1.65;
    color: rgb(14 39 71 / 0.8);
}

.dark .stack-legal-document p {
    color: rgb(255 255 255 / 0.75);
}

.stack-legal-document a {
    color: #05668d;
    text-decoration: underline;
}

.dark .stack-legal-document a {
    color: #00c5cc;
}

.stack-legal-document__back {
    margin-top: 2rem;
}

.stack-legal-document__back a {
    color: #05668d;
    text-decoration: underline;
}

.dark .stack-legal-document__back a {
    color: #00c5cc;
}
