/* Shared visual chapters. Static content is the default; motion is progressive. */
.immersive-hero {
    position: relative;
    min-height: min(900px, 100svh);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    overflow: clip;
    background: #000000;
    color: #fff;
}
.immersive-hero .hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-media > img,
.hero-media > picture,
.hero-media > picture > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.immersive-hero .hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgb(8 17 13 / 88%),
        rgb(8 17 13 / 46%) 58%,
        rgb(8 17 13 / 12%)
    );
    pointer-events: none;
}
.immersive-hero .hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(130px, 17vh, 200px) var(--gutter) clamp(48px, 8vh, 100px);
    max-width: 1160px;
}
.scene-kicker {
    display: block;
    margin-bottom: 24px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.immersive-hero h1 {
    font-size: clamp(48px, 6.5vw, 108px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-wrap: balance;
    max-width: 13ch;
}
.immersive-hero .hero-description {
    max-width: 40em;
    margin-top: 28px;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.6;
    color: #e6ece8;
    text-wrap: pretty;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 32px;
}
.hero-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 48px;
    padding: 13px 22px;
    background: var(--green);
    color: var(--ink);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition:
        background 180ms ease,
        color 180ms ease;
}
.hero-action:hover {
    background: #cef5a0;
}
.hero-action--secondary {
    border-color: currentColor;
    background: transparent;
    color: inherit;
}
.hero-action--secondary:hover {
    background: rgb(127 127 127 / 14%);
}
.hero-action .link-arrow {
    flex: 0 0 18px;
}
.hero-subnote {
    margin-top: 20px;
    font-size: 12px;
    color: #d3dbd5;
}
.immersive-section {
    padding: clamp(72px, 9vw, 144px) var(--gutter);
    position: relative;
}
.immersive-section--mist {
    background: #f0f3ec;
}
.scene-heading {
    font-size: clamp(36px, 4.9vw, 76px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -0.045em;
    max-width: 16ch;
    text-wrap: balance;
}
.scene-lead {
    margin-top: 24px;
    max-width: 44em;
    font-size: clamp(17px, 1.4vw, 21px);
    line-height: 1.65;
    text-wrap: pretty;
}
.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 56px;
}
.chapter-header > p {
    max-width: 33em;
}
.scene-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: clamp(32px, 6vw, 112px);
}
.scene-grid--reverse .scene-steps {
    grid-column: 2;
    grid-row: 1;
}
.scene-grid--reverse .scene-visual {
    grid-column: 1;
    grid-row: 1;
}
.scene-steps {
    min-width: 0;
}
.scene-step {
    padding-block: 40px;
    border-top: 1px solid currentColor;
    scroll-margin-top: 120px;
}
.scene-step h2,
.scene-step h3 {
    font-size: clamp(28px, 3.4vw, 50px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.scene-step p {
    margin-top: 22px;
    max-width: 35em;
}
.scene-step .scene-kicker {
    margin-bottom: 18px;
}
.scene-step .text-link {
    margin-top: 24px;
}
.scene-visual {
    min-width: 0;
    position: relative;
    align-self: start;
}
.scene-visual > img {
    width: 100%;
}
.is-scene-enhanced .scene-visual {
    position: sticky;
    top: 94px;
}
.is-scene-enhanced .scene-step {
    min-height: 65svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-color: transparent;
}
.is-scene-enhanced .scene-step > * {
    flex: 0 0 auto;
}
.scene-caption {
    margin-top: 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.is-scene-enhanced [data-scene-panel]:not(.is-active) {
    display: none;
}
[data-visual-step] {
    transition:
        border-color 260ms ease,
        background 260ms ease,
        color 260ms ease,
        opacity 260ms ease;
}
/* Workflow diagrams describe the process, without invented business metrics. */
.workflow-map {
    padding: clamp(24px, 3.4vw, 52px);
    background: #e8ede3;
    color: #000000;
    border: 1px solid #b9c6b4;
}
.workflow-map__label {
    margin-bottom: 36px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.workflow-node {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px 20px;
    border: 1px solid #b4c0b0;
    background: #f9faf7;
}
.workflow-node + .workflow-node {
    margin-top: 34px;
}
.workflow-node + .workflow-node::before {
    content: '';
    position: absolute;
    left: 35px;
    top: -35px;
    height: 34px;
    width: 1px;
    background: #84977d;
}
.workflow-node__number {
    font-size: 11px;
    color: #596851;
}
.workflow-node strong {
    display: block;
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 25px);
}
.workflow-node small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
}
.workflow-node__status {
    font-size: 12px;
}
.workflow-node.is-active,
.workflow-node.is-complete {
    background: var(--green);
    border-color: var(--green-hover);
}
.workflow-map__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 28px;
    font-size: 11px;
}
.hero-media--workflow {
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 60px 5vw;
    background: #000000;
}
.hero-media--workflow .workflow-map {
    width: 54%;
    min-width: 400px;
    transform: rotate(-5deg);
    background: #cddfc4;
}
.immersive-hero--diagram .hero-copy {
    max-width: 850px;
}
.immersive-hero--diagram .hero-media::after {
    background: linear-gradient(
        90deg,
        #000000 8%,
        rgb(0 0 0 / 90%) 38%,
        rgb(0 0 0 / 8%) 80%
    );
}
.scenario-preview {
    padding: 36px;
    background: #fff;
    color: var(--ink);
    border: 1px solid #d8ded4;
}
.scenario-preview__heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 24px;
    border-bottom: 1px solid #d8ded4;
}
.scenario-preview [data-scene-panel] {
    padding-top: 24px;
}
.scenario-preview [data-scene-panel] + [data-scene-panel] {
    margin-top: 32px;
    border-top: 1px solid #d8ded4;
}
.scenario-preview h3 {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.035em;
}
.scenario-preview p {
    margin-top: 18px;
    font-size: 15px;
}
.scenario-preview dl {
    margin: 24px 0 0;
}
.scenario-preview dl > div {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding-block: 12px;
    border-top: 1px solid #d8ded4;
}
.scenario-preview dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #697164;
}
.scenario-preview dd {
    margin: 0;
    font-size: 14px;
}
/* A source-backed explanation, clearly separate from the interactive demo. */
.knowledge-board {
    border: 1px solid #d6dfd0;
    background: #fff;
    color: var(--ink);
    padding: 30px;
}
.knowledge-board__title {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d6dfd0;
    font-size: 14px;
}
.knowledge-board__title small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.knowledge-library {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-block: 22px;
}
.knowledge-file {
    padding: 16px 10px;
    background: #edf2e9;
    font-size: 11px;
    min-width: 0;
}
.knowledge-file span {
    display: block;
    font-size: 22px;
    line-height: 1;
    margin-bottom: 14px;
    color: #6d7f60;
}
.knowledge-board__question {
    padding: 18px;
    margin-left: 30px;
    background: #000000;
    color: #fff;
    font-size: 14px;
}
.knowledge-board__answer {
    margin-top: 18px;
    padding: 18px;
    border-left: 3px solid var(--green);
    font-size: 14px;
}
.knowledge-board__answer strong {
    display: block;
    margin-bottom: 10px;
}
.knowledge-board__source {
    display: block;
    margin-top: 20px;
    border-top: 1px solid #d6dfd0;
    padding-top: 15px;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.knowledge-board [data-visual-step].is-active {
    outline: 2px solid #65903e;
    outline-offset: 5px;
}
.service-demo {
    padding-top: 48px;
}
.service-demo .automation-app {
    max-width: none;
    margin: 0;
}
.demo-chapter-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}
.demo-chapter-footer p {
    font-size: 12px;
    max-width: 50em;
}
/* One horizontal build story. It becomes a vertical document without enhancement. */
.build-stage {
    background: #000000;
    color: #fff;
    padding-block: 72px 56px;
    overflow: hidden;
}
.build-intro {
    padding-inline: var(--gutter);
    margin-bottom: 48px;
}
.build-intro .scene-heading {
    max-width: 24ch;
}
.build-viewport {
    overflow: hidden;
}
[data-horizontal-track] {
    display: grid;
    gap: 64px;
}
.build-panel {
    padding-inline: var(--gutter);
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: 48px;
    min-width: 0;
}
.build-panel__copy h3 {
    font-size: clamp(27px, 3.2vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 500;
}
.build-panel__copy p {
    margin-top: 24px;
    color: #c9d3c9;
    max-width: 28em;
    font-size: 16px;
}
.build-panel__visual {
    min-height: 300px;
    background: #e8ede3;
    padding: 28px;
    color: #000000;
}
.is-horizontal-enhanced .build-stage {
    position: sticky;
    top: 0;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.is-horizontal-enhanced [data-horizontal-track] {
    display: flex;
    width: 300%;
    gap: 0;
    transform: translateX(calc(var(--horizontal-progress, 0) * -66.666667%));
    will-change: transform;
}
.is-horizontal-enhanced .build-panel {
    flex: 0 0 33.333333%;
}
.is-horizontal-enhanced {
    min-height: 300svh;
}
.wireframe-page {
    padding: 22px;
    border: 1px solid #a8b59f;
    background: #f5f7f1;
}
.wireframe-page__nav {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    font-size: 10px;
    border-bottom: 1px solid #bac5b2;
}
.wireframe-page__hero {
    padding: 35px 0;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 24px;
    align-items: center;
}
.wireframe-page__hero strong {
    font-size: 25px;
    line-height: 1.2;
    font-weight: 500;
}
.wireframe-block {
    background: #d9e1d1;
    min-height: 116px;
    border: 1px solid #bcc8b1;
    display: grid;
    place-items: center;
    font-size: 11px;
}
.wireframe-lines {
    display: grid;
    gap: 12px;
}
.wireframe-lines span {
    display: block;
    height: 6px;
    background: #becab5;
}
.wireframe-lines span:last-child {
    width: 65%;
}
.browser-preview {
    padding: 14px 0 0;
    background: #f6f7f3;
    box-shadow: 0 12px 30px rgb(0 0 0 / 10%);
}
.browser-preview::before {
    content: '● ● ●';
    display: block;
    margin: 0 14px 12px;
    color: #aeb6a5;
    font-size: 7px;
    letter-spacing: 4px;
}
.browser-preview img {
    width: 100%;
}
.device-pair {
    position: relative;
    padding: 28px 56px 35px 12px;
}
.device-pair__desktop {
    width: 100%;
    border: 7px solid #242b25;
    border-radius: 8px;
}
.device-pair__mobile {
    position: absolute;
    width: 22%;
    height: auto;
    bottom: 0;
    right: 0;
    object-fit: contain;
    object-position: top;
    border: 5px solid #242b25;
    border-radius: 18px;
    background: #fff;
}
.website-hero-caption {
    position: absolute;
    z-index: 1;
    left: 18px;
    bottom: 18px;
    max-width: calc(100% - 36px);
    margin: 0;
    padding: 9px 12px;
    background: rgb(8 17 13 / 88%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
}
.website-process {
    background: var(--forest);
    color: var(--paper);
}
.website-process__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(42px, 7vw, 112px);
    width: min(100%, 1600px);
    margin-inline: auto;
    padding: clamp(72px, 9vw, 128px) var(--gutter);
}
.website-process__intro h2 {
    max-width: 13ch;
    font-size: clamp(36px, 4.8vw, 64px);
    font-weight: 500;
    line-height: 1.06;
    letter-spacing: -0.05em;
    text-wrap: balance;
}
.website-process__intro > p:last-child {
    max-width: 38ch;
    margin-top: 22px;
    color: #d7e0da;
    line-height: 1.65;
}
.website-process__steps {
    margin: 0;
    padding: 0;
    list-style: none;
}
.website-process__steps li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgb(238 245 240 / 24%);
}
.website-process__number {
    padding-top: 3px;
    color: #c1d0c5;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
.website-process__steps h3 {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.website-process__steps p {
    max-width: 56ch;
    margin-top: 9px;
    color: #d7e0da;
    font-size: 15px;
    line-height: 1.65;
}
.website-concept-carousel {
    display: flex;
    flex-direction: column;
    margin-top: 44px;
}
.website-concept-carousel .home-carousel-controls {
    position: static;
    order: -1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    height: auto;
    margin: 0 0 8px;
    pointer-events: auto;
}
.website-concept-carousel .home-carousel-controls > button {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
}
.website-concept-carousel.home-carousel .website-concept-track {
    display: flex;
    gap: clamp(18px, 2.4vw, 30px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-color: #bac7bb transparent;
    padding: 12px 4px 26px;
    margin-inline: -4px;
}
.website-concept-carousel.home-carousel .website-concept-card {
    flex: 0 0 min(82%, 1040px);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    color: var(--ink);
    text-decoration: none;
}
.website-concept-card > a {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}
.website-concept-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    border: 1px solid var(--line);
    background: #eef0eb;
}
.website-concept-card__label {
    margin: 17px 0 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.website-concept-card h3 {
    margin-top: 7px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 500;
    letter-spacing: -0.04em;
}
.website-concept-card__description {
    max-width: 58ch;
    margin-top: 9px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
.website-concept-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}
.website-concept-card__action .link-arrow {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}
.website-concept-card > a:hover .website-concept-card__action .link-arrow {
    transform: translateX(3px);
}
.website-concept-card > a:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 5px;
}
.website-concept-track:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 5px;
}
@media (max-width: 900px) {
    .website-process__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .website-process__intro h2 {
        max-width: 18ch;
    }
}
@media (max-width: 760px) {
    .website-hero-caption {
        left: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        font-size: 10px;
    }
    .website-process__inner {
        padding-block: 62px;
    }
    .website-process__steps li {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 12px;
        padding-block: 20px;
    }
    .website-concept-carousel {
        margin-top: 30px;
    }
    .website-concept-carousel.home-carousel .website-concept-track {
        gap: 16px;
    }
    .website-concept-carousel.home-carousel .website-concept-card {
        flex-basis: 88%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .website-concept-card__action .link-arrow {
        transition: none;
    }
}
.direction-visual {
    position: relative;
    min-height: 440px;
    background: #d7e8c8;
    padding: 36px;
}
.direction-visual img {
    width: 100%;
    aspect-ratio: 1.25;
    object-fit: cover;
}
.direction-visual__caption {
    margin-top: 20px;
    font-size: 12px;
}
.direction-links {
    display: grid;
    margin-top: 32px;
}
.direction-links a {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 18px;
    border-top: 1px solid currentColor;
    font-size: 18px;
}
.service-details {
    padding: 80px var(--gutter);
    background: #f2f4ee;
}
.service-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    margin-top: 44px;
}
.service-facts article {
    border-top: 1px solid #aeb9a5;
    padding-top: 24px;
}
.service-facts h3 {
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
}
.service-facts p {
    font-size: 15px;
    margin-top: 18px;
}
.service-note {
    margin-top: 32px;
    max-width: 68ch;
    font-size: 14px;
}
.related-reading {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 48px;
    padding: 72px var(--gutter);
    border-top: 1px solid var(--line);
}
.related-reading h2 {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.03em;
}
.related-reading nav {
    display: grid;
}
.related-reading nav a {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
/* Shared portfolio, company and concept wrappers. */
.portfolio-index {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 40px;
    padding: 36px var(--gutter);
    border-bottom: 1px solid var(--line);
}
.portfolio-index a {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
}
.project-chapters {
    padding: 0 var(--gutter) 96px;
}
.project-chapter {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    background: var(--paper);
    padding-block: 60px;
    border-top: 1px solid var(--line);
    gap: 42px;
    align-items: center;
}
.project-chapter__media {
    min-width: 0;
    overflow: hidden;
}
.project-chapter__media img {
    width: 100%;
    max-height: 70svh;
    object-fit: cover;
    object-position: top;
}
.project-chapter__copy h2 {
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
}
.project-chapter__copy p {
    font-size: 16px;
    margin-top: 24px;
}
.project-chapter__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}
.project-chapter__copy .hero-actions {
    margin-top: 28px;
}
.is-stack-enhanced .project-chapter {
    position: sticky;
    top: 80px;
    transform: scale(calc(1 - var(--stack-progress, 0) * 0.035));
    transform-origin: center top;
}
.concept-brief,
.concept-decisions {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    gap: 56px;
    padding: 80px var(--gutter);
}
.concept-brief h2,
.concept-decisions h2 {
    font-size: clamp(30px, 3.8vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 500;
}
.concept-brief p + p {
    margin-top: 20px;
}
.concept-brief dl {
    margin: 0;
}
.concept-brief dl > div {
    padding-block: 18px;
    border-top: 1px solid var(--line);
}
.concept-brief dt {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}
.concept-brief dd {
    margin: 0;
    font-size: 16px;
}
.concept-decisions {
    background: #f0f3ec;
}
.concept-decisions ol,
.concept-decisions ul {
    list-style: none;
    padding: 0;
}
.concept-decisions li {
    padding-block: 24px;
    border-top: 1px solid #b6c0ad;
}
.concept-decisions h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}
.concept-decisions p {
    font-size: 16px;
}
.method-flow {
    padding: 36px;
    background: #e8ede3;
    color: #000000;
}
.method-flow ol {
    padding: 0;
    list-style: none;
}
.method-flow li {
    padding: 22px;
    border: 1px solid #b1bfa5;
    background: #f8faf4;
}
.method-flow li + li {
    margin-top: 18px;
}
.method-flow h3,
.method-flow strong {
    display: block;
    font-size: 23px;
    font-weight: 500;
}
.method-flow p {
    font-size: 14px;
    margin-top: 12px;
}
.method-flow .is-active,
.method-flow .is-complete {
    background: var(--green);
}
.contact-priority {
    padding: 64px var(--gutter);
    background: #e9f0e2;
}
.contact-priority h2 {
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: -0.04em;
}
@media (min-width: 1600px) {
    .immersive-hero .hero-copy {
        max-width: 1280px;
    }
}
@media (max-width: 1000px) {
    .hero-media--workflow .workflow-map {
        width: 60%;
    }
    .immersive-hero--diagram .hero-copy {
        max-width: 78%;
    }
    .scene-grid {
        gap: 36px;
        grid-template-columns: 1fr 1fr;
    }
    .knowledge-board {
        padding: 20px;
    }
    .knowledge-library {
        gap: 6px;
    }
    .knowledge-file {
        font-size: 10px;
    }
    .workflow-node {
        grid-template-columns: 20px 1fr;
        gap: 10px;
        padding: 18px 14px;
    }
    .workflow-node__status {
        display: none;
    }
    .project-chapter {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        gap: 28px;
    }
}
@media (max-width: 800px) {
    .immersive-hero {
        min-height: 760px;
        min-height: 94svh;
    }
    .immersive-hero .hero-copy,
    .immersive-hero--diagram .hero-copy {
        max-width: none;
        padding: 160px var(--gutter) 44px;
    }
    .immersive-hero h1 {
        font-size: clamp(43px, 9vw, 74px);
    }
    .immersive-hero .hero-description {
        max-width: 36em;
        font-size: 17px;
    }
    .immersive-hero .hero-media::after {
        background: linear-gradient(
            0deg,
            rgb(8 17 13 / 94%),
            rgb(8 17 13 / 76%) 58%,
            rgb(8 17 13 / 20%)
        );
    }
    .hero-media--workflow {
        align-items: start;
        padding: 35px 18px;
    }
    .hero-media--workflow .workflow-map {
        width: 90%;
        min-width: 0;
        opacity: 0.8;
        transform: rotate(-4deg) translateX(35%);
    }
    .scene-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .scene-steps,
    .scene-visual {
        width: 100%;
    }
    .scene-grid--reverse .scene-steps,
    .scene-grid--reverse .scene-visual {
        grid-column: auto;
        grid-row: auto;
    }
    .scene-step {
        padding-block: 32px;
    }
    .is-scene-enhanced .scene-visual {
        position: relative;
        top: auto;
    }
    .is-scene-enhanced .scene-step {
        min-height: auto;
        padding-block: 36px;
    }
    .is-scene-enhanced [data-scene-panel]:not(.is-active) {
        display: block;
    }
    .chapter-header {
        display: block;
    }
    .chapter-header > p {
        margin-top: 28px;
    }
    .build-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .build-panel__visual {
        min-height: 260px;
        padding: 20px;
    }
    .build-stage {
        padding-block: 64px;
    }
    .build-panel__copy p {
        max-width: 40em;
    }
    .concept-gallery {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .concept-gallery img {
        aspect-ratio: 1.5;
    }
    .service-facts {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .related-reading {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-chapter {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-block: 36px;
    }
    .project-chapter__media img {
        max-height: none;
    }
    .is-stack-enhanced .project-chapter {
        position: relative;
        top: auto;
        transform: none;
    }
    .concept-brief,
    .concept-decisions {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-block: 60px;
    }
    .direction-visual {
        min-height: 0;
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        align-items: stretch;
        gap: 12px;
    }
    .hero-action {
        width: 100%;
    }
    .immersive-hero h1 {
        font-size: 44px;
    }
    .scene-heading {
        font-size: 38px;
    }
    .scene-kicker {
        font-size: 10px;
    }
    .workflow-map {
        padding: 22px 18px;
    }
    .knowledge-board__question {
        margin-left: 12px;
    }
    .knowledge-library {
        grid-template-columns: 1fr;
    }
    .knowledge-file {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 11px;
        padding: 10px;
    }
    .knowledge-file span {
        margin: 0;
        font-size: 15px;
    }
    .scenario-preview {
        padding: 24px;
    }
    .scenario-preview dl > div {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }
    .scene-step h2,
    .scene-step h3 {
        font-size: 30px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .is-scene-enhanced .scene-visual,
    .is-stack-enhanced .project-chapter {
        position: relative;
        top: auto;
        transform: none;
    }
    .is-scene-enhanced .scene-step {
        min-height: auto;
        padding-block: 40px;
    }
    .is-scene-enhanced [data-scene-panel]:not(.is-active) {
        display: block;
    }
    .is-horizontal-enhanced {
        min-height: auto;
    }
    .is-horizontal-enhanced .build-stage {
        position: relative;
        height: auto;
    }
    .is-horizontal-enhanced [data-horizontal-track] {
        display: grid;
        width: auto;
        transform: none;
        gap: 64px;
        will-change: auto;
    }
    .is-horizontal-enhanced .build-panel {
        flex: none;
    }
    [data-visual-step],
    .hero-action {
        transition: none;
    }
}
.hero-media--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #000000;
}
.hero-media--duo figure {
    min-width: 0;
    height: 100%;
}
.hero-media--duo figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media--duo figure:first-child img {
    object-position: 32% center;
}
.is-scene-enhanced .scene-step {
    min-height: 94svh;
}
.project-chapter__copy h3 {
    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.04em;
}
.wrap .portfolio-index {
    padding-inline: 0;
}
.concept-brief h3 {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: 14px;
}
.concept-brief p + h3 {
    margin-top: 32px;
}
.method-flow figure + figure {
    margin-top: 28px;
}
.method-flow figcaption {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.5;
}
.contact-priority {
    color: var(--ink);
}
.contact-intro--compact {
    min-height: auto;
    padding-bottom: 44px;
}
.contact-intro--compact .contact-context {
    color: var(--muted);
    max-width: 65ch;
}
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 30px;
}
html[data-home-opening] .home-hero-actions:not([data-home-started]) {
    opacity: 0;
    visibility: hidden;
}
.article-toc {
    margin-block: 40px;
    padding: 28px 0;
    border-block: 1px solid var(--line);
}
.article-toc > p {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
}
.article-toc ol {
    padding-left: 22px;
    display: grid;
    gap: 12px;
}
.article-toc li {
    font-size: 16px;
}
.article-toc a {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: #a8b39e;
}
.article-example {
    padding: 32px;
    margin-block: 40px;
    background: #edf3e7;
    border-left: 3px solid #7f9e5c;
}
.article-example h2 {
    margin-top: 0;
}
.article-example p,
.article-example li {
    font-size: 16px;
}
.article-example ol {
    margin-top: 20px;
}
.article-sources {
    padding-top: 32px;
    margin-top: 48px;
    border-top: 1px solid var(--line);
}
.article-sources ul {
    padding-left: 20px;
    display: grid;
    gap: 14px;
}
.article-sources li {
    font-size: 14px;
    overflow-wrap: anywhere;
}
.article-sources a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.article-updated {
    color: var(--muted);
    font-size: 12px;
    margin-top: 16px;
}
.blog-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 32px;
    margin-top: 32px;
}
.blog-topics a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
@media (max-width: 800px) {
    .immersive-hero .hero-copy {
        padding-top: 128px;
    }
    .hero-media--duo {
        grid-template-columns: 1fr 1fr;
    }
    .hero-media--duo figure:first-child img {
        object-position: 60% center;
    }
    .is-scene-enhanced .scene-visual {
        order: -1;
        position: sticky;
        top: 76px;
        z-index: 3;
        background: var(--paper);
    }
    .immersive-section--mist.is-scene-enhanced .scene-visual {
        background: #f0f3ec;
    }
    .is-scene-enhanced .scene-step {
        min-height: 90svh;
        padding-block: 44px;
        justify-content: center;
    }
    .is-scene-enhanced [data-scene-panel]:not(.is-active) {
        display: none;
    }
    .is-scene-enhanced .workflow-map {
        padding: 14px 16px;
    }
    .is-scene-enhanced .workflow-map__label {
        margin-bottom: 12px;
        font-size: 10px;
    }
    .is-scene-enhanced .workflow-node {
        padding: 10px 12px;
        grid-template-columns: 20px 1fr;
    }
    .is-scene-enhanced .workflow-node + .workflow-node {
        margin-top: 15px;
    }
    .is-scene-enhanced .workflow-node + .workflow-node::before {
        height: 15px;
        top: -16px;
        left: 23px;
    }
    .is-scene-enhanced .workflow-node strong {
        font-size: 16px;
    }
    .is-scene-enhanced .workflow-node small {
        font-size: 10px;
        margin-top: 2px;
    }
    .is-scene-enhanced .workflow-map__foot {
        padding-top: 12px;
        font-size: 9px;
        gap: 4px;
    }
    .is-scene-enhanced .scene-caption {
        font-size: 10px;
        margin-top: 8px;
    }
    .is-scene-enhanced .scenario-preview {
        padding: 18px;
    }
    .is-scene-enhanced .scenario-preview__heading {
        padding-bottom: 12px;
        font-size: 10px;
    }
    .is-scene-enhanced .scenario-preview [data-scene-panel] {
        padding-top: 14px;
        margin-top: 0;
        border-top: 0;
    }
    .is-scene-enhanced .scenario-preview h3 {
        font-size: 22px;
    }
    .is-scene-enhanced .scenario-preview dl {
        margin-top: 14px;
    }
    .is-scene-enhanced .scenario-preview dl > div {
        padding-block: 8px;
        grid-template-columns: 56px 1fr;
        gap: 10px;
    }
    .is-scene-enhanced .scenario-preview dd {
        font-size: 12px;
    }
    .is-scene-enhanced .scenario-preview dt {
        font-size: 9px;
    }
    .is-scene-enhanced .knowledge-board {
        padding: 14px;
    }
    .is-scene-enhanced .knowledge-board__title {
        padding-bottom: 12px;
        font-size: 12px;
    }
    .is-scene-enhanced .knowledge-board__title small {
        font-size: 8px;
    }
    .is-scene-enhanced .knowledge-library {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin-block: 12px;
    }
    .is-scene-enhanced .knowledge-file {
        padding: 8px 6px;
        font-size: 9px;
        display: block;
    }
    .is-scene-enhanced .knowledge-file span {
        display: none;
    }
    .is-scene-enhanced .knowledge-board__question {
        margin-left: 12px;
        padding: 10px 12px;
        font-size: 12px;
    }
    .is-scene-enhanced .knowledge-board__answer {
        margin-top: 10px;
        padding: 10px 12px;
        font-size: 11px;
        line-height: 1.5;
    }
    .is-scene-enhanced .knowledge-board__answer strong {
        margin-bottom: 6px;
    }
    .is-scene-enhanced .knowledge-board__source {
        margin-top: 10px;
        padding-top: 8px;
        font-size: 9px;
    }
    .is-scene-enhanced .direction-visual {
        padding: 16px;
    }
    .is-scene-enhanced .direction-visual img {
        max-height: 28svh;
        object-fit: contain;
        aspect-ratio: auto;
    }
    .is-scene-enhanced .direction-visual__caption {
        font-size: 10px;
        margin-top: 10px;
    }
    .is-scene-enhanced .direction-visual .workflow-map {
        border: 0;
        padding: 0;
    }
    .is-scene-enhanced .method-flow {
        padding: 16px;
    }
    .is-scene-enhanced .method-flow img {
        max-height: 27svh;
        object-fit: contain;
        width: 100%;
    }
    .is-scene-enhanced .method-flow figcaption {
        font-size: 11px;
        margin-top: 10px;
    }
    .is-horizontal-enhanced .build-stage {
        padding-block: 88px 24px;
    }
    .is-horizontal-enhanced .build-intro {
        margin-bottom: 24px;
    }
    .is-horizontal-enhanced .build-intro .scene-kicker {
        margin-bottom: 12px;
    }
    .is-horizontal-enhanced .build-intro .scene-heading {
        font-size: 34px;
        max-width: 20ch;
    }
    .is-horizontal-enhanced .build-panel {
        gap: 22px;
    }
    .is-horizontal-enhanced .build-panel__copy .scene-kicker {
        margin-bottom: 10px;
    }
    .is-horizontal-enhanced .build-panel__copy h3 {
        font-size: 26px;
    }
    .is-horizontal-enhanced .build-panel__copy p {
        font-size: 14px;
        margin-top: 14px;
    }
    .is-horizontal-enhanced .build-panel__visual {
        min-height: 0;
        padding: 16px;
    }
    .is-horizontal-enhanced .wireframe-page {
        padding: 14px;
    }
    .is-horizontal-enhanced .wireframe-page__nav {
        padding-bottom: 12px;
    }
    .is-horizontal-enhanced .wireframe-page__hero {
        padding-block: 20px;
        gap: 14px;
    }
    .is-horizontal-enhanced .wireframe-page__hero strong {
        font-size: 20px;
    }
    .is-horizontal-enhanced .wireframe-block {
        min-height: 70px;
    }
    .is-horizontal-enhanced .browser-preview img {
        max-height: 24svh;
        object-fit: contain;
    }
    .is-horizontal-enhanced .device-pair {
        padding: 0 40px 10px 0;
    }
    .is-horizontal-enhanced .device-pair__desktop {
        max-height: 25svh;
        object-fit: contain;
        border-width: 4px;
    }
    .is-horizontal-enhanced .device-pair__mobile {
        border-width: 3px;
        border-radius: 8px;
    }
    .is-stack-enhanced .project-chapter {
        position: sticky;
        top: 76px;
        transform: scale(calc(1 - var(--stack-progress, 0) * 0.025));
    }
    .is-stack-enhanced .project-chapter__media img {
        max-height: 35svh;
        object-fit: cover;
    }
    .home-hero-actions {
        gap: 12px;
    }
    .home-hero-actions .hero-action {
        width: auto;
    }
    .article-example {
        padding: 24px;
    }
}
@media (max-width: 380px) {
    .immersive-hero h1 {
        font-size: 40px;
    }
    .immersive-hero .hero-description {
        font-size: 16px;
        margin-top: 22px;
    }
    .immersive-hero .hero-actions {
        margin-top: 24px;
    }
    .immersive-hero .hero-copy {
        padding-top: 112px;
        padding-bottom: 32px;
    }
    .hero-subnote {
        font-size: 10px;
        margin-top: 14px;
    }
    .is-horizontal-enhanced .build-intro .scene-heading {
        font-size: 28px;
    }
    .is-horizontal-enhanced .build-panel__copy h3 {
        font-size: 24px;
    }
    .is-horizontal-enhanced .build-panel__copy p {
        font-size: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .is-scene-enhanced .scene-visual,
    .is-stack-enhanced .project-chapter {
        position: relative;
        top: auto;
        transform: none;
    }
    .is-scene-enhanced .scene-step {
        min-height: auto;
        padding-block: 36px;
    }
    .is-scene-enhanced [data-scene-panel]:not(.is-active) {
        display: block;
    }
    .is-horizontal-enhanced .build-stage {
        position: relative;
        height: auto;
    }
    .is-horizontal-enhanced [data-horizontal-track] {
        display: grid;
        width: auto;
        transform: none;
        gap: 64px;
    }
    .is-horizontal-enhanced {
        min-height: auto;
    }
}
/* Reserve a quiet text area over technical visuals. */
.immersive-hero--diagram .hero-copy {
    width: 65%;
    max-width: 1000px;
    padding-right: 28px;
    padding-top: 120px;
}
.immersive-hero--diagram h1 {
    font-size: clamp(44px, 4.6vw, 84px);
    max-width: 17ch;
}
.immersive-hero--diagram .hero-description {
    max-width: 33ch;
    font-size: clamp(16px, 1.3vw, 20px);
}
.immersive-hero--diagram .hero-media::after {
    background: linear-gradient(
        90deg,
        #000000 0%,
        #000000 48%,
        rgb(0 0 0 / 94%) 57%,
        rgb(0 0 0 / 12%) 78%
    );
}
.hero-media--workflow {
    padding-right: 3vw;
}
.hero-media--workflow .workflow-map {
    width: 43%;
    min-width: 0;
}
.immersive-page .site-header .header-contact {
    padding: 10px 14px;
    color: #111;
    background: #fff;
}
@media (max-width: 1000px) {
    .immersive-hero--diagram .hero-copy {
        width: 76%;
        max-width: none;
    }
}
@media (max-width: 800px) {
    .immersive-hero--diagram .hero-copy {
        width: 100%;
        padding: 120px var(--gutter) 36px;
    }
    .immersive-hero--diagram h1 {
        font-size: clamp(40px, 8vw, 62px);
        max-width: 17ch;
    }
    .immersive-hero--diagram .hero-description {
        max-width: 34ch;
    }
    .immersive-hero--diagram .hero-media::after {
        background: linear-gradient(
            0deg,
            #000000 22%,
            rgb(0 0 0 / 98%) 65%,
            rgb(0 0 0 / 85%) 86%,
            rgb(0 0 0 / 62%)
        );
    }
    .hero-media--workflow .workflow-map {
        width: 85%;
    }
}
@media (max-width: 380px) {
    .immersive-hero--diagram .hero-copy {
        padding-top: 108px;
        padding-bottom: 28px;
    }
    .immersive-hero--diagram h1 {
        font-size: 37px;
    }
    .immersive-hero--diagram .hero-description {
        font-size: 15px;
        margin-top: 20px;
    }
}
.concept-hero--interface {
    background: #000000;
}
.concept-hero--interface .hero-media--interface {
    background: #000000;
}
.concept-hero--interface .hero-media--interface > img {
    position: absolute;
    width: 62%;
    height: auto;
    right: -8%;
    top: 18%;
    object-fit: contain;
}
.concept-hero--interface .hero-media::after {
    background: linear-gradient(
        90deg,
        #000000 5%,
        #000000 43%,
        rgb(0 0 0 / 90%) 56%,
        rgb(0 0 0 / 8%) 78%
    );
}
.concept-hero--interface .hero-copy {
    width: 65%;
    max-width: 1000px;
    padding-right: 24px;
}
.concept-hero--interface h1 {
    font-size: clamp(44px, 5.4vw, 84px);
}
.concept-hero--interface .hero-description {
    max-width: 34ch;
}
.article-page .editorial-title {
    hyphens: none;
    overflow-wrap: normal;
}
.preview-mode .immersive-hero,
.preview-mode .immersive-section,
.preview-mode .concept-brief,
.preview-mode .concept-decisions,
.preview-mode .portfolio-index,
.preview-mode .related-reading {
    display: none !important;
}
@media (max-width: 800px) {
    .is-scene-enhanced .workflow-node strong {
        font-size: 15px;
        line-height: 1.2;
    }
    .is-scene-enhanced .workflow-node small {
        line-height: 1.35;
    }
    .is-scene-enhanced .workflow-map__foot {
        font-size: 9px;
        line-height: 1.3;
    }
    .is-scene-enhanced .knowledge-board {
        padding: 12px;
    }
    .is-scene-enhanced .knowledge-board__answer {
        padding: 8px 10px;
    }
    .is-scene-enhanced .scene-caption {
        line-height: 1.35;
        font-size: 9px;
    }
    .concept-hero--interface .hero-copy {
        width: 100%;
        padding: 120px var(--gutter) 40px;
    }
    .concept-hero--interface h1 {
        font-size: clamp(40px, 8vw, 62px);
    }
    .concept-hero--interface .hero-media--interface > img {
        width: 92%;
        top: 70px;
        right: -15%;
    }
    .concept-hero--interface .hero-media::after {
        background: linear-gradient(
            0deg,
            #000000 10%,
            rgb(0 0 0 / 97%) 65%,
            rgb(0 0 0 / 65%)
        );
    }
}
/* Motion is attached to the content it explains and can always be stopped. */
.workflow-map[data-ambient-motion],
.knowledge-board[data-ambient-motion] {
    animation: none;
}
.workflow-map[data-ambient-motion] .workflow-node + .workflow-node::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #42622e;
    left: 33px;
    top: -35px;
    animation: workflow-signal 4.8s linear infinite;
}
.workflow-map[data-ambient-motion] .workflow-node:nth-of-type(3)::after {
    animation-delay: 1.6s;
}
@keyframes workflow-signal {
    0%,
    7% {
        transform: translateY(0);
        opacity: 0;
    }
    14% {
        opacity: 1;
    }
    48% {
        transform: translateY(31px);
        opacity: 1;
    }
    55%,
    100% {
        transform: translateY(31px);
        opacity: 0;
    }
}
.knowledge-board[data-ambient-motion] .knowledge-file {
    position: relative;
}
.knowledge-board[data-ambient-motion] .knowledge-file::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    right: 8px;
    top: 8px;
    background: #4d7134;
    animation: source-signal 4.8s ease-in-out infinite;
}
.knowledge-board[data-ambient-motion] .knowledge-file:nth-child(2)::after {
    animation-delay: 0.9s;
}
.knowledge-board[data-ambient-motion] .knowledge-file:nth-child(3)::after {
    animation-delay: 1.8s;
}
@keyframes source-signal {
    0%,
    100% {
        opacity: 0.25;
    }
    40% {
        opacity: 1;
    }
}
.scene-step [data-emphasis] {
    font-style: normal;
    transition:
        color 400ms ease,
        box-shadow 400ms ease;
}
.scene-step.is-active [data-emphasis] {
    color: var(--forest);
    box-shadow: inset 0 -0.13em 0 var(--green);
}
[data-motion-paused='true'] [data-ambient-motion] *,
[data-motion-paused='true'] [data-ambient-motion] *::before,
[data-motion-paused='true'] [data-ambient-motion] *::after,
.ambient-motion-ready [data-ambient-motion]:not(.is-ambient-visible) *,
.ambient-motion-ready [data-ambient-motion]:not(.is-ambient-visible) *::before,
.ambient-motion-ready [data-ambient-motion]:not(.is-ambient-visible) *::after {
    animation-play-state: paused !important;
}
body:has(.immersive-hero) .site-header .header-contact,
.site-header .header-contact {
    padding: 10px 14px;
    background: #fff;
    color: #111;
}
@media (max-width: 800px) {
    .is-scene-enhanced
        .workflow-map[data-ambient-motion]
        .workflow-node
        + .workflow-node::after {
        left: 21px;
        top: -16px;
        animation-name: workflow-signal-mobile;
    }
    @keyframes workflow-signal-mobile {
        0%,
        7% {
            transform: translateY(0);
            opacity: 0;
        }
        14% {
            opacity: 1;
        }
        48% {
            transform: translateY(12px);
            opacity: 1;
        }
        55%,
        100% {
            transform: translateY(12px);
            opacity: 0;
        }
    }
    .is-scene-enhanced .knowledge-board {
        min-height: 280px;
        padding: 18px;
    }
    .is-scene-enhanced .knowledge-board__title {
        font-size: 13px;
        line-height: 1.4;
        padding-bottom: 14px;
    }
    .is-scene-enhanced .knowledge-board__title small {
        font-size: 10px;
        max-width: 10ch;
    }
    .is-scene-enhanced .knowledge-library {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-block: 18px 0;
    }
    .is-scene-enhanced .knowledge-file {
        font-size: 14px;
        line-height: 1.4;
        padding: 12px;
    }
    .is-scene-enhanced .knowledge-board__question {
        font-size: 14px;
        line-height: 1.45;
        padding: 12px;
        margin: 14px 0 0;
    }
    .is-scene-enhanced .knowledge-board__answer {
        font-size: 14px;
        line-height: 1.5;
        padding: 8px 0 8px 12px;
        margin-top: 14px;
    }
    .is-scene-enhanced .knowledge-board__source {
        font-size: 12px;
        line-height: 1.45;
        margin-top: 14px;
        padding-top: 12px;
    }
    .is-scene-enhanced[data-active-step='0'] .knowledge-board__question,
    .is-scene-enhanced[data-active-step='0'] .knowledge-board__answer,
    .is-scene-enhanced[data-active-step='1'] .knowledge-library,
    .is-scene-enhanced[data-active-step='1'] .knowledge-board__source,
    .is-scene-enhanced[data-active-step='2'] .knowledge-library,
    .is-scene-enhanced[data-active-step='2'] .knowledge-board__question {
        display: none;
    }
}
@media (max-width: 700px), (max-width: 1100px) and (max-height: 500px) {
    .ai-widget-toggle {
        min-width: 56px;
        min-height: 44px;
        justify-content: center;
        padding: 10px 12px;
        gap: 8px;
    }
    .ai-widget-toggle > span:not(.ai-widget-toggle-dot) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .ai-widget-toggle::after {
        content: 'AI';
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    [data-ambient-motion] *,
    [data-ambient-motion] *::before,
    [data-ambient-motion] *::after {
        animation: none !important;
    }
    .scene-step [data-emphasis] {
        transition: none;
    }
}
@media (max-width: 800px) {
    .is-scene-enhanced .knowledge-board__source {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .article-page .editorial-title {
        font-size: clamp(34px, 10.625vw, 44px);
    }
}
.workflow-map--complete {
    padding: clamp(24px, 2.2vw, 40px);
}
.workflow-map--complete .workflow-map__label {
    max-width: 38ch;
    font-size: 11px;
    line-height: 1.55;
}
.workflow-map--complete .workflow-node {
    padding-block: 18px;
}
.workflow-map--complete .workflow-node strong {
    font-size: clamp(18px, 1.65vw, 24px);
    line-height: 1.25;
}
.workflow-branches {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
}
.workflow-branch {
    display: block;
    border-left: 2px solid #809071;
    padding-left: 10px;
}
.workflow-branch--review {
    border-left-color: #996735;
}
.workflow-map--complete .workflow-map__foot {
    display: block;
}
@media (max-width: 800px) {
    .is-scene-enhanced .workflow-map--complete {
        padding: 12px 14px;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-map__label {
        margin-bottom: 12px;
        font-size: 9px;
        line-height: 1.4;
        max-width: none;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-node {
        padding: 7px 10px;
        grid-template-columns: 18px 1fr;
        gap: 8px;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-node strong {
        font-size: 14px;
        line-height: 1.25;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-node + .workflow-node {
        margin-top: 12px;
    }
    .is-scene-enhanced
        .workflow-map--complete
        .workflow-node
        + .workflow-node::before {
        top: -13px;
        height: 12px;
        left: 19px;
    }
    .is-scene-enhanced
        .workflow-map--complete[data-ambient-motion]
        .workflow-node
        + .workflow-node::after {
        left: 17px;
        top: -13px;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-branches {
        margin-top: 8px;
        gap: 4px;
        font-size: 12px;
        line-height: 1.4;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-branch {
        padding-left: 7px;
    }
    .is-scene-enhanced .workflow-map--complete .workflow-map__foot {
        padding-top: 10px;
        font-size: 9px;
        line-height: 1.4;
    }
}

/* Marketing pages share a calm, two-column introduction with a visible CTA. */
.immersive-hero {
    min-height: clamp(560px, calc(100svh - 82px), 760px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    background: #f4f6f2;
    color: var(--ink);
}
.immersive-hero .hero-media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    width: auto;
    height: clamp(330px, 42vw, 580px);
    margin: 32px var(--gutter) 32px 0;
    background: #e8ede4;
}
.immersive-hero .hero-media::after {
    display: none;
}
.immersive-hero .hero-copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 780px;
    padding: 64px 24px 64px var(--gutter);
    color: var(--ink);
}
.immersive-hero h1 {
    max-width: 13ch;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}
.immersive-hero .hero-description {
    max-width: 38em;
    margin-top: 22px;
    color: var(--muted);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.6;
}
.immersive-hero .hero-subnote {
    color: var(--muted);
}
.immersive-hero .hero-action {
    background: var(--ink);
    color: var(--paper);
}
.immersive-hero .hero-action:hover {
    background: var(--forest);
}
.immersive-hero .hero-action--secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.immersive-hero .hero-action--secondary:hover {
    background: #e8ede4;
}
.immersive-hero .hero-media--duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.immersive-hero .hero-media--duo figure {
    min-width: 0;
    height: 100%;
    overflow: hidden;
}
.immersive-hero .hero-media--duo figure:first-child {
    margin-top: 42px;
}
.immersive-hero .hero-media--duo figure:last-child {
    margin-bottom: 42px;
}
.immersive-hero .hero-media--duo figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.immersive-hero .hero-media--workflow {
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 42px);
}
.immersive-hero .hero-media--workflow .workflow-map {
    width: 100%;
    max-width: 570px;
    box-shadow: 0 24px 70px rgb(20 61 43 / 12%);
}
@media (max-width: 800px) {
    .immersive-hero {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr);
        padding: 32px var(--gutter) 40px;
        gap: 28px;
    }
    .immersive-hero .hero-copy {
        grid-column: 1;
        grid-row: 1;
        max-width: 720px;
        padding: 26px 0 0;
    }
    .immersive-hero .hero-media {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: auto;
        min-height: 280px;
        aspect-ratio: 1.3;
        margin: 0;
    }
    .immersive-hero h1 {
        font-size: clamp(42px, 8.5vw, 64px);
    }
    .immersive-hero .hero-media--duo {
        min-height: 270px;
        aspect-ratio: 1.2;
    }
    .immersive-hero .hero-media--workflow {
        min-height: 0;
        padding: 18px;
        aspect-ratio: auto;
    }
}
@media (max-width: 420px) {
    .immersive-hero {
        padding-inline: 18px;
    }
    .immersive-hero .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .immersive-hero .hero-action {
        justify-content: space-between;
    }
}

/* Let the first immersive hero occupy the space behind the fixed header. */
main:has(> .immersive-hero:first-child) {
    padding-top: 0;
}
main:has(> .immersive-hero:first-child) > .immersive-hero:first-child {
    min-height: 100svh;
}
@media (max-width: 800px) {
    main:has(> .immersive-hero:first-child) > .immersive-hero:first-child {
        min-height: auto;
        padding-top: calc(32px + 76px);
    }
}
@media (max-width: 760px) {
    main:has(> .immersive-hero:first-child) > .immersive-hero:first-child {
        padding-top: calc(32px + 72px);
    }
}
