/* ==========================================================================
   Page sections

   The parts the service pages are built from (views/sections): masthead,
   text, cards, call to action, questions, case studies.
   Built on the theme's tokens in vipulse-v2.css — colours, faces, the 8px
   scale, the shell — and on nothing else: no grid framework, no classes from
   the imported markup. Every rule here is scoped to an .s-* class.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Grounds
   -------------------------------------------------------------------------- */

.s {
    --s-fg: var(--v2-ink);
    --s-fg-soft: var(--v2-ink-soft);
    --s-fg-mute: var(--v2-ink-mute);
    --s-rule: var(--v2-rule);
    --s-card: #fff;
    position: relative;
    padding-block: clamp(56px, 7vw, 104px);
    background: var(--v2-paper);
    color: var(--s-fg);
}

.s--muted {
    background: var(--v2-paper-sunk);
}

.s--dark {
    --s-fg: var(--v2-ink-invert);
    --s-fg-soft: #c9d0da;
    --s-fg-mute: #97a2b1;
    --s-rule: var(--v2-rule-invert);
    --s-card: rgba(255, 255, 255, 0.04);
    background: var(--v2-night);
}

/* Two sections on the same ground read as one passage: the second does not
   open another full gap. */
.s--light + .s--light,
.s--muted + .s--muted {
    padding-top: 0;
}

/* --------------------------------------------------------------------------
   Type shared by every section
   -------------------------------------------------------------------------- */

.s-head {
    max-width: 62rem;
    margin-bottom: clamp(var(--v2-s3), 3vw, var(--v2-s4));
}

.s-title {
    margin: 0 0 var(--v2-s2);
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
    color: var(--s-fg);
}

.s-title::before {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    margin-bottom: var(--v2-s2);
    background: var(--v2-accent);
}

.s-lead {
    font-size: 1.125rem;
    color: var(--s-fg-soft);
}

.s-actions {
    margin: var(--v2-s4) 0 0;
}

.s--dark .v2-btn--ghost {
    color: var(--v2-ink-invert);
    border-color: var(--v2-rule-invert);
}

/* Prose: what an editor writes in a text field. */
.s-prose {
    color: var(--s-fg-soft);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.s-prose > :first-child {
    margin-top: 0;
}

.s-prose > :last-child {
    margin-bottom: 0;
}

.s-prose p,
.s-prose ul,
.s-prose ol,
.s-prose table,
.s-prose blockquote {
    margin: 0 0 1em;
}

.s-prose h2,
.s-prose h3,
.s-prose h4 {
    margin: 1.6em 0 0.5em;
    font-family: var(--v2-head-font);
    font-weight: 700;
    line-height: 1.3;
    color: var(--s-fg);
}

.s-prose h2 {
    font-size: 1.5rem;
}

.s-prose h3 {
    font-size: 1.25rem;
}

.s-prose h4 {
    font-size: 1.0625rem;
}

.s-prose strong {
    color: var(--s-fg);
    font-weight: 700;
}

.s-prose a {
    color: var(--v2-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.s--dark .s-prose a {
    color: #f0b4b4;
}

.s-prose ul,
.s-prose ol {
    padding-left: 1.25em;
}

.s-prose ul {
    list-style: none;
    padding-left: 0;
}

.s-prose ul > li {
    position: relative;
    padding-left: 1.5em;
}

.s-prose ul > li::before {
    content: "";
    position: absolute;
    left: 0.15em;
    top: 0.72em;
    width: 7px;
    height: 7px;
    background: var(--v2-accent);
}

.s-prose li + li {
    margin-top: 0.4em;
}

.s-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.5em 0;
}

.s-prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.s-prose th,
.s-prose td {
    padding: 10px 12px;
    border: 1px solid var(--s-rule);
    text-align: left;
    vertical-align: top;
}

.s-prose th {
    color: var(--s-fg);
    background: rgba(0, 0, 0, 0.03);
}

.s-prose blockquote {
    padding-left: var(--v2-s3);
    border-left: 3px solid var(--v2-accent);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.s-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px);
    background: var(--v2-night);
    color: var(--v2-ink-invert);
}

/* With a picture the band is tall: the trail at the top, the title at the
   bottom, the photograph between. */
.s-hero--image {
    min-height: clamp(380px, 42vw, 580px);
    display: flex;
    flex-direction: column;
}

.s-hero--image .s-hero__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.s-hero--image .s-crumbs {
    margin-bottom: auto;
    padding-bottom: var(--v2-s5);
}

.s-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s-hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(17, 28, 43, 0.92) 0%, rgba(17, 28, 43, 0.72) 45%, rgba(17, 28, 43, 0.25) 100%),
        linear-gradient(0deg, rgba(17, 28, 43, 0.6) 0%, rgba(17, 28, 43, 0) 50%);
}

.s-hero__inner {
    position: relative;
}

.s-hero__eyebrow {
    margin: 0 0 var(--v2-s2);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #f0b4b4;
}

.s-hero__title {
    max-width: 22ch;
    margin: 0;
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: clamp(2rem, 1.1rem + 3vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}

.s-hero__title:lang(ru),
.s-hero__title:lang(hu),
.s-hero__title:lang(tr),
.s-hero__title:lang(de) {
    font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
}

.s-hero__lead {
    max-width: 60ch;
    margin: var(--v2-s3) 0 0;
    font-size: 1.1875rem;
    color: #d6dce4;
}

.s-crumbs {
    margin-bottom: clamp(var(--v2-s4), 6vw, var(--v2-s6));
    font-size: 0.8125rem;
}

.s-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s-crumbs li + li::before {
    content: "/";
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.45);
}

.s-crumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.s-crumbs a:hover {
    color: #fff;
    text-decoration: underline;
}

.s-crumbs [aria-current] {
    color: rgba(255, 255, 255, 0.6);
}

/* The filter terms a case study is filed under, as links to their lists. */
.s-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: var(--v2-s3) 0 0;
    padding: 0;
    list-style: none;
}

.s-tags a {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.8125rem;
    color: #fff;
    text-decoration: none;
}

.s-tags a:hover {
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   Text, with or without a picture
   -------------------------------------------------------------------------- */

.s-text__copy {
    max-width: 52rem;
}

.s-text--media .s-text__grid {
    display: grid;
    gap: clamp(var(--v2-s4), 5vw, var(--v2-s6));
    align-items: center;
}

.s-text--media .s-text__copy {
    max-width: none;
}

.s-text__figure {
    margin: 0;
}

.s-text__figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
}

.s-text__figure figcaption {
    margin-top: var(--v2-s1);
    font-size: 0.875rem;
    color: var(--s-fg-mute);
}

@media (min-width: 900px) {
    .s-text--media .s-text__grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .s-text--left .s-text__grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .s-text--left .s-text__figure {
        order: -1;
    }
}

/* --------------------------------------------------------------------------
   Certificates, each opening its scan in a dialog
   -------------------------------------------------------------------------- */

.s-certs__grid {
    display: grid;
    gap: var(--v2-s4);
}

.s-certs__card {
    display: grid;
    gap: var(--v2-s3);
    padding: var(--v2-s3);
    background: var(--s-card);
    border: 1px solid var(--s-rule);
}

.s-certs__thumb {
    display: block;
    padding: 0;
    border: 1px solid var(--s-rule);
    background: #fff;
    cursor: zoom-in;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.s-certs__thumb:hover,
.s-certs__thumb:focus-visible {
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
    transform: translateY(-2px);
}

.s-certs__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.s-certs__title {
    margin: 0;
    font-family: var(--v2-head-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--s-fg);
}

.s-certs__subtitle {
    margin: 4px 0 var(--v2-s2);
    font-weight: 600;
    color: var(--v2-accent);
}

.s-certs__copy .s-prose {
    font-size: 1rem;
}

.s-certs__details {
    display: grid;
    gap: 6px;
    margin: var(--v2-s2) 0 0;
    padding-top: var(--v2-s2);
    border-top: 1px solid var(--s-rule);
    font-size: 0.9375rem;
}

.s-certs__details div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.s-certs__details dt {
    min-width: 9rem;
    color: var(--s-fg-mute);
}

.s-certs__details dd {
    margin: 0;
    font-weight: 600;
    color: var(--s-fg);
}

.s-certs__copy {
    display: flex;
    flex-direction: column;
}

.s-certs__actions {
    margin: auto 0 0;
    padding-top: var(--v2-s3);
}

.s-certs__dialog {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.s-certs__dialog::backdrop {
    background: rgba(10, 16, 28, 0.78);
}

.s-certs__frame {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    background: #fff;
    border: 1px solid var(--v2-rule);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.s-certs__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--v2-s2);
    padding: 10px 12px 10px 18px;
    border-bottom: 3px solid var(--v2-accent);
    font-family: var(--v2-head-font);
    color: var(--v2-ink);
}

.s-certs__close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--v2-rule);
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--v2-ink);
    cursor: pointer;
}

.s-certs__close:hover,
.s-certs__close:focus-visible {
    background: var(--v2-accent);
    border-color: var(--v2-accent);
    color: #fff;
}

.s-certs__scan {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.s-certs__scan img {
    display: block;
    width: 100%;
    height: auto;
}

@media (min-width: 640px) {
    .s-certs__card {
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }

    .s-certs__thumb {
        align-self: start;
    }
}

@media (min-width: 1100px) {
    .s-certs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.s-cards__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--v2-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .s-cards__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .s-cards__grid {
        grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
    }
}

.s-card {
    position: relative;
    display: flex;
    flex-direction: column;
    --s-card-pad: clamp(20px, 2.2vw, 32px);
    padding: var(--s-card-pad);
    background: var(--s-card);
    border: 1px solid var(--s-rule);
    transition: border-color 180ms var(--v2-ease), transform 180ms var(--v2-ease);
}

.s-card__img {
    display: block;
}

.s-card--icon .s-card__img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: var(--v2-s3);
}

.s--dark .s-card--icon .s-card__img {
    filter: brightness(0) invert(1);
}

.s-card--photo .s-card__img {
    width: calc(100% + 2 * var(--s-card-pad));
    max-width: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    margin: calc(-1 * var(--s-card-pad)) calc(-1 * var(--s-card-pad)) var(--v2-s3);
}

.s-card__title {
    margin: 0;
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.3;
    color: var(--s-fg);
}

.s-card__title a {
    color: inherit;
    text-decoration: none;
}

/* The whole card is the link's target. */
.s-card--link .s-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.s-card--link:hover {
    border-color: var(--v2-accent);
}

.s-card--link:hover .s-card__title {
    color: var(--v2-accent);
}

.s--dark .s-card--link:hover .s-card__title {
    color: #f0b4b4;
}

.s-card__text {
    margin-top: var(--v2-s2);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.s-cta {
    padding-block: clamp(36px, 4vw, 56px);
}

.s-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--v2-s3);
}

.s-cta__text {
    flex: 1 1 28rem;
    margin: 0;
    padding-left: var(--v2-s3);
    border-left: 3px solid var(--v2-accent);
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem);
    line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Questions
   -------------------------------------------------------------------------- */

.s-faq__list {
    max-width: 62rem;
    border-top: 1px solid var(--s-rule);
}

.s-faq__item {
    border-bottom: 1px solid var(--s-rule);
}

.s-faq__item summary {
    position: relative;
    padding: var(--v2-s3) var(--v2-s5) var(--v2-s3) 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--v2-head-font);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
    color: var(--s-fg);
}

.s-faq__item summary::-webkit-details-marker {
    display: none;
}

.s-faq__item summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 12px;
    height: 12px;
    margin-top: -8px;
    border-right: 2px solid var(--v2-accent);
    border-bottom: 2px solid var(--v2-accent);
    transform: rotate(45deg);
    transition: transform 180ms var(--v2-ease);
}

.s-faq__item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.s-faq__item summary:hover {
    color: var(--v2-accent);
}

.s-faq__answer {
    padding: 0 var(--v2-s5) var(--v2-s3) 0;
}

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */

.s-cases__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--v2-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .s-cases__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .s-cases__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.s-case {
    position: relative;
    background: var(--s-card);
    border: 1px solid var(--s-rule);
    transition: border-color 180ms var(--v2-ease);
}

.s-case:hover {
    border-color: var(--v2-accent);
}

.s-case__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--v2-paper-sunk);
}

.s-case__title {
    margin: 0;
    padding: var(--v2-s3) var(--v2-s3) 0;
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.35;
}

.s-case__title a {
    color: var(--s-fg);
    text-decoration: none;
}

.s-case__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.s-case:hover .s-case__title a {
    color: var(--v2-accent);
}

.s-case__text {
    margin: var(--v2-s1) 0 0;
    padding: 0 var(--v2-s3) var(--v2-s3);
    font-size: 0.9375rem;
    color: var(--s-fg-soft);
}

.s-case__title:last-child {
    padding-bottom: var(--v2-s3);
}


/* --------------------------------------------------------------------------
   Masthead with the photograph beside the words (a company page's
   "Fotoğraf yanda" style). The picture sits behind the right of the panel
   and fades into the white ground; the panel keeps the artwork's proportions
   as a floor, so a longer translation grows the section instead of being cut.
   -------------------------------------------------------------------------- */

.s-split {
    position: relative;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    max-width: 1920px;
    margin: 0 auto;
    container-type: inline-size;
    background: #fff;
}

.s-split__media {
    position: absolute;
    z-index: 0;
    inset: 0 0 0 41.87%;
}

.s-split__media img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.s-split__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0.96) 8%, rgba(255, 255, 255, 0.78) 15%, rgba(255, 255, 255, 0.42) 24%, rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0) 46%);
}

.s-split__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35.5%;
    min-height: 56.28cqw;
    margin: 0 0 0 5.8%;
    padding: 2cqw 0;
}

.s-split__title {
    margin: 0;
    font-family: var(--v2-head-font);
    font-size: 4.38cqw;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--v2-ink);
}

.s-split__rule {
    width: 5.38cqw;
    height: 3px;
    margin: 2.3cqw 0 0;
    border: 0;
    background: var(--v2-accent);
}

.s-split__text {
    margin: 1.9cqw 0 0;
    font-size: 1.16cqw;
    line-height: 1.55;
    color: var(--v2-ink-soft);
}

.s-split__points {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 0.6cqw;
    margin: 3.5cqw 0 0;
    padding: 0;
    list-style: none;
}

.s-split__points li {
    margin: 0;
    text-align: center;
    font-size: 1.2cqw;
    font-weight: 700;
    line-height: 1.32;
    color: var(--v2-ink);
}

.s-split__points img {
    display: block;
    width: 3.3cqw;
    height: 3.3cqw;
    margin: 0 auto 1.2cqw;
    object-fit: contain;
}

.s-split__points + .s-split__text {
    margin-top: 2.8cqw;
}

/* Below a laptop the panel would be a narrow column of tiny type: the picture
   goes above the words and the sizes return to the page's own scale. */
@media (max-width: 900px) {
    .s-split {
        display: block;
    }

    .s-split__media {
        position: relative;
        inset: auto;
        aspect-ratio: 16 / 10;
    }

    .s-split__media::after {
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 58%, #fff 100%);
    }

    .s-split__panel {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0 var(--v2-gutter) clamp(40px, 8vw, 64px);
    }

    .s-split__title {
        font-size: clamp(30px, 7.2vw, 48px);
    }

    .s-split__rule {
        width: 72px;
        margin-top: 20px;
    }

    .s-split__text {
        margin-top: 18px;
        font-size: clamp(15px, 4vw, 17px);
    }

    .s-split__points {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(24px, 6vw, 36px) 16px;
        margin-top: clamp(28px, 7vw, 40px);
    }

    .s-split__points li {
        font-size: clamp(14px, 3.8vw, 16px);
    }

    .s-split__points img {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .s-split__points + .s-split__text {
        margin-top: clamp(28px, 7vw, 40px);
    }
}

/* Text set in two columns: the copy takes the full shell and the paragraphs
   flow from one column into the next. */
.s-text--cols .s-text__copy {
    max-width: none;
}

@media (min-width: 900px) {
    .s-text--cols .s-prose {
        column-count: 2;
        column-gap: clamp(var(--v2-s4), 5vw, var(--v2-s6));
    }

    .s-text--cols .s-prose > * {
        break-inside: avoid;
    }

    .s-text--cols .s-prose > :first-child {
        margin-top: 0;
    }
}

/* Plain cards: no box, the icon beside the title, as a short checklist. A
   card without an icon of its own gets the red tick. */
.s-cards--plain .s-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 0;
    background: none;
    border: 0;
}

.s-cards--plain .s-card:not(.s-card--icon)::before {
    content: "";
    width: 14px;
    height: 8px;
    margin-bottom: 4px;
    border: solid var(--v2-accent);
    border-width: 0 0 3px 3px;
    transform: rotate(-45deg);
}

.s-cards--plain .s-card__title {
    font-size: 1.0625rem;
}

.s-cards--plain .s-card--icon {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--v2-s1);
    align-items: center;
}

.s-cards--plain .s-card--icon .s-card__img {
    width: 18px;
    height: 18px;
    margin: 0;
}

.s-cards--plain .s-card__text {
    grid-column: 1 / -1;
    margin-top: var(--v2-s1);
}

/* --------------------------------------------------------------------------
   Masthead in the old service-page manner ("Geniş fotoğraf, adı üstünde"):
   the photograph as a wide band with the short name across it; the trail,
   the h1 and the introduction on the white ground below.
   -------------------------------------------------------------------------- */

.s-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(220px, 25vw, 480px);
    overflow: hidden;
    background: var(--v2-night);
}

.s-banner__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* The old banner's darkening: deep on the left where the name sits, fading
   out to the right, so the white type reads over any photograph. */
.s-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 28, 43, 0.85) 0%, rgba(17, 28, 43, 0.6) 50%, rgba(17, 28, 43, 0.15) 100%);
}

.s-banner .v2-shell {
    position: relative;
    z-index: 1;
    width: 100%;
}

.s-banner__name {
    margin: 0;
    font-family: var(--v2-head-font);
    font-weight: 700;
    font-size: clamp(2.5rem, 7vw, 7.5rem);
    line-height: 1.05;
    color: #fff;
    text-shadow: 1px 1px 0 #676767;
}

.s-banner__body {
    padding-top: var(--v2-s3);
}

.s-banner__body .s-title {
    font-size: clamp(1.875rem, 1.2rem + 2vw, 3rem);
}

.s-banner__intro {
    margin-top: var(--v2-s3);
    font-size: 1.125rem;
}

/* The trail and the chips on a white ground. */
.s-crumbs--ink {
    margin-bottom: var(--v2-s4);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

.s-crumbs--ink li + li::before {
    color: var(--v2-ink-mute);
}

.s-crumbs--ink a {
    color: var(--v2-ink-mute);
}

.s-crumbs--ink a:hover {
    color: var(--v2-accent);
}

.s-crumbs--ink [aria-current] {
    color: var(--v2-ink);
}

.s-banner__body .s-tags a {
    border-color: var(--v2-rule);
    color: var(--v2-ink);
}

/* A linked card that names its link, as the old key-area cards did. */
.s-card__more {
    margin-top: auto;
    padding-top: var(--v2-s2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--v2-accent);
}

.s--dark .s-card__more {
    color: #f0b4b4;
}

/* A plain card with an icon of its own: the icon a little larger than the
   tick, beside a title that leads its group. */
.s-cards--plain .s-card--icon .s-card__img {
    width: 32px;
    height: 32px;
}

.s-cards--plain .s-card--icon .s-card__title {
    font-size: 1.375rem;
}

/* Five across: narrower cards, so less room inside each. */
@media (min-width: 1024px) {
    .s-cards__grid[style*="--cols: 5"] {
        gap: var(--v2-s2);
    }

    .s-cards__grid[style*="--cols: 5"] .s-card {
        --s-card-pad: 16px;
    }

    .s-cards__grid[style*="--cols: 5"] .s-card__title {
        font-size: 1.0625rem;
    }

    .s-cards__grid[style*="--cols: 5"] .s-card__text {
        font-size: 0.9375rem;
    }
}

/* --------------------------------------------------------------------------
   Split product — copy + Halo Focus (new composition)
   -------------------------------------------------------------------------- */

.s-split-product__grid {
    display: grid;
    gap: clamp(var(--v2-s4), 5vw, var(--v2-s6));
    align-items: center;
}

.s-split-product__copy .s-prose {
    max-width: 38rem;
}

.s-split-product__copy .s-title {
    margin-bottom: 0.75rem;
}

.s-split-product__media {
    justify-self: center;
    width: min(100%, 26rem);
}

/* Product band — slow continuous family strip --------------------------- */

.s-band__viewport {
    margin-top: clamp(0.5rem, 1.5vw, 1rem);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.s-band__track {
    display: flex;
    width: max-content;
    gap: 1rem;
    padding: 0.5rem 1rem 0.25rem;
    animation: s-band-move 55s linear infinite;
}

.s-band__viewport:hover .s-band__track {
    animation-play-state: paused;
}

@keyframes s-band-move {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.s-band__card {
    flex: 0 0 clamp(9.5rem, 16vw, 12rem);
}

.s-band__hit {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.s-band__shot {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 0.85rem;
    border-radius: 1rem;
    border: 1px solid color-mix(in srgb, var(--s-rule) 80%, #8a929c);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(163, 43, 44, 0.06), transparent 55%),
        linear-gradient(165deg, #fff 0%, #eef1f4 100%);
    box-shadow: 0 10px 22px rgba(20, 28, 40, 0.06);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

a.s-band__hit:hover .s-band__shot {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--v2-accent) 40%, var(--s-rule));
    box-shadow: 0 16px 28px rgba(20, 28, 40, 0.1);
}

.s-band__shot img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 12px rgba(20, 28, 40, 0.12));
    pointer-events: none;
}

.s-band__name {
    display: block;
    min-height: 2.5em;
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--s-fg-soft);
}

.s-band__cta {
    margin: 1.25rem 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .s-band__track {
        animation: none;
        flex-wrap: wrap;
        width: auto;
        max-width: 72rem;
        margin-inline: auto;
        justify-content: center;
    }

    .s-band__card--dup {
        display: none;
    }

    .s-band__viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

@media (min-width: 960px) {
    .s-split-product__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: clamp(2rem, 5vw, 4rem);
    }

    .s-split-product__media {
        width: min(100%, 28rem);
        justify-self: end;
    }
}

/* Halo Focus — hero product + orbiting family ------------------------------- */

.s-halo {
    --halo-ms: 700ms;
    --halo-ease: cubic-bezier(0.2, 0.9, 0.2, 1);
    width: 100%;
}

.s-halo__well {
    position: relative;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border-radius: 1.25rem;
    isolation: isolate;
    background:
        radial-gradient(120% 80% at 50% 0%, #2a3340 0%, #12171e 52%, #0b0e12 100%);
    box-shadow:
        0 24px 48px rgba(12, 16, 22, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.s-halo__wash {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 20%, rgba(163, 43, 44, 0.22), transparent 42%),
        radial-gradient(circle at 78% 70%, rgba(90, 140, 180, 0.12), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.s-halo__beam {
    position: absolute;
    inset: -40% -20%;
    background: linear-gradient(
        115deg,
        transparent 40%,
        rgba(255, 255, 255, 0.05) 48%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.05) 52%,
        transparent 60%
    );
    animation: s-halo-beam 7.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes s-halo-beam {
    0%, 100% { transform: translateX(-18%) rotate(8deg); opacity: 0.35; }
    50% { transform: translateX(18%) rotate(8deg); opacity: 0.85; }
}

.s-halo__dust {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 255, 255, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 68% 18%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1.5px 1.5px at 82% 62%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 30% 74%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 54% 48%, rgba(255, 255, 255, 0.22), transparent);
    animation: s-halo-dust 12s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

@keyframes s-halo-dust {
    from { transform: translateY(0); }
    to { transform: translateY(-18px); }
}

.s-halo__hero {
    position: absolute;
    inset: 14% 16% 22%;
    z-index: 3;
    display: grid;
    place-items: center;
}

.s-halo__figure {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.92);
    filter: blur(8px);
    transition:
        opacity var(--halo-ms) var(--halo-ease),
        transform var(--halo-ms) var(--halo-ease),
        filter var(--halo-ms) var(--halo-ease),
        visibility 0s linear var(--halo-ms);
    pointer-events: none;
}

.s-halo__figure.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    filter: blur(0);
    transition-delay: 0s;
    pointer-events: auto;
    z-index: 2;
}

.s-halo__link {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.s-halo__link img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    user-select: none;
    transition: transform 0.55s var(--halo-ease);
}

a.s-halo__link:hover img {
    transform: translateY(-6px) scale(1.04);
}

/* Event photographs: the picture is the whole well, not a cut-out on a stage. */
.s-halo--photo .s-halo__well {
    aspect-ratio: 4 / 5;
}

.s-halo--photo .s-halo__hero {
    inset: 0;
}

.s-halo--photo .s-halo__link img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    filter: none;
}

.s-halo--photo .s-halo__floor,
.s-halo--photo .s-halo__orbit,
.s-halo--photo .s-halo__dust {
    display: none;
}

.s-halo__floor {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -4%;
    height: 28%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
    filter: blur(2px);
    z-index: 0;
    pointer-events: none;
}

.s-halo__orbit {
    position: absolute;
    inset: 6%;
    z-index: 4;
    border-radius: 50%;
    transform: rotate(var(--spin, 0deg));
    pointer-events: none;
}

.s-halo__sat {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(2.6rem, 12%, 3.4rem);
    height: clamp(2.6rem, 12%, 3.4rem);
    margin: 0;
    padding: 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    pointer-events: auto;
    transform:
        translate(-50%, -50%)
        rotate(var(--a, 0deg))
        translateY(calc(-1 * min(42%, 9.2rem)))
        rotate(calc(-1 * var(--a, 0deg)))
        rotate(calc(-1 * var(--spin, 0deg)));
    transition: opacity 0.35s ease, border-color 0.25s ease, background 0.25s ease, transform 0.35s ease;
}

.s-halo__sat.is-hidden-sat {
    opacity: 0;
    pointer-events: none;
    transform:
        translate(-50%, -50%)
        rotate(var(--a, 0deg))
        translateY(0)
        scale(0.4)
        rotate(calc(-1 * var(--a, 0deg)))
        rotate(calc(-1 * var(--spin, 0deg)));
}

.s-halo__sat:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.16);
}

.s-halo__sat img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.s-halo__meta {
    margin-top: 1rem;
}

.s-halo__meta-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.s-halo__name {
    margin: 0;
    font-family: var(--v2-head-font);
    font-weight: 650;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    color: var(--s-fg);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.s-halo__name.is-swap {
    opacity: 0;
    transform: translateY(4px);
}

.s-halo__count {
    flex: none;
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--s-fg-mute);
    font-variant-numeric: tabular-nums;
}

.s-halo__count i {
    font-style: normal;
    margin: 0 0.15em;
    opacity: 0.5;
}

.s-halo__rail {
    margin-top: 0.75rem;
    height: 2px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--s-rule) 80%, transparent);
    overflow: hidden;
}

.s-halo__rail-fill {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--v2-accent), color-mix(in srgb, var(--v2-accent) 40%, #fff));
}

.s-halo__rail-fill.is-run {
    animation: s-halo-rail var(--halo-interval, 5s) linear forwards;
}

@keyframes s-halo-rail {
    from { width: 0; }
    to { width: 100%; }
}

.s-halo__nav {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.s-halo__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid var(--s-rule);
    border-radius: 999px;
    background: #fff;
    color: var(--s-fg);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.s-halo__nav-btn:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 50%, var(--s-rule));
    color: var(--v2-accent);
}

.s-halo__cta {
    margin: 1rem 0 0;
}

.s-halo.is-paused .s-halo__beam,
.s-halo.is-paused .s-halo__dust {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .s-halo__beam,
    .s-halo__dust,
    .s-halo__rail-fill.is-run {
        animation: none;
    }

    .s-halo__figure {
        transition: opacity 0.2s ease;
        transform: none;
        filter: none;
    }

    .s-halo__orbit {
        transform: none;
    }
}

/* All-products mosaic ---------------------------------------------------- */

.s-mosaic {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--s-rule) 80%, #8a929c);
    border-radius: 2px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(255, 255, 255, 0.95), transparent 70%),
        linear-gradient(160deg, #f5f7f9 0%, #e4e9ee 100%);
}

.s-mosaic__glow {
    position: absolute;
    inset: 18% 12% 22%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(200, 55, 60, 0.1), transparent 70%);
    animation: s-mosaic-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

.s-mosaic__ring {
    position: absolute;
    inset: 8%;
    border: 1px dashed color-mix(in srgb, var(--s-rule) 70%, transparent);
    border-radius: 50%;
    opacity: 0.55;
    animation: s-mosaic-spin 48s linear infinite;
    pointer-events: none;
}

@keyframes s-mosaic-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
}

@keyframes s-mosaic-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.s-mosaic__grid {
    position: absolute;
    inset: 0.55rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    height: calc(100% - 1.1rem);
    align-content: stretch;
}

.s-mosaic[style*="--n: 1"] .s-mosaic__grid { grid-template-columns: 1fr; }
.s-mosaic[style*="--n: 2"] .s-mosaic__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s-mosaic:has(.s-mosaic__cell:nth-child(5)) .s-mosaic__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.s-mosaic:has(.s-mosaic__cell:nth-child(7)) .s-mosaic__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
}

.s-mosaic__cell {
    min-height: 0;
    animation: s-mosaic-float 4.8s ease-in-out infinite;
    animation-delay: var(--d, 0s);
}

@keyframes s-mosaic-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.s-mosaic__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0.35rem;
    border: 1px solid color-mix(in srgb, var(--s-rule) 75%, #fff);
    border-radius: 2px;
    background: linear-gradient(165deg, #fff 0%, #f1f3f5 100%);
    box-shadow: 0 6px 14px rgba(20, 28, 40, 0.08);
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

a.s-mosaic__hit:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 45%, var(--s-rule));
    box-shadow: 0 10px 20px rgba(20, 28, 40, 0.12);
    transform: translateY(-2px);
    z-index: 2;
}

.s-mosaic__hit img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(20, 28, 40, 0.1));
    pointer-events: none;
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    .s-mosaic__glow,
    .s-mosaic__ring,
    .s-mosaic__cell {
        animation: none;
    }
}

/* Compare picker — v1…v4 ------------------------------------------------- */

.s-gallery-pick__bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    margin: 0 0 0.9rem;
    padding: 3px;
    border: 1px solid var(--s-rule);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(20, 28, 40, 0.04);
}

.s-gallery-pick__label {
    padding: 0 0.45rem 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--s-fg-mute);
}

.s-gallery-pick__opt {
    min-width: 2.2rem;
    padding: 0.35rem 0.55rem;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: var(--s-fg-soft);
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.s-gallery-pick__opt:hover {
    color: var(--s-fg);
}

.s-gallery-pick__opt.is-active {
    background: var(--s-fg);
    color: #fff;
}

.s-gallery-pick__panel[hidden] {
    display: none !important;
}

/* Single-page leaf flipbook (stays in one frame — no open cover) --------- */

.s-flip {
    --flip-ms: 700ms;
    --flip-ease: cubic-bezier(0.4, 0.05, 0.2, 1);
    width: 100%;
}

.s-flip__book {
    position: relative;
}

/* Decorative binding edge — inside the card, not a second page. */
.s-flip__spine {
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    z-index: 5;
    width: 10px;
    border-radius: 3px 0 0 3px;
    background:
        linear-gradient(90deg, #1f2a36 0%, #3a4654 55%, #c9ced6 100%);
    box-shadow: 1px 0 6px rgba(20, 28, 40, 0.16);
    pointer-events: none;
}

.s-flip__stage {
    position: relative;
    aspect-ratio: 5 / 6;
    overflow: hidden; /* leaf never swings into the text column */
    border-radius: 4px 10px 10px 4px;
    perspective: 1400px;
    background: #eef1f4;
    box-shadow:
        8px 14px 28px rgba(20, 28, 40, 0.12),
        0 0 0 1px rgba(20, 28, 40, 0.04);
}

.s-flip__page {
    position: absolute;
    inset: 0;
    z-index: var(--z, 1);
    transform-origin: left center;
    transform: rotateY(0deg);
    transition:
        transform var(--flip-ms) var(--flip-ease),
        opacity calc(var(--flip-ms) * 0.55) ease;
    pointer-events: none;
    backface-visibility: hidden;
}

.s-flip__page.is-current {
    pointer-events: auto;
    z-index: 3;
}

/* Past leaves fold away inside the frame, then vanish — no left-hand page. */
.s-flip__page.is-turned {
    transform: rotateY(-95deg);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.s-flip__page.is-behind {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.s-flip__sheet {
    position: relative;
    height: 100%;
    border-radius: inherit;
    border: 1px solid color-mix(in srgb, var(--s-rule) 80%, #8a929c);
    border-left-width: 0;
    background:
        linear-gradient(90deg, rgba(20, 28, 40, 0.05), transparent 16px),
        linear-gradient(165deg, #fbfbfc 0%, #f1f3f5 100%);
}

.s-flip__rule {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(
        180deg,
        transparent 0 10px,
        rgba(180, 40, 45, 0.35) 10px 11px,
        transparent 11px 22px
    );
    opacity: 0.5;
}

.s-flip__hit {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.15rem 1.15rem 1rem 1.55rem;
    text-decoration: none;
    color: inherit;
}

.s-flip__shot {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0.5rem;
}

.s-flip__shot img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(20, 28, 40, 0.14));
    pointer-events: none;
    user-select: none;
    transition: transform 0.45s ease;
}

a.s-flip__hit:hover .s-flip__shot img {
    transform: scale(1.03);
}

.s-flip__caption {
    display: block;
    margin-top: 0.65rem;
    font-family: var(--v2-head-font);
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-align: center;
    color: var(--s-fg-soft);
}

.s-flip__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

.s-flip__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--s-rule);
    border-radius: 999px;
    background: #fff;
    color: var(--s-fg);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.s-flip__btn:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 50%, var(--s-rule));
    color: var(--v2-accent);
}

.s-flip__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 12rem;
}

.s-flip__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--s-fg-mute) 55%, transparent);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.s-flip__dot.is-active {
    background: var(--v2-accent);
    transform: scale(1.25);
}

.s-flip__cta {
    margin: 1rem 0 0;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .s-flip__page {
        transition: none;
    }

    .s-flip__page.is-turned {
        transform: none;
        opacity: 0;
        visibility: hidden;
    }

    .s-flip__page:not(.is-current) {
        opacity: 0;
        visibility: hidden;
    }
}

/* v2 — studio product stage ---------------------------------------------- */

.s-stage {
    --stage-ms: 650ms;
    --stage-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.s-stage__frame {
    position: relative;
    aspect-ratio: 1 / 1.05;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--s-rule) 85%, #9aa3ad);
    border-radius: 2px;
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 255, 255, 0.95), transparent 70%),
        linear-gradient(165deg, #f7f8fa 0%, #e9edf1 55%, #e2e7ec 100%);
}

.s-stage__plate {
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 14%;
    height: 18%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(20, 28, 40, 0.14), transparent 68%);
    filter: blur(2px);
    pointer-events: none;
}

.s-stage__viewport {
    position: absolute;
    inset: 0;
}

.s-stage__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.985);
    transition:
        opacity var(--stage-ms) var(--stage-ease),
        transform var(--stage-ms) var(--stage-ease),
        visibility 0s linear var(--stage-ms);
    pointer-events: none;
}

.s-stage__slide.is-current {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
    pointer-events: auto;
    z-index: 2;
}

.s-stage__slide.is-leaving {
    opacity: 0;
    visibility: visible;
    transform: translateY(-6px) scale(1.01);
    transition-delay: 0s;
    z-index: 1;
}

.s-stage__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: clamp(1.25rem, 4vw, 2rem);
    text-decoration: none;
    color: inherit;
}

.s-stage__hit img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(20, 28, 40, 0.16));
    pointer-events: none;
    user-select: none;
    transition: transform 0.5s var(--stage-ease);
}

a.s-stage__hit:hover img {
    transform: translateY(-3px) scale(1.02);
}

.s-stage__meta {
    margin-top: 1rem;
}

.s-stage__caption {
    min-height: 1.35em;
    margin: 0;
    font-family: var(--v2-head-font);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--s-fg);
    transition: opacity 0.25s ease;
}

.s-stage__caption.is-swap {
    opacity: 0;
}

.s-stage__progress {
    height: 1px;
    margin-top: 0.85rem;
    background: color-mix(in srgb, var(--s-rule) 80%, transparent);
    overflow: hidden;
}

.s-stage__progress-bar {
    display: block;
    height: 100%;
    width: var(--p, 25%);
    background: var(--v2-accent);
    transition: width var(--stage-ms) var(--stage-ease);
}

.s-stage__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.s-stage__index {
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--s-fg-mute);
    font-variant-numeric: tabular-nums;
}

.s-stage__index span {
    margin: 0 0.2em;
    opacity: 0.55;
}

.s-stage__btns {
    display: flex;
    gap: 0.4rem;
}

.s-stage__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: 1px solid var(--s-rule);
    border-radius: 2px;
    background: #fff;
    color: var(--s-fg);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.s-stage__btn:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 45%, var(--s-rule));
    color: var(--v2-accent);
}

.s-stage__cta {
    margin: 1rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .s-stage__slide {
        transition: none;
        transform: none;
    }

    .s-stage__slide:not(.is-current) {
        opacity: 0;
        visibility: hidden;
    }
}

/* v3 — coverflow deck ---------------------------------------------------- */

.s-deck {
    --deck-ms: 700ms;
    --deck-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.s-deck__chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.s-deck__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--s-rule);
    border-radius: 2px;
    background: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--v2-accent);
}

.s-deck__index {
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--s-fg-mute);
    font-variant-numeric: tabular-nums;
}

.s-deck__scene {
    position: relative;
    height: clamp(17rem, 42vw, 20.5rem);
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--s-rule) 80%, #8a929c);
    border-radius: 2px;
    background:
        linear-gradient(180deg, #f4f6f8 0%, #e6eaef 100%);
    perspective: 1200px;
}

.s-deck__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 28, 40, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 28, 40, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 75%);
    pointer-events: none;
}

.s-deck__glow {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 8%;
    height: 40%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(200, 55, 60, 0.1), transparent 70%);
    animation: s-deck-pulse 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes s-deck-pulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

.s-deck__track {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.s-deck__card {
    position: absolute;
    inset: 12% 18% 18%;
    transition:
        transform var(--deck-ms) var(--deck-ease),
        opacity var(--deck-ms) var(--deck-ease),
        filter var(--deck-ms) ease;
    transform-origin: center center;
    pointer-events: none;
    opacity: 0;
    filter: blur(1px);
}

.s-deck__card.is-current {
    opacity: 1;
    filter: none;
    transform: translate3d(0, 0, 40px) scale(1);
    z-index: 3;
    pointer-events: auto;
}

.s-deck__card.is-prev {
    opacity: 0.55;
    filter: blur(0.4px);
    transform: translate3d(-42%, 4%, 0) rotateY(28deg) scale(0.82);
    z-index: 2;
}

.s-deck__card.is-next {
    opacity: 0.55;
    filter: blur(0.4px);
    transform: translate3d(42%, 4%, 0) rotateY(-28deg) scale(0.82);
    z-index: 2;
}

.s-deck__card.is-far {
    opacity: 0;
    transform: translate3d(0, 12%, -80px) scale(0.7);
    z-index: 1;
}

.s-deck__face {
    height: 100%;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: linear-gradient(165deg, #fff 0%, #f0f3f6 100%);
    box-shadow:
        0 18px 36px rgba(20, 28, 40, 0.14),
        0 0 0 1px rgba(20, 28, 40, 0.04);
    overflow: hidden;
}

.s-deck__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
}

.s-deck__hit img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 16px rgba(20, 28, 40, 0.14));
    pointer-events: none;
    user-select: none;
}

.s-deck__meta {
    margin-top: 0.9rem;
}

.s-deck__caption {
    margin: 0;
    min-height: 1.35em;
    font-family: var(--v2-head-font);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.015em;
    color: var(--s-fg);
}

.s-deck__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.s-deck__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--s-rule);
    border-radius: 999px;
    background: #fff;
    color: var(--s-fg);
    font-size: 1.2rem;
    cursor: pointer;
}

.s-deck__btn:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 45%, var(--s-rule));
    color: var(--v2-accent);
}

.s-deck__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 12rem;
}

.s-deck__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--s-fg-mute) 55%, transparent);
    cursor: pointer;
}

.s-deck__dot.is-active {
    background: var(--v2-accent);
    transform: scale(1.25);
}

.s-deck__timer {
    margin-top: 0.75rem;
    height: 2px;
    background: color-mix(in srgb, var(--s-rule) 75%, transparent);
    overflow: hidden;
    border-radius: 1px;
}

.s-deck__timer span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--v2-accent);
}

.s-deck__timer.is-running span {
    animation: s-deck-timer var(--deck-interval, 5s) linear forwards;
}

@keyframes s-deck-timer {
    from { width: 0; }
    to { width: 100%; }
}

.s-deck__cta {
    margin: 1rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .s-deck__glow,
    .s-deck__timer.is-running span {
        animation: none;
    }

    .s-deck__card {
        transition: opacity 0.2s ease;
        filter: none;
    }

    .s-deck__card.is-prev,
    .s-deck__card.is-next,
    .s-deck__card.is-far {
        opacity: 0;
        transform: none;
    }
}

/* v4 — filmstrip / thumbnail rail ---------------------------------------- */

.s-reel {
    --reel-ms: 600ms;
    --reel-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.s-reel__hero {
    position: relative;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--s-rule) 80%, #8a929c);
    border-radius: 2px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, #ffffff 0%, transparent 65%),
        linear-gradient(160deg, #f3f5f7 0%, #dde3e9 100%);
}

.s-reel__bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: color-mix(in srgb, var(--v2-accent) 70%, #8a929c);
    border-style: solid;
    z-index: 4;
    pointer-events: none;
    opacity: 0.85;
}

.s-reel__bracket--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.s-reel__bracket--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.s-reel__bracket--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.s-reel__bracket--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.s-reel__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 28%;
    top: -30%;
    background: linear-gradient(180deg, transparent, rgba(200, 55, 60, 0.07), transparent);
    animation: s-reel-scan 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes s-reel-scan {
    0% { top: -30%; opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.s-reel__viewport {
    position: absolute;
    inset: 0;
}

.s-reel__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition:
        opacity var(--reel-ms) var(--reel-ease),
        transform var(--reel-ms) var(--reel-ease),
        visibility 0s linear var(--reel-ms);
    pointer-events: none;
}

.s-reel__slide.is-current {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition-delay: 0s;
    pointer-events: auto;
    z-index: 2;
}

.s-reel__hit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 1.6rem 1.4rem 2.2rem;
    text-decoration: none;
}

.s-reel__hit img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 16px 24px rgba(20, 28, 40, 0.16));
    pointer-events: none;
    user-select: none;
    transition: transform 0.45s var(--reel-ease);
}

a.s-reel__hit:hover img {
    transform: translateY(-4px) scale(1.03);
}

.s-reel__hud {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.s-reel__index {
    font-family: var(--v2-head-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--s-fg);
    font-variant-numeric: tabular-nums;
}

.s-reel__index em {
    font-style: normal;
    font-weight: 500;
    color: var(--s-fg-mute);
}

.s-reel__live {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.45rem;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--s-rule);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--s-fg-soft);
}

.s-reel__live i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v2-accent);
    animation: s-reel-blink 1.4s ease-in-out infinite;
}

@keyframes s-reel-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.s-reel.is-paused .s-reel__live i {
    animation: none;
    opacity: 0.35;
}

.s-reel__meta {
    margin-top: 0.85rem;
}

.s-reel__caption {
    margin: 0 0 0.75rem;
    min-height: 1.35em;
    font-family: var(--v2-head-font);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: -0.015em;
    color: var(--s-fg);
}

.s-reel__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3.4rem, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.s-reel__thumb {
    aspect-ratio: 1;
    padding: 0.3rem;
    border: 1px solid var(--s-rule);
    border-radius: 2px;
    background: #f3f5f7;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.s-reel__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.s-reel__thumb:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 40%, var(--s-rule));
}

.s-reel__thumb.is-active {
    border-color: var(--v2-accent);
    box-shadow: 0 0 0 1px var(--v2-accent);
    background: #fff;
}

.s-reel__controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
}

.s-reel__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border: 1px solid var(--s-rule);
    border-radius: 2px;
    background: #fff;
    color: var(--s-fg);
    cursor: pointer;
}

.s-reel__btn:hover {
    border-color: color-mix(in srgb, var(--v2-accent) 45%, var(--s-rule));
    color: var(--v2-accent);
}

.s-reel__meter {
    height: 2px;
    background: color-mix(in srgb, var(--s-rule) 75%, transparent);
    overflow: hidden;
}

.s-reel__meter span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--v2-accent);
}

.s-reel__meter.is-running span {
    animation: s-deck-timer var(--reel-interval, 5s) linear forwards;
}

.s-reel__cta {
    margin: 1rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .s-reel__scan,
    .s-reel__live i,
    .s-reel__meter.is-running span {
        animation: none;
    }

    .s-reel__slide {
        transition: none;
        transform: none;
    }
}

/* Device board — the whole product family around one chip ------------------- */

/* The star network bleeds past the board; clip keeps the chip's sticky working. */
.s-intro-board {
    overflow-x: clip;
}

.s-intro-board__grid {
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: start;
}

.s-intro-board__copy .s-prose {
    max-width: 38rem;
}

.s-intro-board__copy .s-title {
    margin: clamp(2rem, 4vw, 3rem) 0 0.75rem;
}

.s-intro-board__family-lead {
    max-width: 38rem;
    margin: 0 0 1rem;
    color: var(--v2-ink-soft);
}

.s-intro-board__family-list {
    max-width: 38rem;
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s-intro-board__family-list li {
    margin: 0;
    padding-left: 0.875rem;
    border-left: 3px solid var(--v2-accent);
}

.s-intro-board__family-list li::before {
    content: none;
}

.s-intro-board__family-list h3 {
    margin: 0 0 0.15rem;
    font-family: var(--v2-head-font);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--v2-ink);
}

.s-intro-board__family-list .s-prose {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--v2-ink-soft);
}

@media (min-width: 960px) {
    .s-intro-board__grid {
        grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    }

    .s-intro-board__media {
        position: sticky;
        top: 8.5rem;
    }
}

.s-board {
    --board-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
    position: relative;
    container-type: inline-size;
    width: min(100%, calc((100vh - 9.5rem) * 1.111));
    min-width: min(100%, 20rem);
    margin-inline: auto;
}

.s-board__stage {
    position: relative;
    aspect-ratio: 10 / 9;
}

/* The star network reaches past the board and fades out into the page. */
.s-board__stars {
    position: absolute;
    inset: -7%;
    width: 114%;
    height: 114%;
    -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}

.s-board__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.s-board__tag {
    font-family: var(--v2-head-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    fill: var(--v2-ink-mute);
    transition: fill 300ms ease;
}

.s-board__chip {
    fill: url(#s-board-chip);
    filter: drop-shadow(0 14px 22px rgba(13, 22, 34, 0.32));
}

.s-board__chip-edge {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
}

.s-board__pulse {
    fill: none;
    stroke: var(--v2-accent);
    stroke-width: 3;
    opacity: 0;
    transform-origin: 500px 455px;
}

.s-board__pulse.is-firing {
    animation: s-board-pulse 1.1s ease-out;
}

/* The device currently lit. */
.s-board__link-group.is-active .s-board__tag {
    fill: var(--v2-accent);
}

.s-board__hub {
    position: absolute;
    top: 27.9%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.s-board__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--v2-head-font);
    font-size: max(0.5rem, 1.35cqw);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: #b9c5d3;
}

.s-board__led {
    width: 0.62em;
    height: 0.62em;
    border-radius: 50%;
    background: #ff5a4d;
    box-shadow: 0 0 0.7em #ff5a4d;
}

.s-board.is-live .s-board__led {
    animation: s-board-led 1.6s steps(1) infinite;
}

/* The chip's readout: one device's feature list at a time. */
.s-board__readout {
    position: absolute;
    top: 30.4%;
    left: 27.6%;
    z-index: 1;
    display: grid;
    width: 44.8%;
    height: 43.8%;
    font-size: max(0.625rem, 1.58cqw);
    line-height: 1.24;
    color: #d5deea;
}

.s-board__specs {
    grid-area: 1 / 1;
    align-self: start;
    min-width: 0;
    overflow-wrap: anywhere;
    columns: 2;
    column-gap: 1.3em;
    column-fill: balance;
    visibility: hidden;
    opacity: 0;
    transform: translateY(0.35rem);
    transition: opacity 110ms ease, transform 110ms ease, visibility 0s linear 110ms;
}

/* The old list is gone before the new one arrives, so they never overprint. */
.s-board__specs.is-active {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 260ms ease 120ms, transform 260ms ease 120ms, visibility 0s linear 110ms;
}

.s-board__specs-title {
    display: none;
}

.s-board__specs h3 {
    margin: 0 0 0.25em;
    font-family: var(--v2-head-font);
    font-size: 0.86em;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.04em;
    color: #fff;
    break-after: avoid;
}

.s-board__specs ul {
    margin: 0 0 0.5em;
    padding: 0;
    list-style: none;
}

.s-board__specs ul ul {
    margin: 0.12em 0 0;
    padding-left: 0.8em;
    color: #aebccc;
}

.s-board__specs li {
    position: relative;
    margin: 0 0 0.14em;
    padding-left: 0.85em;
    break-inside: avoid;
}

.s-board__specs li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 0.32em;
    height: 0.32em;
    border-radius: 50%;
    background: #ff6f63;
}

.s-board__specs ul ul li::before {
    background: #7f90a5;
}

.s-board__devices {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.s-board__device {
    position: absolute;
    z-index: 2;
    margin: 0;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.s-board__device::before {
    content: none;
}

/* With no plate behind it, the live device is marked by a soft glow. */
.s-board__device::after {
    content: "";
    position: absolute;
    inset: -8% -6%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(163, 43, 44, 0.3), transparent);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.s-board__device.is-active {
    z-index: 3;
}

.s-board__device.is-active::after {
    opacity: 1;
}

.s-board__link {
    display: block;
    border-radius: 0.5rem;
    transition: transform 520ms var(--board-spring);
}

.s-board__link:focus-visible {
    outline: 2px solid var(--v2-accent);
    outline-offset: 4px;
}

.s-board__device.is-active .s-board__link {
    transform: translateY(-3%) scale(1.12);
}

.s-board__link img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 7px 8px rgba(19, 26, 36, 0.3));
}

.s-board.is-paused .s-board__led {
    animation-play-state: paused;
}

.s-board:not(.is-live) .s-board__link {
    transform: none;
}

/* Too narrow for the list to fit on the chip: it moves into a panel below. */
@container (max-width: 639px) {
    .s-board__hub {
        top: 50.5%;
    }

    .s-board__brand {
        font-size: max(0.5625rem, 2cqw);
    }

    .s-board__readout {
        position: static;
        width: auto;
        height: auto;
        margin-top: 1.25rem;
        padding: 1.25rem;
        border-radius: 0.75rem;
        background: linear-gradient(135deg, #22324a, #0d1622);
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .s-board__specs {
        columns: 1;
    }

    .s-board__specs-title {
        display: block;
        margin: 0 0 0.75rem;
        font-family: var(--v2-head-font);
        font-size: 0.875rem;
        font-weight: 700;
        line-height: 1.3;
        color: #fff;
    }

    .s-board__specs li::before {
        top: 0.55em;
    }
}

@container (max-width: 480px) {
    .s-board__tag {
        display: none;
    }
}

@keyframes s-board-pulse {
    0%, 40% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.75; }
    100% { opacity: 0; transform: scale(1.08); }
}

@keyframes s-board-led {
    0%, 62% { opacity: 1; }
    63%, 100% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .s-board.is-live .s-board__led,
    .s-board__pulse.is-firing {
        animation: none;
    }

    .s-board__link,
    .s-board__specs {
        transition: none;
    }
}

/* Whilogger demos — sample-data animations, one tab each -------------------- */

.s-demos__tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(14rem, 46%), 1fr));
    gap: 0.75rem;
    margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.s-demos__tab {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--v2-rule);
    border-top: 3px solid transparent;
    border-radius: 0.75rem;
    background: var(--v2-paper);
    color: var(--v2-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.s-demos__tab:hover {
    border-color: var(--v2-blue);
    border-top-color: var(--v2-blue);
}

.s-demos__tab:focus-visible {
    outline: 2px solid var(--v2-accent);
    outline-offset: 2px;
}

.s-demos__tab.is-active {
    border-color: var(--v2-night);
    border-top-color: var(--v2-accent);
    background: var(--v2-night);
    color: #fff;
    box-shadow: 0 14px 28px rgba(17, 28, 43, 0.2);
}

.s-demos__tab-measures {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v2-accent);
}

.s-demos__tab.is-active .s-demos__tab-measures {
    color: #ff9c93;
}

.s-demos__tab-title {
    font-family: var(--v2-head-font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.s-demos__tab-models {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--v2-ink-mute);
}

.s-demos__tab.is-active .s-demos__tab-models {
    color: #c9d3df;
}

.s-demos__panel {
    margin-top: clamp(1.25rem, 2.5vw, 2rem);
    overflow-anchor: none;
}

.s-demos__panel[hidden] {
    display: none;
}

.s-demos__for {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.25rem;
}

.s-demos__for-label {
    margin: 0;
    font-family: var(--v2-head-font);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--v2-ink-soft);
}

.s-demos__devices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.s-demos__devices li {
    margin: 0;
}

.s-demos__devices li::before {
    content: none;
}

.s-demos__device {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem 0.375rem 0.5rem;
    border: 1px solid var(--v2-rule);
    border-radius: 0.625rem;
    background: var(--v2-paper);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--v2-ink);
    text-decoration: none;
    transition: border-color 200ms ease, transform 200ms ease;
}

.s-demos__device:hover {
    border-color: var(--v2-accent);
    transform: translateY(-1px);
}

.s-demos__device img {
    display: block;
    width: 3rem;
    height: auto;
}

/* The demos come from a Tailwind site, which sizes boxes this way everywhere. */
.s-demos__panel [id$="-root"],
.s-demos__panel [id$="-root"] * {
    box-sizing: border-box;
}

.s-demos__panel [id$="-root"] {
    margin-top: 0;
}

.s-demos__panel [id$="-root"] li::before {
    content: none;
}

/* At full width the altitude scene alone would outgrow the screen. */
@media (min-width: 960px) {
    #wlac-root .wlac-panel {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    }

    #wlac-root .wlac-head {
        grid-column: 1 / -1;
    }

    #wlac-root .wlac-scene {
        border-bottom: 0;
    }

    #wlac-root .wlac-controls {
        align-self: center;
    }
}
