/* Homepage-owned compositions, after shared typography and mobile defaults. */
[data-page="home"] { --home-paper: #edf2f3; --home-white: #f8fbfc; --home-ink: #17313f; --home-muted: #526e7a; --home-line: #17313f26; --home-accent: #527f91; --home-side: max(24px, calc((100% - 1200px) / 2)); --home-heading: clamp(30px, 4.2vw, 60px); }
[data-page="home"] main > :where(section:not(.story-hero)) { position: relative; z-index: 6; min-height: 0; padding: 88px var(--home-side); color: var(--home-ink); background: var(--home-paper); scroll-margin-top: 76px; }
[data-page="home"] main > :where(section:not(.story-hero)) h2 { max-width: none; margin: 0; font-size: var(--home-heading); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
[data-page="home"] main > :where(section:not(.story-hero)) p { font-size: 16px; line-height: 1.65; }
[data-page="home"] main > :where(section:not(.story-hero)) { overflow-wrap: anywhere; }
[data-page="home"] :is(a, button, summary):focus-visible { outline: 2px solid var(--home-accent); outline-offset: 5px; }
[data-page="home"] .home-eyebrow { margin: 0 0 20px; color: var(--home-muted); font: 500 13px/1.5 "IBM Plex Mono", monospace; letter-spacing: .1em; }
[data-page="home"] .home-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 12px 0; color: inherit; border-bottom: 1px solid currentColor; font-size: 16px; text-decoration: none; }
.home-link > span { font-size: 22px; transition: transform 180ms ease; }
.home-link:hover > span { transform: translate(3px, -3px); }

/* Hero actions remain available as the architecture assembles. */
[data-page="home"] .story-hero__content { top: auto; bottom: 27%; left: var(--home-side); right: var(--home-side); width: auto; pointer-events: none; }
body[data-page="home"] #story-hero-title { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
[data-page="home"] .story-hero__kicker { display: block; max-width: none; color: #173747; font: 500 clamp(16px, 1.3vw, 19px)/1.5 "Inter Tight", sans-serif; letter-spacing: -.01em; text-transform: none; text-shadow: none; }
[data-page="home"] .story-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; pointer-events: auto; }
[data-page="home"] .story-hero__actions::before { display: none; }
[data-page="home"] .story-hero__actions .button { min-height: 48px; padding: 10px 18px; border-radius: 6px; font-size: 15px; font-weight: 500; }
[data-page="home"] .story-hero__actions .button--primary { padding-right: 8px; }
[data-page="home"] .story-hero__project-cta-arrow { width: 32px; height: 32px; flex-basis: 32px; border-radius: 3px; }
[data-page="home"] .story-hero__project-cta-label { min-width: 0; }
[data-page="home"] .story-hero__scroll-cue { right: auto; left: var(--home-side); bottom: 38px; }
.story-hero__fallback-art { display: none; }
/* Return visit: a complete, moonlit landscape. The moon is decorative and
   anchored to the hero stage, never to subsequent page sections. */
[data-story-theme="night"] .story-hero__stage::after {
    content: ""; position: absolute; z-index: 2; top: 18%; right: 64%;
    width: clamp(46px, 5vw, 72px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    background: radial-gradient(ellipse at 28% 31%, #8097ad30 0 8%, transparent 21%), radial-gradient(ellipse at 42% 61%, #8298ae26 0 12%, transparent 25%), radial-gradient(ellipse at 65% 42%, #8b9db226 0 10%, transparent 20%), radial-gradient(circle at 67% 74%, #8298ae22 0 5%, transparent 13%), radial-gradient(circle at 36% 30%, #fffae6, #e1e9ed 62%, #aabfd0);
    box-shadow: 0 0 28px #e0edff33, 0 0 90px #b3d3ff26;
}
[data-story-theme="night"] .story-hero__backdrop { background: linear-gradient(#071427, #304e68); }
body[data-hero-theme="night"] .story-hero__atmosphere { background: linear-gradient(180deg, #06142612, transparent 65%, #06142622); box-shadow: none; }
body[data-hero-theme="night"] .story-hero__kicker { color: #e9f1f5; }
body[data-page="home"].no-webgl[data-hero-theme="night"] #story-hero-title { color: #edf4f8; }

/* Dawn keeps the completed snow scene cool while lifting the horizon with a
   restrained violet-to-blush transition and a warm pre-sunrise glow. */
[data-story-theme="dawn"] .story-hero__stage::after {
    content: ""; position: absolute; z-index: 2; top: 8%; right: -8%;
    width: clamp(260px, 42vw, 660px); height: clamp(180px, 30vw, 430px); pointer-events: none;
    background: radial-gradient(ellipse at 58% 44%, #ffd9c766 0 9%, #efabc54a 24%, #9a6ea42a 48%, transparent 72%);
    filter: blur(3px);
}
[data-story-theme="dawn"] .story-hero__backdrop { background: linear-gradient(#30284f, #684c73 38%, #c47b8c 72%, #f0b19f); }
body[data-hero-theme="dawn"] .story-hero__atmosphere { background: linear-gradient(180deg, #39295320, transparent 56%, #f0a8a31f); box-shadow: none; }
body[data-hero-theme="dawn"] .story-hero__kicker { color: #fff4f1; }
body[data-page="home"].no-webgl[data-hero-theme="dawn"] #story-hero-title { color: #fff7f3; }
body.no-webgl[data-hero-theme="night"] .story-hero__stage::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: radial-gradient(circle, #edf5ffa6 0 1px, transparent 2px), radial-gradient(circle, #edf5ff66 0 1px, transparent 1.5px);
    background-size: 103px 131px, 173px 193px; background-position: 0 0, 41px 53px;
    animation: hero-night-snow 24s linear infinite;
}
body.no-webgl[data-hero-theme="dawn"] .story-hero__stage::before {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-image: radial-gradient(circle, #fff4f0a3 0 1px, transparent 2px), radial-gradient(circle, #f7dce57a 0 1px, transparent 1.5px);
    background-size: 103px 131px, 173px 193px; background-position: 0 0, 41px 53px;
    animation: hero-night-snow 24s linear infinite;
}
@keyframes hero-night-snow { to { background-position: 0 262px, 41px 246px; } }
@media (max-width: 767px) { [data-story-theme="night"] .story-hero__stage::after { top: 20%; right: 18%; } }
@media (max-width: 767px) { [data-story-theme="dawn"] .story-hero__stage::after { top: 7%; right: -38%; } }
@media (prefers-reduced-motion: reduce) { body.no-webgl[data-hero-theme="night"] .story-hero__stage::before { animation: none; } }
@media (prefers-reduced-motion: reduce) { body.no-webgl[data-hero-theme="dawn"] .story-hero__stage::before { animation: none; } }
.no-js [data-page="home"] .story-hero__fallback-art, [data-page="home"].no-webgl .story-hero__fallback-art { display: block; position: absolute; width: min(70%, 800px); height: auto; right: 3%; bottom: 4%; }
.no-js body[data-page="home"] #story-hero-title, body[data-page="home"].no-webgl #story-hero-title { position: static !important; width: auto !important; height: auto !important; margin: 28px 0 16px !important; clip-path: none !important; white-space: normal !important; color: var(--home-ink); font-size: clamp(30px, 5vw, 68px); letter-spacing: -.05em; line-height: 1.1; }

/* Five keycaps on one complete connecting line. */
[data-page="home"] main > .service-journey { display: block; border: 0; background: linear-gradient(#c1d6dd, var(--home-paper) 180px); }
.service-journey::before { content: ''; position: absolute; inset: -100px 0 auto; height: 100px; background: linear-gradient(transparent, #c1d6dd); pointer-events: none; }
.story-services__intro { display: block; margin: 0; }
.service-journey .story-services__list { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto; gap: 24px; padding: 0; margin: 60px 0 0; border: 0; list-style: none; counter-reset: service; }
.service-journey .story-services__list::before { content: ''; position: absolute; top: 47px; left: calc(10% - 10px); right: calc(10% - 10px); height: 1px; background: #91b1bf; }
.service-journey .story-services__list::after { content: ''; position: absolute; top: 46px; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, transparent, #f4fdff, transparent) -120px 0 / 120px 100% no-repeat; pointer-events: none; }
.service-journey .story-services__list > li:nth-child(n) { position: relative; display: flex; grid-column: auto; grid-row: auto; flex-direction: column; align-items: center; gap: 0; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; counter-increment: service; text-align: center; }
.service-journey .story-services__list > li::before { display: none; }
.service-journey .story-services__list > li::after { display: none; content: none; }
.service-journey .story-services__list .service-symbol { position: relative; z-index: 1; display: grid; width: 96px; height: 96px; margin: 0 0 28px; padding: 22px; place-items: center; color: #3f697c; border: 1px solid #9fbecb; border-radius: 18px; background: linear-gradient(145deg, #fbfeff, #d7e6ec); box-shadow: inset 0 0 0 5px #f9fdff66, 0 5px 0 #b4ccd6, 0 16px 24px -18px #244c6099; }
.service-journey .service-symbol svg { display: block; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.service-journey .story-services__list h3 { margin: 0; color: var(--home-ink); font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.service-journey__summary { margin: 48px 0 0; color: var(--home-muted); text-align: center; }
@keyframes service-journey-signal { from { background-position: -120px 0; } to { background-position: calc(100% + 120px) 0; } }
@media (prefers-reduced-motion: no-preference) { .service-journey.is-in-view .story-services__list::after { animation: service-journey-signal 8s linear infinite; } }

/* Restored alternating timeline from the pre-refresh service journey. */
.service-journey .story-services__list { grid-template-rows: 120px 120px; gap: 72px 16px; margin-top: 48px; }
.service-journey .story-services__list::before { top: 156px; left: calc((100% - 64px) / 10); right: calc((100% - 64px) / 10); height: 2px; background: linear-gradient(90deg, #94b4bf, #6e99a9, #94b4bf); }
.service-journey .story-services__list::after { display: none; }
.service-journey .story-services__list > li:nth-child(n) { display: flex; align-items: center; justify-content: center; padding: 0 8px; text-align: center; }
.service-journey .story-services__list > li:nth-child(1) { grid-column: 1; grid-row: 1; }
.service-journey .story-services__list > li:nth-child(2) { grid-column: 2; grid-row: 2; }
.service-journey .story-services__list > li:nth-child(3) { grid-column: 3; grid-row: 1; }
.service-journey .story-services__list > li:nth-child(4) { grid-column: 4; grid-row: 2; }
.service-journey .story-services__list > li:nth-child(5) { grid-column: 5; grid-row: 1; }
.service-journey .story-services__list > li::before { content: ''; display: block; position: absolute; left: 50%; top: 100%; width: 2px; height: 36px; background: linear-gradient(transparent, #83aab9 40%); }
.service-journey .story-services__list > li::after { content: ''; display: block; position: absolute; left: calc(50% - 4px); top: calc(100% + 32px); width: 8px; height: 8px; padding: 0; border: 1px solid #7ca6b6; border-radius: 50%; background: var(--home-paper); box-shadow: 0 0 0 3px #a5c8d31a; box-sizing: border-box; }
.service-journey .story-services__list > li:nth-child(even)::before { top: -36px; background: linear-gradient(#83aab9 60%, transparent); }
.service-journey .story-services__list > li:nth-child(even)::after { top: -40px; }
.service-journey .story-services__list .service-symbol { display: block; width: 40px; height: 40px; margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #527b8c; }
.service-journey .service-symbol svg { width: 36px; height: 36px; }
.service-journey .story-services__list h3 { font-size: clamp(20px, 1.85vw, 27px); font-weight: 600; line-height: 1.15; letter-spacing: -.04em; }
[data-page="home"] .service-journey .story-services__list p { margin: 10px 0 0; color: var(--home-muted); font-size: 14px; line-height: 1.5; }

/* Real screenshots inside consistent browser frames. */
[data-page="home"] main > .home-selected { background: var(--home-white); border-top: 1px solid var(--home-line); }
.home-selected__intro { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; max-width: none; }
.home-selected__intro > p:last-child { margin: 22px 0 0; color: var(--home-muted); }
.home-selected__all { flex: 0 0 auto; margin: 0; }
.home-selected__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.home-selected__project { display: block; min-width: 0; color: inherit; text-decoration: none; }
.home-selected__frame { display: block; overflow: hidden; border: 1px solid var(--home-line); border-radius: 9px; background: #f1f5f6; box-shadow: 0 24px 46px -32px #17313f8c; transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.home-selected__bar { display: flex; height: 27px; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #17313f1f; background: #e9eff0; }
.home-selected__bar i { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #17313f33; }
.home-selected__bar b { min-width: 0; margin-left: 8px; overflow: hidden; color: var(--home-muted); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.home-selected__screen { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #dbe4e6; }
.home-selected__screen :is(img, video) { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: top center; }
.home-selected__video { display: none; }
@media (min-width: 768px) {
    /* The showcase runs wider than the reading column so the previews stay legible, but only the
       grid breaks out — the heading and "View More Projects" link keep the same starting edge as
       every other section's title. */
    .home-selected__grid { margin-inline: min(0px, calc(max(40px, (100vw - 1440px) / 2) - max(24px, (100vw - 1200px) / 2))); gap: clamp(20px, 2.2vw, 32px); }
    .home-selected__video { display: block; }
}
.home-selected__project:is(:hover, :focus-visible) .home-selected__frame { transform: translateY(-5px); border-color: var(--home-accent); box-shadow: 0 34px 54px -30px #17313f9e; }
.home-selected__caption { display: grid; position: relative; gap: 6px; margin-top: 18px; padding: 15px 34px 0 0; border-top: 1px solid var(--home-line); transition: border-color 220ms ease; }
.home-selected__project:is(:hover, :focus-visible) .home-selected__caption { border-top-color: var(--home-accent); }
.home-selected__caption::after { content: '↗'; position: absolute; right: 0; top: 12px; color: var(--home-accent); font-size: 22px; transition: transform 220ms ease; }
.home-selected__project:is(:hover, :focus-visible) .home-selected__caption::after { transform: translate(2px, -2px); }
.home-selected__caption strong { font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.home-selected__caption > span { color: var(--home-muted); font-size: 15px; }

/* The discovery illustration remains readable throughout its animation. */
[data-page="home"] main > #discovery { padding-block: 58px; color: #e4f2f7; background: #102b39; }
[data-page="home"] #discovery h2 { color: #edfaff; font-size: clamp(40px, 5vw, 68px); }
.discovery-chapter__heading { display: block; }
.discovery-chapter__heading h2 { padding-bottom: clamp(18px, 1.55vw, 24px); }
.discovery-chapter__heading h2 .discovery-chapter__term { position: relative; display: inline; vertical-align: baseline; }
.discovery-chapter__heading h2 .discovery-chapter__term:last-child { color: #a0dce9; }
.discovery-chapter__heading h2 small { position: absolute; top: calc(100% + 5px); left: 0; display: block; margin: 0; color: #b7d7df; font: 500 clamp(11px, 1vw, 14px)/1.3 "Inter Tight", sans-serif; letter-spacing: -.01em; text-align: left; white-space: nowrap; }
.discovery-chapter__body { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, .66fr); align-items: center; gap: 40px; margin-top: 24px; }
.discovery-statistic > strong { display: block; color: #effcff; font-size: clamp(70px, 7vw, 104px); font-weight: 500; line-height: .92; letter-spacing: -.07em; }
[data-page="home"] .discovery-statistic > p { max-width: 23ch; margin: 10px 0 0; color: #d7edf2; font-size: 17px; line-height: 1.35; }
.discovery-statistic__track { display: block; height: 3px; margin: 18px 0 8px; overflow: hidden; border-radius: 2px; background: #b9dbe133; }
.discovery-statistic__track i { display: block; width: 42%; height: 100%; background: #a0dce9; transform: scaleX(var(--statistic-progress, 1)); transform-origin: left; }
@keyframes discovery-statistic-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.discovery-statistic.is-complete .discovery-statistic__track i { animation: discovery-statistic-fill 700ms ease both; }
#discovery details { color: #cbe2e8; font-size: 14px; line-height: 1.55; }
#discovery summary { min-height: 40px; padding-block: 8px; cursor: pointer; color: #e9f7fa; font-weight: 500; }
#discovery details p { max-width: 65ch; margin: 10px 0 0; }
#discovery details a { color: #d7edf2; text-underline-offset: 4px; }
.discovery-preview { min-width: 0; padding: 20px; border: 1px solid #789ba955; border-radius: 12px; background: linear-gradient(145deg, #1b3b4b, #102733); box-shadow: 0 24px 42px -30px #030e18; }
.discovery-preview__query { display: flex; align-items: center; gap: 14px; padding: 0 0 12px; border-bottom: 1px solid #82a7b340; }
[data-page="home"] .discovery-preview__query p { flex: 1; min-width: 0; min-height: 40px; display: flex; align-items: center; margin: 0; color: #e9f6f9; font: 400 14px/1.5 "IBM Plex Mono", monospace; }
.discovery-preview__query > span { flex-shrink: 0; color: #a0dce9; font-size: 22px; }
.discovery-preview__steps { --discovery-path-x: 15px; --discovery-content-offset: 40px; --discovery-node-size: 8px; --discovery-path-travel: 82px; position: relative; display: grid; grid-template-rows: repeat(3, minmax(14px, auto)); gap: 8px; margin: 0; padding: 12px 0 12px var(--discovery-content-offset); overflow: hidden; list-style: none; }
.discovery-preview__steps::before { content: ''; position: absolute; top: 0; bottom: 0; left: var(--discovery-path-x); width: 1px; background: #729faf; }
.discovery-preview__steps::after { content: ''; position: absolute; top: -30px; left: calc(var(--discovery-path-x) - 1px); width: 3px; height: 30px; opacity: 0; background: linear-gradient(transparent, #b9f1fa, transparent); }
.discovery-preview__steps li { position: relative; display: flex; align-items: center; min-height: 18px; }
.discovery-preview__steps li::before { content: ''; position: absolute; top: 50%; left: calc(var(--discovery-path-x) - var(--discovery-content-offset) - 4px); width: 8px; height: 8px; border: 1px solid #9abbc7; border-radius: 50%; background: #173747; transform: translateY(-50%); transition: background 180ms ease, box-shadow 180ms ease; }
.discovery-preview__steps li:nth-child(2)::before { background: #a0dce9; border-color: #a0dce9; }
.discovery-preview__steps strong { color: #d4e8ef; font-size: 14px; font-weight: 500; }
.discovery-preview__result { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 0; margin: 0; padding: 16px; border: 1px solid #6d98aa; border-radius: 8px; background: #244858; }
.discovery-preview__mark { display: block; width: 52px; height: 52px; border: 1px solid #7197a8; border-radius: 6px; background: #071426 url('../images/icon-512.png') center / 82% auto no-repeat; font-size: 0; color: transparent; }
.discovery-preview__mark span { display: none; }
.discovery-preview__label { color: #b4d6e1; font: 400 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.discovery-preview__result h3 { margin: 0 0 3px; color: #edfaff; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.03em; }
.discovery-preview__result p { margin: 0; color: #c9e0e8; }
.discovery-preview__cta { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; margin-top: 4px; color: #e3faff; font-size: 14px; text-decoration: underline; text-underline-offset: 5px; }
[data-page="home"] .discovery-preview__caption { margin: 7px 0 0; color: #b7d7df; font-size: 12px; }
.discovery-chapter__explanation { max-width: 65ch; margin: 20px 0 0; color: #e0f1f5; }
.discovery-chapter__details { margin-top: 2px; }
.discovery-preview[data-phase="searching"] .discovery-preview__steps::after { animation: discovery-signal-travel 1250ms ease both; }
.discovery-preview [data-state="active"]::before { background: #d4f9ff; box-shadow: 0 0 0 4px #a0dce926; }
.discovery-preview.has-arrived .discovery-preview__result { animation: discovery-result-arrival 500ms ease both; }
.discovery-preview[data-motion="paused"] *, .discovery-preview[data-motion="paused"] *::after { animation-play-state: paused !important; }
@keyframes discovery-signal-travel { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(var(--discovery-path-travel)); } }
@keyframes discovery-result-arrival { from { border-color: #c3f4ff; } to { border-color: #6d98aa; } }
.discovery-statistic > strong { font-variant-numeric: tabular-nums; }
.discovery-preview__query p > span[aria-hidden] { min-height: 3.2em; align-content: center; }
.discovery-preview__result { transition: opacity 400ms ease, transform 400ms ease; }
.discovery-preview[data-phase="typing"] .discovery-preview__result,
.discovery-preview[data-phase="searching"] .discovery-preview__result { opacity: 0; transform: translateY(8px); pointer-events: none; }
.discovery-preview[data-phase="typing"] .discovery-preview__steps { opacity: 0; }
.discovery-preview__steps { transition: opacity 200ms ease; }
.discovery-preview[data-phase="searching"] .discovery-preview__steps strong { opacity: 0; }
.discovery-preview__loading { display: none; position: absolute; align-items: center; gap: 5px; color: #c9e0e8; font-size: 14px; }
.discovery-preview[data-phase="searching"] .discovery-preview__loading { display: flex; }
.discovery-preview__loading i { width: 4px; height: 4px; background: #a0dce9; border-radius: 50%; animation: discovery-loading 900ms ease-in-out infinite; }
.discovery-preview__loading i:nth-child(2) { animation-delay: 150ms; }
.discovery-preview__loading i:nth-child(3) { animation-delay: 300ms; }
.discovery-preview[data-phase="typing"] .discovery-preview__query p > span[aria-hidden]::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 3px; background: #a0dce9; vertical-align: -.12em; animation: discovery-caret 700ms steps(1) infinite; }
@keyframes discovery-loading { 50% { opacity: .3; transform: translateY(-3px); } }
@keyframes discovery-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .discovery-preview *, .discovery-preview *::after { animation: none !important; transition: none !important; } }

/* Complete line icons on one continuous strip. */
.quality-section__strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 44px; border-block: 1px solid var(--home-line); }
/* Without the flip the card is one block: icon beside label, description beneath. */
.quality-card { position: relative; display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; align-items: center; column-gap: 22px; row-gap: 12px; min-height: 172px; padding: 32px 22px; }
.quality-section__strip > div + div { border-left: 1px solid var(--home-line); }
.quality-card__face { display: contents; }
.quality-card__kicker { display: none; }
.quality-section__strip svg { grid-column: 1; grid-row: 1; width: 64px; height: 48px; flex: 0 0 64px; fill: none; stroke: var(--home-accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.quality-section__strip strong { grid-column: 2; grid-row: 1; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; letter-spacing: -.035em; }
.quality-card p { grid-column: 1 / -1; grid-row: 2; max-width: 34ch; margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.55; text-align: center; }
.quality-section > p { margin: 24px 0 0; color: var(--home-muted); }
@media (hover: hover) and (min-width: 768px) {
    .quality-card { perspective: 1100px; overflow: hidden; }
    .quality-card__face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 30px 26px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 620ms cubic-bezier(.22, .72, .2, 1), background 620ms ease; }
    .quality-card__face--back { flex-direction: column; gap: 14px; background: #e4edf0; transform: rotateY(180deg); }
    .quality-card:hover .quality-card__face--front { transform: rotateY(-180deg); }
    .quality-card:hover .quality-card__face--back { transform: rotateY(0); }
    .quality-card__kicker { display: block; color: var(--home-accent); font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
    [data-page="home"] .quality-card__face--back p { max-width: 24ch; color: var(--home-ink); font-size: clamp(17px, 1.42vw, 20px); line-height: 1.45; letter-spacing: -.014em; text-align: center; text-wrap: balance; }
}
@media (hover: hover) and (min-width: 768px) and (prefers-reduced-motion: reduce) {
    .quality-card__face { backface-visibility: visible; -webkit-backface-visibility: visible; transition: opacity 160ms ease; transform: none; }
    .quality-card__face--back { opacity: 0; transform: none; }
    .quality-card:hover .quality-card__face--front { opacity: 0; transform: none; }
    .quality-card:hover .quality-card__face--back { opacity: 1; transform: none; }
}

/* User-controlled reviews; full borders and natural text expansion. */
[data-page="home"] main > .testimonials-section { overflow: hidden; border: 0; border-top: 1px solid var(--home-line); background: var(--home-white); }
.testimonials-section__intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; margin: 0; }
.review-controls { display: flex; gap: 8px; }
.review-controls button { width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid #a2bdca; border-radius: 50%; color: var(--home-ink); background: transparent; cursor: pointer; font-size: 22px; transition: background 180ms ease; }
.review-controls button:hover { background: #dfebef; }
.review-controls button[hidden] { display: none; }
.testimonials-section__stories { width: 100%; margin-top: 40px; padding: 4px 0 20px; overflow-x: auto; overflow-y: hidden; mask-image: none; -webkit-mask-image: none; scrollbar-width: none; scroll-snap-type: x proximity; }
.testimonial-belt__track { display: flex; width: max-content; gap: var(--testimonial-belt-gap, 24px); padding: 0; background: none; }
.testimonial-belt__group { display: grid; flex: 0 0 auto; grid-auto-flow: column; grid-auto-columns: var(--testimonial-card-width, calc((100% - 48px) / 3)); gap: var(--testimonial-belt-gap, 24px); align-items: start; }
.testimonial-story { width: auto; min-width: 0; height: auto; min-height: 366px; display: flex; flex-direction: column; gap: 18px; padding: 28px; border: 1px solid #c2d3db; border-radius: 8px; background: #fff; box-shadow: none; overflow: visible; scroll-snap-align: start; }
.testimonial-story::before { display: none; }
.testimonial-story:hover, .testimonial-story:focus-within { border-color: #89a7b5; box-shadow: none; }
.testimonial-story__meta { flex-wrap: wrap; color: var(--home-muted); font-size: 10px; gap: 10px; line-height: 1.5; }
.testimonial-story__meta > span:last-child { max-width: none; overflow: visible; white-space: normal; text-align: left; }
.testimonial-story__stars { color: var(--home-accent); font-size: 12px; letter-spacing: .12em; }
.testimonial-story blockquote { align-self: stretch; margin: 4px 0 0; overflow: visible; }
[data-page="home"] .testimonial-story blockquote p { display: block; overflow: visible; color: var(--home-ink); font-size: 23px; font-weight: 400; line-height: 1.4; letter-spacing: -.025em; -webkit-line-clamp: unset; }
.testimonial-story__details { align-self: stretch; margin-top: auto; color: var(--home-muted); }
.testimonial-story__details summary { min-height: 44px; border-top-color: var(--home-line); color: var(--home-muted); font-size: 13px; text-transform: none; }
.testimonial-story__details summary:hover { color: var(--home-ink); }
.testimonial-story__details summary::after { color: var(--home-accent); }
.testimonial-story__details[open] { position: static; padding: 0; overflow: visible; border: 0; background: transparent; box-shadow: none; }
.testimonial-story__details[open] summary { position: static; margin: 0; padding: .5rem 0; background: transparent; }
.testimonial-story__details > p { color: var(--home-muted); }
.testimonial-story footer { border: 0; padding: 0; gap: 5px; }
.testimonial-story footer strong { color: var(--home-ink); font: 600 16px/1.3 "Inter Tight", sans-serif; }
.testimonial-story footer span { color: var(--home-muted); font-size: 13px; line-height: 1.5; }

/* Compact service rows and a closing architectural arch. */
[data-page="home"] main > .home-services-more { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; border: 0; }
.home-services-more .services-more__intro > p { margin: 22px 0 0; color: var(--home-muted); }
.home-services-more .services-more__list { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.home-services-more .services-more__list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--home-line); color: var(--home-ink); font-size: 24px; text-decoration: none; }
.home-services-more .services-more__list a:first-child { border-top: 1px solid var(--home-line); }
.home-services-more .services-more__list a > span { font-size: inherit; }
.home-services-more .services-more__list b { color: var(--home-accent); font-weight: 400; transition: transform 180ms ease; }
.home-services-more .services-more__list a:is(:hover, :focus-visible) b { transform: translateX(4px); }
[data-page="home"] main > .closing-cta { display: block; border: 0; color: #effcff; background: #102b39; overflow: hidden; }
.closing-cta::after { content: none; }
.closing-cta__message { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; margin: 0; padding: 0; }
[data-page="home"] #contact h2 { max-width: 14ch; font-size: clamp(36px, 4vw, 56px); line-height: 1.12; }
.closing-cta .closing-cta__actions { flex-shrink: 0; align-items: center; margin: 0; }
.closing-cta__message > p { margin: 24px 0 0; color: #bfd8e2; }
.closing-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.closing-cta .button { width: auto; min-height: 52px; border-radius: 5px; padding: 14px 22px; font-size: 16px; font-weight: 500; }
.closing-cta .button--primary { color: #102b39; background: #d4f3fa; border-color: #d4f3fa; box-shadow: none; }
.closing-cta .button--primary:hover { color: #102b39; background: #effcff; border-color: #effcff; box-shadow: none; }
.closing-cta .button--quiet { color: #effcff; border-color: #a5c6d266; }
.closing-cta .button--quiet { border: 0; border-radius: 0; padding-inline: 0; margin-left: 8px; background: none; text-decoration: underline; text-underline-offset: 6px; }
/* One type treatment across all three, set on the row so nothing can drift. */
.closing-cta__contact { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: baseline; gap: 12px 32px; width: 100%; margin: 52px 0 0; padding-top: 26px; border-top: 1px solid #2c546499; font: 500 11px/1.65 "IBM Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.closing-cta__contact a { color: #dff1f7; text-decoration: none; transition: color 200ms ease; }
.closing-cta__contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
[data-page="home"] .closing-cta__contact p { margin: 0; color: #7ea4b5; font: inherit; letter-spacing: inherit; }
[data-page="home"] .brand-footer { border-top: 1px solid #c4e6ef20; background: #102b39; }
body.positioning-motion :is(.testimonials-section__intro, .testimonial-story, .closing-cta h2, .closing-cta__message) { opacity: 1; transform: none; }
@keyframes home-arrive { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) { [data-home-reveal].is-visible { animation: home-arrive 500ms ease both; } }

@media (max-width: 1099px) {
    .service-journey .story-services__list { column-gap: 16px; }
    .discovery-chapter__body { gap: 32px; }
    .discovery-preview { padding: 22px; }
    .quality-section__strip > div { gap: 14px; padding-inline: 12px; }
    .quality-section__strip svg { width: 48px; flex-basis: 48px; }
}
@media (max-width: 767px) {
    [data-page="home"] { --home-side: 20px; }
    [data-page="home"] main > section:not(.story-hero) { padding: 56px 20px; }
    [data-page="home"] .story-hero__content { top: 96px; left: 20px; right: 20px; }
    [data-page="home"] .story-hero__kicker { max-width: 28ch; font-size: 16px; }
    [data-page="home"] .story-hero__actions { gap: 8px; margin-top: 14px; }
    [data-page="home"] .story-hero__actions .button { min-height: 44px; font-size: 14px; padding: 9px 12px; }
    [data-page="home"] .story-hero__project-cta-arrow { width: 26px; height: 26px; flex-basis: 26px; }
    [data-page="home"] .story-hero__scroll-cue { left: 20px; bottom: 30px; }
    .no-js [data-page="home"] .story-hero__fallback-art, [data-page="home"].no-webgl .story-hero__fallback-art { width: 100%; right: 0; bottom: 10%; }
    .service-journey .story-services__list { grid-template-columns: 1fr; grid-template-rows: none; gap: 0; margin-top: 28px; padding: 0 0 0 26px; }
    .service-journey .story-services__list::before { left: 5px; right: auto; top: 56px; bottom: 56px; width: 1px; height: auto; }
    .service-journey .story-services__list::after { display: none; }
    .service-journey .story-services__list > li:nth-child(n) { display: grid; grid-column: 1; grid-row: auto; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; align-content: center; align-items: center; min-height: 112px; gap: 6px 16px; padding: 20px 0 20px 8px; text-align: left; }
    .service-journey .story-services__list > li:nth-child(n)::before { display: block; left: -21px; top: 50%; width: 22px; height: 1px; background: #83aab9; }
    .service-journey .story-services__list > li:nth-child(n)::after { display: block; left: -25px; top: calc(50% - 4px); }
    .service-journey .story-services__list .service-symbol { grid-column: 1; grid-row: 1 / 3; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 0; box-shadow: none; }
    .service-journey .service-symbol svg { width: 34px; height: 34px; }
    .service-journey .story-services__list h3 { grid-column: 2; grid-row: 1; align-self: center; margin: 0; font-size: 22px; }
    [data-page="home"] .service-journey .story-services__list p { grid-column: 2; grid-row: 2; margin: 0; font-size: 13px; }
    .closing-cta__message { display: block; }
    .closing-cta .closing-cta__actions { margin-top: 28px; gap: 16px; }
    .closing-cta__contact { grid-template-columns: 1fr; gap: 10px; margin-top: 36px; padding-top: 22px; }
    .service-journey__summary { margin-top: 32px; text-align: left; }
    .home-selected__grid { grid-template-columns: 1fr; gap: 34px; margin-top: 32px; }
    .home-selected__caption { margin-top: 18px; }
    .home-selected__all { margin-top: 28px; }
    [data-page="home"] main > #discovery { padding-block: 46px; }
    .discovery-chapter__heading h2 { padding-bottom: 20px; }
    .discovery-chapter__heading h2 small { top: calc(100% + 4px); font-size: 11px; }
    .discovery-chapter__body { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
    .discovery-statistic > strong { font-size: 68px; }
    [data-page="home"] .discovery-statistic > p { font-size: 15px; }
    .discovery-preview { padding: 16px 14px; }
    .discovery-preview__query { gap: 12px; }
    .discovery-preview__query > span:last-child { display: none; }
    .discovery-preview__result { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 14px; }
    .discovery-preview__mark { width: 44px; height: 52px; }
    .discovery-preview__result h3 { font-size: 24px; }
    .discovery-chapter__explanation { margin-top: 20px; }
    .quality-section__strip { grid-template-columns: 1fr; margin-top: 32px; }
    .quality-card { grid-template-columns: 56px minmax(0, 1fr); justify-content: stretch; align-items: start; column-gap: 16px; row-gap: 4px; min-height: 0; padding: 22px 0; }
    .quality-section__strip > div + div { border-left: 0; border-top: 1px solid var(--home-line); }
    .quality-section__strip svg { grid-row: 1 / span 2; width: 56px; height: 44px; flex-basis: 56px; }
    .quality-section__strip strong { font-size: 30px; }
    .quality-card p { grid-column: 2; grid-row: 2; text-align: left; }
    .testimonials-section__intro { align-items: flex-end; gap: 16px; }
    .review-controls { gap: 6px; }
    .review-controls button { width: 44px; height: 44px; flex-basis: 44px; }
    .testimonials-section__stories { margin-top: 30px; }
    .testimonial-belt__group { gap: var(--testimonial-belt-gap, 16px); }
    .testimonial-story { padding: 24px; min-height: 360px; }
    [data-page="home"] main > .home-services-more { grid-template-columns: 1fr; gap: 30px; }
    .home-services-more h2 { white-space: normal; }
    .home-services-more .services-more__list a { min-height: 72px; padding-block: 20px; font-size: 22px; }
    .closing-cta__actions { gap: 12px; }
    [data-page="home"] .brand-footer :is(p, div > span) { white-space: normal; }
}
/* A complete, naturally sized composition when 3D or JavaScript is unavailable. */
:is(.no-js body, body.no-webgl)[data-page="home"] .story-hero { height: auto !important; min-height: 0; }
:is(.no-js body, body.no-webgl)[data-page="home"] .story-hero__stage { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; height: auto !important; min-height: 560px; padding: 110px var(--home-side) 56px; }
:is(.no-js body, body.no-webgl)[data-page="home"] .story-hero__content { position: relative; top: auto; bottom: auto; left: auto; right: auto; }
:is(.no-js body, body.no-webgl)[data-page="home"] .story-hero__fallback-art { position: relative; z-index: 2; width: 100%; right: auto; bottom: auto; }
@media (max-width: 767px) {
    :is(.no-js body, body.no-webgl)[data-page="home"] .story-hero__stage { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 24px; padding: 96px 20px 44px; }
    :is(.no-js body, body.no-webgl)[data-page="home"] #story-hero-title { margin-top: 0 !important; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
    [data-page="home"] *, [data-page="home"] *::before, [data-page="home"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
