/* Krymtech visual system: rounded editorial panels, clear hierarchy and green accents. */
:root {
    --gutter: clamp(20px, 4.2vw, 72px);
    scroll-padding-top: 112px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
}

main {
    width: 100%;
    margin-left: 0;
    padding-top: 102px;
}

.skip-link {
    left: 24px;
    z-index: 1200;
    border-radius: 999px;
}

/* Shared capsule navigation. */
.site-header {
    position: fixed;
    inset: 16px auto auto 50%;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: clamp(14px, 2.2vw, 34px);
    width: calc(100vw - 40px);
    max-width: 1320px;
    height: 70px;
    margin: 0;
    padding: 7px 10px 7px 20px;
    transform: translateX(-50%);
    border: 1px solid rgb(23 34 27 / 9%);
    border-radius: 999px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 10px 34px rgb(20 44 28 / 8%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header .site-mark {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.site-header .site-mark img {
    width: 36px;
    height: auto;
}

.site-header .site-nav,
body.is-scrolled .site-header .site-nav,
body:not(.is-scrolled):not(.menu-open) .site-header .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2.8vw, 42px);
    width: auto;
    margin: 0;
    padding: 0;
    transform: none;
    color: var(--ink);
    font-size: 14px;
    white-space: nowrap;
}

.site-header .site-nav a {
    position: relative;
    padding: 8px 0;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transform-origin: center;
    transition:
        transform 240ms cubic-bezier(0.22, 0.61, 0.36, 1),
        color 240ms ease,
        text-shadow 240ms ease;
}

.site-header .site-nav a:focus-visible {
    color: var(--forest);
    transform: translateY(-2px) scale(1.045);
    text-shadow: 0 3px 12px rgb(20 61 43 / 12%);
}

@media (hover: hover) and (pointer: fine) {
    .site-header .site-nav a:hover {
        color: var(--forest);
        transform: translateY(-2px) scale(1.045);
        text-shadow: 0 3px 12px rgb(20 61 43 / 12%);
    }
}

.site-header .site-nav a::after {
    bottom: 2px;
    height: 1px;
    background: var(--forest);
}

.site-header .header-contact,
body.is-scrolled .site-header .header-contact,
body:not(.is-scrolled) .site-header .header-contact,
body:has(.immersive-hero) .site-header .header-contact,
body:has(.home-intro) .site-header .header-contact {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 19px;
    transform: none;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.site-header .header-contact:hover {
    background: var(--green-hover);
    color: var(--ink);
}

.site-header .menu-toggle {
    display: none;
    position: static;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 13px;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
}

.site-header .menu-toggle span {
    background: var(--ink);
}

.site-menu {
    position: fixed;
    inset: 16px;
    z-index: 990;
    overflow-y: auto;
    padding: clamp(90px, 11vh, 132px) clamp(24px, 6vw, 88px) 42px;
    border: 1px solid rgb(23 34 27 / 8%);
    border-radius: 34px;
    background: rgb(241 243 239 / 98%);
    color: var(--ink);
    box-shadow: var(--factory-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.site-menu .menu-close {
    position: absolute;
    top: 22px;
    right: 26px;
    min-width: 88px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.site-menu .menu-grid {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-menu .menu-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    font-size: clamp(36px, 5.2vw, 76px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.site-menu .menu-aside .action.light {
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
}

/* Service heroes use the source page's split-panel composition. */
.immersive-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: stretch;
    width: min(1440px, calc(100% - 40px));
    min-height: min(700px, calc(100svh - 126px));
    margin: 10px auto clamp(34px, 6vw, 82px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgb(23 34 27 / 5%);
    border-radius: clamp(24px, 3.2vw, 42px);
    background: var(--factory-surface);
    color: var(--ink);
    box-shadow: 0 18px 60px rgb(20 44 28 / 5%);
}

.immersive-hero .hero-copy {
    position: relative;
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: auto;
    min-width: 0;
    max-width: 760px;
    padding: clamp(42px, 6vw, 88px) clamp(32px, 5vw, 72px);
}

.immersive-hero .scene-kicker,
.immersive-section .scene-kicker {
    margin-bottom: 18px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.11em;
}

.immersive-hero h1 {
    max-width: 11ch;
    font-size: clamp(46px, 5.2vw, 78px);
    font-weight: 600;
    line-height: 1.015;
    letter-spacing: -0.065em;
}

.immersive-hero .hero-description {
    max-width: 40ch;
    margin-top: 24px;
    color: #515e55;
    font-size: clamp(16px, 1.32vw, 19px);
    line-height: 1.58;
}

.immersive-hero .hero-actions {
    gap: 12px;
    margin-top: 28px;
}

.immersive-hero .hero-action {
    min-height: 50px;
    padding: 13px 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.immersive-hero .hero-action:hover {
    background: var(--green-hover);
}

.immersive-hero .hero-action--secondary {
    border-color: #c6cec6;
    background: transparent;
    color: var(--ink);
}

.immersive-hero .hero-action--secondary:hover {
    background: var(--paper);
}

.immersive-hero .hero-subnote {
    margin-top: 18px;
    color: #69756c;
    font-size: 12px;
}

.immersive-hero .hero-media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 520px;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 55% 48%, var(--green-glow), transparent 45%),
        #e7ece4;
}

.immersive-hero .hero-media::after {
    display: none;
}

.immersive-hero .hero-media > img,
.immersive-hero .hero-media > picture,
.immersive-hero .hero-media > picture > img {
    border-radius: 0;
}

.concept-hero--interface .hero-media--interface {
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 42px);
}

.concept-hero--interface .hero-media--interface > img {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: var(--factory-shadow);
}

.soglia-case:not(.preview-mode) .soglia-hero {
    height: calc(100svh - 112px);
}

.immersive-hero .hero-media--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 34px;
}

.immersive-hero .hero-media--duo figure,
.immersive-hero .hero-media--duo figure:first-child,
.immersive-hero .hero-media--duo figure:last-child {
    height: calc(100% - 48px);
    margin: 24px 0;
    overflow: hidden;
    border: 8px solid var(--paper);
    border-radius: 25px;
    background: var(--paper);
    box-shadow: var(--factory-shadow);
}

.immersive-hero .hero-media--duo figure:first-child {
    transform: translateY(18px) rotate(-2deg);
}

.immersive-hero .hero-media--duo figure:last-child {
    transform: translateY(-18px) rotate(2deg);
}

.immersive-hero .hero-media--workflow {
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 54px);
}

.immersive-hero .hero-media--workflow .workflow-map {
    width: 100%;
    max-width: 570px;
    border: 1px solid rgb(23 34 27 / 7%);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 24px 70px rgb(20 44 28 / 13%);
}

.immersive-hero .workflow-map__label,
.immersive-hero .knowledge-board__title {
    color: var(--ink);
}

.immersive-hero .workflow-node {
    border-radius: 15px;
    background: #f7f8f6;
}

.immersive-hero .knowledge-file,
.immersive-hero .knowledge-board__question,
.immersive-hero .knowledge-board__answer {
    border-radius: 14px;
}

/* Round panels, compact accordions and alternating chapters across routes. */
.immersive-section {
    padding: clamp(64px, 8vw, 120px) var(--gutter);
    background: var(--paper);
}

.immersive-section--mist {
    background: var(--factory-surface);
}

.chapter-header,
.scene-grid,
.service-facts,
.related-reading > *,
.immersive-section > .automation-app,
.immersive-section > .demo-chapter-footer {
    width: min(1320px, 100%);
    margin-inline: auto;
}

.chapter-header {
    margin-bottom: clamp(30px, 4vw, 56px);
}

.scene-heading,
.chapter-header .scene-heading {
    max-width: 14ch;
    font-size: clamp(36px, 4.7vw, 68px);
    line-height: 1.04;
    font-weight: 600;
    letter-spacing: -0.06em;
}

.scene-lead {
    max-width: 38ch;
    color: var(--muted);
}

.scene-grid {
    gap: clamp(30px, 6vw, 92px);
}

.scene-step h2,
.scene-step h3 {
    font-size: clamp(27px, 3vw, 42px);
    font-weight: 600;
}

.scene-visual > :is(.knowledge-board, .scenario-preview, .workflow-map) {
    border: 1px solid rgb(23 34 27 / 8%);
    border-radius: 28px;
    background: var(--factory-surface);
    box-shadow: var(--factory-shadow);
}

.workflow-map {
    border: 1px solid #dce3d8;
    border-radius: 26px;
    background: #f3f5f1;
}

.workflow-node {
    border-radius: 16px;
    background: #fff;
}

.knowledge-board,
.scenario-preview {
    border-radius: 26px;
    background: #f5f6f3;
}

.service-details,
.related-reading,
.editorial-hero,
.policy-wrap,
.contact-intro {
    border-radius: 30px;
}

.service-details {
    padding: clamp(64px, 8vw, 112px) var(--gutter);
    background: var(--factory-surface-green);
}

.service-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-facts article {
    min-height: 220px;
    padding: clamp(22px, 2.8vw, 34px);
    border: 1px solid rgb(23 34 27 / 7%);
    border-radius: 23px;
    background: rgb(255 255 255 / 88%);
}

.service-facts article h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 650;
    letter-spacing: -0.04em;
}

.service-facts article p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.related-reading {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: 32px;
    max-width: 1440px;
    margin: 24px auto;
    padding: clamp(28px, 4vw, 56px) var(--gutter);
    background: var(--factory-surface);
}

.related-reading h2 {
    max-width: 13ch;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.related-reading nav {
    display: grid;
}

.related-reading nav a {
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

/* Website-wide presentation for the homepage, journal, cases and contact. */
.page-intro {
    padding-top: clamp(56px, 7vw, 104px);
}

.home-hero {
    width: min(1440px, calc(100% - 40px));
    margin: 10px auto clamp(34px, 6vw, 82px);
    padding: clamp(32px, 5vw, 70px);
    border: 1px solid rgb(23 34 27 / 5%);
    border-radius: clamp(24px, 3.2vw, 42px);
    background: var(--factory-surface);
}

.home-hero-visual,
.home-work-card img {
    overflow: hidden;
    border-radius: 26px;
}

.home-hero-visual {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 10 / 9;
    background: var(--factory-surface-green);
    box-shadow: 0 18px 48px rgb(20 44 28 / 9%);
}

.home-proof-strip {
    border-top-color: #d4dbd2;
}

.home-offer-grid {
    gap: 16px;
}

.home-offer {
    overflow: hidden;
    border: 1px solid rgb(23 34 27 / 7%);
    border-radius: 28px;
    background: var(--factory-surface);
}

.home-offer--ai {
    background: var(--factory-surface-green);
}

.home-offer-image {
    margin: 12px 12px 0;
    border-radius: 21px;
}

.home-method {
    max-width: 1440px;
    margin-inline: auto;
    border-radius: 32px;
}

.home-work-card img,
.home-work-card--large img,
.concept-gallery img,
.direction-visual img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.home-work-card img {
    transition:
        transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 300ms ease;
}

.home-work-card:hover img {
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--factory-shadow);
}

.home-reading-grid a {
    border-color: #d5dbd3;
}

.contact-section {
    width: min(1440px, calc(100% - 40px));
    margin: 28px auto;
    padding: clamp(38px, 6vw, 82px);
    overflow: hidden;
    border: 1px solid rgb(23 34 27 / 6%);
    border-radius: clamp(24px, 3.2vw, 40px);
    background: var(--factory-surface);
    color: var(--ink);
}

.contact-grid {
    width: min(1260px, 100%);
    margin-inline: auto;
    align-items: start;
    gap: clamp(30px, 7vw, 96px);
}

.contact-section h2 {
    font-weight: 600;
}

.contact-section .lead,
.contact-context {
    color: var(--muted);
}

.contact-section .contact-links .action.light {
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
}

.contact-section .text-link img {
    filter: none;
}

.contact-form {
    padding: clamp(22px, 3.2vw, 42px);
    border: 1px solid #e0e4df;
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 14px 42px rgb(20 44 28 / 5%);
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #d9dfd9;
    border-radius: 13px;
    background: #fbfcfa;
    color: var(--ink);
    padding: 13px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7a857c;
}

.contact-form .action {
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
}

.form-privacy {
    color: var(--muted);
}

.contact-form-status:is([data-state='error'], [data-state='success']) {
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 12px;
}

.contact-form-status[data-state='error'] {
    border-color: #f1c8ba;
    background: #fff0eb;
    color: #8c3325;
}

.contact-form-status[data-state='success'] {
    border-color: #caddb5;
    background: #edf6e4;
    color: var(--forest);
}

/* Consent controls must sit above the fixed navigation capsule. */
.cookie-consent-banner,
.cookie-consent-modal {
    z-index: 1100;
}

.ai-widget[data-open='true'] {
    z-index: 1050;
}

.ai-widget-header {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--paper);
}

.cookie-consent-banner,
.cookie-modal-panel {
    border-radius: 20px;
}

.policy-table {
    overflow-wrap: normal;
    hyphens: none;
}

.table-scroll-hint {
    display: none;
}

.site-footer {
    margin-left: 0;
    padding: clamp(40px, 6vw, 76px) var(--gutter) 28px;
    border-radius: 34px 34px 0 0;
    background: var(--factory-dark);
}

.footer-top,
.footer-wordmark,
.footer-bottom {
    width: min(1320px, 100%);
    margin-inline: auto;
}

.footer-wordmark {
    border-color: rgb(255 255 255 / 20%);
}

.editorial-hero {
    padding: clamp(54px, 9vw, 116px) var(--gutter) clamp(38px, 6vw, 70px);
    background: var(--factory-surface);
}

.editorial-hero > *,
.section-container,
.policy-wrap {
    width: min(1240px, 100%);
    margin-inline: auto;
}

.editorial-title,
.policy-wrap h1 {
    font-weight: 600;
}

.article-quick-answer,
.article-callout {
    border-radius: 20px;
    background: var(--factory-surface-green);
}

.article-cover {
    border-radius: 26px;
}

.article-related-grid {
    gap: 14px;
}

.blog-card,
.journal-card,
.article-aside-card,
.article-cta-card {
    overflow: hidden;
    border: 1px solid #e0e4df;
    border-radius: 22px;
    background: #fff;
    padding: 24px;
}

.policy-wrap {
    max-width: 1080px;
    width: min(1080px, calc(100% - 40px));
    margin: 18px auto 52px;
    padding: clamp(32px, 6vw, 70px);
    border: 1px solid #e2e6e1;
    border-radius: 30px;
    background: var(--factory-surface);
}

.text-link,
.blog-card-link,
.policy-back {
    transition: color 180ms ease;
}

.text-link:hover,
.blog-card-link:hover,
.policy-back:hover {
    color: var(--forest);
}

/* New agent-factory story: original Krymtech demo cards and scenarios. */
.agent-factory-stage {
    position: relative;
    width: 100%;
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: clamp(26px, 4vw, 54px);
    isolation: isolate;
}

.agent-factory-stage::before {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(62%, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--green);
    opacity: 0.76;
    filter: blur(1px);
}

.agent-demo-card {
    position: absolute;
    width: min(78%, 430px);
    padding: 20px;
    border: 1px solid rgb(23 34 27 / 8%);
    border-radius: 24px;
    background: rgb(255 255 255 / 96%);
    color: var(--ink);
    box-shadow: 0 24px 64px rgb(20 44 28 / 13%);
}

.agent-demo-card--documents {
    z-index: 1;
    top: 12%;
    left: 6%;
    width: min(62%, 320px);
    transform: rotate(-5deg);
}

.agent-demo-card--knowledge {
    z-index: 3;
    top: 30%;
    right: 7%;
    width: min(76%, 405px);
    transform: rotate(2deg);
    animation: factory-float 7s ease-in-out infinite;
}

.agent-demo-card--workflow {
    z-index: 2;
    bottom: 9%;
    left: 11%;
    width: min(67%, 355px);
    transform: rotate(-2deg);
}

.agent-demo-card__topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #536157;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.agent-demo-card__badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--factory-surface-green);
    color: var(--forest);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.agent-demo-card__title {
    font-size: clamp(16px, 1.55vw, 21px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.04em;
}

.agent-demo-card__body {
    margin-top: 11px;
    color: #57635a;
    font-size: 12px;
    line-height: 1.5;
}

.agent-demo-card__file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 11px;
    border-radius: 11px;
    background: #f2f4f0;
    font-size: 11px;
}

.agent-demo-card__file-mark {
    display: grid;
    width: 25px;
    height: 30px;
    place-items: center;
    border-radius: 6px;
    background: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.agent-demo-card__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 14px;
}

.agent-demo-card__steps span {
    padding: 8px 5px;
    border-radius: 9px;
    background: var(--factory-surface);
    color: #4f5c52;
    font-size: 9px;
    text-align: center;
}

.agent-demo-card__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--forest);
    font-size: 10px;
    font-weight: 650;
}

.agent-contrast {
    width: min(1320px, calc(100% - 2 * var(--gutter)));
    margin: 0 auto;
    padding: clamp(44px, 6vw, 86px) 0;
}

.agent-contrast__heading {
    max-width: 900px;
}

.agent-contrast__heading h2 {
    max-width: 16ch;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.agent-contrast__heading h2 em {
    color: var(--forest);
    font-style: normal;
}

.agent-contrast__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: clamp(28px, 4vw, 46px);
}

.agent-contrast__card {
    min-height: 190px;
    padding: clamp(24px, 3.2vw, 38px);
    border: 1px solid #e0e5df;
    border-radius: 24px;
    background: var(--factory-surface);
}

.agent-contrast__card:last-child {
    background: var(--factory-surface-green);
}

.agent-contrast__card span {
    color: var(--forest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.agent-contrast__card h3 {
    margin-top: 20px;
    font-size: clamp(23px, 2.6vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.agent-contrast__card p {
    max-width: 50ch;
    margin-top: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.agent-families {
    padding: clamp(56px, 8vw, 110px) var(--gutter);
    background: var(--factory-surface);
}

.agent-families__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 6vw, 84px);
    width: min(1320px, 100%);
    margin-inline: auto;
}

.agent-families__intro h2 {
    max-width: 10ch;
    font-size: clamp(38px, 4.7vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.agent-families__intro p:last-child {
    max-width: 36ch;
    margin-top: 18px;
    color: var(--muted);
}

.agent-accordion-list {
    display: grid;
    gap: 8px;
}

.agent-accordion-list details {
    overflow: hidden;
    border: 1px solid #e1e5df;
    border-radius: 17px;
    background: #fff;
}

.agent-accordion-list summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.agent-accordion-list summary::-webkit-details-marker {
    display: none;
}

.agent-accordion-list summary::after {
    content: '+';
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: var(--factory-surface);
    font-size: 18px;
    font-weight: 400;
    transition: transform 220ms ease;
}

.agent-accordion-list details[open] summary::after {
    transform: rotate(45deg);
}

.agent-accordion-list summary span {
    color: #6d796e;
    font-size: 11px;
    font-weight: 700;
}

.agent-accordion-list details[open] summary {
    background: #fff;
}

.agent-accordion-list details > div {
    max-width: 72ch;
    padding: 0 58px 22px 70px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.agent-scenario-matrix {
    width: min(1320px, 100%);
    margin: clamp(36px, 5vw, 64px) auto 0;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid #dce2d9;
    border-radius: 23px;
    background: #fff;
}

.agent-scenario-matrix h3 {
    margin-bottom: 16px;
    font-size: clamp(20px, 2.2vw, 28px);
    letter-spacing: -0.04em;
}

.agent-scenario-matrix__scroll {
    overflow-x: auto;
}

.agent-scenario-matrix__scroll:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 4px;
}

.agent-scenario-matrix table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.agent-scenario-matrix th,
.agent-scenario-matrix td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e8e3;
    vertical-align: middle;
}

.agent-scenario-matrix th {
    color: #667168;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agent-scenario-matrix td:first-child {
    font-weight: 650;
}

.agent-scenario-matrix td:not(:first-child) {
    color: #566158;
}

.agent-scenario-matrix__note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.agent-governance {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(32px, 7vw, 100px);
    padding: clamp(56px, 8vw, 112px) var(--gutter);
    background: var(--factory-dark);
    color: #f7faf6;
}

.agent-governance__copy,
.agent-governance__panel {
    width: min(620px, 100%);
}

.agent-governance__copy {
    justify-self: end;
}

.agent-governance h2 {
    max-width: 11ch;
    font-size: clamp(38px, 4.8vw, 66px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.agent-governance__copy > p:not(.scene-kicker) {
    max-width: 48ch;
    margin-top: 20px;
    color: #c6d0c8;
    font-size: 16px;
    line-height: 1.65;
}

.agent-governance__points {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.agent-governance__points p {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e0e7e0;
    font-size: 14px;
}

.agent-governance__points p::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--green);
}

.agent-governance__panel {
    justify-self: start;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 25px;
    background: #000000;
    box-shadow: 0 28px 74px rgb(0 0 0 / 22%);
}

.agent-governance__panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgb(255 255 255 / 12%);
    color: #f1f6f0;
    font-size: 13px;
    font-weight: 650;
}

.agent-governance__panel-head span:last-child {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--green-wash);
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.agent-governance__event {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.agent-governance__event:last-of-type {
    border-bottom: 0;
}

.agent-governance__event > span:first-child {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    background: var(--green-wash);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.agent-governance__event strong,
.agent-governance__event small {
    display: block;
}

.agent-governance__event strong {
    color: #f3f7f2;
    font-size: 12px;
}

.agent-governance__event small {
    margin-top: 4px;
    color: #bbc8bd;
    font-size: 10px;
}

.agent-governance__event > span:last-child {
    color: #c6d0c8;
    font-size: 10px;
}

.agent-governance__disclaimer {
    margin-top: 14px;
    color: #bdc9bf;
    font-size: 10px;
    line-height: 1.5;
}

/* Keep the single guided horizontal chapter inside the sticky viewport. */
.is-horizontal-enhanced .build-stage {
    padding-block: 54px 20px;
}

.is-horizontal-enhanced .build-intro {
    margin-bottom: 18px;
}

.is-horizontal-enhanced .build-panel__visual {
    max-height: 48svh;
    overflow: hidden;
    border-radius: 21px;
}

.is-horizontal-enhanced .device-pair__mobile {
    width: auto;
    max-width: 22%;
    max-height: 32svh;
    object-fit: contain;
}

@keyframes factory-float {
    0%,
    100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -9px;
    }
}

@media (max-width: 1100px) {
    main {
        padding-top: 92px;
    }

    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: calc(100vw - 28px);
        max-width: 1100px;
        height: 64px;
        gap: 14px;
        padding-left: 16px;
    }

    .site-header .site-nav,
    body.is-scrolled .site-header .site-nav,
    body:not(.is-scrolled):not(.menu-open) .site-header .site-nav {
        flex-direction: row;
        gap: clamp(12px, 2vw, 22px);
        font-size: 12px;
    }

    .site-header .site-nav a {
        font-size: 12px;
    }

    .site-header .header-contact,
    body.is-scrolled .site-header .header-contact,
    body:not(.is-scrolled) .site-header .header-contact,
    body:has(.immersive-hero) .site-header .header-contact,
    body:has(.home-intro) .site-header .header-contact {
        min-height: 44px;
        padding-inline: 14px;
        font-size: 13px;
    }

    .site-header .menu-toggle {
        display: none;
    }

    .immersive-hero {
        min-height: 560px;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }

    .immersive-hero .hero-media {
        min-height: 500px;
    }

    .immersive-hero .hero-copy {
        padding-inline: clamp(28px, 4vw, 48px);
    }

    .home-hero {
        min-height: auto;
        padding: clamp(30px, 4vw, 54px);
    }
}

@media (max-width: 760px) {
    :root {
        --gutter: 20px;
        scroll-padding-top: 90px;
    }

    main {
        padding-top: 82px;
    }

    .site-header {
        inset: 10px auto auto 50%;
        grid-template-columns: minmax(0, 1fr) auto;
        width: calc(100vw - 20px);
        height: 60px;
        padding: 5px 6px 5px 15px;
        gap: 8px;
    }

    .site-header .site-mark {
        gap: 8px;
        font-size: 15px;
    }

    .site-header .site-mark img {
        width: 32px;
        height: auto;
    }

    .site-header .site-nav,
    body.is-scrolled .site-header .site-nav,
    body:not(.is-scrolled):not(.menu-open) .site-header .site-nav {
        display: none !important;
    }

    .site-header .header-contact,
    body.is-scrolled .site-header .header-contact,
    body:not(.is-scrolled) .site-header .header-contact,
    body:has(.immersive-hero) .site-header .header-contact,
    body:has(.home-intro) .site-header .header-contact {
        display: none;
    }

    .site-header .menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 0;
    }

    .site-header .menu-toggle span {
        margin: 0;
    }

    .site-menu {
        inset: 8px;
        padding: 84px 22px 28px;
        border-radius: 27px;
    }

    .site-menu .menu-close {
        display: none;
    }

    .site-menu .menu-grid {
        gap: 26px;
    }

    .site-menu .menu-links a {
        font-size: clamp(34px, 9vw, 58px);
    }

    .immersive-hero {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 20px);
        min-height: 0;
        margin: 8px auto 34px;
        border-radius: 27px;
    }

    .immersive-hero .hero-copy {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        padding: clamp(28px, 8vw, 48px) clamp(22px, 6vw, 38px) 22px;
    }

    .immersive-hero h1 {
        max-width: 12ch;
        font-size: clamp(42px, 10vw, 64px);
    }

    .immersive-hero .hero-description {
        margin-top: 17px;
        font-size: 15px;
    }

    .immersive-hero .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-top: 22px;
    }

    .immersive-hero .hero-action {
        justify-content: space-between;
        min-height: 48px;
    }

    .immersive-hero .hero-subnote {
        margin-top: 14px;
        font-size: 11px;
    }

    .immersive-hero .hero-media {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-height: 340px;
        aspect-ratio: 1.12;
    }

    .immersive-hero .hero-media--duo {
        min-height: 320px;
        padding: 17px;
    }

    .immersive-hero .hero-media--duo figure,
    .immersive-hero .hero-media--duo figure:first-child,
    .immersive-hero .hero-media--duo figure:last-child {
        height: calc(100% - 30px);
        margin-block: 15px;
        border-width: 5px;
        border-radius: 17px;
    }

    .immersive-hero .hero-media--workflow {
        min-height: 0;
        padding: 17px;
    }

    .concept-hero--interface .hero-media--interface {
        min-height: 0;
        aspect-ratio: 1.25;
    }

    .soglia-case:not(.preview-mode) .soglia-hero {
        height: calc(100svh - 90px);
    }

    .policy-wrap .table-scroll-hint,
    .agent-scenario-matrix .table-scroll-hint {
        display: block;
        margin: 12px 0 8px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }

    .immersive-section {
        padding: 58px var(--gutter);
    }

    .chapter-header {
        display: block;
        margin-bottom: 30px;
    }

    .chapter-header > p {
        margin-top: 16px;
    }

    .scene-grid,
    .scene-grid--reverse {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .scene-grid--reverse .scene-steps,
    .scene-grid--reverse .scene-visual {
        grid-column: 1;
        grid-row: auto;
    }

    .is-scene-enhanced .scene-visual {
        position: static;
    }

    .is-scene-enhanced .scene-step {
        min-height: 0;
        padding-block: 24px;
    }

    .service-facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .service-facts article {
        min-height: 0;
    }

    .related-reading {
        grid-template-columns: 1fr;
        gap: 18px;
        margin: 14px 10px;
        padding: 30px 22px;
        border-radius: 24px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 20px);
        gap: 22px;
        margin: 8px auto 32px;
        padding: 27px 21px 22px;
        border-radius: 27px;
    }

    .home-hero h1 {
        font-size: clamp(44px, 11vw, 66px);
    }

    .home-hero-visual {
        min-height: 0;
        aspect-ratio: 10 / 9;
        border-radius: 20px;
    }

    .home-offer-grid,
    .home-method,
    .home-work-grid,
    .home-reading-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-offer-grid {
        gap: 12px;
    }

    .home-offer {
        border-radius: 23px;
    }

    .home-method {
        gap: 20px;
        border-radius: 25px;
    }

    .home-work-card--large {
        grid-column: auto;
    }

    .home-work-card img,
    .home-work-card--large img {
        aspect-ratio: auto;
    }

    .contact-section {
        width: calc(100% - 20px);
        margin: 14px auto;
        padding: 30px 21px;
        border-radius: 27px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .contact-form {
        padding: 21px 17px;
        border-radius: 21px;
    }

    .site-footer {
        border-radius: 27px 27px 0 0;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-top nav {
        gap: 12px 18px;
    }

    .editorial-hero {
        padding: 42px 22px 34px;
        border-radius: 24px;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .article-related-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .policy-wrap {
        margin: 12px 10px 34px;
        padding: 28px 20px;
        border-radius: 23px;
    }

    .agent-factory-stage {
        min-height: 360px;
        padding: 15px;
    }

    .agent-demo-card {
        padding: 14px;
        border-radius: 18px;
    }

    .agent-demo-card--documents {
        top: 6%;
        left: 3%;
        width: 64%;
    }

    .agent-demo-card--knowledge {
        top: 28%;
        right: 3%;
        width: 77%;
    }

    .agent-demo-card--workflow {
        bottom: 5%;
        left: 5%;
        width: 68%;
    }

    .agent-demo-card__body {
        font-size: 10px;
    }

    .agent-demo-card__file {
        margin-top: 5px;
        padding: 6px 8px;
        font-size: 9px;
    }

    .agent-demo-card__steps span {
        font-size: 8px;
    }

    .agent-contrast {
        width: calc(100% - 40px);
        padding-block: 48px;
    }

    .agent-contrast__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 24px;
    }

    .agent-contrast__card {
        min-height: 0;
        padding: 22px;
        border-radius: 19px;
    }

    .agent-families {
        padding: 52px 20px;
    }

    .agent-families__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .agent-families__intro h2 {
        max-width: 13ch;
    }

    .agent-accordion-list summary {
        grid-template-columns: 28px minmax(0, 1fr) 25px;
        gap: 9px;
        min-height: 62px;
        padding: 11px 13px;
        font-size: 16px;
    }

    .agent-accordion-list details > div {
        padding: 0 15px 18px 50px;
        font-size: 13px;
    }

    .agent-scenario-matrix {
        margin-top: 26px;
        padding: 18px 15px;
        border-radius: 19px;
    }

    .agent-scenario-matrix table {
        min-width: 580px;
    }

    .agent-governance {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 52px 20px;
    }

    .agent-governance__copy,
    .agent-governance__panel {
        width: 100%;
        max-width: none;
    }

    .agent-governance__panel {
        padding: 18px;
        border-radius: 21px;
    }
}

/* Each offer combines its examples and a specific, open process summary. */
.home-hero-shortcuts {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}
.home-macro {
    --macro-text: var(--forest);
    --macro-muted: var(--muted);
    --macro-line: var(--line);
    max-width: 1440px;
    padding-block: clamp(48px, 6vw, 88px);
    color: var(--macro-text);
}
.home-macro--web {
    padding-top: clamp(24px, 3vw, 44px);
}
.home-macro-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: start;
    gap: 32px 48px;
    margin-bottom: 32px;
}
.home-macro-heading h2 {
    margin-top: 0;
    font-size: clamp(38px, 4.7vw, 68px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: var(--heading-tracking);
    text-wrap: balance;
}
.home-macro-intro > p {
    max-width: 43ch;
    color: var(--macro-muted);
    font-size: 18px;
    line-height: 1.6;
}
.home-macro-intro .text-link {
    margin-top: 10px;
}
.home-macro-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 28px;
}
.home-demo-note {
    margin-bottom: 4px;
    color: var(--macro-muted);
    font-size: 13px;
    line-height: 1.6;
}
.home-macro .home-work-card span,
.home-macro .home-work-caption,
.home-macro .home-carousel-controls p {
    color: var(--macro-muted);
}
.home-macro .home-work-card h3 {
    color: var(--macro-text);
}
.home-macro .home-carousel-controls {
    justify-content: flex-end;
}
.home-work-caption {
    max-width: 58ch;
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.55;
}
.home-macro .home-work-card img {
    border-radius: 20px;
}
.home-macro .home-work-card:hover img {
    transform: translateY(-3px);
    box-shadow: none;
}
.home-macro--ai {
    --macro-text: #f4f6f0;
    --macro-muted: #c1cfc1;
    --macro-line: rgb(193 207 193 / 28%);
    width: min(1440px, calc(100% - 40px));
    margin: 16px auto 48px;
    border-radius: 32px;
    background: var(--factory-dark);
}
.home-macro--ai .eyebrow {
    color: var(--green);
}
.home-macro--ai .text-link:is(:hover, :focus-visible) {
    color: var(--green);
}
.home-macro--ai .home-work-card img {
    border-color: var(--macro-line);
}
.home-macro--ai .home-carousel .home-work-grid {
    scrollbar-color: #78957e transparent;
}
.home-macro--ai .home-carousel-controls button {
    border-color: var(--macro-line);
    background: transparent;
    color: var(--macro-text);
}
.home-macro--ai .home-carousel-controls button:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-wash-subtle);
}
.home-method-scroll-track {
    width: 100%;
    max-width: 1320px;
    margin-top: 24px;
    margin-inline: auto;
}
.home-method-viewport {
    margin-top: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--macro-line) transparent;
    padding: 2px 0 16px;
}
.home-content .home-macro .home-method-scroll-track {
    margin-top: 20px;
}
.home-content .home-macro .home-method-scroll-track .home-method-viewport {
    margin-top: 0;
}
.home-method-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-method-steps li {
    min-width: 0;
    padding: 6px clamp(16px, 1.8vw, 26px);
    scroll-snap-align: start;
}
.home-method-steps li:first-child {
    padding-left: 0;
}
.home-method-steps li:last-child {
    padding-right: 0;
}
.home-method-steps li + li {
    border-left: 1px solid var(--macro-line);
}
.home-method-number {
    display: inline-block;
    color: var(--macro-muted);
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.home-method-step-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
}
.home-method-icon {
    width: 24px;
    height: 24px;
    color: var(--macro-muted);
    opacity: 0.88;
    flex: none;
}
.home-method-steps h3 {
    margin-top: 16px;
    font-size: clamp(17px, 1.35vw, 20px);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.035em;
}
.home-method-steps p {
    max-width: 26ch;
    margin-top: 10px;
    color: var(--macro-muted);
    font-size: 15px;
    line-height: 1.6;
}
.home-method-viewport:focus-visible,
.home-carousel .home-work-grid:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}
.home-method-stage {
    display: flow-root;
    --macro-text: var(--ink);
    --macro-muted: #606a62;
    --macro-line: var(--line);
    color: var(--ink);
    border-radius: 20px;
    background: var(--paper);
}
.home-content .home-macro .home-method-stage .home-macro-actions {
    align-items: center;
    min-height: 44px;
    margin-top: 24px;
}
@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
    .home-method-scroll-track.is-scroll-sequenced .home-method-stage {
        position: sticky;
        z-index: 2;
        top: var(--home-method-sticky-top, 96px);
    }
    .home-method-scroll-track.is-scroll-sequenced .home-method-viewport {
        overflow: visible;
        scroll-snap-type: none;
    }
    .home-method-scroll-track.is-scroll-sequenced
        .home-method-steps
        > [data-home-reveal='method'],
    .home-method-scroll-track.is-scroll-sequenced .home-macro-actions {
        transform: translateY(
            calc(14px * (1 - var(--home-method-progress, 1)))
        );
        opacity: var(--home-method-progress, 1);
        transition: none;
    }
    .home-method-scroll-track.is-scroll-sequenced .home-macro-actions {
        visibility: hidden;
    }
    .home-method-scroll-track.is-scroll-sequenced
        .home-macro-actions.is-scroll-visible {
        visibility: visible;
    }
}
@media (max-width: 1100px) {
    .home-method-steps {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(210px, 65vw, 260px);
    }
    .home-method-steps h3 {
        font-size: 19px;
    }
    .home-method-steps li:last-child {
        padding-right: 24px;
    }
}
@media (max-width: 760px) {
    #contenuto-principale .home-method-scroll-track .home-method-viewport {
        overflow: visible;
        scroll-snap-type: none;
        scrollbar-width: none;
    }
    #contenuto-principale .home-method-scroll-track .home-method-steps {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-flow: row;
        grid-auto-columns: auto;
    }
    #contenuto-principale .home-method-scroll-track .home-method-steps li {
        padding: 18px 0;
        border-left: 0;
    }
    #contenuto-principale .home-method-scroll-track .home-method-steps li + li {
        border-top: 1px solid var(--macro-line);
    }
    .home-method-number {
        font-size: 28px;
    }
    .home-hero-actions {
        flex-direction: column;
    }
    .home-macro {
        padding-block: 40px;
    }
    .home-macro--web {
        padding-top: 24px;
    }
    .home-macro-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin-bottom: 24px;
    }
    .home-macro-heading h2 {
        margin-top: 0;
        font-size: clamp(34px, 8.5vw, 48px);
    }
    .home-macro-intro > p {
        font-size: 16px;
    }
    .home-macro-links {
        gap: 0 22px;
    }
    .home-macro--ai {
        width: calc(100% - 20px);
        margin: 8px auto 36px;
        border-radius: 24px;
        padding-inline: 22px;
    }
    .home-macro .home-work-card img {
        border-radius: 16px;
    }
    .home-work-caption {
        font-size: 14px;
    }
    .home-method-steps h3 {
        font-size: 18px;
    }
    .home-method-steps p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .site-header .site-mark span {
        font-size: 14px;
    }

    .site-header .menu-toggle {
        width: 44px;
        height: 44px;
    }

    .agent-demo-card__topline {
        font-size: 9px;
    }

    .agent-demo-card__badge {
        padding: 5px 7px;
        font-size: 8px;
    }
}

@media (min-width: 1101px) {
    body:not(.is-scrolled):not(.menu-open) .site-header {
        width: min(1320px, calc(100vw - 40px));
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        overflow: visible;
        transition: none;
    }

    .site-header .site-mark {
        width: auto;
        height: auto;
    }

    .site-header .site-mark span,
    body.is-scrolled .site-header .site-mark span,
    body:not(.is-scrolled):not(.menu-open) .site-header .site-mark span {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    body:not(.is-scrolled) :is(main, .site-footer) {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* A single, centered voice for the homepage opening. */
.home-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: min(760px, calc(100svh - 122px));
    padding: clamp(48px, 6vw, 88px) clamp(24px, 6vw, 88px);
    text-align: center;
}
.home-hero-copy {
    width: 100%;
    padding: 0;
}
.home-hero .eyebrow {
    justify-content: center;
}
.home-hero .home-title-wrap {
    margin-top: 24px;
}
.home-hero h1 {
    max-width: none;
    font-size: clamp(64px, 8vw, 112px);
    line-height: 1.1;
}
.home-hero-description {
    max-width: 64ch;
    margin: 26px auto 0;
    font-size: clamp(17px, 1.4vw, 20px);
}
.home-hero-actions {
    justify-content: center;
}
.home-hero-note {
    position: absolute;
    inset-inline: clamp(24px, 6vw, 88px);
    bottom: clamp(24px, 3vh, 32px);
    z-index: 1;
    max-width: 76ch;
    margin: 0 auto;
    color: var(--subtle);
    line-height: 1.65;
    text-align: center;
}
.site-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Benefits stay readable before enhancement; only the visible figures roll. */
.home-benefits {
    padding-block: clamp(72px, 8vw, 120px) 24px;
    background: var(--paper);
    color: var(--ink);
}
.home-benefits > .wrap {
    max-width: 1440px;
}
.home-benefits-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 32px 64px;
    margin-bottom: clamp(40px, 5vw, 68px);
}
.home-benefits-heading h2 {
    margin: 0;
    font-size: clamp(40px, 4.8vw, 68px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.055em;
}
.home-benefits-heading > p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}
.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    border-top: 1px solid var(--line);
    padding-top: 40px;
}
.home-benefit {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 432px;
    padding-inline: clamp(24px, 3vw, 44px);
}
.home-benefit + .home-benefit {
    border-left: 1px solid var(--line);
}
.home-benefit-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    height: 148px;
}
.home-benefit-metric {
    display: inline-flex;
    align-items: baseline;
    gap: clamp(12px, 1.6vw, 24px);
    white-space: nowrap;
}
.home-benefit-number {
    display: inline-block;
    font-size: clamp(84px, 8.8vw, 128px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}
.home-benefit-unit {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}
.home-benefit-screen {
    position: relative;
    flex: 0 0 auto;
    width: 53px;
    height: 112px;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 9px;
    background: #fff;
    color: #111;
    transition:
        border-radius 260ms ease,
        box-shadow 260ms ease;
}
.home-benefit-browser {
    display: none;
    align-items: center;
    gap: 3px;
    height: 9px;
    padding-inline: 5px;
    border-bottom: 1px solid var(--line);
}
.home-benefit-browser i {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #111;
}
.home-benefit-site {
    height: 100%;
}
.home-benefit-site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    padding-inline: 4px;
    border-bottom: 1px solid var(--line);
    transition:
        height 360ms ease,
        padding 360ms ease;
}
.home-benefit-logo {
    display: block;
    flex: 0 0 auto;
    width: 10px;
    height: 9px;
    object-fit: contain;
}
.home-benefit-links {
    color: #515951;
    font-size: 4px;
    transition:
        opacity 180ms ease,
        transform 220ms ease;
}
.home-benefit-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 9px;
    padding: 2px 1px;
    opacity: 0;
    transform: scale(0.7);
    transition:
        opacity 180ms ease,
        transform 220ms ease;
}
.home-benefit-menu i {
    height: 1px;
    background: #111;
}
.home-benefit-site-content {
    display: flex;
    gap: 7px;
    height: calc(100% - 20px);
    padding: 5px;
    transition:
        height 360ms ease,
        gap 360ms ease,
        padding 360ms ease;
}
.home-benefit-site-copy {
    display: flex;
    flex: 1 1 50%;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
    transition:
        flex 360ms ease,
        gap 360ms ease;
}
.home-benefit-site-copy b {
    font-size: 6px;
    line-height: 1.2;
    transition: font-size 360ms ease;
}
.home-benefit-site-copy > i {
    width: 100%;
    height: 2px;
    background: #8b938a;
    transition:
        width 360ms ease,
        height 360ms ease;
}
.home-benefit-site-copy > i:last-of-type {
    width: 66%;
}
.home-benefit-site-copy > span {
    margin-top: auto;
    padding: 3px 4px;
    background: #111;
    color: #fff;
    font-size: 4px;
    white-space: nowrap;
    transition:
        opacity 180ms ease,
        transform 220ms ease;
}
.home-benefit-site-image {
    flex: 1 1 50%;
    min-width: 0;
    min-height: 18px;
    border-radius: 2px;
    background: var(--green);
    transition:
        flex 360ms ease,
        min-height 360ms ease,
        border-radius 360ms ease;
}
.home-benefit-screen[data-format='desktop'] {
    border-radius: 7px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-browser {
    display: flex;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-nav {
    height: 14px;
    padding-inline: 7px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-links {
    font-size: 5px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-content {
    height: calc(100% - 23px);
    gap: 10px;
    padding: 7px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-copy {
    gap: 5px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-copy b {
    font-size: 9px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-copy > i {
    height: 3px;
}
.home-benefit-screen[data-format='desktop'] .home-benefit-site-copy > span {
    font-size: 5px;
}
.home-benefit-screen[data-format='tablet'] {
    border-radius: 8px;
}
.home-benefit-screen[data-format='tablet'] .home-benefit-menu,
.home-benefit-screen[data-format='mobile'] .home-benefit-menu {
    opacity: 1;
    transform: scale(1);
}
.home-benefit-screen[data-format='tablet'] .home-benefit-links,
.home-benefit-screen[data-format='mobile'] .home-benefit-links {
    opacity: 0;
    transform: scaleX(0.5);
}
.home-benefit-screen[data-format='tablet'] .home-benefit-site-content,
.home-benefit-screen[data-format='mobile'] .home-benefit-site-content {
    flex-direction: column;
    height: calc(100% - 20px);
    gap: 4px;
    padding: 5px;
}
.home-benefit-screen[data-format='tablet'] .home-benefit-site-copy,
.home-benefit-screen[data-format='mobile'] .home-benefit-site-copy {
    flex: 0 0 auto;
    gap: 3px;
}
.home-benefit-screen[data-format='tablet'] .home-benefit-site-copy b,
.home-benefit-screen[data-format='mobile'] .home-benefit-site-copy b {
    font-size: 6px;
}
.home-benefit-screen[data-format='tablet'] .home-benefit-site-image,
.home-benefit-screen[data-format='mobile'] .home-benefit-site-image {
    flex: 1 1 auto;
    min-height: 26px;
    width: 100%;
}
.home-benefit-screen[data-format='mobile'] .home-benefit-site-nav {
    height: 18px;
    padding-inline: 4px;
}
.home-benefit-screen[data-format='mobile'] .home-benefit-logo {
    width: 9px;
    height: 8px;
}
.home-benefit-screen[data-format='mobile'] .home-benefit-site-content {
    gap: 3px;
    padding: 4px;
}
.home-benefit-screen[data-format='mobile'] .home-benefit-site-copy > i {
    height: 2px;
}
.home-benefit-screen[data-format='mobile'] .home-benefit-site-copy > span {
    display: none;
}
.home-benefit > h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 0 0 16px;
    font-size: clamp(16px, 1.7vw, 24px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-align: center;
}
.home-benefit > h3 mark {
    box-decoration-break: clone;
    padding: 0.08em 0.18em 0.12em;
    background: var(--green);
    color: var(--ink);
}
.scene-step-index {
    display: inline-block;
    margin-right: 0.45em;
    color: var(--green-text);
    font-size: 0.48em;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    vertical-align: 0.2em;
}
.home-benefit-flow {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: min(100%, 300px);
    height: 120px;
}
.home-benefit-flow > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.home-benefit-flow-line {
    fill: none;
    stroke: #cbd1c9;
    stroke-width: 1.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}
.home-benefit-flow-dot {
    fill: var(--green);
    stroke: #111;
    stroke-width: 1;
}
.home-benefit-contact,
.home-benefit-destination {
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #111;
    border-radius: 6px;
    background: #fff;
    color: #111;
}
.home-benefit-contact {
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 8px;
    font-size: 9px;
}
.home-benefit-contact > strong {
    font-size: 10px;
    font-weight: 600;
}
.home-benefit-contact-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 3px 4px;
    border-radius: 3px;
    transition: background-color 240ms ease;
}
.home-benefit-contact-row i {
    color: #737b72;
    font-size: 7px;
    font-style: normal;
}
.home-benefit-contact-row b {
    overflow: hidden;
    font-size: 8px;
    font-weight: 500;
    text-overflow: ellipsis;
}
.home-benefit-destinations {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    min-width: 0;
}
.home-benefit-destination {
    position: relative;
    gap: 3px;
    min-height: 42px;
    padding: 5px 7px;
    font-size: 8px;
    transition:
        border-color 240ms ease,
        background-color 240ms ease;
}
.home-benefit-destination b {
    font-size: 9px;
    font-weight: 600;
}
.home-benefit-destination span {
    overflow: hidden;
    color: #737b72;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-benefit-destination > i {
    position: absolute;
    top: 4px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    color: #111;
    font-size: 7px;
    font-style: normal;
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 200ms ease,
        transform 200ms ease;
}
.is-flow-collecting .home-benefit-contact-row:first-of-type,
.is-flow-data-ready .home-benefit-contact-row:first-of-type,
.is-flow-to-crm .home-benefit-destination[data-destination='crm'],
.is-flow-crm-done .home-benefit-destination[data-destination='crm'],
.is-flow-to-email .home-benefit-destination[data-destination='email'],
.is-flow-to-email .home-benefit-destination[data-destination='crm'],
.is-flow-final .home-benefit-destination {
    border-color: #111;
    background: var(--green);
}
.is-flow-to-crm .home-benefit-flow-line--crm,
.is-flow-crm-done .home-benefit-flow-line--crm,
.is-flow-to-email .home-benefit-flow-line--crm,
.is-flow-to-email .home-benefit-flow-line--email,
.is-flow-final .home-benefit-flow-line {
    stroke: #111;
    stroke-dashoffset: 0;
}
.is-flow-final .home-benefit-flow-dot {
    opacity: 0;
}
.is-flow-pending .home-benefit-flow-dot {
    opacity: 0;
}
.is-flow-to-crm .home-benefit-flow-dot--crm,
.is-flow-to-email .home-benefit-flow-dot--email {
    animation: benefit-dot-pop 900ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.is-flow-to-crm .home-benefit-flow-line--crm,
.is-flow-to-email .home-benefit-flow-line--email {
    animation: benefit-line-draw 900ms cubic-bezier(0.22, 0.61, 0.36, 1)
        forwards;
}
.is-flow-to-crm .home-benefit-destination[data-destination='crm'] > i,
.is-flow-crm-done .home-benefit-destination[data-destination='crm'] > i,
.is-flow-to-email .home-benefit-destination[data-destination='email'] > i,
.is-flow-to-email .home-benefit-destination[data-destination='crm'] > i,
.is-flow-final .home-benefit-destination > i {
    opacity: 1;
    transform: scale(1);
}
@keyframes benefit-line-draw {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes benefit-dot-pop {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    70% {
        opacity: 1;
        transform: scale(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.home-benefit-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 28px;
    text-align: left;
}
.home-benefit-copy > p {
    flex: 1;
    max-width: 34ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}
.home-benefit-copy > p + p {
    padding-top: 10px;
}
.home-benefit-copy strong {
    color: var(--ink);
    font-weight: 600;
}
.home-benefit-project-link {
    display: flex;
    width: max-content;
    align-self: flex-end;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: #37423a;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}
.home-benefit-project-link .link-arrow {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
}
.home-benefit-project-link:hover {
    color: #111;
}
.home-benefits-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
@media (max-width: 1100px) {
    .home-benefits-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}
@media (max-width: 760px) {
    .home-benefits-heading h2 {
        font-size: clamp(36px, 8.8vw, 52px);
    }
    .home-benefits-heading > p {
        font-size: 16px;
    }
    .home-benefits-heading > p br {
        display: none;
    }
    .home-benefits-grid {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0;
    }
    .home-benefit,
    .home-benefit:first-child,
    .home-benefit:last-child {
        min-height: 0;
        padding: 28px 0 32px;
    }
    .home-benefit + .home-benefit {
        border-top: 1px solid var(--line);
        border-left: 0;
    }
    .home-benefit-visual {
        height: 120px;
    }
    .home-benefit > h3 {
        min-height: 52px;
        font-size: 22px;
    }
    .home-benefit-number {
        font-size: 104px;
    }
    .home-benefit-copy {
        margin-top: 20px;
    }
    .home-benefits-footer {
        margin-top: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .is-flow-to-crm .home-benefit-flow-line,
    .is-flow-to-crm .home-benefit-flow-dot,
    .is-flow-to-email .home-benefit-flow-line,
    .is-flow-to-email .home-benefit-flow-dot {
        animation: none;
    }
}

/* Static technology grid, with the complete stack visible at once. */
.home-stack {
    padding: clamp(62px, 7vw, 96px) 0;
    background: #f6f8f3;
}
.home-stack-heading {
    margin: 0 auto clamp(30px, 4vw, 48px);
    text-align: center;
}
.home-stack-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1.08;
}
.home-stack-heading h2 span {
    display: inline-block;
    padding: 0.02em 0.1em 0.06em;
    border-radius: 0.04em;
    background: var(--forest);
    color: #fff;
    text-decoration: none;
}
.home-stack-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.home-stack-logos li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 82px;
    padding: 16px 18px;
    border: 1px solid #e3e8df;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 9px 24px rgb(17 17 17 / 4%);
    color: #000000;
    font-size: 17px;
    font-weight: 550;
    letter-spacing: -0.035em;
    white-space: nowrap;
}
.home-stack-logos li:nth-child(4n + 1) {
    transform: rotate(-1deg);
}
.home-stack-logos li:nth-child(4n + 2) {
    transform: translateY(5px) rotate(0.8deg);
}
.home-stack-logos li:nth-child(4n + 3) {
    transform: translateY(-3px) rotate(-0.6deg);
}
.home-stack-logos li:nth-child(4n) {
    transform: translateY(3px) rotate(0.7deg);
}
.home-stack-logos img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
    opacity: 0.88;
}

/* Large previews in two independent, manually controlled carousels. */
.home-carousel {
    min-width: 0;
}
.home-carousel .home-work-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-width: thin;
    scrollbar-color: #bac7bb transparent;
    padding: 12px 4px 24px;
    margin-inline: -4px;
}
.home-carousel .home-work-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.home-carousel .home-work-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--factory-surface);
}
.home-carousel .home-work-card h3 {
    font-size: clamp(24px, 2.8vw, 36px);
}
.home-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}
.home-carousel-controls[hidden],
.home-stack-toggle[hidden] {
    display: none;
}
.home-carousel-controls p {
    color: var(--muted);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}
.home-carousel-controls > div {
    display: flex;
    gap: 10px;
}
.home-carousel-controls button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition:
        background 180ms ease,
        border-color 180ms ease;
}
.home-carousel-controls button:hover:not(:disabled) {
    border-color: var(--forest);
    background: var(--factory-surface-green);
}
.home-carousel-controls button:disabled {
    opacity: 0.3;
    cursor: default;
}
[data-carousel-prev] svg {
    transform: rotate(180deg);
}

@media (max-width: 760px) {
    .home-hero {
        min-height: auto;
        padding: 48px 22px 38px;
    }
    .home-hero h1 {
        font-size: clamp(40px, 9.5vw, 68px);
    }
    .home-hero-description br {
        display: none;
    }
    .home-hero-actions {
        align-items: center;
        gap: 12px 20px;
    }
    .home-hero-note {
        font-size: 12px;
    }
    .home-stack-heading {
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
        margin-bottom: 20px;
    }
    .home-stack-toggle {
        padding-left: 0;
    }
    .home-carousel .home-work-grid {
        gap: 14px;
    }
    .home-carousel .home-work-card {
        flex-basis: 90%;
    }
    .home-carousel .home-work-card img {
        border-radius: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .site-nav a:is(:hover, :focus-visible) {
        transform: none;
        text-shadow: none;
    }
    .home-stack-window {
        mask-image: none;
    }
    .js .home-stack-track {
        width: 100%;
        animation: none;
    }
    .home-stack-logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px 36px;
        padding: 12px 24px;
    }
    .home-stack-logos[aria-hidden] {
        display: none;
    }
}

/* Homepage-specific palette and project preview treatments. */
body:has(.home-intro) main {
    padding-top: 0;
}
.home-intro.home-hero {
    --home-hero-parallax: 0px;
    --home-cover-top: 92px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    top: auto;
    z-index: 0;
    width: 100%;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    padding-inline: clamp(24px, 7vw, 120px);
    border-radius: 0;
    background: var(--paper);
}
.home-cover-enabled .home-intro.home-hero {
    position: sticky;
    top: var(--home-cover-top);
}
.home-content {
    border-radius: 30px 30px 0 0;
}
@media (prefers-reduced-motion: reduce), print {
    .home-cover-enabled .home-intro.home-hero {
        position: relative;
        top: auto;
    }
}
.home-macro--ai .home-carousel-controls {
    top: var(--carousel-controls-center, 50%);
}
.home-hero-copy {
    position: relative;
    z-index: 1;
    translate: 0 var(--home-hero-parallax);
}
.home-hero-note {
    translate: 0 var(--home-hero-parallax);
}
.home-hero .home-title-wrap {
    position: relative;
    isolation: isolate;
    margin-top: 0;
}
.home-hero .home-title-wrap::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(94vw, 1120px);
    height: clamp(300px, 42vw, 520px);
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgb(0 154 68 / 28%) 0%,
        rgb(0 154 68 / 13%) 34%,
        rgb(0 154 68 / 4%) 58%,
        transparent 74%
    );
    content: '';
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: home-title-halo 16s ease-in-out infinite alternate;
}
.home-hero .home-title-wrap::after {
    position: absolute;
    top: -22px;
    left: 50%;
    width: 72px;
    height: 4px;
    border-radius: 2px;
    background: var(--green);
    content: '';
    opacity: 0.86;
    transform: translateX(-50%);
}
@keyframes home-title-halo {
    from {
        opacity: 0.82;
        scale: 0.97;
    }
    to {
        opacity: 1;
        scale: 1.03;
    }
}
.home-hero .home-title-line {
    color: var(--ink);
    -webkit-text-fill-color: currentColor;
}
.home-hero-shortcuts .text-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.home-macro {
    --macro-text: var(--ink);
    --macro-muted: #69716b;
    --macro-line: var(--line);
}
.home-macro--ai {
    --macro-text: #fff;
    --macro-muted: #c7cbc8;
    --macro-line: rgb(255 255 255 / 20%);
    background: var(--factory-dark);
}
.home-macro--web {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 40px));
    margin: 16px auto 48px;
    padding-top: clamp(60px, 6vw, 88px);
    border-radius: 32px;
    background: #d6ead8;
}
.home-macro--ai .eyebrow {
    color: #c7cbc8;
}
.home-macro--ai .text-link:is(:hover, :focus-visible) {
    color: #fff;
}
.home-macro .text-link {
    color: var(--macro-text);
}
.home-macro--ai .home-carousel-controls > button {
    border-color: #f2f3f2;
    background: #f2f3f2;
    color: var(--ink);
}
.home-macro--ai .home-carousel-controls > button:hover:not(:disabled) {
    border-color: #dfe2df;
    background: #dfe2df;
}
.home-macro .home-work-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
}
.home-macro .home-work-card:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}
.home-macro .home-work-card img {
    display: block;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: inherit;
    background: #252525;
    object-fit: contain;
    filter: none;
    transform: none;
    transition: none;
}
.home-macro .home-work-card .home-work-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: clamp(24px, 5vw, 64px);
    border-radius: inherit;
    background: rgb(0 0 0 / 62%);
    color: #fff;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 420ms ease,
        visibility 0s linear 420ms;
}
.home-macro .home-work-card .home-work-overlay h3 {
    position: static;
    margin: 0;
    color: inherit;
    font-size: clamp(32px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -0.045em;
}
.home-macro .home-work-card .home-work-description {
    display: block;
    width: min(100%, 36ch);
    color: rgb(255 255 255 / 92%);
    font-size: clamp(15px, 1.3vw, 18px);
    font-weight: 400;
    letter-spacing: normal;
    line-height: 1.55;
    text-transform: none;
    text-wrap: balance;
}
.home-macro .home-work-card .home-work-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 4px;
    padding: 12px 18px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    pointer-events: auto;
    text-transform: none;
}
.home-macro .home-work-card .home-work-cta > .link-arrow {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    color: inherit;
}
.home-macro
    .home-work-card:is(:hover, :focus-visible, .is-revealed)
    .home-work-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}
.home-macro .home-work-card .home-work-caption {
    display: none;
}
.home-carousel {
    position: relative;
}
.home-macro .home-work-grid {
    scrollbar-width: none;
}
.home-macro .home-work-grid::-webkit-scrollbar {
    display: none;
}
.home-carousel-controls {
    position: absolute;
    z-index: 2;
    top: var(--carousel-controls-center, 50%);
    right: 0;
    left: 0;
    display: block;
    height: 0;
    margin: 0;
    pointer-events: none;
}
.home-carousel-controls > button {
    position: absolute;
    top: 0;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #111;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition:
        background 180ms ease,
        border-color 180ms ease,
        opacity 180ms ease;
}
.home-carousel-controls > button:first-child {
    left: 8px;
}
.home-carousel-controls > button:last-of-type {
    right: 8px;
}
.home-carousel-controls > button:hover:not(:disabled) {
    border-color: #333;
    background: #333;
}
.home-carousel-controls > button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.home-carousel-controls > button:disabled {
    opacity: 0.45;
}
.home-method-number {
    text-align: left;
}
.home-method-steps h3 {
    color: var(--macro-text);
}
@media (max-width: 760px) {
    body:has(.home-intro) .home-intro.home-hero {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .home-intro.home-hero {
        --home-cover-top: 78px;
        margin-bottom: 0;
        padding-bottom: clamp(104px, 15vh, 124px);
    }
    .home-hero .home-title-wrap::before {
        width: min(108vw, 620px);
        height: clamp(240px, 76vw, 360px);
    }
    .home-hero .home-title-wrap::after {
        top: -16px;
        width: 48px;
        height: 3px;
    }
    .home-hero-note {
        inset-inline: 22px;
        bottom: 22px;
    }
    .home-content {
        border-radius: 24px 24px 0 0;
    }
    .home-macro--web {
        width: calc(100% - 20px);
        margin: 8px auto 36px;
        padding-top: 52px;
        border-radius: 24px;
    }
    .home-macro .home-work-card {
        border-radius: 16px;
    }
    .home-macro .home-work-card .home-work-overlay h3 {
        font-size: clamp(24px, 7vw, 32px);
    }
    .home-macro .home-work-card .home-work-overlay {
        gap: 10px;
        padding: 18px;
    }
    .home-macro .home-work-card .home-work-description {
        font-size: clamp(12px, 3.4vw, 14px);
        line-height: 1.4;
    }
    .home-macro .home-work-card .home-work-cta {
        margin-top: 2px;
        padding: 9px 14px;
        font-size: 12px;
    }
    .home-method-viewport {
        margin-top: 14px;
    }
    .home-carousel-controls > button {
        width: 44px;
        height: 44px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero .home-title-wrap::before {
        animation: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-macro .home-work-card .home-work-overlay,
    .home-carousel-controls > button {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .home-stack-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 760px) {
    .home-stack-heading {
        margin-bottom: 26px;
        text-align: center;
    }
    .home-stack-heading h2 {
        font-size: clamp(28px, 7vw, 36px);
    }
    .home-stack-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0;
    }
    .home-stack-logos li {
        min-height: 72px;
        gap: 9px;
        padding: 12px;
        font-size: 14px;
    }
    .home-stack-logos img {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-stack-logos {
        gap: 16px;
        padding: 0;
    }
}

.website-service-page .website-hero .scene-kicker {
    margin-bottom: 22px;
}

.website-service-page .website-paths .chapter-header .scene-heading {
    max-width: 17ch;
    font-size: clamp(34px, 4vw, 56px);
}

.website-service-page .website-paths .chapter-header > p {
    max-width: 34ch;
}

.website-service-page .website-paths .scene-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
}

.website-service-page .website-paths .scene-step {
    min-height: 56svh;
    padding-block: 34px;
}

.website-service-page .website-paths.is-scene-enhanced .scene-visual {
    top: 112px;
}

.website-service-page .website-paths .scene-step-index {
    display: inline-grid;
    width: 32px;
    height: 32px;
    margin-right: 8px;
    place-items: center;
    border: 1px solid #a8b5a6;
    border-radius: 50%;
    color: var(--muted);
    font-size: 11px;
    vertical-align: 0.22em;
}

.website-service-page .website-paths .scene-step.is-active .scene-step-index {
    border-color: var(--green);
    background: var(--green);
    color: var(--ink);
}

.website-service-page .website-paths .scenario-preview {
    padding: clamp(18px, 2.2vw, 30px);
    overflow: hidden;
    border-color: rgb(23 34 27 / 8%);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 22px 54px rgb(20 44 28 / 8%);
}

.website-service-page .website-paths .scenario-preview__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.website-service-page .website-paths .scenario-preview__heading small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-align: right;
}

.website-service-page .website-paths .scenario-preview__panels {
    display: flex;
    flex-direction: column;
}

.website-service-page .website-paths .scenario-preview [data-scene-panel] {
    min-width: 0;
    padding-top: 16px;
}

.website-service-page
    .website-paths
    .scenario-preview
    [data-scene-panel]
    + [data-scene-panel] {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.website-service-page .website-paths .scenario-preview h3 {
    font-size: clamp(20px, 2vw, 27px);
    font-weight: 650;
}

.website-service-page .website-paths .scenario-preview__image {
    width: 100%;
    aspect-ratio: 16 / 8.6;
    margin: 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--factory-surface);
}

.website-service-page .website-paths .scenario-preview__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.website-service-page .website-paths .scenario-preview__caption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.website-service-page .website-paths .scenario-preview dl {
    margin-top: 15px;
}

.website-service-page .website-paths .scenario-preview dl > div {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding-block: 8px;
}

.website-service-page .website-paths .scenario-preview dd {
    font-size: 12px;
    line-height: 1.45;
}

.website-service-page
    .website-paths.is-scene-enhanced
    .scenario-preview__panels {
    display: grid;
    align-items: start;
}

.website-service-page
    .website-paths.is-scene-enhanced
    .scenario-preview
    [data-scene-panel] {
    grid-area: 1 / 1;
    margin: 0;
    padding-top: 16px;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity 380ms ease,
        transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1),
        visibility 0s linear 380ms;
}

.website-service-page
    .website-paths.is-scene-enhanced
    .scenario-preview
    [data-scene-panel].is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
}

.website-service-page
    .website-paths.is-scene-enhanced
    .scenario-preview
    [data-scene-panel]:not(.is-active) {
    display: block;
}

.website-service-page .website-concept-carousel {
    gap: 14px;
    margin-top: 28px;
}

.website-service-page
    .website-concept-carousel.home-carousel
    .website-concept-track {
    gap: clamp(16px, 2vw, 26px);
    padding: 12px 6px 22px;
    scroll-padding-inline: 6px;
}

.website-service-page
    .website-concept-carousel.home-carousel
    .website-concept-card {
    flex-basis: min(78%, 920px);
}

.website-service-page .website-concept-card img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
    transition:
        transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1),
        box-shadow 420ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .website-service-page .website-concept-card a:hover img {
        transform: translateY(-3px);
        box-shadow: 0 18px 38px rgb(20 44 28 / 12%);
    }

    .website-service-page .website-paths .scenario-preview__image:hover img {
        transform: scale(1.025);
    }
}

.website-service-page .website-concept-controls {
    position: static;
    order: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: auto;
    margin: 0;
    pointer-events: auto;
}

.website-service-page .website-concept-progress {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: auto minmax(80px, 180px);
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

.website-service-page .website-concept-progress__track {
    height: 2px;
    overflow: hidden;
    background: #dce2da;
}

.website-service-page .website-concept-progress__track > span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--forest);
    transform: scaleX(0.3333);
    transform-origin: left center;
    transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.website-service-page .website-concept-buttons {
    display: flex;
    gap: 8px;
}

.website-service-page .website-concept-buttons > button {
    position: static;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    transform: none;
    border: 1px solid #cdd5cc;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    pointer-events: auto;
    transition:
        background 180ms ease,
        border-color 180ms ease,
        color 180ms ease,
        opacity 180ms ease;
}

.website-service-page .website-concept-buttons > button:hover:not(:disabled) {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}

.website-service-page .website-concept-buttons > button:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
}

.website-service-page .website-concept-buttons > button:disabled {
    opacity: 0.42;
}

.website-service-page .website-concept-buttons > button:first-child svg {
    transform: rotate(180deg);
}

.website-service-page .website-scope .chapter-header {
    align-items: end;
    margin-bottom: 26px;
}

.website-service-page .website-scope .chapter-header .scene-heading {
    max-width: 14ch;
    font-size: clamp(34px, 4.3vw, 60px);
}

.website-service-page .website-service-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 32px;
}

.website-service-page .website-service-facts article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 3vw, 40px);
    min-height: 0;
    padding: 24px 4px;
    border: 0;
    border-top: 1px solid #c9d2c5;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.website-service-page .website-fact-index {
    padding-top: 4px;
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.website-service-page .website-service-facts article h3 {
    font-size: clamp(21px, 2.1vw, 27px);
}

.website-service-page .website-service-facts article p {
    max-width: 72ch;
    margin-top: 8px;
}

.website-service-page .website-process__intro h2 {
    max-width: 14ch;
    font-size: clamp(36px, 4.2vw, 60px);
}

.website-service-page .website-process .scene-kicker {
    color: var(--green);
}

.website-service-page .website-process__steps {
    position: relative;
}

.website-service-page .website-process__steps::before {
    position: absolute;
    top: 39px;
    bottom: 39px;
    left: 15px;
    width: 1px;
    background: rgb(0 154 68 / 42%);
    content: '';
}

.website-service-page .website-process__number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(0 154 68 / 65%);
    border-radius: 50%;
    background: #000;
    color: var(--green);
}

.website-service-page .website-process__steps li {
    gap: 22px;
    padding-block: 25px;
}

.website-service-page .related-reading {
    width: min(calc(100% - 2 * var(--gutter)), 1320px);
    margin: 16px auto;
    padding: clamp(28px, 4vw, 48px);
    border-radius: 26px;
}

.website-service-page .related-reading h2 {
    font-size: clamp(27px, 3vw, 38px);
}

.website-service-page .native-faq summary::after {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid #d5ddd4;
    border-radius: 50%;
    content: '+';
    font-size: 19px;
    line-height: 1;
    transition:
        transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1),
        background 180ms ease;
}

.website-service-page .native-faq[open] summary::after {
    content: '+';
    transform: rotate(45deg);
    background: var(--green-wash);
}

.website-service-page .native-faq[open] > p {
    animation: website-faq-answer-in 350ms ease both;
}

.website-service-page .contact-links .contact-whatsapp-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.website-service-page .contact-links .contact-whatsapp-link .link-arrow {
    filter: none;
}

.website-service-page .contact-form .btn-submit {
    min-height: 54px;
    border-radius: 999px;
    background: var(--green);
    color: var(--ink);
    font-weight: 700;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.website-service-page .contact-form .btn-submit:hover {
    background: var(--green-hover);
    transform: translateY(-1px);
}

.website-service-page
    .ai-widget[data-overlap='true'][data-open='false']:not(:focus-within) {
    visibility: hidden;
    pointer-events: none;
}

body.website-service-page.website-motion-ready [data-website-reveal] {
    opacity: 1;
    transform: none;
    transition:
        opacity 420ms ease,
        transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.website-service-page.website-motion-ready
    [data-website-reveal]:not(.is-visible):not(:focus-within) {
    opacity: 0;
    transform: translateY(16px);
}

body.website-service-page.website-motion-ready
    .website-service-facts
    article:nth-child(2),
body.website-service-page.website-motion-ready
    .website-process__steps
    li:nth-child(2),
body.website-service-page.website-motion-ready .native-faq:nth-of-type(2) {
    transition-delay: 70ms;
}

body.website-service-page.website-motion-ready
    .website-service-facts
    article:nth-child(3),
body.website-service-page.website-motion-ready
    .website-process__steps
    li:nth-child(3),
body.website-service-page.website-motion-ready .native-faq:nth-of-type(3) {
    transition-delay: 140ms;
}

@keyframes website-faq-answer-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1099px) {
    .website-service-page .website-paths .scene-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .website-service-page .website-paths .scene-step,
    .website-service-page .website-paths.is-scene-enhanced .scene-step {
        min-height: 0;
        padding-block: 24px;
    }

    .website-service-page .website-paths.is-scene-enhanced .scene-visual {
        position: relative;
        top: auto;
    }

    .website-service-page
        .website-paths.is-scene-enhanced
        .scenario-preview__panels {
        display: flex;
    }

    .website-service-page
        .website-paths.is-scene-enhanced
        .scenario-preview
        [data-scene-panel] {
        position: static;
        grid-area: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .website-service-page .website-service-facts article {
        min-height: 0;
    }
}

@media (max-width: 760px) {
    .website-service-page .website-paths .chapter-header .scene-heading,
    .website-service-page .website-scope .chapter-header .scene-heading {
        font-size: clamp(32px, 8vw, 44px);
    }

    .website-service-page .website-paths .scenario-preview {
        padding: 18px;
        border-radius: 21px;
    }

    .website-service-page .website-paths .scenario-preview__heading {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .website-service-page .website-paths .scenario-preview__heading small {
        text-align: left;
    }

    .website-service-page .website-paths .scenario-preview__image {
        aspect-ratio: 16 / 10;
        border-radius: 12px;
    }

    .website-service-page
        .website-concept-carousel.home-carousel
        .website-concept-card {
        flex-basis: 88%;
    }

    .website-service-page .website-concept-controls {
        gap: 10px;
    }

    .website-service-page .website-concept-progress {
        grid-template-columns: auto minmax(54px, 1fr);
        gap: 9px;
        font-size: 10px;
    }

    .website-service-page .website-concept-buttons > button {
        width: 42px;
        height: 42px;
    }

    .website-service-page .website-service-facts article {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding-block: 19px;
    }

    .website-service-page .website-process__inner {
        gap: 24px;
    }

    .website-service-page .website-process__steps li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 12px;
        padding-block: 20px;
    }

    .website-service-page .website-process__steps::before {
        left: 15px;
    }

    .website-service-page .related-reading {
        width: calc(100% - 20px);
        padding: 26px 21px;
        border-radius: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.website-service-page) {
        scroll-behavior: auto;
    }

    body.website-service-page.website-motion-ready [data-website-reveal],
    body.website-service-page.website-motion-ready
        [data-website-reveal]:not(.is-visible):not(:focus-within) {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .website-service-page .website-concept-progress__track > span,
    .website-service-page .website-concept-card img,
    .website-service-page .website-paths .scenario-preview__image img,
    .website-service-page .native-faq summary::after,
    .website-service-page .contact-form .btn-submit {
        transition: none;
    }

    .website-service-page .native-faq[open] > p {
        animation: none;
    }

    .website-service-page
        .website-paths.is-scene-enhanced
        .scenario-preview
        [data-scene-panel] {
        position: static;
        grid-area: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
    }
}

/* A clearer service choice, followed by one scroll-led concept and scope chapter. */
.website-service-page .website-paths .chapter-header {
    display: block;
    margin-bottom: clamp(42px, 7vh, 78px);
    text-align: center;
}

.website-service-page .website-paths .chapter-header .scene-heading {
    max-width: 22ch;
    margin-inline: auto;
    font-size: clamp(42px, 6.4vw, 82px);
    text-wrap: balance;
}

.website-service-page .website-paths .scene-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
    align-items: stretch;
    gap: clamp(38px, 8vw, 124px);
}

.website-service-page .website-paths .scene-step {
    min-height: 58svh;
    padding-block: clamp(28px, 5vh, 54px);
    border-top-color: var(--line);
}

.website-service-page .website-paths .scene-step h3 {
    max-width: 17ch;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.website-service-page .website-paths .scene-step p {
    max-width: 42ch;
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.7;
}

.website-service-page .website-paths .scene-step em[data-emphasis] {
    position: relative;
    color: inherit;
    font-style: normal;
    white-space: nowrap;
}

.website-service-page .website-paths .scene-step em[data-emphasis]::after {
    position: absolute;
    right: 0;
    bottom: 0.02em;
    left: 0;
    height: 0.09em;
    background: var(--green);
    content: '';
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.website-service-page.website-motion-ready
    .website-paths
    .scene-step:not(.is-visible):not(.is-active)
    em[data-emphasis]::after {
    transform: scaleX(0);
}

.website-service-page
    .website-paths
    .scene-step.is-active
    em[data-emphasis]::after,
.website-service-page
    .website-paths
    .scene-step.is-visible
    em[data-emphasis]::after {
    transform: scaleX(1);
}

.website-service-page .website-paths .website-path-meter {
    position: sticky;
    top: 22svh;
    display: flex;
    min-height: 42svh;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    padding: clamp(20px, 4vw, 56px) 0;
}

.website-service-page .website-path-meter__count {
    color: var(--ink);
    font-size: clamp(92px, 14vw, 190px);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    letter-spacing: -0.09em;
    line-height: 0.9;
}

.website-service-page .website-path-meter__label {
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(15px, 1.5vw, 20px);
}

.website-service-page .website-path-meter__rail {
    display: block;
    height: 2px;
    margin-top: 28px;
    overflow: hidden;
    background: var(--line);
}

.website-service-page .website-path-meter__rail i {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--green);
    transform: scaleX(0.3333);
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.website-service-page .website-concepts--merged {
    padding-block: 0;
}

.website-service-page .website-concept-stage {
    position: relative;
    min-height: 0;
    padding: clamp(94px, 12svh, 132px) var(--gutter) 34px;
    overflow: hidden;
    background: var(--paper);
    color: var(--ink);
}

.website-service-page .website-concepts-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    align-items: end;
    gap: 24px 64px;
    margin: 0 0 clamp(24px, 4vh, 42px);
    padding: 0;
}

.website-service-page .website-concepts-intro h2 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.02;
    text-wrap: balance;
}

.website-service-page .website-concepts-intro > p {
    max-width: 48ch;
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.website-service-page .website-concept-carousel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.website-service-page .website-concept-viewport {
    overflow: visible;
}

.website-service-page .website-concept-track {
    display: grid;
    gap: 28px;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    transform: none;
}

.website-service-page .website-concept-card {
    min-width: 0;
    color: var(--ink);
}

.website-service-page .website-concept-card > a {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    color: inherit;
    text-decoration: none;
}

.website-service-page .website-concept-card__visual {
    display: block;
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #eef0eb;
}

.website-service-page .website-concept-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1.68;
    border: 0;
    border-radius: inherit;
    object-fit: cover;
}

.website-service-page .website-concept-card__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.website-service-page .website-concept-card__label {
    margin-top: 0;
    font-size: 10px;
    letter-spacing: 0.08em;
}

.website-service-page .website-concept-card h3 {
    margin-top: 14px;
    font-size: clamp(38px, 5vw, 66px);
    letter-spacing: -0.065em;
    line-height: 0.98;
}

.website-service-page .website-concept-card__description {
    max-width: 38ch;
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.65;
}

.website-service-page .website-concept-card__action {
    margin-top: 24px;
}

.website-service-page .website-concept-controls {
    position: static;
    order: 0;
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}

.website-service-page .website-concept-controls[hidden] {
    display: none;
}

.website-service-page .website-scope {
    width: min(100%, 1320px);
    margin-inline: auto;
    padding: clamp(48px, 7vw, 92px) var(--gutter) clamp(54px, 8vw, 104px);
}

.website-service-page .website-scope .chapter-header {
    display: block;
    margin: 0 0 14px;
}

.website-service-page .website-scope .chapter-header .scene-heading {
    max-width: none;
    font-size: clamp(30px, 3.5vw, 46px);
}

.website-service-page .website-scope .website-service-facts {
    margin: 0;
}

.website-service-page .website-scope .website-service-facts article {
    grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
    align-items: baseline;
    gap: clamp(18px, 4vw, 54px);
    padding: 18px 0;
}

.website-service-page .website-scope .website-service-facts article > div {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
    align-items: baseline;
    gap: clamp(16px, 3vw, 42px);
}

.website-service-page .website-scope .website-service-facts article h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.website-service-page .website-scope .website-service-facts article p {
    max-width: 78ch;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.website-service-page .website-process__intro h2 {
    max-width: 16ch;
    text-wrap: balance;
}

/* Keep the carousel native when motion enhancement is unavailable. */
.website-service-page
    .website-concept-carousel.is-carousel-ready
    .website-concept-track {
    display: flex;
    gap: clamp(16px, 2vw, 26px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-color: #bac7bb transparent;
    padding: 4px 4px 18px;
}

.website-service-page
    .website-concept-carousel.is-carousel-ready
    .website-concept-card {
    flex: 0 0 min(82%, 940px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.website-service-page
    .website-concept-carousel.is-carousel-ready
    .website-concept-card
    > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.website-service-page
    .website-concept-carousel.is-carousel-ready
    .website-concept-card__copy {
    padding-inline: 2px;
}

.website-service-page .is-horizontal-enhanced.website-concept-story {
    min-height: 300svh;
}

.website-service-page .is-horizontal-enhanced .website-concept-stage {
    position: sticky;
    top: 16svh;
    display: flex;
    height: 84svh;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(28px, 4svh, 38px) 18px;
}

.website-service-page .is-horizontal-enhanced .website-concepts-intro {
    flex: 0 0 auto;
    margin-bottom: clamp(16px, 2.8vh, 30px);
}

.website-service-page .is-horizontal-enhanced .website-concepts-intro h2 {
    font-size: clamp(34px, 4.3vw, 58px);
}

.website-service-page .is-horizontal-enhanced .website-concepts-intro > p {
    font-size: 13px;
}

.website-service-page .is-horizontal-enhanced .website-concept-carousel {
    flex: 1 1 auto;
    min-height: 0;
}

.website-service-page .is-horizontal-enhanced .website-concept-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

body.website-service-page
    .is-horizontal-enhanced.website-concept-story
    .website-concept-carousel.is-carousel-ready
    .website-concept-track {
    display: flex;
    width: 300%;
    height: 100%;
    gap: 0;
    overflow: visible;
    padding: 0;
    transform: translateX(calc(var(--horizontal-progress, 0) * -66.666667%));
    will-change: transform;
}

body.website-service-page
    .is-horizontal-enhanced.website-concept-story
    .website-concept-carousel.is-carousel-ready
    .website-concept-card {
    display: flex;
    flex: 0 0 33.333333%;
    align-items: center;
    min-width: 0;
    padding-inline: clamp(18px, 3.5vw, 48px);
    scroll-snap-align: none;
}

body.website-service-page
    .is-horizontal-enhanced.website-concept-story
    .website-concept-carousel.is-carousel-ready
    .website-concept-card
    > a {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: clamp(24px, 5vw, 76px);
}

.website-service-page .is-horizontal-enhanced .website-concept-card img {
    max-height: 46svh;
    aspect-ratio: 1.68;
}

.website-service-page .is-horizontal-enhanced .website-concept-card h3 {
    font-size: clamp(40px, 5.2vw, 72px);
}

.website-service-page .is-horizontal-enhanced .website-concept-controls {
    flex: 0 0 auto;
}

@media (max-width: 1099px) {
    .website-service-page .website-paths .chapter-header .scene-heading {
        font-size: clamp(38px, 7vw, 64px);
    }

    .website-service-page .website-paths .scene-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .website-service-page .website-paths .scene-step {
        min-height: 0;
        padding-block: 28px;
    }

    .website-service-page .website-paths .website-path-meter {
        position: relative;
        top: auto;
        min-height: 0;
        padding-block: 30px 12px;
    }

    .website-service-page .website-path-meter__count {
        font-size: clamp(82px, 18vw, 140px);
    }

    .website-service-page .website-concept-stage {
        height: auto;
        padding-block: 88px 32px;
    }

    .website-service-page .website-concepts-intro {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .website-service-page
        .website-concept-carousel.is-carousel-ready
        .website-concept-card {
        flex-basis: 88%;
    }

    .website-service-page .website-scope .website-service-facts article > div {
        grid-template-columns: minmax(120px, 0.38fr) minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .website-service-page .website-paths .chapter-header .scene-heading {
        font-size: clamp(34px, 9vw, 48px);
    }

    .website-service-page .website-paths .scene-step h3 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .website-service-page .website-concepts-intro h2 {
        font-size: clamp(36px, 9vw, 50px);
    }

    .website-service-page
        .website-concept-carousel.is-carousel-ready
        .website-concept-card
        > a {
        display: flex;
    }

    .website-service-page .website-concept-card > a {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-service-page .website-concept-controls {
        gap: 10px;
    }

    .website-service-page .website-scope {
        padding-inline: 20px;
    }

    .website-service-page .website-scope .website-service-facts article {
        grid-template-columns: 1fr;
    }

    .website-service-page .website-scope .website-service-facts article > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .website-service-page .website-paths .scene-step em[data-emphasis]::after,
    .website-service-page .website-path-meter__rail i {
        transition: none;
    }

    .website-service-page .is-horizontal-enhanced.website-concept-story {
        min-height: 0;
    }

    .website-service-page .is-horizontal-enhanced .website-concept-stage {
        position: relative;
        height: auto;
    }

    .website-service-page .is-horizontal-enhanced .website-concept-track {
        width: auto;
        height: auto;
        transform: none;
        will-change: auto;
    }

    .website-service-page .is-horizontal-enhanced .website-concept-card {
        flex: 0 0 88%;
    }
}

/* Compact centered opening and a motion graphic for the website service page. */
body.website-service-page main {
    padding-top: 0;
}

body.website-service-page
    main:has(> .website-hero:first-child)
    > .website-hero:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: clamp(560px, 68svh, 680px);
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
}

body.website-service-page .website-hero .hero-copy {
    display: flex;
    width: min(100%, 1080px);
    max-width: none;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    padding: clamp(142px, 16vh, 158px) 28px 42px;
    text-align: center;
}

body.website-service-page .website-hero h1 {
    max-width: 21ch;
    text-transform: uppercase;
    font-size: clamp(48px, 5.6vw, 76px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

body.website-service-page .website-hero .hero-description {
    max-width: 55ch;
    margin-top: 20px;
    color: #515e55;
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.58;
}

body.website-service-page .website-hero .hero-actions {
    justify-content: center;
    margin-top: 25px;
}

body.website-service-page .website-hero .hero-subnote {
    color: #69756c;
}

body.website-service-page .website-paths-section {
    padding: clamp(34px, 4vw, 58px) var(--gutter) clamp(72px, 8vw, 112px);
    background: #d7f0f5;
}

.website-paths-section__inner {
    width: min(1140px, 100%);
    margin-inline: auto;
}

.website-paths-section__intro {
    margin-bottom: clamp(18px, 2.2vw, 30px);
    text-align: center;
}

.website-paths-section__intro .scene-kicker {
    margin-bottom: 12px;
    color: var(--forest);
    font-size: 10px;
}

.website-paths-section__intro .scene-heading {
    max-width: none;
    margin-inline: auto;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    text-wrap: balance;
}

.website-paths-section__chapters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 42px);
    width: min(1140px, 100%);
    margin: 0 auto;
}

.website-paths-chapter {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid #b8d5dc;
}

.website-paths-chapter > span {
    padding-top: 4px;
    color: var(--forest);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.website-paths-chapter h3 {
    max-width: 19ch;
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.website-paths-chapter h3 em {
    color: var(--forest);
    font-style: normal;
}

.website-paths-chapter p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 760px) {
    body.website-service-page
        main:has(> .website-hero:first-child)
        > .website-hero:first-child {
        min-height: 0;
    }

    body.website-service-page .website-hero .hero-copy {
        padding: clamp(128px, 15svh, 136px) 22px 28px;
    }

    body.website-service-page .website-hero h1 {
        max-width: 18ch;
        font-size: clamp(40px, 10.5vw, 52px);
    }

    body.website-service-page .website-hero .hero-description {
        max-width: 38ch;
        margin-top: 17px;
        font-size: 16px;
    }

    body.website-service-page .website-hero .hero-actions {
        display: grid;
        width: min(100%, 360px);
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        margin-top: 21px;
    }

    body.website-service-page .website-paths-section {
        padding-block: 34px 68px;
    }

    .website-paths-section__intro {
        margin-bottom: 18px;
    }

    .website-paths-section__intro .scene-heading {
        max-width: 19ch;
        font-size: clamp(32px, 8.5vw, 44px);
    }

    .website-paths-section__chapters {
        grid-template-columns: minmax(0, 1fr);
        gap: 21px;
        margin-top: 0;
    }

    .website-paths-chapter {
        padding-top: 14px;
    }

    .website-paths-chapter h3 {
        font-size: 22px;
    }

    .website-paths-chapter p {
        margin-top: 8px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.website-service-page .website-hero [data-website-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.website-service-page .website-project-overview {
    margin-top: 30px;
    padding-top: 26px;
}

.website-service-page .website-project-overview__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.6vw, 36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.website-service-page .website-project-overview__steps li {
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid #c9d2c5;
}

.website-service-page .website-project-overview__number {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--forest);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.website-service-page .website-project-overview__steps h3,
.website-service-page .website-project-overview__notes h3 {
    font-size: 17px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.website-service-page .website-project-overview__steps p {
    max-width: 37ch;
    margin-top: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.website-service-page .website-project-overview__notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px clamp(20px, 3vw, 42px);
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #c9d2c5;
}

.website-service-page .website-project-overview__notes article {
    display: grid;
    grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
}

.website-service-page .website-project-overview__notes h3 {
    font-size: 13px;
}

.website-service-page .website-project-overview__notes p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .website-service-page .website-project-overview__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .website-service-page .website-project-overview__steps li:last-child {
        grid-column: 1 / -1;
    }

    .website-service-page .website-project-overview__notes article {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }
}

@media (max-width: 760px) {
    .website-service-page .website-project-overview {
        margin-top: 24px;
        padding-top: 22px;
    }

    .website-service-page .website-project-overview__steps,
    .website-service-page .website-project-overview__notes {
        grid-template-columns: minmax(0, 1fr);
    }

    .website-service-page .website-project-overview__steps {
        gap: 18px;
    }

    .website-service-page .website-project-overview__steps li:last-child {
        grid-column: auto;
    }

    .website-service-page .website-project-overview__number {
        margin-bottom: 8px;
    }

    .website-service-page .website-project-overview__notes {
        gap: 16px;
        margin-top: 22px;
    }
}

/* Adaptive shared navigation. The fixed layout stays intact; only its surface
   and controls move, so compacting never shifts page content. */
.site-header[data-adaptive-nav] {
    --nav-edge: 20px;
    --nav-top: 16px;
    --nav-duration: 600ms;
    --nav-compact-width: 60px;
    top: max(var(--nav-top), env(safe-area-inset-top));
    max-width: min(
        1320px,
        calc(
            100vw - max(var(--nav-edge), env(safe-area-inset-left)) -
                max(var(--nav-edge), env(safe-area-inset-right))
        )
    );
}

.site-header[data-adaptive-nav] .site-mark img {
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 4px;
    object-fit: contain;
}

body .site-header[data-adaptive-nav='menu'] {
    --nav-compact-width: 112px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
}

body .site-header[data-adaptive-nav='menu'] .site-nav,
body:not(.is-scrolled):not(.menu-open)
    .site-header[data-adaptive-nav='menu']
    .site-nav {
    display: none;
}

.site-header[data-adaptive-nav='menu'] .header-contact {
    grid-column: 3;
}

body .site-header[data-adaptive-nav='menu'] .menu-toggle {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    grid-column: 4;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
}

.site-header[data-nav-ready] {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header[data-nav-ready]::before {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    box-sizing: border-box;
    border: 1px solid rgb(23 34 27 / 9%);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 34px rgb(20 44 28 / 8%);
    transform: translate(-50%, -50%);
    transition:
        width var(--nav-duration) cubic-bezier(0.22, 1, 0.36, 1),
        height var(--nav-duration) cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    content: '';
}

.site-header[data-nav-ready] .site-mark,
.site-header[data-nav-ready] .menu-toggle {
    translate: 0;
    transition: translate var(--nav-duration) cubic-bezier(0.22, 1, 0.36, 1);
}

body .site-header[data-nav-ready] .site-mark span,
body .site-header[data-nav-ready] .site-nav,
body .site-header[data-nav-ready] .header-contact {
    opacity: 1;
    translate: 0;
    transition:
        opacity 280ms ease 120ms,
        translate 280ms ease 120ms;
}

.site-header[data-nav-ready][data-nav-state='compact'] {
    pointer-events: none;
}

.site-header[data-nav-ready][data-nav-state='compact']::before {
    width: var(--nav-compact-width);
    height: 60px;
}

.site-header[data-nav-ready][data-nav-state='compact'] .site-mark {
    translate: var(--nav-symbol-x, 0px) 0;
    pointer-events: none;
}

.site-header[data-nav-ready][data-nav-state='compact'] .site-mark img {
    pointer-events: auto;
}

body .site-header[data-nav-ready][data-nav-state='compact'] .site-mark span,
body .site-header[data-nav-ready][data-nav-state='compact'] .site-nav,
body .site-header[data-nav-ready][data-nav-state='compact'] .header-contact {
    opacity: 0;
    translate: 0 6px;
    transition-delay: 0ms;
    transition-duration: 280ms;
    pointer-events: none;
}

.site-header[data-nav-ready][data-nav-state='compact'] .menu-toggle {
    translate: var(--nav-toggle-x, 0px) 0;
    pointer-events: auto;
}

/* Faded links cannot intercept a pointer while the surface is still opening.
   Native links stay accessible; keyboard focus reveals them synchronously. */
.site-header[data-nav-ready][data-nav-moving] .site-nav,
.site-header[data-nav-ready][data-nav-moving] .header-contact {
    pointer-events: none;
}

.site-header[data-nav-instant]::before,
.site-header[data-nav-instant] .site-mark,
.site-header[data-nav-instant] .site-mark span,
.site-header[data-nav-instant] .site-nav,
.site-header[data-nav-instant] .header-contact,
.site-header[data-nav-instant] .menu-toggle {
    transition: none !important;
}

@media (max-width: 1100px) {
    .site-header[data-adaptive-nav] {
        --nav-edge: 14px;
    }
}

@media (max-width: 760px) {
    .site-header[data-adaptive-nav] {
        --nav-edge: 10px;
        --nav-top: 10px;
    }

    body .site-header[data-adaptive-nav='menu'] {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .site-header[data-adaptive-nav='menu'] .menu-toggle {
        grid-column: 2;
    }

    .site-header[data-adaptive-nav] .site-mark img {
        padding: 6px;
    }
}

/* Keep the primary hero heading at the same scale across page types. */
.home-hero h1,
.immersive-hero h1,
body.website-service-page .website-hero h1 {
    font-size: clamp(48px, 6vw, 84px);
}

@media (max-width: 760px) {
    .home-hero h1,
    .immersive-hero h1,
    body.website-service-page .website-hero h1 {
        font-size: clamp(40px, 10.5vw, 52px);
    }
}

:root {
    --section-heading-size: clamp(36px, 4.8vw, 64px);
}

/* Landscape phones need clearance below the fixed capsule, even in short heroes. */
@media (max-height: 500px) {
    .home-intro.home-hero {
        padding-top: max(112px, calc(env(safe-area-inset-top) + 96px));
        padding-bottom: 32px;
    }

    .home-intro .home-hero-note {
        position: relative;
        inset: auto;
        margin-top: 24px;
    }

    .immersive-hero .hero-copy {
        padding-top: max(112px, calc(env(safe-area-inset-top) + 96px));
    }
}

#contenuto-principale h2 {
    font-size: var(--section-heading-size);
}

@media (max-width: 760px) {
    :root {
        --section-heading-size: clamp(32px, 8vw, 44px);
    }
}
