:root {
    color-scheme: dark;
    --blue: #00b3ff;
    --charcoal: #232323;
    --yellow: #fff300;
    --ice: #e0f5ff;
    --ink: #11171b;
    --muted: #acc0ca;
    --rule: #29414d;
    --heading: Barlow, "Arial Narrow", sans-serif;
    --body: "Open Sans", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-end: 6rem; }
body { display: grid; grid-template-rows: 1fr auto; min-height: 100svh; margin: 0; background: var(--ink); color: var(--ice); font: 1rem/1.6 var(--body); }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { font: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(100% - 5rem, 85rem); margin-inline: auto; }
.skip { position: fixed; z-index: 8; top: 0.5rem; left: 0.5rem; padding: 0.65rem 1rem; background: var(--yellow); color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; flex: none; }
.brand-logo { width: 148px; height: auto; }
.micro { font: 500 0.71rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }

.studio { position: relative; isolation: isolate; min-height: 0; display: grid; grid-template-rows: 1fr; overflow: clip; background: radial-gradient(ellipse at 69% 46%, #143746, transparent 58%), linear-gradient(155deg, #1b2226 4%, #11171b 67%); }
.scene { position: absolute; inset: 0 0 0 29%; z-index: -1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 17%); }
.scene canvas, .scene-fallback { width: 100%; height: 100%; }
.scene canvas { display: block; cursor: grab; touch-action: pan-y; }
.scene canvas[data-hotspot] { cursor: pointer; }
.scene canvas:active { cursor: grabbing; }
.scene-fallback { position: absolute; inset: 0; padding: clamp(2rem, 8vw, 8rem); object-fit: contain; opacity: 0.75; }
.scene[data-ready] .scene-fallback { display: none; }
.studio-content { display: grid; align-content: center; padding-block: 4.25rem 5rem; min-height: 38rem; pointer-events: none; }
.view { position: relative; width: min(43%, 35rem); pointer-events: auto; }
/* Route entrances are coordinated in studio.js, including swapped detail pages. */
.scene canvas { transform-origin: 50% 60%; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; color: var(--blue); }
.eyebrow::before { content: ""; width: 0.48rem; height: 0.48rem; flex: none; background: var(--yellow); }
.view h1, .view h2 { color: var(--ice); font: 700 clamp(3.65rem, 6vw, 6.7rem)/0.89 var(--heading); text-transform: uppercase; letter-spacing: -0.045em; margin-block: 1.1rem 1.2rem; }
.view h1 span { display: block; color: var(--blue); }
.view h2 { font-size: clamp(3rem, 4.8vw, 5.25rem); }
.view p:not(.eyebrow) { color: var(--muted); max-width: 40ch; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.25rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.75rem 1.1rem; background: var(--blue); color: var(--ink); border-radius: 999px; font: 700 1rem/1.15 var(--heading); letter-spacing: 0.055em; text-transform: uppercase; text-decoration: none; }
.button:hover, .contact .button { background: var(--yellow); }
.contact .button:hover { background: var(--ice); }
.text-link { font-weight: 700; color: var(--ice); font-size: 0.88rem; text-underline-offset: 0.25em; }
.text-link:hover { color: var(--blue); }
.studio::after { position: absolute; z-index: -2; inset: 0; content: ""; background-image: radial-gradient(#4b7e8f 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000); opacity: 0.19; }

.studio-content { min-height: 32rem; padding-block: 3.25rem; }
.about-copy p + p { margin-block: 0.75rem 1rem; }

.dock {
    position: sticky;
    z-index: 3;
    bottom: 0;
    min-width: 0;
    border-top: 1px solid #345363;
    background: linear-gradient(180deg, var(--charcoal), #10191efc);
    backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom);
}
.dock-inner {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    width: min(100%, 90rem);
    padding: 0.65rem clamp(1rem, 3vw, 2.5rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #436576 transparent;
    scroll-padding-inline: 1rem;
}
.dock-controls { display: none; align-items: center; gap: 1rem; margin-inline-start: auto; color: var(--muted); white-space: nowrap; }
body:has(.scene[data-ready]) .dock-controls { display: flex; }
.dock-motion { color: var(--ice); border: 0; background: transparent; padding: 0.2rem 0; cursor: pointer; }
.dock-motion:hover, .motion-paused .dock-motion { color: var(--yellow); }
.dock-group { display: flex; flex: none; gap: 0.55rem; }
.dock-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 3.5rem;
    max-width: 10.5rem;
    align-items: center;
    gap: 0.55rem;
    padding: 0.48rem 0.75rem;
    overflow: hidden;
    border: 1px solid #36596c;
    border-radius: 0.4rem;
    color: var(--ice);
    background: radial-gradient(ellipse at 0 50%, #00b3ff20, transparent 72%), #182933;
    text-decoration: none;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.dock-card::after { content: ""; position: absolute; inset: 0 auto auto 0.7rem; width: 2.15rem; height: 1px; background: var(--blue); box-shadow: 0 0 9px var(--blue); opacity: 0.7; }
a.dock-card:hover, .dock-card:focus-visible { transform: translateY(-2px); background-color: #234151; border-color: var(--blue); box-shadow: 0 0 1.1rem #00b3ff38, inset 0 0 1rem #00b3ff1c; }
.dock-card[aria-current="page"] { background-color: #234151; border-color: var(--blue); box-shadow: inset 0 0 1rem #00b3ff1c; }
.dock-icon {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    flex: none;
    border: 1px solid #6ad3ff38;
    border-radius: 0.25rem;
    background: #08182070;
    color: var(--blue);
}
.dock-icon .icon { width: 1.22rem; height: 1.22rem; }
.dock-label { display: grid; min-width: 0; font: 700 1rem/1.1 var(--heading); }
.dock-label small { color: var(--muted); font: 500 0.64rem/1.15 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.32rem; }
.dock-root .dock-label small { display: none; }
.js:not(.motion-paused) .dock-group:not([hidden]) .dock-card { animation: card-in 260ms ease-out both; }
.js:not(.motion-paused) .dock-card:nth-child(2) { animation-delay: 30ms; }
.js:not(.motion-paused) .dock-card:nth-child(3) { animation-delay: 60ms; }
.js:not(.motion-paused) .dock-card:nth-child(4) { animation-delay: 90ms; }
.js:not(.motion-paused) .dock-card:nth-child(5) { animation-delay: 120ms; }
@keyframes card-in {
    from { opacity: 0; translate: 0 7px; }
    to { opacity: 1; translate: 0 0; }
}

:is(.detail-studio, .chapter-studio) {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    grid-template-rows: auto;
    align-items: start;
}
:is(.detail-studio, .chapter-studio) .scene {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    inset: auto;
    top: 0;
    align-self: start;
    height: clamp(24rem, calc(100svh - 5.75rem), 49rem);
    mask-image: linear-gradient(90deg, transparent, #000 10%);
}
:is(.detail-copy, .chapter-studio .studio-content) {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    padding: clamp(3.25rem, 8vh, 7rem) 1.2rem 4.5rem max(2.5rem, calc((100vw - 85rem) / 2));
}
@media (width > 55rem) {
    :is(.detail-studio[data-branch="work"], .chapter-studio:has(#work:not([hidden]))) {
        grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
        background: radial-gradient(ellipse at 31% 46%, #143746, transparent 58%), linear-gradient(205deg, #1b2226 4%, #11171b 67%);
    }
    :is(.detail-studio[data-branch="work"], .chapter-studio:has(#work:not([hidden]))) > .scene {
        grid-column: 1;
        mask-image: linear-gradient(270deg, transparent, #000 10%);
    }
    :is(.detail-studio[data-branch="work"], .chapter-studio:has(#work:not([hidden]))) > :is(.detail-copy, .studio-content) {
        grid-column: 2;
        padding-inline: 1.2rem max(2.5rem, calc((100vw - 85rem) / 2));
    }
}
.chapter-studio .view { width: 100%; }
/* A section link opens the view from the top, including the scene on mobile. */
.js .chapter-studio .view { scroll-margin-block-start: 100svh; }
.chapter-studio .studio-content { display: block; }
.chapter-studio .studio-content p:not(.eyebrow) { max-width: 55ch; }
.detail-copy h1 { font-size: clamp(3.4rem, 5.2vw, 6rem); }
.detail-copy .lede { font-size: clamp(1.05rem, 1.55vw, 1.3rem); }
.detail-copy p:not(.eyebrow) { max-width: 55ch; }
.detail-block {
    margin-top: 2.25rem;
    border-top: 1px solid #416072;
    padding-top: 1.65rem;
}
.detail-block :is(h2, h3) {
    font: 700 clamp(1.55rem, 2.3vw, 2.15rem)/1.1 var(--heading);
    letter-spacing: -0.015em;
    text-transform: none;
    margin: 0 0 0.7rem;
}
.detail-block p + p { margin-top: 0.65rem; }
.detail-block .actions { margin-top: 0; }
.detail-block[id] { scroll-margin-block-start: 1.5rem; }
.chapter-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-top: 1rem; }
.industry-search { display: grid; gap: 0.5rem; margin-top: 1.8rem; }
.industry-search label { font: 700 1.15rem/1.2 var(--heading); }
.industry-search input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #467083;
    border-radius: 0.35rem;
    background: #13242e;
    color: var(--ice);
    font: inherit;
}
.industry-search input::placeholder { color: var(--muted); }
.industry-jumps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.industry-jumps a {
    padding: 0.35rem 0.7rem;
    border: 1px solid #467083;
    border-radius: 999px;
    color: var(--ice);
    font-size: 0.8rem;
    text-decoration: none;
}
.industry-jumps a:hover { border-color: var(--blue); background: #234151; }
.industry-empty { margin-top: 1.5rem; }
.industry-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.industry-list li { padding: 0.85rem; border: 1px solid #36596c; border-radius: 0.35rem; background: #182933; }
.industry-list h3 { margin: 0 0 0.35rem; font: 700 1.1rem/1.2 var(--heading); letter-spacing: normal; }
.industry-list p { font-size: 0.88rem; line-height: 1.5; }
.chapter-figure {
    margin: 1.35rem 0 0;
    overflow: hidden;
    border: 1px solid #3a5c6e;
    border-radius: 0.35rem;
    background: #152630;
}
.chapter-image img { width: 100%; height: auto; }
.chapter-image figcaption { padding: 0.7rem 0.85rem; color: var(--muted); font-size: 0.84rem; }
.chapter-image.portrait { max-width: 20rem; }
@media (width > 55rem) {
    .detail-studio:has(> .scene[data-ready][data-slide][data-gallery-ready]) .detail-block:has(.chapter-image) {
        min-block-size: 30svh;
    }
    .detail-studio:has(> .scene[data-ready][data-slide][data-gallery-ready]) .chapter-image {
        /* The scene is decorative, so keep the image descriptions available to assistive tech. */
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        border: 0;
    }
}
.chapter-diagram ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: steps;
    background: #3a5c6e;
}
.chapter-diagram li {
    display: grid;
    gap: 0.4rem;
    align-content: start;
    padding: 0.75rem;
    background: #172b36;
    font: 700 1rem/1.2 var(--heading);
    counter-increment: steps;
}
.chapter-diagram li::before { content: counter(steps, decimal-leading-zero); color: var(--blue); font: 500 0.7rem var(--mono); }
.chapter-diagram li:first-child::before { color: var(--yellow); }

@media (max-width: 55rem) {
    .wrap { width: calc(100% - 3rem); }
    .studio { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .studio-content { min-height: 0; padding-block: 0.65rem 2rem; grid-row: 2; }
    .view { width: min(100%, 38rem); }
    .view h1 { font-size: clamp(3.2rem, 8vw, 5rem); }
    .scene, :is(.detail-studio, .chapter-studio) .scene {
        position: relative;
        inset: auto;
        grid-column: 1;
        grid-row: 1;
        height: clamp(18rem, 53vw, 27rem);
        mask-image: linear-gradient(#000 87%, transparent);
    }
    :is(.detail-copy, .chapter-studio .studio-content) { grid-row: 2; padding: 0.5rem 1.5rem 3rem; }
}
@media (max-width: 43rem) {
    .wrap { width: calc(100% - 2rem); }
    .brand-logo { width: 128px; }
    .scene, :is(.detail-studio, .chapter-studio) .scene { height: clamp(13rem, 59vw, 19rem); }
    .view h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); }
    .view h2 { font-size: clamp(2.25rem, 8.2vw, 3.65rem); }
    .scene-fallback { padding: 0.6rem 2rem; }
    :is(.detail-copy, .chapter-studio .studio-content) { padding-inline: 1rem; }
    .detail-block :is(h2, h3) { font-size: 1.55rem; }
    .chapter-image.portrait { max-width: none; }
    .dock-inner { width: 100%; padding-block: 0.55rem; }
    .dock-group { gap: 0.35rem; }
    .dock-card { min-height: 3.15rem; max-width: 8.75rem; padding: 0.38rem 0.45rem; }
    .dock-icon { width: 1.65rem; height: 1.65rem; }
    .dock-icon .icon { width: 1rem; height: 1rem; }
    .dock-label { font-size: 0.86rem; }
}
@media (prefers-reduced-motion: reduce) {
    .js:not(.motion-paused) .view:not([hidden]),
    .js:not(.motion-paused) .dock-group:not([hidden]) .dock-card { animation: none; }
    .dock-card { transition: none; }
}

/* Compact controls for the existing interactive Work scene. */
.work-project-controls { margin-top: 1.7rem; padding: 1rem 1.1rem; border: 1px solid #416072; border-radius: 0.35rem; background: #152630cc; }
.work-project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding-bottom: 0.9rem; border-bottom: 1px solid #36596c; }
.work-project-toolbar button { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; border: 1px solid #416072; border-radius: 0.2rem; background: #1c3442; padding: 0.4rem 0.65rem; color: var(--ice); font: 600 0.8rem var(--body); cursor: pointer; }
.work-project-toolbar button:hover { border-color: var(--blue); background: #234151; }
.work-project-toolbar [data-work-count] { color: var(--blue); white-space: nowrap; letter-spacing: 0.04em; }
.work-project-selection h3 { font: 700 1.55rem/1.1 var(--heading); letter-spacing: -0.015em; margin: 1rem 0 0.65rem; }
.work-project-hint { margin-top: 0.9rem; font-size: 0.76rem; line-height: 1.5; }
.work-project-fallback { width: 100%; height: auto; margin-top: 1rem; border: 1px solid #416072; }
.studio:has(> .scene[data-ready]) .work-project-fallback { display: none; }
@media (max-width: 43rem) {
    .work-project-controls { padding: 0.8rem; }
    .work-project-toolbar button { padding-inline: 0.55rem; font-size: 0.75rem; }
    .work-project-selection h3 { font-size: 1.4rem; }
}

/* The booking provider keeps its native calendar inside the existing Contact column. */
.booking-panel { min-width: 0; margin-top: 1.4rem; border: 1px solid #416072; border-radius: 0.35rem; background: #152630; overflow: hidden; }
.booking-panel-heading { padding: 1rem 1.1rem; border-bottom: 1px solid #36596c; }
.booking-panel-heading > .micro { color: var(--blue); }
.booking-panel-heading .booking-status { margin-top: 0.5rem; font-size: 0.78rem; line-height: 1.5; }
.booking-calendar { width: 100%; min-width: 0; min-height: 700px; background: #fff; color-scheme: light; }
.booking-calendar > div.tidycal-embed { min-height: 700px; }
.booking-calendar > iframe.tidycal-embed { display: block; max-width: 100%; border: 0; }
.booking-fallback, .booking-noscript { padding: 1rem 1.1rem; font-size: 0.78rem; line-height: 1.6; }
.booking-fallback .text-link { display: inline; font-size: inherit; overflow-wrap: anywhere; }
.booking-panel[data-booking-failed] .booking-calendar { display: none; }
@media (max-width: 43rem) {
    .booking-panel-heading, .booking-fallback, .booking-noscript { padding-inline: 0.8rem; }
}

/* Work alone becomes a full-width ribbon of projects around the studio sign. */
.studio.portfolio-overview { display: block !important; overflow: visible; background: radial-gradient(ellipse at 50% 25%, #17323f, transparent 65%), #11171b; }
.studio.portfolio-overview > .scene { display: none !important; }
.studio.portfolio-overview > #content-start { display: block; width: 100%; max-width: none; padding: 0 !important; min-height: 0; margin: 0; }
.studio.portfolio-overview #work { width: 100%; max-width: none; animation: none; scroll-margin: 0; }
.portfolio-heading { width: min(100% - 5rem, 85rem); margin: 0 auto; padding: 2.4rem 0 0; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
#work .portfolio-heading h2 { font-size: clamp(2.7rem, 4.3vw, 4.6rem); margin: 0.7rem 0 0; }
#work .portfolio-heading > p { font-size: 0.86rem; padding-bottom: 0.3rem; }
.portfolio-carousel { position: relative; margin-top: 1.5rem; }
.portfolio-sign { display: flex; position: relative; flex-direction: column; align-items: center; gap: 0.65rem; margin: 2rem auto; pointer-events: none; }
.portfolio-sign img { width: clamp(240px, 22vw, 330px); height: auto; filter: drop-shadow(0 0 25px #00b3ff18); }
.portfolio-sign > span { color: var(--muted); font-size: 0.57rem; letter-spacing: 0.22em; }
.portfolio-ribbon { display: flex; gap: 1.6rem; overflow-x: auto; padding: 2rem max(1.5rem, calc((100% - 85rem) / 2)); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #416072 transparent; }
.portfolio-card { display: block; flex: 0 0 clamp(280px, 23vw, 340px); color: var(--ice); text-decoration: none; background: #192b35; border: 1px solid #3c5a6a; border-radius: 0.3rem; box-shadow: 0 13px 35px #0005; scroll-snap-align: center; overflow: hidden; }
.portfolio-card-image { position: relative; display: block; aspect-ratio: 2; overflow: hidden; border-bottom: 1px solid #3c5a6a; background: #213e4d; }
.portfolio-card-image img { display: block; width: 100%; height: auto; user-select: none; pointer-events: none; }
.portfolio-card-caption { display: grid; padding: 1rem 1.1rem 1.05rem; gap: 0.35rem; min-height: 7.3rem; }
.portfolio-card-caption > .micro { color: var(--blue); font-size: 0.55rem; letter-spacing: 0.09em; }
.portfolio-card-caption strong { font: 700 1.34rem/1.08 var(--heading); min-height: 2.15em; }
.portfolio-card-link { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--muted); }
.portfolio-card-link .icon { width: 1rem; height: 1rem; color: var(--blue); }
.portfolio-card:hover, .portfolio-card:focus-visible { border-color: var(--blue); box-shadow: 0 14px 40px #0007, 0 0 18px #00b3ff20; }
.portfolio-card:hover .portfolio-card-link { color: var(--ice); }
/* Individual translate leaves the carousel's curved transform untouched. */
.portfolio-card.is-materializing { animation: portfolio-materialize 820ms steps(1, end) var(--glitch-delay, 0ms) both; }
.portfolio-card.is-materializing .portfolio-card-image::before,
.portfolio-card.is-materializing .portfolio-card-image::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--glitch-image) top left / 100% auto no-repeat;
    animation: portfolio-signal-slices 820ms steps(1, end) var(--glitch-delay, 0ms) both;
}
.portfolio-card.is-materializing .portfolio-card-image::before { filter: drop-shadow(5px 0 #00b3ff) saturate(1.6); }
.portfolio-card.is-materializing .portfolio-card-image::after { filter: drop-shadow(-4px 0 #ff4d9d); animation-direction: reverse; }
@keyframes portfolio-materialize {
    0% { opacity: 0; clip-path: inset(49% 0 49%); translate: 0 8px; }
    12% { opacity: 0.65; clip-path: inset(14% 0 54%); translate: -9px 3px; }
    23% { opacity: 0.9; clip-path: inset(0); translate: 5px 0; filter: drop-shadow(-5px 0 #00b3ff66); }
    34% { opacity: 0.75; clip-path: inset(0); translate: -3px 0; filter: drop-shadow(4px 0 #ff4d9d55); }
    48% { opacity: 1; clip-path: inset(0); translate: 0 0; filter: none; }
    65% { opacity: 1; clip-path: inset(0); translate: 2px 0; filter: drop-shadow(-2px 0 #00b3ff55); }
    78%, 100% { opacity: 1; clip-path: inset(0); translate: 0 0; filter: none; }
}
@keyframes portfolio-signal-slices {
    0%, 12% { opacity: 0; clip-path: inset(0); translate: 0 0; }
    23% { opacity: 0.85; clip-path: polygon(0 15%,100% 15%,100% 23%,0 23%,0 58%,100% 58%,100% 64%,0 64%); translate: 10px 0; }
    34% { opacity: 0.65; clip-path: inset(36% 0 51%); translate: -7px 0; }
    48% { opacity: 0.35; clip-path: inset(72% 0 23%); translate: 4px 0; }
    65% { opacity: 0.55; clip-path: inset(24% 0 71%); translate: -3px 0; }
    78%, 100% { opacity: 0; clip-path: inset(0); translate: 0 0; }
}
.motion-paused .portfolio-card.is-materializing,
.motion-paused .portfolio-card.is-materializing .portfolio-card-image::before,
.motion-paused .portfolio-card.is-materializing .portfolio-card-image::after { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .portfolio-card.is-materializing { animation: none; }
    .portfolio-card.is-materializing .portfolio-card-image::before,
    .portfolio-card.is-materializing .portfolio-card-image::after { content: none; }
}
.is-enhanced .portfolio-sign { position: absolute; top: 2.3rem; left: 50%; transform: translateX(-50%); z-index: 15; margin: 0; }
.is-enhanced .portfolio-ribbon { position: relative; display: block; height: 550px; padding: 0; overflow: hidden; touch-action: pan-y; cursor: grab; scroll-snap-type: none; }
.is-enhanced .portfolio-card { position: absolute; top: 85px; left: 50%; width: clamp(280px, 23vw, 340px); margin-left: calc(clamp(280px, 23vw, 340px) / -2); will-change: transform; transform-origin: 50% 45%; }
.is-enhanced .portfolio-ribbon.is-dragging, .is-enhanced .portfolio-ribbon.is-dragging a { cursor: grabbing; user-select: none; }
.portfolio-active .is-enhanced .portfolio-ribbon { transform-origin: 50% 65%; animation: portfolio-hover 8s ease-in-out 1.45s infinite; }
.portfolio-active .is-enhanced .portfolio-sign img { animation: portfolio-sign-hover 7s ease-in-out 1.05s infinite; }
@keyframes portfolio-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes portfolio-sign-hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 4px; } }
.portfolio-active .is-enhanced .portfolio-ribbon:is(:hover, :focus-within, .is-dragging) { animation-play-state: paused; }
.motion-paused .portfolio-active .portfolio-ribbon,
.motion-paused .portfolio-active .portfolio-sign img { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .portfolio-active .is-enhanced .portfolio-ribbon,
    .portfolio-active .is-enhanced .portfolio-sign img { animation: none; }
}
.portfolio-carousel-controls { display: none; }
.is-enhanced .portfolio-carousel-controls { display: flex; width: min(100% - 3rem, 36rem); align-items: center; justify-content: space-between; gap: 1rem; margin: -0.5rem auto 0; }
.portfolio-carousel-controls button { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 2.8rem; padding: 0.55rem 0.8rem; border: 1px solid #416072; border-radius: 0.3rem; background: #1b303c; color: var(--ice); cursor: pointer; font: 600 0.76rem var(--body); }
.portfolio-carousel-controls button:hover { border-color: var(--blue); background: #234151; }
.portfolio-position { text-align: center; display: grid; gap: 0.3rem; min-width: 0; }
.portfolio-position .micro { color: var(--blue); font-size: 0.62rem; }
.portfolio-position > [data-portfolio-current] { font: 700 0.9rem/1.15 var(--heading); }
#work .portfolio-gesture { text-align: center; max-width: none; color: #89a4b4; font-size: 0.58rem; letter-spacing: 0.1em; margin-top: 1.1rem; }
.portfolio-notes { width: min(100% - 5rem, 85rem); margin: 3.2rem auto 0; padding: 2.2rem 0 3rem; border-top: 1px solid #36505f; }
.portfolio-notes-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: start; }
.portfolio-notes-heading h3 { font: 700 clamp(1.25rem, 2.7vw, 2.6rem)/1.05 var(--heading); letter-spacing: -0.025em; margin: 0; }
@media (width > 700px) {
    .portfolio-carousel { margin-top: 1rem; }
    .is-enhanced .portfolio-sign { top: 2rem; }
    /* Card top + center dip + image height + caption and control clearance. */
    .is-enhanced .portfolio-ribbon { height: calc(85px + 132px + clamp(140px, 11.5vw, 170px) + 9rem); }
    .portfolio-notes { margin-top: 1.5rem; padding: 1rem 0 2rem; }
    .portfolio-notes-heading { align-items: center; }
}
.portfolio-motion { display: none; }
.mobile-dock { display: none; }
.mobile-dock-actions { display: flex; align-items: center; gap: clamp(0.55rem, 2vw, 1rem); }
.mobile-dock-toggle { display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid #416072; border-radius: 0.3rem; color: var(--ice); background: #1b303c; cursor: pointer; }
.mobile-dock .dock-motion { display: none; min-height: 44px; }
body:not(.guide-active, .portfolio-active):has(.scene[data-ready]) .mobile-dock .dock-motion { display: block; }
.studio-menu { max-width: none; max-height: none; width: 100%; height: 100dvh; inset: 0; margin: 0; padding: 0; border: 0; color: var(--ice); background: #111b22; overscroll-behavior: contain; }
.studio-menu::backdrop { background: #111b22; }
body:has(.studio-menu[open]) { overflow: hidden; }
.studio-menu-top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.3rem 2rem; border-bottom: 1px solid #36596c; position: sticky; top: 0; background: #111b22; z-index: 1; }
.studio-menu-top h2 { margin: 0; font: 700 1.8rem/1.1 var(--heading); letter-spacing: -0.02em; }
.studio-menu-top button { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; line-height: 1; border: 0; background: none; color: var(--ice); min-height: 44px; cursor: pointer; }
.studio-menu-top button .icon { width: 1rem; height: 1rem; }
.studio-menu-body { padding: 1rem 2rem 3rem; }
.studio-menu-body > h3 { color: var(--blue); margin: 1.5rem 0 0.8rem; }
.studio-menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.studio-menu-card { display: grid; grid-template-columns: 1fr auto; gap: 0.8rem; padding: 1rem; min-height: 105px; border: 1px solid #36596c; border-radius: 0.3rem; background: #192e3a; text-decoration: none; }
.studio-menu-card > .icon:first-child { color: var(--blue); }
.studio-menu-card > .icon:last-child { grid-row: 1; grid-column: 2; width: 0.9rem; color: var(--muted); }
.studio-menu-card > span { grid-column: 1/-1; font: 700 1rem/1.15 var(--heading); }
.studio-menu-card:hover { border-color: var(--blue); }
@media (width <= 1100px) {
    .js #studio-desktop-nav { display: none; }
    .js .mobile-dock { display: flex; justify-content: space-between; gap: 0.5rem; }
    .portfolio-motion { display: block; margin: 0.6rem auto 0; padding: 0.65rem 1rem; min-height: 44px; background: transparent; border: 0; color: var(--muted); cursor: pointer; }
    .portfolio-heading { padding-top: 1.7rem; }
    #work .portfolio-heading > p { max-width: 25ch; }
    .portfolio-notes-heading { gap: 2rem; }
}
@media (700px < width <= 1100px) {
    .portfolio-motion { position: absolute; inset-inline-end: 2.5rem; bottom: -0.9rem; margin: 0; }
}
@media (max-width:700px) {
    .portfolio-heading, .portfolio-notes { width: calc(100% - 3rem); }
    .portfolio-heading { gap: 1rem; align-items: start; }
    #work .portfolio-heading h2 { font-size: 2.8rem; }
    #work .portfolio-heading > p { font-size: 0.75rem; max-width: 21ch; padding-top: 1.5rem; }
    .portfolio-sign img { width: 245px; }
    .is-enhanced .portfolio-sign { top: 1.8rem; }
    .is-enhanced .portfolio-ribbon { height: 510px; }
    .portfolio-notes-heading { flex-direction: column; gap: 1rem; }
    .portfolio-notes-heading h3 { font-size: clamp(1rem, 5.3vw, 1.8rem); }
    .studio-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width:600px) {
    .portfolio-heading { width: calc(100% - 2rem); display: block; }
    #work .portfolio-heading > p { max-width: none; padding: 0; margin-top: 0.7rem; font-size: 0.8rem; }
    .portfolio-carousel { margin-top: 0.7rem; }
    .portfolio-sign img { width: 220px; }
    .is-enhanced .portfolio-sign { top: 1.2rem; }
    .portfolio-sign > span { font-size: 0.5rem; }
    .is-enhanced .portfolio-ribbon { height: 480px; }
    .is-enhanced .portfolio-card { width: min(280px, 72vw); margin-left: calc(min(280px, 72vw) / -2); top: 78px; }
    .portfolio-card-caption { padding: 0.8rem; min-height: 7rem; }
    .portfolio-card-caption strong { font-size: 1.2rem; }
    .portfolio-card-caption > .micro { font-size: 0.5rem; }
    .is-enhanced .portfolio-carousel-controls { width: calc(100% - 2rem); gap: 0.65rem; margin-top: -1rem; }
    .portfolio-carousel-controls button { padding: 0.5rem 0.65rem; gap: 0.4rem; font-size: 0.7rem; }
    .portfolio-position > [data-portfolio-current] { font-size: 0.8rem; max-width: 145px; }
    #work .portfolio-gesture { font-size: 0.47rem; margin-top: 1rem; }
    .portfolio-notes { width: calc(100% - 2rem); margin-top: 2.2rem; padding-top: 1.7rem; }
    .studio-menu-top { padding-inline: 1rem; }
    .studio-menu-top h2 { font-size: 1.5rem; }
    .studio-menu-body { padding-inline: 1rem; }
    .studio-menu-card { padding: 0.8rem; }
}
@media(prefers-reduced-motion:reduce) {
    .portfolio-card { scroll-behavior: auto; }
}

/* A connected card guide, built from the studio menu's raised panels. */
.studio.guide-overview { display: block !important; min-width: 0; overflow: visible; background: radial-gradient(ellipse at 50% 4%, #193b4b 0, transparent 65%), #11171b; }
.studio.guide-overview > .scene { display: none !important; }
.studio.guide-overview > #content-start { display: block; width: 100%; max-width: none; padding: 0 !important; margin: 0; min-height: 0; }
.service-guide { width: 100%; max-width: none; pointer-events: auto; }
.js .chapter-studio .service-guide { scroll-margin-block-start: 0; }
.guide-shell { width: min(100% - 5rem, 85rem); margin-inline: auto; padding-block: 2.3rem 1.8rem; }
.guide-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-bottom: 1.1rem; }
.service-guide .guide-heading h2 { font: 700 clamp(3rem, 5.2vw, 5.5rem)/0.92 var(--heading); letter-spacing: -0.045em; margin: 0.9rem 0 0; text-transform: uppercase; }
.guide-heading h2 span { color: var(--blue); }
.guide-intro { padding-bottom: 0.3rem; }
.service-guide .guide-intro p { max-width: 34ch; font-size: 0.9rem; line-height: 1.7; }
.guide-intro > .micro { display: flex; gap: 0.7rem; color: #8dacba; font-size: 0.55rem; margin-top: 1.1rem; letter-spacing: 0.05em; }
.guide-intro > .micro > span { color: var(--yellow); }
.problem-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.9rem, 1.7vw, 1.6rem); align-items: start; padding: 1.3rem 0.5rem 2.5rem; perspective: 1500px; }
.problem-card { --card-y:0px; --card-angle:0deg; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 1rem; border: 1px solid #42677b; border-radius: 0.55rem; background: radial-gradient(ellipse at 5% 5%, #00b3ff1c, transparent 62%), linear-gradient(155deg, #233842, #13232d); color: var(--ice); text-decoration: none; box-shadow: inset 0 1px #9cdcff24, inset 0 -2px #0610188c, 0 18px 28px #0005, 0 3px 0 #0b161e; transform: translateY(var(--card-y)) rotate(var(--card-angle)); transition: border-color 180ms ease, transform 220ms ease, box-shadow 220ms ease; }
.problem-grid .problem-card:nth-child(1) { --card-y: 20px; --card-angle: -2deg; }
.problem-grid .problem-card:nth-child(2) { --card-y: 0px; --card-angle: -0.7deg; }
.problem-grid .problem-card:nth-child(3) { --card-y: 25px; --card-angle: 0.8deg; }
.problem-grid .problem-card:nth-child(4) { --card-y: 9px; --card-angle: 1.8deg; }
.problem-card::before, .solution-card::before { content: ''; position: absolute; left: 1.2rem; top: -1px; width: 3rem; height: 2px; background: var(--blue); box-shadow: 0 0 12px #00b3ff88; }
.problem-card-top, .solution-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; min-height: 1.2rem; color: #a5c9db; }
.problem-card-top .micro { font-size: 0.55rem; letter-spacing: 0.065em; }
.card-status { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 7px #00b3ff80; }
.problem-card-copy { padding: 0 0.25rem; }
.problem-card h3 { margin: 0.9rem 0 0.65rem; min-height: 3.12em; font: 700 clamp(1.45rem, 1.85vw, 1.9rem)/1.04 var(--heading); letter-spacing: -0.025em; }
.service-guide .problem-card p { max-width: none; margin-bottom: 1rem; font-size: 0.77rem; line-height: 1.65; min-height: 4.95em; }
.problem-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: auto; padding: 0.85rem 0.25rem 0.1rem; border-top: 1px solid #395665; font-size: 0.7rem; color: #c1d6df; }
.problem-card-foot .icon { color: var(--blue); transition: transform 180ms ease; }
.problem-card:is(:hover, :focus-visible) { border-color: var(--blue); transform: translateY(calc(var(--card-y) - 8px)) rotate(0deg); box-shadow: inset 0 1px #9cdcff44, 0 23px 35px #0007, 0 0 18px #00b3ff18; }
.problem-card:is(:hover, :focus-visible) .problem-card-foot .icon, .solution-card:is(:hover, :focus-visible) .problem-card-foot .icon { transform: translateX(4px); }
.problem-card:is(:hover, :focus-visible) .card-status { background: var(--yellow); box-shadow: 0 0 8px #fff30070; }
.guide-visual { position: relative; width: 100%; aspect-ratio: 280 / 190; margin-top: 0.85rem; overflow: hidden; isolation: isolate; border: 1px solid #31576a; border-radius: 0.25rem; background: radial-gradient(ellipse at 50% 60%, #153846, #0c1b24 75%); box-shadow: inset 0 2px 12px #0006; }
.guide-scene { width: 100%; height: 100%; overflow: visible; }
.svg-grid { stroke: #294655; stroke-width: 1; }
.visual-corner { position: absolute; width: 8px; height: 8px; border-color: #729bae; opacity: 0.7; }
.visual-corner-tl { left: 5px; top: 5px; border-left: 1px solid; border-top: 1px solid; }
.visual-corner-br { right: 5px; bottom: 5px; border-right: 1px solid; border-bottom: 1px solid; }
.svg-motion { transform-box: fill-box; transform-origin: center; animation-play-state: paused !important; }
.is-in-view .svg-motion { animation-play-state: running !important; }
.svg-layer-back { animation: guide-layer-back 6s ease-in-out infinite; }
.svg-layer-main { animation: guide-layer-main 6s ease-in-out infinite; }
.svg-layer-phone { animation: guide-layer-phone 6s ease-in-out infinite; }
@keyframes guide-layer-back { 0%,100% { transform: translate(0, 0); } 40%,65% { transform: translate(8px,-8px); } }
@keyframes guide-layer-main { 0%,100% { transform: translate(0, 0); } 40%,65% { transform: translate(-3px,3px); } }
@keyframes guide-layer-phone { 0%,100% { transform: translate(0, 0); } 40%,65% { transform: translate(6px,6px); } }
.svg-route { animation: guide-route 3s linear infinite; }
@keyframes guide-route { to { stroke-dashoffset: -40; } }
.svg-signal { animation: guide-signal 3s ease-out infinite; }
@keyframes guide-signal { 0% { transform: scale(0.65); opacity: 0.7; } 80%,100% { transform: scale(1.4); opacity: 0; } }
.svg-pin { animation: guide-pin 4s ease-in-out infinite; }
@keyframes guide-pin { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.svg-search { animation: guide-search 5s ease-in-out infinite; }
@keyframes guide-search { 0%,100% { opacity: 0.7; } 40%,70% { opacity: 1; } }
.svg-needle { transform-box: view-box; transform-origin: 140px 121px; animation: guide-needle 5s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes guide-needle { 0%,100% { transform: rotate(-15deg); } 40%,65% { transform: rotate(15deg); } }
.svg-speed-arc { stroke-dasharray: 220; animation: guide-speed 5s ease-in-out infinite; }
@keyframes guide-speed { 0%,100% { stroke-dashoffset: 55; } 40%,65% { stroke-dashoffset: 0; } }
.svg-packet { animation: guide-packet 2.5s ease-in-out infinite; }
@keyframes guide-packet { 0% { transform: translateX(0); opacity: 0.2; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(120px); opacity: 0.2; } }
.svg-care-orbit { transform-box: view-box; transform-origin: 140px 99px; animation: guide-care 12s ease-in-out infinite; }
@keyframes guide-care { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.svg-shield { animation: guide-shield 5s ease-in-out infinite; }
@keyframes guide-shield { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.svg-check { stroke-dasharray: 1; animation: guide-check 5s ease-in-out infinite; }
@keyframes guide-check { 0%,100% { stroke-dashoffset: 0; } 35% { stroke-dashoffset: 0; } 50% { stroke-dashoffset: 1; } 70%,90% { stroke-dashoffset: 0; } }
/* Move the whole card without overriding its hover or layout transform. */
[data-guide-card].is-materializing {
    animation: guide-glitch 680ms steps(1,end) var(--glitch-delay,0ms) both;
}
[data-guide-card].is-materializing::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 12%, #00b3ff33 12% 14%, transparent 14% 32%, #ff4d9d33 32% 33%);
    animation: guide-glitch-lines 680ms steps(1,end) var(--glitch-delay,0ms) both;
}
@keyframes guide-glitch {
    0%, 48%, 75%, 100% { translate: 0; filter: none; }
    12% { translate: -6px 1px; filter: drop-shadow(4px 0 #00b3ff99); }
    23% { translate: 5px -1px; filter: drop-shadow(-4px 0 #ff4d9d77); }
    35% { translate: -2px; filter: drop-shadow(2px 0 #00b3ff66); }
    62% { translate: 2px; filter: drop-shadow(-2px 0 #ff4d9d55); }
}
@keyframes guide-glitch-lines {
    0%, 48%, 75%, 100% { opacity: 0; }
    12%, 35% { opacity: 0.85; clip-path: inset(12% 0 30%); }
    23%, 62% { opacity: 0.65; clip-path: inset(36% 0 8%); }
}
.motion-paused .svg-motion { animation-play-state: paused !important; }
.motion-paused [data-guide-card].is-materializing { animation: none; }
.motion-paused [data-guide-card].is-materializing::after { content: none; }
.guide-footnote { display: flex; justify-content: space-between; align-items: start; gap: 2rem; padding-top: 0.6rem; }
.service-guide .guide-footnote p { max-width: 66ch; font-size: 0.8rem; }
.guide-footnote .text-link { display: inline-flex; align-items: center; gap: 0.8rem; flex: none; }
.guide-motion { display: block; margin-top: 1.2rem; padding: 0.5rem 0; min-height: 44px; color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.guide-active .dock-controls { display: flex; }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; max-width: 52rem; margin-bottom: 1.1rem; }
.guide-steps a { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; padding-bottom: 0.6rem; border-bottom: 2px solid #2d4754; color: #8ba7b5; font-size: 0.78rem; text-decoration: none; }
.guide-steps a > span:first-child { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border: 1px solid #36596c; border-radius: 0.25rem; font: 500 0.65rem var(--mono); color: #8ba7b5; background: #172a34; }
.guide-steps a[aria-current] { border-bottom-color: var(--yellow); color: var(--ice); }
.guide-steps a[aria-current] > span:first-child { border-color: #949247; color: var(--yellow); }
.guide-steps a:hover { color: var(--blue); }
.guide-context { display: flex; align-items: center; flex-wrap: wrap; gap: 0.65rem 1rem; margin-bottom: 1.1rem; padding: 0.45rem 0; color: var(--muted); }
.guide-context > .micro { font-size: 0.55rem; color: #8ba7b5; }
.guide-context > span:not(.micro) { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--ice); }
.guide-context .icon { width: 1rem; height: 1rem; color: var(--blue); }
.guide-context a { font-size: 0.72rem; color: var(--blue); text-underline-offset: 0.2em; }
.guide-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 260px; align-items: center; gap: 2rem; padding: 1.3rem 1.6rem; border: 1px solid #42677b; border-radius: 0.55rem; background: radial-gradient(ellipse at 0 20%, #00b3ff1c, transparent 70%), linear-gradient(155deg,#233842,#13232d); box-shadow: inset 0 1px #9cdcff24, 0 14px 35px #0003; transform-origin: top left; }
.guide-hero .guide-visual { margin: 0; }
.guide-hero .eyebrow { font-size: 0.62rem; }
.service-guide .guide-hero h1 { max-width: 24ch; margin: 0.65rem 0; font: 700 clamp(2.1rem, 3.7vw, 4rem)/1.01 var(--heading); letter-spacing: -0.035em; text-transform: none; }
.service-guide .guide-hero p:not(.eyebrow) { max-width: 74ch; font-size: 0.85rem; line-height: 1.65; }
.guide-hero .text-link { display: inline-flex; gap: 0.8rem; align-items: center; margin-top: 1rem; font-size: 0.75rem; }
.guide-solutions { margin-top: 1.7rem; scroll-margin-top: 1.5rem; }
.guide-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; margin-bottom: 1.1rem; }
.service-guide :is(.guide-section-heading,.guide-refine,.guide-next) h2 { font: 700 clamp(1.5rem,2vw,2rem)/1.1 var(--heading); letter-spacing: -0.02em; text-transform: none; margin: 0; }
.service-guide .guide-section-heading p { max-width: 48ch; font-size: 0.77rem; }
.solution-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.solution-card { position: relative; display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: start; gap: 0.75rem 1rem; min-width: 0; padding: 1.2rem; border: 1px solid #36596c; border-radius: 0.45rem; background: radial-gradient(ellipse at 0 0,#00b3ff18,transparent 70%),#172a34; color: var(--ice); text-decoration: none; box-shadow: inset 0 1px #9cdcff1a,0 9px 20px #0003; transition: border-color 180ms ease,transform 220ms ease; }
.solution-card.solution-primary { border-color: #939047; background: radial-gradient(ellipse at 0 0,#fff30011,transparent 70%),#202e32; }
.solution-primary::before { background: var(--yellow); box-shadow: 0 0 10px #fff30044; }
.solution-top { grid-column: 1/-1; }
.solution-primary .solution-top { color: var(--yellow); }
.solution-top .micro { font-size: 0.55rem; letter-spacing: 0.05em; }
.solution-top .icon { width: 1.2rem; height: 1.2rem; }
.solution-card .guide-visual { aspect-ratio: 1; margin: 0.15rem 0 0; }
.solution-card .guide-scene { object-fit: contain; }
.solution-card h3 { margin: 0 0 0.6rem; font: 700 clamp(1.3rem,1.6vw,1.7rem)/1.08 var(--heading); letter-spacing: -0.015em; }
.service-guide .solution-card p { max-width: none; font-size: 0.74rem; line-height: 1.6; margin-bottom: 0.2rem; }
.solution-card .problem-card-foot { grid-column: 1/-1; font-size: 0.68rem; padding-top: 0.8rem; }
.solution-card:is(:hover,:focus-visible) { border-color: var(--blue); transform: translateY(-4px); }
.guide-refine { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 1.5rem; margin-top: 1.8rem; border: 1px solid #36596c; border-radius: 0.4rem; background: #14252e; }
.guide-refine .micro { color: var(--blue); font-size: 0.58rem; margin-bottom: 0.6rem; }
.guide-choices { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.guide-choices button { padding: 0.6rem 0.8rem; min-height: 44px; border: 1px solid #416072; border-radius: 0.25rem; background: #1b303a; color: var(--ice); font: 600 0.75rem/1.4 var(--body); cursor: pointer; }
.guide-choices button:hover { border-color: var(--blue); }
.guide-choices button[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); background: #2b3431; }
.guide-recommendation { padding: 1.1rem 1.25rem; border-left: 2px solid var(--yellow); background: #233134; }
.guide-recommendation > .micro { display: block; color: var(--yellow); }
.service-guide .guide-advice { max-width: 65ch; margin: 0.5rem 0 0.9rem; font-size: 0.82rem; min-height: 4.8em; }
.guide-recommendation .text-link { display: inline-flex; align-items: center; gap: 0.65rem; font-size: 0.73rem; }
.guide-next { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 2rem 0; scroll-margin-top: 1rem; }
.guide-next .micro { color: var(--blue); margin-bottom: 0.6rem; font-size: 0.58rem; }
.service-guide .guide-next p:not(.micro) { max-width: 62ch; margin-top: 0.65rem; font-size: 0.84rem; }
.guide-next .button { flex: none; }
.guide-other { padding-top: 1.5rem; border-top: 1px solid #36505c; }
.other-problems { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.problem-card-compact { display: grid; grid-template-columns: 94px minmax(0,1fr); gap: 0.8rem; padding: 1rem; }
.problem-card-compact .problem-card-top { grid-column: 1/-1; }
.problem-card-compact .problem-card-top .micro { font-size: 0.53rem; }
.problem-card-compact .guide-visual { aspect-ratio: 1; margin: 0; }
.problem-card-compact h3 { margin: 0; min-height: 0; font-size: 1.35rem; }
.problem-card-compact .problem-card-foot { grid-column: 1/-1; font-size: 0.65rem; }
.problem-card-compact::before { width: 2rem; }
.guide-service .guide-shell { max-width: 75rem; }
.service-plan { margin-top: 1.8rem; scroll-margin-top: 1rem; }
.service-stages { border-top: 1px solid #3a5969; }
.service-stage { border-bottom: 1px solid #3a5969; }
.service-stage summary { display: grid; grid-template-columns: 2.4rem minmax(0,1fr) 1.5rem; gap: 1rem; align-items: center; padding: 1.2rem 1rem; cursor: pointer; list-style: none; }
.service-stage summary::-webkit-details-marker { display: none; }
.service-stage-number { display: grid; place-items: center; height: 2.4rem; border: 1px solid #42677b; border-radius: 0.3rem; background: #1b303a; color: var(--blue); font: 500 0.75rem var(--mono); }
.service-stage summary h3 { margin: 0; font: 700 clamp(1.2rem,1.8vw,1.55rem)/1.15 var(--heading); }
.stage-toggle { color: var(--blue); font: 400 1.4rem var(--body); text-align: center; }
.service-stage[open] { background: #182a33; }
.service-stage[open] .service-stage-number { color: var(--yellow); border-color: #8b8845; }
.service-stage[open] .stage-toggle { transform: rotate(45deg); color: var(--yellow); }
.stage-content { padding: 0 4.5rem 1.5rem; }
.service-guide .stage-content p { max-width: 90ch; font-size: 0.86rem; line-height: 1.8; }
.stage-content p+p { margin-top: 0.9rem; }
.stage-content .chapter-figure { max-width: 48rem; }
.stage-content .chapter-links { margin-top: 1.2rem; }
.stage-content .text-link { font-size: 0.8rem; }
.guide-service-exit { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid #36505c; }
.guide-service-exit .text-link { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; }
@media (min-width:1101px) { .guide-motion { display: none; } }
@media (max-width:1100px) {
    .guide-shell { width: calc(100% - 3rem); padding-top: 1.7rem; }
    .guide-heading { gap: 2rem; }
    .service-guide .guide-intro p { font-size: 0.84rem; }
    .guide-intro > .micro { font-size: 0.5rem; gap: 0.4rem; }
    .problem-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; padding: 1rem 0 1.7rem; }
    .problem-grid .problem-card:nth-child(n) { --card-y: 0px; --card-angle: 0deg; }
    .problem-card { display: grid; grid-template-columns: 42% minmax(0,1fr); gap: 0.7rem 1rem; }
    .problem-card-top, .problem-card-foot { grid-column: 1/-1; }
    .problem-card .guide-visual { aspect-ratio: 0.82; margin: 0; }
    .problem-card-copy { padding: 0; }
    .problem-card h3 { min-height: 0; font-size: 1.55rem; margin: 0 0 0.6rem; }
    .service-guide .problem-card p { min-height: 0; font-size: 0.74rem; margin-bottom: 0; }
    .problem-card-compact .guide-visual { aspect-ratio: 1; }
    .guide-hero { grid-template-columns: minmax(0,1fr) 210px; gap: 1.2rem; }
    .guide-solutions,.service-plan,.guide-next { scroll-margin-top: 90px; }
    .solution-grid { gap: 0.8rem; }
    .solution-card { grid-template-columns: 1fr; padding: 1rem; }
    .solution-card .guide-visual { width: 100%; aspect-ratio: 280/145; margin: 0; }
    .solution-card h3 { font-size: 1.5rem; }
    .solution-copy { margin-bottom: 0.4rem; }
    .other-problems { gap: 0.8rem; }
    .problem-card-compact { display: flex; padding: 1rem; }
    .problem-card-compact .guide-visual { aspect-ratio: 280/160; }
    .problem-card-compact h3 { font-size: 1.35rem; margin-top: 0.4rem; }
    .problem-card-compact .problem-card-foot { margin-top: auto; }
}
@media (max-width:700px) {
    .guide-shell { width: calc(100% - 2rem); padding-top: 1.3rem; }
    .guide-heading { display: block; margin-bottom: 0.7rem; }
    .service-guide .guide-heading h2 { font-size: clamp(2.8rem,9.5vw,4rem); }
    .guide-intro { margin-top: 1rem; }
    .service-guide .guide-intro p { max-width: none; font-size: 0.87rem; }
    .guide-intro > .micro { margin-top: 0.8rem; font-size: 0.54rem; gap: 0.6rem; }
    .problem-grid { grid-template-columns: 1fr; gap: 1rem; padding: 0.7rem 0 1rem; }
    .problem-grid .problem-card { grid-template-columns: 38% minmax(0,1fr); gap: 0.65rem 0.9rem; padding: 0.9rem; }
    .problem-card-top .micro { font-size: 0.55rem; }
    .problem-card .guide-visual { aspect-ratio: 0.8; }
    .problem-card h3 { font-size: clamp(1.45rem,5.2vw,1.8rem); }
    .service-guide .problem-card p { font-size: 0.72rem; line-height: 1.6; }
    .problem-card-foot { font-size: 0.68rem; padding-top: 0.7rem; }
    .guide-footnote { flex-direction: column; gap: 0.8rem; }
    .guide-steps { gap: 0.65rem; }
    .guide-steps a { align-items: flex-start; gap: 0.45rem; font-size: 0.65rem; }
    .guide-steps a > span:first-child { flex: none; width: 1.45rem; height: 1.45rem; font-size: 0.57rem; }
    .guide-steps a > span:last-child { padding-top: 0.15rem; }
    .guide-context { gap: 0.5rem 0.75rem; margin-bottom: 0.9rem; }
    .guide-context > .micro { flex-basis: 100%; }
    .guide-hero { grid-template-columns: 1fr; padding: 1.2rem; gap: 1rem; }
    .guide-hero .guide-visual { width: min(100%,260px); aspect-ratio: 280/160; margin: 0 auto; }
    .service-guide .guide-hero h1 { font-size: clamp(2.1rem,7.5vw,3rem); }
    .service-guide .guide-hero p:not(.eyebrow) { font-size: 0.82rem; }
    .guide-section-heading { flex-direction: column; gap: 0.6rem; }
    .solution-grid, .other-problems { grid-template-columns: 1fr; }
    .solution-card { grid-template-columns: 92px minmax(0,1fr); gap: 0.7rem 1rem; }
    .solution-card .guide-visual { aspect-ratio: 0.9; }
    .solution-card h3 { font-size: 1.45rem; }
    .solution-top .micro { font-size: 0.59rem; }
    .guide-refine { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.1rem; }
    .guide-recommendation { padding: 1rem; }
    .service-guide .guide-advice { min-height: 0; font-size: 0.81rem; }
    .guide-next { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
    .problem-card-compact { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 0.7rem 0.9rem; }
    .problem-card-compact .guide-visual { aspect-ratio: 1; }
    .problem-card-compact h3 { font-size: 1.45rem; margin-top: 0; }
    .service-stage summary { grid-template-columns: 2rem minmax(0,1fr) 1rem; gap: 0.75rem; padding: 1rem 0.7rem; }
    .service-stage-number { height: 2rem; }
    .service-stage summary h3 { font-size: 1.22rem; }
    .stage-content { padding: 0 1rem 1.3rem; }
    .service-guide .stage-content p { font-size: 0.82rem; }
    .stage-content .chapter-diagram ol { grid-template-columns: 1fr; }
    .guide-service-exit { flex-wrap: wrap; }
}
@media (prefers-reduced-motion:reduce) {
    .service-guide .svg-motion, [data-guide-card].is-materializing { animation: none !important; }
    [data-guide-card].is-materializing::after { content: none; }
    .problem-card, .solution-card, .problem-card-foot .icon { transition: none; }
}

.question-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: 1.35rem;
}
.question-toolbar > .micro { color: var(--blue); }
.question-motion {
    min-height: 44px;
    padding: 0.4rem 0.8rem;
    border: 1px solid #416072;
    border-radius: 0.35rem;
    background: #1b303c;
    color: var(--ice);
    white-space: nowrap;
    cursor: pointer;
}
.question-motion:hover { border-color: var(--blue); }
#services { container-type: inline-size; }
.question-track {
    --question-width: min(27cqw, 22.5rem);
    --question-gap: clamp(0.9rem, 1.7vw, 1.6rem);
    display: flex;
    container-type: inline-size;
    width: 100cqw;
    margin-inline: calc((100% - 100cqw) / 2);
    padding-block: 1rem 1.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: #42677b #15232b;
}
.question-group {
    display: flex;
    flex: none;
    gap: var(--question-gap);
    padding-inline-end: var(--question-gap);
}
.question-track .problem-card { display: flex; flex: 0 0 var(--question-width); }
.question-track :focus-visible { outline-offset: -3px; }
.question-track.is-dragging, .question-track.is-dragging .problem-card { cursor: grabbing; user-select: none; }
.question-track .guide-visual { aspect-ratio: 280 / 160; margin: 0.85rem 0 0; }
.question-track .problem-card h3 { margin: 0.85rem 0 0.55rem; }
.service-guide .question-track .problem-card p { margin-bottom: 0.85rem; }
.question-solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svg-question-signal { animation: question-signal 3.8s ease-in-out infinite; }
@keyframes question-signal {
    0%, 100% { opacity: 0.72; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}
@media (max-width:1100px) {
    .question-track { --question-width: 43cqw; }
}
@media (max-width:700px) {
    .question-track { --question-width: 86cqw; }
    .question-toolbar > .micro, .question-motion { font-size: 0.61rem; }
    .question-solutions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion:reduce) {
    .question-copy { display: none; }
}
