:root {
    color-scheme: light;
    /* Pantone-inspired: Classic Blue, Ultra Violet, Radiant Orchid and Illuminating. */
    --bg: #ffffff;
    --ink: #17263a;
    --muted: #526476;
    --line: rgba(23, 38, 58, 0.14);
    --panel: rgba(255, 255, 255, 0.76);
    --accent: #0f4c81;
    --accent-2: #8d4b7d;
    --accent-3: #5f4b8b;
    --accent-4: #a97b00;
    --shadow: 0 24px 80px rgba(23, 38, 58, 0.13);
    --page-start: 86px;
    --page-title-size: clamp(4.5rem, 10vw, 9.6rem);
    --page-title-line-height: 0.88;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(ellipse 70% 60% at 2% 6%, rgba(15, 76, 129, 0.07), transparent 72%),
        radial-gradient(ellipse 64% 58% at 100% 94%, rgba(95, 75, 139, 0.07), transparent 72%),
        radial-gradient(circle at 74% 16%, rgba(141, 75, 125, 0.055), transparent 38%),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--ink);
    color: #fffcf5;
    font-weight: 760;
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

#field {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.24;
    pointer-events: none;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1840px, calc(100% - 64px));
    margin: 0 auto;
    padding: 18px 0;
}

.brand-mark {
    display: grid;
    gap: 1px;
    min-width: max-content;
    color: var(--ink);
    line-height: 1;
}

.brand-mark span {
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.brand-mark strong {
    color: var(--accent-3);
    font-size: 0.59rem;
    font-weight: 780;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-mark:hover,
.brand-mark:focus-visible {
    color: var(--accent);
    outline: none;
}

.header-controls {
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 760;
}

.nav-toggle-icon {
    display: grid;
    gap: 4px;
    width: 16px;
}

.nav-toggle-icon span {
    display: block;
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease;
}

nav {
    display: flex;
    gap: 6px;
}

nav a {
    min-width: 76px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent-3);
    background: rgba(95, 75, 139, 0.1);
    outline: none;
}

nav a[aria-current="page"],
nav a[aria-current="page"]:hover,
nav a[aria-current="page"]:focus-visible {
    background: var(--accent-3);
    color: #fff;
    box-shadow: 0 5px 14px rgba(95, 75, 139, 0.24);
}

.language-switcher {
    position: relative;
    margin-left: 4px;
    border-left: 1px solid var(--line);
}

.language-switcher summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 760;
    list-style: none;
}

.language-switcher summary::-webkit-details-marker {
    display: none;
}

.language-switcher summary::after {
    width: 6px;
    height: 6px;
    margin-left: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

.language-switcher[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.language-switcher summary:hover,
.language-switcher summary:focus-visible,
.language-switcher[open] summary {
    background: var(--accent-3);
    color: #fff;
    outline: none;
}

.language-options {
    position: absolute;
    top: calc(100% + 9px);
    right: -4px;
    display: grid;
    min-width: 136px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

.language-options a {
    padding: 9px 10px;
    border-radius: 5px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.language-options a:hover,
.language-options a:focus-visible,
.language-options a[aria-current="page"] {
    background: var(--accent-3);
    color: #fff;
    outline: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    width: min(1840px, calc(100% - 64px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 48px;
    align-items: end;
    min-height: calc(100svh - 76px);
    padding: 70px 0 96px;
}

.hero-copy {
    max-width: 790px;
}

.eyebrow {
    margin: 0 0 13px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 760;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1 {
    max-width: 10ch;
    margin: 0;
    font-size: clamp(3rem, 10vw, 7.9rem);
    line-height: 0.93;
    font-weight: 790;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 0.98;
    font-weight: 760;
}

h3 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.15;
}

.intro {
    max-width: 690px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: 1.18rem;
}

.role-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--accent-3);
    font-size: clamp(1.35rem, 3vw, 2.25rem);
    font-weight: 740;
    line-height: 1.08;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-weight: 720;
}

.button.primary {
    border-color: var(--ink);
    background: linear-gradient(135deg, var(--ink), #29425e);
    color: #fffcf5;
}

.button.secondary {
    border-color: rgba(15, 76, 129, 0.36);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent);
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.button.primary:hover,
.button.primary:focus-visible {
    border-color: var(--accent-3);
    background: var(--accent-3);
    color: #fff;
}

.button.secondary:hover,
.button.secondary:focus-visible {
    border-color: var(--accent-3);
    background: rgba(95, 75, 139, 0.1);
    color: var(--accent-3);
}

.hero-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-signal {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    border-left: 1px solid var(--line);
}

.hero-home {
    display: block;
    min-height: 0;
    padding: var(--page-start) 0 72px;
}

.hero-home .hero-copy {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: none;
}

.hero-home h1,
.about-intro h1,
.work-placeholder h1,
.contact-page > h1 {
    max-width: none;
    margin: 0;
    font-size: var(--page-title-size);
    line-height: var(--page-title-line-height);
}

.hero-home .role-line {
    max-width: none;
    margin-top: 20px;
    font-size: clamp(1.8rem, 4.2vw, 4rem);
    font-weight: 500;
    line-height: 0.98;
}

.hero-home .hero-actions {
    margin-top: 52px;
}

.hub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(32px, 4vw, 72px);
    align-items: stretch;
    min-height: min(780px, calc(100svh - 88px));
    padding: clamp(42px, 6vw, 96px) 0 74px;
}

.hub-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
}

.hub-hero-copy h1 {
    max-width: 31ch;
    margin: 0;
    font-size: clamp(2.5rem, 4.8vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.hub-hero-intro {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.65vw, 1.32rem);
    font-weight: 580;
    line-height: 1.42;
}

.hub-hero-prompt {
    max-width: 32ch;
    margin: 22px 0 0;
    color: var(--accent-3);
    font-size: 0.83rem;
    font-weight: 790;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
}

.hub-workspace {
    display: grid;
    grid-template-columns: minmax(190px, 0.48fr) minmax(360px, 1fr);
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    min-height: 530px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: var(--shadow);
}

.hub-route-tabs {
    display: grid;
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: 20px 14px;
    border-right: 1px solid var(--line);
    background: rgba(23, 38, 58, 0.035);
}

.hub-route-tabs > p {
    margin: 0 6px 15px;
    color: var(--accent-3);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hub-route-tab {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    width: 100%;
    min-height: 68px;
    padding: 13px 9px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.hub-route-tab span {
    color: var(--accent-3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hub-route-tab strong {
    font-size: 0.9rem;
    line-height: 1.12;
}

.hub-route-tab:hover,
.hub-route-tab.active {
    background: var(--ink);
    color: #fff;
    transform: translateX(3px);
}

.hub-route-tab.active span,
.hub-route-tab:hover span {
    color: #c9d9ea;
}

.hub-route-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.hub-route-stage {
    height: 100%;
    min-width: 0;
}

.hub-route-panel {
    display: grid;
    grid-template-columns: minmax(175px, 0.52fr) minmax(260px, 0.9fr);
    min-height: 100%;
}

.hub-route-placeholder,
.service-stage-placeholder,
.home-case-visual {
    display: grid;
    align-content: space-between;
    justify-items: start;
}

.hub-route-placeholder {
    min-height: 100%;
    padding: 25px;
    color: rgba(255, 255, 255, 0.88);
}

.hub-route-placeholder span,
.service-stage-placeholder span,
.home-case-visual span {
    font-size: 0.68rem;
    font-weight: 790;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.hub-route-placeholder strong,
.home-case-visual strong {
    font-size: clamp(4.5rem, 8vw, 7rem);
    letter-spacing: -0.07em;
    line-height: 0.76;
}

.hub-tone-1,
.home-case-tone-1 {
    background: #183c5b;
}

.hub-tone-2,
.home-case-tone-2 {
    background: #8d4b7d;
}

.hub-tone-3 {
    background: #5f4b8b;
}

.hub-tone-4 {
    background: #a97b00;
}

.hub-tone-5 {
    background: #0f4c81;
}

.hub-tone-6 {
    background: #8d4b7d;
}

.hub-tone-7 {
    background: #386958;
}

.hub-tone-8 {
    background: #a34d35;
}

.hub-route-copy {
    display: grid;
    align-content: center;
    gap: 14px;
    padding: clamp(26px, 4vw, 52px);
}

.hub-route-copy h2 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(1.7rem, 2.6vw, 2.7rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hub-route-copy > p:not(.hub-route-label):not(.hub-route-result) {
    max-width: 38ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.48;
}

.hub-route-label,
.hub-route-result span {
    margin: 0;
    color: var(--accent-3);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.hub-route-result {
    display: grid;
    gap: 5px;
    max-width: 42ch;
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.35;
}

.hub-route-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 3px;
}

.hub-route-actions a {
    display: grid;
    gap: 7px;
    min-height: 75px;
    padding: 10px 8px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.18;
}

.hub-route-actions a + a {
    border-left: 1px solid var(--line);
}

.hub-route-actions a span {
    align-self: end;
    color: var(--accent);
    font-size: 1rem;
    transition: transform 160ms ease;
}

.hub-route-actions a:hover,
.hub-route-actions a:focus-visible {
    color: var(--accent-3);
    outline: none;
}

.hub-route-actions a:hover span,
.hub-route-actions a:focus-visible span {
    transform: translate(3px, 2px);
}

/* The home hub keeps every route decision in one connected workspace. */
.hub-workspace {
    grid-template-columns: minmax(176px, 0.45fr) minmax(148px, 0.31fr) minmax(300px, 1fr);
    height: 650px;
    min-height: 0;
    overflow-anchor: none;
}

.hub-route-middle {
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr);
    min-width: 0;
    border-right: 1px solid var(--line);
    background: rgba(23, 38, 58, 0.025);
}

.hub-route-menu {
    display: grid;
    align-content: start;
    padding: 20px 14px 14px;
}

.hub-route-menu > p {
    margin: 0 6px 15px;
    color: var(--accent-3);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hub-menu-button {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    width: 100%;
    min-height: 60px;
    padding: 11px 8px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms ease, color 160ms ease;
}

.hub-menu-button span {
    color: var(--accent-3);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hub-menu-button strong {
    font-size: 0.8rem;
    line-height: 1.16;
}

.hub-menu-button:hover,
.hub-menu-button.active {
    background: var(--accent-3);
    color: #fff;
}

.hub-menu-button:hover span,
.hub-menu-button.active span {
    color: #eadfff;
}

.hub-menu-button:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.hub-route-signals {
    min-height: 0;
}

.hub-route-signal {
    display: grid;
    align-content: space-between;
    min-height: 100%;
    padding: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.hub-route-signal span,
.hub-example-placeholder span {
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.hub-route-signal strong {
    font-size: clamp(4.5rem, 7.5vw, 7.2rem);
    letter-spacing: -0.075em;
    line-height: 0.76;
}

.hub-route-panel {
    display: block;
    height: 100%;
    min-height: 100%;
}

.hub-detail-view {
    display: grid;
    align-content: center;
    gap: 15px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding: clamp(26px, 4.1vw, 62px);
}

.hub-detail-view h2 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.45rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
}

.hub-route-text {
    max-width: 38ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(0.92rem, 1.1vw, 1.05rem);
    line-height: 1.48;
}

.hub-detail-view .hub-route-result {
    max-width: 43ch;
    margin-top: 3px;
}

.hub-deliverables {
    display: grid;
    gap: 0;
    max-width: 43ch;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.hub-deliverables li {
    padding: 12px 0 12px 26px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.3;
    position: relative;
}

.hub-deliverables li::before {
    position: absolute;
    top: 13px;
    left: 0;
    color: var(--accent);
    content: "↗";
    font-weight: 800;
}

.hub-process-step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    max-width: 44ch;
    padding: 11px 0;
    border-top: 1px solid var(--line);
}

.hub-process-step:last-child {
    border-bottom: 1px solid var(--line);
}

.hub-process-step > span {
    color: var(--accent-3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hub-process-step div {
    display: grid;
    gap: 3px;
}

.hub-process-step strong {
    font-size: 0.9rem;
    line-height: 1.2;
}

.hub-process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.hub-example-placeholder {
    display: grid;
    align-content: space-between;
    min-height: 150px;
    max-width: 43ch;
    padding: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.hub-example-placeholder strong {
    font-size: 4.4rem;
    letter-spacing: -0.07em;
    line-height: 0.78;
}

.hub-inline-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    margin-top: 3px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
}

.hub-inline-link:hover,
.hub-inline-link:focus-visible {
    color: var(--accent-3);
    outline: none;
}

.hub-project-form {
    display: grid;
    gap: 10px;
    min-width: 0;
    max-width: 45ch;
    margin-top: 2px;
}

.hub-project-form label {
    display: grid;
    gap: 5px;
    color: var(--ink);
    font-size: 0.73rem;
    font-weight: 780;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hub-project-form input,
.hub-project-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font: inherit;
    font-size: 0.88rem;
    letter-spacing: normal;
    text-transform: none;
}

.hub-project-form input {
    min-height: 38px;
    padding: 8px 10px;
}

.hub-project-form textarea {
    min-height: 72px;
    padding: 9px 10px;
    resize: vertical;
}

.hub-project-form input:focus,
.hub-project-form textarea:focus {
    border-color: var(--accent);
    outline: 2px solid rgba(15, 76, 129, 0.17);
    outline-offset: 1px;
}

.hub-project-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.hub-project-form-row > label {
    min-width: 0;
}

.hub-project-file input {
    min-height: 0;
    padding: 7px;
    font-size: 0.75rem;
}

.hub-project-send {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
}

.hub-project-send:hover,
.hub-project-send:focus-visible {
    background: var(--accent-3);
    outline: none;
}

.hub-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 720px);
    margin-top: 48px;
    border-top: 1px solid var(--line);
}

.hub-action {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 108px;
    padding: 16px 14px 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.hub-action + .hub-action {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.hub-action > span {
    grid-column: 1 / -1;
    color: var(--accent-3);
    font-size: 0.71rem;
    font-weight: 790;
    letter-spacing: 0.08em;
}

.hub-action strong {
    align-self: end;
    font-size: 0.95rem;
    line-height: 1.1;
}

.hub-action em {
    align-self: end;
    color: var(--accent);
    font-size: 1.1rem;
    font-style: normal;
    transition: transform 160ms ease;
}

.hub-action:hover strong,
.hub-action:focus-visible strong {
    color: var(--accent-3);
}

.hub-action:hover em,
.hub-action:focus-visible em {
    transform: translate(3px, 2px);
}

.hub-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.hub-feature {
    position: relative;
    display: grid;
    min-height: 530px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--ink);
    box-shadow: var(--shadow);
}

.hub-feature::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 24, 40, 0.04) 24%, rgba(12, 24, 40, 0.84) 100%);
    content: "";
}

.hub-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.hub-feature:hover img,
.hub-feature:focus-visible img {
    transform: scale(1.035);
}

.hub-feature:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.hub-feature-copy {
    position: absolute;
    right: 30px;
    bottom: 28px;
    left: 30px;
    z-index: 1;
    display: grid;
    gap: 7px;
    color: #fff;
}

.hub-feature-copy span,
.hub-feature-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
    font-weight: 760;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hub-feature-copy strong {
    max-width: 12ch;
    font-size: clamp(1.55rem, 2.8vw, 2.65rem);
    line-height: 0.98;
}

.home-cases {
    padding: 78px 0 94px;
    border-top: 1px solid var(--line);
}

.home-cases-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}

.home-cases-heading h2 {
    max-width: 11ch;
    font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

.home-case-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 16px;
}

.home-case {
    position: relative;
    display: grid;
    grid-template-rows: minmax(212px, 0.9fr) minmax(185px, 0.7fr);
    min-height: 470px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(23, 38, 58, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-case-visual {
    min-height: 212px;
    padding: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.home-case-copy {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 22px 24px 24px;
    color: var(--ink);
}

.home-case-copy > span,
.home-case-copy em {
    color: var(--accent-3);
    font-size: 0.73rem;
    font-style: normal;
    font-weight: 760;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.home-case-copy strong {
    max-width: 17ch;
    font-size: clamp(1.35rem, 2.1vw, 2.05rem);
    line-height: 1.02;
}

.home-case-copy p {
    max-width: 550px;
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.42;
}

.home-case:hover,
.home-case:focus-visible {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.home-case:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.hero-footnote {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
    gap: 26px;
    margin-top: 64px;
    padding-top: 0;
}

.hero-footnote p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
    font-weight: 650;
}

.hero-footnote p + p {
    padding-left: 26px;
    border-left: 1px solid var(--line);
}

.metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.metric:last-child {
    border-bottom: 0;
}

.metric span {
    color: var(--muted);
    font-size: 0.9rem;
}

.metric strong {
    text-align: right;
}

.section {
    padding: 94px 0;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.page-section {
    min-height: calc(100svh - 76px);
    padding-top: var(--page-start);
    border-top: 0;
}

.service-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.service-row {
    display: grid;
    grid-template-columns: 54px minmax(190px, 0.8fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    min-height: 76px;
    padding: 19px 0;
    border-bottom: 1px solid var(--line);
    cursor: default;
}

.service-index {
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 780;
}

.service-row h3 {
    margin: 0;
    font-size: 1.22rem;
    font-weight: 470;
    transition: color 160ms ease, font-weight 160ms ease;
}

.service-row p {
    margin: 0;
    color: var(--muted);
    opacity: 1;
    transform: none;
}

.service-row:hover h3 {
    color: var(--accent-3);
    font-weight: 790;
}

.project-list {
    display: grid;
    border-top: 1px solid var(--line);
}

.project-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
    gap: 26px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.project-row p {
    margin: 0;
    color: var(--muted);
}

.project-meta {
    margin-bottom: 8px !important;
    color: var(--accent-2) !important;
    font-size: 0.8rem;
    font-weight: 760;
    text-transform: uppercase;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
}

.gallery-page-title {
    max-width: none;
    margin-bottom: 34px;
    font-size: clamp(3.2rem, 7vw, 7rem);
    line-height: 0.9;
}

.filter-chip {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.68);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 690;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.active {
    border-color: var(--accent-3);
    background: var(--accent-3);
    color: #fff;
    outline: none;
}

.filter-chip.active:not([data-filter="All"])::after {
    content: "×";
    display: inline-block;
    margin-left: 0.42rem;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 0;
    vertical-align: -0.04em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.gallery-card {
    display: block;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(23, 38, 58, 0.055);
    color: inherit;
    cursor: pointer;
    font: inherit;
    overflow: hidden;
    text-align: left;
    transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.gallery-card.is-muted {
    filter: grayscale(0.8) blur(1.3px);
    opacity: 0.32;
}

.gallery-image-wrap {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #e9ece8;
}

.gallery-visual {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-placeholder {
    display: grid;
    align-content: end;
    padding: 18px;
    background: #183c5b;
    color: rgba(255, 255, 255, 0.9);
}

.gallery-placeholder span {
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.gallery-card:nth-child(4n + 2) .gallery-placeholder {
    background: #8d4b7d;
}

.gallery-card:nth-child(4n + 3) .gallery-placeholder {
    background: #5f4b8b;
}

.gallery-card:nth-child(4n) .gallery-placeholder {
    background: #a97b00;
}

.gallery-card:hover .gallery-visual,
.gallery-card:focus-visible .gallery-visual {
    transform: scale(1.045);
}

.gallery-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.generated-visual {
    position: relative;
    background:
        linear-gradient(135deg, rgba(95, 75, 139, 0.34), transparent 42%),
        linear-gradient(315deg, rgba(173, 90, 156, 0.34), transparent 36%),
        #e8e5dc;
}

.generated-visual span {
    position: absolute;
    border: 1px solid rgba(23, 38, 58, 0.28);
    transform: rotate(-9deg);
}

.generated-visual span:nth-child(1) {
    inset: 18% 16% auto auto;
    width: 42%;
    height: 38%;
}

.generated-visual span:nth-child(2) {
    inset: auto auto 18% 14%;
    width: 48%;
    height: 32%;
}

.generated-visual span:nth-child(3) {
    inset: 28% auto auto 26%;
    width: 22%;
    height: 44%;
    border-color: rgba(15, 76, 129, 0.48);
}

.generated-visual span:nth-child(4) {
    inset: 16% 24% 20% 36%;
    border-style: dashed;
}

.gallery-card-copy {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.gallery-card-copy strong {
    font-size: 1.25rem;
    line-height: 1.15;
}

.gallery-card-copy span:not(.project-meta) {
    color: var(--muted);
}

.gallery-card-copy ul,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.gallery-card-copy li,
.detail-tags li {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.project-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 30;
    width: min(1120px, calc(100% - 48px));
    max-height: min(82svh, 860px);
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(23, 38, 58, 0.22);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: var(--shadow);
    overflow: auto;
    transform: translate(-50%, -50%);
}

.detail-close {
    display: block;
    margin-left: auto;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 690;
}

.detail-close:hover,
.detail-close:focus-visible {
    color: var(--ink);
    border-color: rgba(23, 38, 58, 0.42);
    outline: none;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 18px;
}

.detail-layout h2,
.detail-layout h3 {
    margin-bottom: 16px;
    font-size: clamp(1.9rem, 4vw, 3.4rem);
    line-height: 0.98;
}

.detail-layout p {
    color: var(--muted);
}

#detail-description {
    white-space: pre-line;
}

.detail-images {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.detail-image {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e9ece8;
}

.detail-image:first-child {
    grid-column: auto;
    aspect-ratio: auto;
}

.detail-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 68svh;
    object-fit: contain;
}

.detail-image .generated-visual,
.detail-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-placeholder {
    display: grid;
    align-content: end;
    min-height: 160px;
    padding: 16px;
    background: #5f4b8b;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.detail-image figcaption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-intro {
    max-width: 1100px;
}

.about-intro > p:last-child {
    max-width: 760px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.offer-heading {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 82px 0 28px;
}

.offer-heading .eyebrow {
    margin-top: 8px;
}

.offer-heading h2,
.offer-heading h3 {
    max-width: 620px;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.05;
}

.expertise-card {
    min-height: 250px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.7);
}

.card-index {
    display: block;
    margin-bottom: 54px;
    color: var(--accent-3);
    font-weight: 780;
}

.expertise-card p {
    margin: 16px 0 0;
    color: var(--muted);
}

.about-tools {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
}

.tools {
    display: grid;
    grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
    gap: 50px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-list li {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.7);
    color: var(--muted);
    font-weight: 680;
}

.contact {
    min-height: 58vh;
    padding: 100px 0 120px;
    border-top: 1px solid var(--line);
}

.contact h1,
.contact h2 {
    max-width: 840px;
    margin-bottom: 28px;
}

.contact-page > h1 {
    max-width: 12ch;
}

.contact a {
    display: inline-flex;
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 760;
}

.contact a:hover,
.contact a:focus-visible {
    color: var(--accent-3);
    outline: none;
}

.contact-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: calc(100svh - 76px);
    padding-top: var(--page-start);
    border-top: 0;
}

.contact-copy {
    max-width: 670px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.1rem;
}

.contact-email {
    display: inline-flex;
    padding-bottom: 3px;
    border-bottom: 1px solid currentcolor;
}

.contact-method {
    align-self: start;
    font-size: 1rem !important;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.contact-invitation {
    display: grid;
    gap: 26px;
    width: min(100%, 960px);
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.contact-invitation h2 {
    max-width: 760px;
    font-size: clamp(1.7rem, 3.5vw, 3.1rem);
    line-height: 1;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 28px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.contact-details p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.problem-report {
    display: grid;
    grid-template-columns: minmax(230px, 0.66fr) minmax(0, 1fr);
    gap: 44px;
    width: min(100%, 1120px);
    margin-top: 58px;
    padding: 34px 0 0;
    border-top: 1px solid var(--line);
}

.problem-report-heading h2 {
    max-width: 12ch;
    margin: 12px 0 18px;
    font-size: clamp(1.9rem, 4vw, 3.45rem);
    line-height: 0.98;
}

.problem-report-heading > p:last-child {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
}

.problem-form {
    display: grid;
    gap: 19px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.7);
}

.problem-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.problem-form label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 760;
}

.problem-form input:not([type="file"]),
.problem-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    font: inherit;
    font-weight: 560;
}

.problem-form input:not([type="file"]) {
    min-height: 46px;
    padding: 0 12px;
}

.problem-form textarea {
    min-height: 142px;
    padding: 12px;
    resize: vertical;
}

.problem-form input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 9px 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 560;
}

.problem-form input::file-selector-button {
    margin-right: 12px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 720;
}

.problem-form input::file-selector-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.problem-form small {
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 560;
    line-height: 1.4;
}

.problem-form input:focus-visible,
.problem-form textarea:focus-visible,
.problem-form input[type="file"]:focus-visible {
    border-color: var(--accent);
    outline: 2px solid rgba(15, 76, 129, 0.22);
    outline-offset: 2px;
}

.problem-form-submit {
    justify-self: start;
    margin-top: 3px;
}

.form-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.services-intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
    margin-bottom: 40px;
}

.services-intro h1,
.services-intro h2 {
    max-width: 11ch;
    margin-top: 12px;
    font-size: clamp(3rem, 5.4vw, 5.4rem);
    line-height: 0.94;
}

.services-contact {
    display: grid;
    gap: 24px;
    max-width: 690px;
    padding-top: 10px;
}

.services-contact p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.5vw, 1.3rem);
    font-weight: 600;
}

.services-contact .button {
    justify-self: start;
}

.service-navigator-shell {
    margin-top: 50px;
}

.service-navigator {
    display: grid;
    grid-template-columns: minmax(270px, 0.56fr) minmax(0, 1fr);
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 253, 248, 0.76);
    box-shadow: 0 16px 45px rgba(23, 38, 58, 0.08);
}

.service-selector {
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 16px;
    border-right: 1px solid var(--line);
    background: rgba(23, 38, 58, 0.035);
}

.service-selector-label {
    margin: 3px 8px 14px;
    color: var(--accent-3);
    font-size: 0.73rem;
    font-weight: 790;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-selector-button {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 16px;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 13px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.service-selector-button:hover,
.service-selector-button:focus-visible {
    border-color: rgba(15, 76, 129, 0.28);
    background: rgba(255, 255, 255, 0.74);
    outline: none;
}

.service-selector-button.active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
    box-shadow: 0 8px 20px rgba(23, 38, 58, 0.13);
}

.service-selector-index {
    color: var(--accent-3);
    font-size: 0.76rem;
    font-weight: 790;
}

.service-selector-button.active .service-selector-index {
    color: #c9bce7;
}

.service-selector-title {
    font-size: 0.96rem;
    font-weight: 720;
    line-height: 1.15;
}

.service-selector-arrow {
    justify-self: end;
    font-size: 1.05rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.service-selector-button:hover .service-selector-arrow,
.service-selector-button:focus-visible .service-selector-arrow,
.service-selector-button.active .service-selector-arrow {
    opacity: 1;
    transform: translateX(0);
}

.service-stage-deck {
    position: relative;
    min-width: 0;
}

.service-stage {
    display: grid;
    align-content: space-between;
    min-height: 100%;
    padding: clamp(30px, 4vw, 58px);
}

.service-stage[hidden] {
    display: none;
}

.service-stage-intro {
    max-width: 850px;
}

.service-stage-index,
.service-stage-label,
.service-stage-example > span {
    margin: 0;
    color: var(--accent-3);
    font-size: 0.75rem;
    font-weight: 790;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.service-stage h3 {
    max-width: 15ch;
    margin: 14px 0 32px;
    font-size: clamp(2rem, 4.1vw, 4.25rem);
    line-height: 0.94;
}

.service-stage-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 38px;
    max-width: 770px;
}

.service-stage-copy > div {
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.service-stage-copy > div > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.48;
}

.service-stage-result {
    color: var(--ink) !important;
    font-weight: 700;
}

.service-stage-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(205px, 0.74fr);
    gap: 30px;
    margin-top: 44px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.service-stage-deliverables ul {
    display: grid;
    gap: 9px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.service-stage-deliverables li {
    position: relative;
    max-width: 460px;
    padding-left: 16px;
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 620;
    line-height: 1.38;
}

.service-stage-deliverables li::before {
    position: absolute;
    top: 0.5em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.service-stage-example {
    display: grid;
    gap: 7px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-stage-example img {
    width: 100%;
    min-height: 126px;
    max-height: 164px;
    margin-bottom: 4px;
    border-radius: 5px;
    object-fit: cover;
}

.service-stage-placeholder {
    min-height: 146px;
    margin-bottom: 4px;
    padding: 13px;
    border-radius: 5px;
    background: var(--accent-3);
    color: rgba(255, 255, 255, 0.9);
}

.service-stage-placeholder strong {
    color: #fff;
    font-size: 3.3rem;
    letter-spacing: -0.06em;
    line-height: 0.78;
}

.service-stage-example strong {
    font-size: 1.05rem;
    line-height: 1.12;
}

.service-stage-example p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.4;
}

.service-stage-example em {
    align-self: end;
    margin-top: 5px;
    color: var(--accent);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 760;
}

.service-stage-example:hover,
.service-stage-example:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-2px);
}

.service-path-grid {
    display: grid;
    border-top: 1px solid var(--line);
}

.service-path-card {
    display: grid;
    grid-template-columns: minmax(190px, 0.78fr) minmax(250px, 1.15fr) minmax(205px, 0.9fr) minmax(190px, 0.88fr);
    gap: 26px;
    align-items: start;
    padding: 29px 0;
    border-bottom: 1px solid var(--line);
}

.service-path-heading {
    display: grid;
    gap: 15px;
}

.service-path-index,
.service-path-label,
.service-path-example > span {
    color: var(--accent-3);
    font-size: 0.75rem;
    font-weight: 790;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.service-path-heading h3 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.03;
}

.service-path-copy > p,
.service-path-example p {
    margin: 0;
    color: var(--muted);
}

.service-path-copy {
    display: grid;
    gap: 10px;
}

.service-path-copy .service-path-label,
.service-path-deliverables .service-path-label {
    margin: 0 0 1px;
}

.service-path-result {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--ink) !important;
    font-weight: 690;
    line-height: 1.42;
}

.service-path-deliverables ul {
    display: grid;
    gap: 8px;
    margin: 11px 0 0;
    padding: 0;
    list-style: none;
}

.service-path-deliverables li {
    position: relative;
    padding-left: 15px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 620;
    line-height: 1.38;
}

.service-path-deliverables li::before {
    position: absolute;
    top: 0.52em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    content: "";
}

.service-path-example {
    display: grid;
    gap: 8px;
    min-height: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.7);
    color: inherit;
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-path-example strong {
    font-size: 1.03rem;
    line-height: 1.1;
}

.service-path-example p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.service-path-example em {
    align-self: end;
    margin-top: 5px;
    color: var(--accent);
    font-size: 0.82rem;
    font-style: normal;
    font-weight: 760;
}

.service-path-example:hover,
.service-path-example:focus-visible {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-2px);
}

.service-process-section {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
    gap: 68px;
    margin-top: 74px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.service-process-intro h2 {
    max-width: 10ch;
    margin: 12px 0 20px;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 0.97;
}

.service-process-intro > p:last-child {
    max-width: 510px;
    margin: 0;
    color: var(--muted);
}

.service-process {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.service-process li {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
}

.service-process li > span {
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 790;
}

.service-process h3 {
    margin: 0;
    font-size: 1.02rem;
}

.service-process p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.46;
}

.fun-explorer {
    display: grid;
    gap: 9px;
    justify-items: start;
    max-width: 560px;
    padding-top: 2px;
}

.fun-explorer p {
    max-width: 520px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 560;
    line-height: 1.45;
}

.work-placeholder {
    display: grid;
    align-content: start;
    min-height: calc(100svh - 76px);
    padding: var(--page-start) 0 120px;
}

.work-placeholder h1 {
    max-width: 12ch;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px;
    margin-top: 78px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.profile-block h2,
.client-section h2 {
    max-width: 580px;
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    line-height: 1.02;
}

.education-list,
.client-tabs {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.education-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.education-row strong {
    color: var(--ink);
    font-size: 1.08rem;
}

.education-row span {
    color: var(--accent-3);
    font-size: 0.9rem;
    font-weight: 720;
    white-space: nowrap;
}

.experience-list {
    display: grid;
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.experience-row {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.experience-row h3 {
    color: var(--ink);
    font-size: 1.08rem;
}

.experience-meta {
    margin: 0 0 7px !important;
    color: var(--accent-2) !important;
    font-size: 0.78rem;
    font-weight: 780;
    text-transform: uppercase;
}

.experience-row p {
    margin: 9px 0 0;
    color: var(--muted);
}

.experience-upwork {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.experience-upwork > h3 {
    margin: 0 0 16px;
    font-size: 1.18rem;
}

.upwork-jobs {
    margin-top: 28px;
}

.upwork-job-row {
    padding: 18px 0;
    border-top: 1px solid var(--line);
}

.upwork-job-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--accent-3);
    font-size: 0.8rem;
    font-weight: 680;
}

.upwork-job-annotation {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upwork-job-row h3 {
    max-width: 850px;
    margin: 8px 0 0;
    font-size: clamp(1.05rem, 1.7vw, 1.38rem);
    font-weight: 600;
    line-height: 1.15;
}

.upwork-job-rating {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.86rem;
}

.upwork-job-row blockquote {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--ink);
    font-style: italic;
}

.upwork-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
    gap: 30px;
    margin-top: 28px;
    padding: 22px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: var(--bg);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.upwork-card:hover,
.upwork-card:focus-visible {
    box-shadow: var(--shadow);
    outline: none;
    transform: translateY(-2px);
}

.upwork-card-heading {
    display: grid;
    align-content: space-between;
    gap: 32px;
}

.upwork-wordmark {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
}

.upwork-card-heading strong {
    color: #c9bce7;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.upwork-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.upwork-stats div {
    display: grid;
    gap: 3px;
    padding-top: 10px;
    border-top: 1px solid rgba(247, 242, 234, 0.34);
}

.upwork-stats strong {
    font-size: 1.5rem;
}

.upwork-stats span {
    color: rgba(247, 242, 234, 0.76);
    font-size: 0.82rem;
    font-weight: 650;
}

.client-section {
    margin-top: 78px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.client-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.client-tabs li {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 253, 248, 0.62);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 760;
}

@media (max-width: 860px) {
    :root { --page-start: 58px; }
    .contact-details,
    .upwork-card,
    .problem-report {
        grid-template-columns: 1fr;
    }

    .site-header {
        align-items: center;
        gap: 18px;
    }

    .header-controls {
        max-width: 100%;
    }

    .hero,
    .hub-hero,
    .section-heading,
    .project-row,
    .service-row,
    .tools,
    .detail-layout,
    .about-intro,
    .offer-heading,
    .services-intro,
    .service-path-card,
    .service-process-section,
    .hero-footnote,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 30px;
        min-height: auto;
        padding: var(--page-start) 0 84px;
    }

    .hero-home .hero-copy {
        min-height: auto;
    }

    .hero-footnote {
        gap: 14px;
        margin-top: 52px;
        padding-top: 0;
    }

    .hero-footnote p + p {
        padding: 14px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    h1 {
        max-width: 10ch;
    }

    .hero-panel {
        max-width: 520px;
    }

    .hero-signal {
        max-width: 520px;
    }

    .expertise-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-row p {
        opacity: 1;
        transform: none;
    }

    .service-navigator {
        grid-template-columns: 1fr;
    }

    .service-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .service-selector-label {
        grid-column: 1 / -1;
    }

    .service-stage {
        min-height: 0;
    }

    .hub-hero {
        gap: 32px;
        min-height: 0;
        padding: 48px 0 64px;
    }

    .hub-hero-copy h1 {
        max-width: 11ch;
        font-size: clamp(3.5rem, 10vw, 6.5rem);
    }

    .hub-workspace {
        grid-template-columns: minmax(178px, 0.45fr) minmax(144px, 0.31fr) minmax(0, 1fr);
        height: 560px;
        min-height: 560px;
    }

    .hub-route-panel {
        display: block;
    }

    .hub-detail-view {
        padding: 30px;
    }

    .hub-project-form-row {
        grid-template-columns: 1fr;
    }

    .hub-menu-button strong {
        font-size: 0.75rem;
    }

    .hub-route-signal strong {
        font-size: 4.5rem;
    }

    .hub-feature {
        min-height: 440px;
        max-width: 760px;
    }

    .home-case-grid {
        grid-template-columns: 1fr;
    }

    .home-case {
        min-height: 430px;
    }
}

@media (max-width: 560px) {
    :root {
        --page-title-size: clamp(3.6rem, 15vw, 5.6rem);
    }

    main,
    .site-header {
        width: min(100% - 24px, 1840px);
    }

    nav {
        flex: 1;
        justify-content: space-between;
    }

    nav a {
        min-width: 0;
        flex: 1;
        padding-inline: 8px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .service-row {
        gap: 10px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 72px 0;
    }

    .hub-actions {
        grid-template-columns: 1fr;
    }

    .hub-action,
    .hub-action + .hub-action {
        min-height: 70px;
        padding: 12px 0;
        border-left: 0;
    }

    .hub-action > span {
        grid-column: auto;
        align-self: center;
    }

    .hub-action strong,
    .hub-action em {
        align-self: center;
    }
}

@media (max-width: 720px) {
    :root {
        --page-start: 44px;
        --page-title-size: clamp(3.25rem, 14.5vw, 5rem);
    }

    body {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 12;
        width: min(100% - 24px, 1840px);
        padding: max(10px, env(safe-area-inset-top)) 0 10px;
    }

    .brand-mark {
        flex: 0 1 112px;
    }

    .brand-mark span {
        font-size: 0.68rem;
        letter-spacing: 0.055em;
    }

    .brand-mark strong {
        font-size: 0.49rem;
        letter-spacing: 0.075em;
    }

    .header-controls {
        position: relative;
        justify-content: space-between;
        flex: 1;
        width: auto;
        min-height: 48px;
        padding: 3px;
        box-shadow: 0 8px 25px rgba(23, 38, 58, 0.08);
    }

    .nav-toggle {
        display: inline-flex;
    }

    .header-controls[data-menu-open="true"] .nav-toggle {
        color: #fff;
        background: var(--accent-3);
    }

    .header-controls[data-menu-open="true"] .nav-toggle-icon span:first-child {
        transform: translateY(2.75px) rotate(45deg);
    }

    .header-controls[data-menu-open="true"] .nav-toggle-icon span:last-child {
        transform: translateY(-2.75px) rotate(-45deg);
    }

    .header-controls nav {
        display: none;
    }

    .header-controls[data-menu-open="true"] nav {
        position: absolute;
        top: calc(100% + 9px);
        right: 0;
        left: 0;
        display: grid;
        gap: 3px;
        padding: 6px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .header-controls nav a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 0 14px;
        font-size: 1rem;
        text-align: left;
    }

    .language-switcher {
        margin-left: auto;
    }

    .language-switcher summary {
        min-width: 58px;
        min-height: 42px;
        font-size: 0.82rem;
    }

    .language-options {
        top: calc(100% + 10px);
        right: 0;
        min-width: 150px;
    }

    .hero-home {
        padding: 34px 0 58px;
    }

    .hub-hero {
        gap: 26px;
        padding: 30px 0 54px;
    }

    .hub-hero-copy h1 {
        max-width: 10.5ch;
        font-size: clamp(3rem, 14vw, 4.45rem);
    }

    .hub-hero-intro {
        margin-top: 22px;
        font-size: 1.03rem;
    }

    .hub-hero-prompt {
        margin-top: 18px;
    }

    .hub-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        min-height: 0;
        border-radius: 9px;
    }

    .hub-route-tabs,
    .hub-detail-view {
        height: auto;
        overflow-y: visible;
        overscroll-behavior: auto;
        scrollbar-gutter: auto;
    }

    .hub-route-panel {
        height: auto;
    }

    .hub-route-stage {
        height: auto;
    }

    .hub-route-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hub-route-tabs > p {
        grid-column: 1 / -1;
        margin: 0 4px 8px;
    }

    .hub-route-tab {
        min-height: 56px;
        padding: 10px 8px;
        border: 1px solid var(--line);
    }

    .hub-route-tab:hover,
    .hub-route-tab.active {
        transform: none;
    }

    .hub-route-middle {
        grid-template-columns: minmax(0, 1fr) minmax(130px, 0.52fr);
        grid-template-rows: 1fr;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .hub-route-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
        padding: 12px;
    }

    .hub-route-menu > p {
        grid-column: 1 / -1;
        margin: 0 4px 8px;
    }

    .hub-menu-button {
        min-height: 53px;
        padding: 9px 7px;
        border: 1px solid var(--line);
    }

    .hub-menu-button strong {
        font-size: 0.72rem;
    }

    .hub-route-signal {
        min-height: 100%;
        padding: 14px;
    }

    .hub-route-signal strong {
        font-size: 4.2rem;
    }

    .hub-detail-view {
        gap: 12px;
        padding: 24px 18px;
    }

    .hub-detail-view h2 {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
    }

    .hub-project-form-row {
        grid-template-columns: 1fr;
    }

    .hub-actions {
        margin-top: 32px;
    }

    .hub-feature {
        min-height: 350px;
        border-radius: 9px;
    }

    .hub-feature-copy {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .home-cases {
        padding: 58px 0;
    }

    .home-cases-heading {
        align-items: start;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 24px;
    }

    .home-cases-heading .button {
        width: 100%;
    }

    .home-case {
        grid-template-rows: 176px auto;
        min-height: 0;
    }

    .home-case-copy {
        padding: 18px;
    }

    .hero-home .role-line {
        margin-top: 16px;
        font-size: clamp(1.7rem, 8.4vw, 2.65rem);
        line-height: 1.02;
    }

    .hero-home .hero-actions {
        margin-top: 34px;
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
    }

    .hero-actions .button,
    .services-contact .button,
    .contact-method {
        width: 100%;
    }

    .section {
        padding: 58px 0;
    }

    .services-intro {
        gap: 28px;
        margin-bottom: 30px;
    }

    .services-intro h2 {
        font-size: clamp(2.8rem, 14vw, 4.25rem);
    }

    .service-navigator-shell {
        margin-top: 30px;
    }

    .service-selector {
        grid-template-columns: 1fr;
    }

    .service-selector-label {
        grid-column: auto;
        margin-bottom: 6px;
    }

    .service-selector-button {
        min-height: 58px;
        padding-block: 10px;
    }

    .service-stage {
        padding: 26px 18px 20px;
    }

    .service-stage h3 {
        margin: 12px 0 26px;
        font-size: clamp(2rem, 10.8vw, 3rem);
    }

    .service-stage-copy,
    .service-stage-details {
        grid-template-columns: 1fr;
    }

    .service-stage-copy {
        gap: 16px;
    }

    .service-stage-details {
        gap: 23px;
        margin-top: 30px;
        padding-top: 20px;
    }

    .service-path-card {
        gap: 18px;
        padding: 25px 0;
    }

    .service-path-heading {
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: start;
        gap: 12px;
    }

    .service-path-heading h3 {
        max-width: none;
    }

    .service-process-section {
        gap: 30px;
        margin-top: 52px;
        padding-top: 28px;
    }

    .services-contact {
        gap: 18px;
    }

    .service-row {
        gap: 7px;
        padding: 22px 0;
    }

    .service-row h3 {
        font-size: 1.16rem;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 20px;
    }

    .filter-chip {
        min-height: 44px;
        padding: 0 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .project-detail {
        top: auto;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px - env(safe-area-inset-bottom));
        padding: 18px;
        border-radius: 16px;
        transform: translateX(-50%);
    }

    .detail-close {
        position: sticky;
        top: 0;
        z-index: 1;
        min-height: 44px;
        padding: 0 15px;
        background: var(--bg);
    }

    .detail-layout {
        gap: 22px;
        margin-top: 12px;
    }

    .detail-images {
        gap: 8px;
    }

    .expertise-card {
        min-height: 0;
        padding: 18px;
    }

    .card-index {
        margin-bottom: 32px;
    }

    .about-tools {
        margin-top: 42px;
        padding-top: 42px;
    }

    .tools {
        gap: 28px;
    }

    .tool-list {
        gap: 8px;
    }

    .tool-list li {
        padding: 9px 11px;
        font-size: 0.92rem;
    }

    .profile-grid {
        gap: 40px;
        margin-top: 52px;
    }

    .education-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .education-row span {
        white-space: normal;
    }

    .upwork-card {
        gap: 22px;
        padding: 18px;
    }

    .contact-page,
    .work-placeholder {
        min-height: calc(100svh - 68px);
        padding-top: 34px;
    }

    .contact {
        min-height: 0;
        padding: 62px 0 max(68px, env(safe-area-inset-bottom));
    }

    .contact-invitation {
        gap: 22px;
        margin-top: 28px;
        padding-top: 28px;
    }

    .problem-report {
        gap: 26px;
        margin-top: 42px;
        padding-top: 28px;
    }

    .problem-report-heading h2 {
        max-width: 15ch;
    }

    .problem-form {
        padding: 18px;
    }

    .problem-form-row {
        grid-template-columns: 1fr;
    }

    .contact-email {
        max-width: 100%;
        font-size: clamp(1rem, 5vw, 1.2rem) !important;
    }
}

@media (max-width: 380px) {
    .site-header,
    main {
        width: min(100% - 20px, 1840px);
    }

    .nav-toggle {
        padding-inline: 10px;
    }

    .language-switcher summary {
        min-width: 54px;
        padding-inline: 8px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Work gallery explorer */
.gallery-controls {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.gallery-controls-label {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.gallery-filters {
    margin-bottom: 8px;
}

.gallery-filter-status,
.gallery-reset-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.gallery-reset-hint {
    margin-bottom: 20px;
}

.gallery-card[hidden] {
    display: none !important;
}

.gallery-card-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 1;
    padding: 5px 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(18, 31, 43, 0.72);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.02em;
}

.gallery-canvas .gallery-grid {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
}

.gallery-canvas .gallery-card {
    position: relative;
    min-height: 0;
    grid-row: span 2;
    border-color: rgba(23, 38, 58, 0.18);
    background: var(--ink);
}

.gallery-canvas .gallery-card:nth-child(6n + 1),
.gallery-canvas .gallery-card:nth-child(6n + 4) {
    grid-column: span 2;
    grid-row: span 3;
}

.gallery-canvas .gallery-card:nth-child(6n + 2) {
    grid-row: span 3;
}

.gallery-canvas .gallery-image-wrap {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.gallery-canvas .gallery-card-copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    gap: 6px;
    padding: 48px 16px 16px;
    border-top: 0;
    background: linear-gradient(transparent, rgba(13, 21, 31, 0.9));
    color: #fff;
}

.gallery-canvas .gallery-card-copy span:not(.project-meta),
.gallery-canvas .gallery-card-copy li {
    color: rgba(255, 255, 255, 0.78);
}

.gallery-canvas .gallery-card-copy li {
    border-color: rgba(255, 255, 255, 0.36);
}

@media (max-width: 900px) {
    .gallery-canvas .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 164px;
    }
}

@media (max-width: 640px) {
    .gallery-canvas .gallery-grid {
        grid-auto-rows: 140px;
        gap: 8px;
    }

    .gallery-canvas .gallery-card:nth-child(6n + 1),
    .gallery-canvas .gallery-card:nth-child(6n + 4) {
        grid-column: span 2;
    }

    .gallery-canvas .gallery-card-copy {
        padding: 44px 12px 12px;
    }

    .gallery-canvas .gallery-card-copy ul {
        display: none;
    }
}

/* Project case-study viewer */
body.project-detail-open {
    overflow: hidden;
}

.project-detail {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: min(1280px, calc(100% - 48px));
    height: min(840px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 12px 18px 12px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.96);
}

.detail-header .project-meta {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 760;
    letter-spacing: 0.075em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.detail-close {
    flex: 0 0 auto;
    margin-left: 0;
    background: var(--bg);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.48fr) minmax(330px, 0.82fr);
    gap: 0;
    min-height: 0;
    margin-top: 0;
}

.detail-media-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    min-width: 0;
    min-height: 0;
    background: #edf0ec;
    border-right: 1px solid var(--line);
}

.detail-stage {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(117, 93, 164, 0.09), transparent 34%),
        #edf0ec;
}

.detail-stage.is-zoomed {
    place-items: start;
    overflow: auto;
    cursor: grab;
}

.detail-stage-figure {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
}

.detail-stage-figure img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-stage.is-zoomed .detail-stage-figure {
    width: 170%;
    height: 170%;
    min-width: 170%;
    min-height: 170%;
}

.detail-placeholder {
    align-content: center;
    width: 100%;
    height: 100%;
}

.detail-media-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px 8px 16px;
    border-top: 1px solid rgba(23, 38, 58, 0.14);
    background: rgba(255, 253, 248, 0.88);
}

.detail-caption {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.83rem;
    font-weight: 680;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-media-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.detail-counter {
    min-width: 38px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
    text-align: right;
    white-space: nowrap;
}

.detail-media-button {
    min-width: 34px;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 760;
}

.detail-nav-button {
    padding: 0;
    font-size: 1.05rem;
    line-height: 1;
}

.detail-media-button:hover,
.detail-media-button:focus-visible {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
    outline: none;
}

.detail-media-button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.detail-media-button:disabled:hover {
    border-color: var(--line);
    background: var(--bg);
    color: var(--ink);
}

.detail-thumbnails {
    display: flex;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    padding: 9px 12px;
    border-top: 1px solid rgba(23, 38, 58, 0.14);
    background: rgba(255, 253, 248, 0.7);
    scrollbar-width: thin;
}

.detail-thumbnail {
    flex: 0 0 74px;
    width: 74px;
    height: 52px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 5px;
    background: #dfe4df;
    cursor: pointer;
}

.detail-thumbnail:hover,
.detail-thumbnail:focus-visible,
.detail-thumbnail[aria-pressed="true"] {
    border-color: var(--accent-3);
    outline: none;
}

.detail-thumbnail[aria-pressed="true"] {
    box-shadow: 0 0 0 1px var(--accent-3);
}

.detail-thumbnail img,
.detail-thumbnail-fallback {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-thumbnail-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-story {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 34px 34px 42px;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.detail-story h2,
.detail-story h3 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 3.45vw, 3.55rem);
    line-height: 0.97;
}

.detail-summary {
    margin: 0 0 24px;
    color: var(--ink) !important;
    font-size: 1.04rem;
    font-weight: 620;
    line-height: 1.48;
}

.detail-story #detail-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.62;
}

.detail-story .detail-tags {
    margin-top: 26px;
}

@media (max-width: 860px) {
    .project-detail {
        top: 12px;
        bottom: auto;
        width: calc(100% - 24px);
        height: calc(100dvh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 0;
        transform: translateX(-50%);
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(260px, 48svh) minmax(0, 1fr);
    }

    .detail-media-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .detail-story {
        padding: 26px 24px 32px;
    }
}

@media (max-width: 560px) {
    .detail-header {
        min-height: 56px;
        padding: 8px 12px 8px 16px;
    }

    .detail-layout {
        grid-template-rows: minmax(220px, 42svh) minmax(0, 1fr);
    }

    .detail-media-toolbar {
        min-height: 50px;
        padding: 7px 8px 7px 12px;
    }

    .detail-caption {
        font-size: 0.76rem;
    }

    .detail-media-actions {
        gap: 4px;
    }

    .detail-counter {
        min-width: 33px;
    }

    .detail-media-button {
        min-width: 31px;
        min-height: 31px;
        padding: 0 7px;
    }

    .detail-thumbnail {
        flex-basis: 62px;
        width: 62px;
        height: 45px;
    }

    .detail-story {
        padding: 22px 18px 28px;
    }

    .detail-story h2,
    .detail-story h3 {
        font-size: clamp(1.85rem, 10vw, 2.65rem);
    }
}
/* Services: the collaboration journey, complementary to the home route finder. */
.engagement-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
    gap: clamp(36px, 7vw, 130px);
    align-items: end;
    padding: 0 0 92px;
}

.engagement-hero h1 {
    max-width: 13ch;
    margin: 16px 0 0;
    font-size: clamp(3.6rem, 7.3vw, 8.4rem);
    line-height: 0.91;
    letter-spacing: -0.06em;
}

.engagement-hero-aside {
    display: grid;
    gap: 28px;
    padding: 18px 0 8px 26px;
    border-left: 1px solid var(--line);
}

.engagement-hero-aside > p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 550;
    line-height: 1.55;
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 25px;
    align-items: center;
}

.engagement-text-link {
    color: var(--accent);
    font-weight: 780;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.engagement-text-link:hover,
.engagement-text-link:focus-visible {
    color: var(--accent-3);
}

.engagement-brief {
    padding: clamp(28px, 5vw, 70px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(95, 75, 139, 0.055);
}

.engagement-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.48fr);
    gap: 0 55px;
    align-items: end;
    margin-bottom: 40px;
}

.engagement-section-heading .eyebrow {
    grid-column: 1 / -1;
}

.engagement-section-heading h2 {
    max-width: 12ch;
    margin: 10px 0 0;
    font-size: clamp(2.7rem, 5.2vw, 5.4rem);
    line-height: 0.96;
}

.engagement-section-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.engagement-brief-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.engagement-brief-card {
    min-height: 260px;
    padding: clamp(20px, 2.5vw, 35px);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.85);
}

.engagement-brief-card > span {
    color: var(--accent-3);
    font-size: 0.78rem;
    font-weight: 800;
}

.engagement-brief-card h3 {
    margin: 42px 0 12px;
    font-size: clamp(1.4rem, 2.1vw, 2.1rem);
    line-height: 1.08;
}

.engagement-brief-card p {
    max-width: 37ch;
    margin: 0;
    color: var(--muted);
}

.engagement-handover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: clamp(32px, 7vw, 110px);
    margin-top: 96px;
    padding: clamp(30px, 5vw, 76px);
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
}

.engagement-handover .eyebrow {
    color: #cbb9eb;
}

.engagement-handover h2 {
    max-width: 13ch;
    margin: 15px 0 20px;
    font-size: clamp(2.6rem, 4.8vw, 5rem);
    line-height: 0.97;
}

.engagement-handover > div > p:last-child {
    max-width: 48ch;
    margin: 0;
    color: #d3dbe4;
}

.engagement-handover ul {
    display: grid;
    align-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.engagement-handover li {
    display: grid;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.engagement-handover li strong {
    font-size: 1.1rem;
}

.engagement-handover li span {
    color: #d3dbe4;
}

.engagement-close {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin: 90px 0 100px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.engagement-close h2 {
    max-width: 16ch;
    margin: 14px 0;
    font-size: clamp(2.6rem, 4.6vw, 5rem);
    line-height: 0.98;
}

.engagement-close p:last-child {
    max-width: 54ch;
    margin: 0;
    color: var(--muted);
}

.engagement-close .button {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .engagement-hero,
    .engagement-section-heading,
    .engagement-handover {
        grid-template-columns: 1fr;
    }

    .engagement-hero {
        gap: 30px;
        padding-bottom: 60px;
    }

    .engagement-hero-aside {
        padding-left: 0;
        border-left: 0;
    }

    .engagement-section-heading {
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .engagement-hero h1 {
        font-size: clamp(3.1rem, 13vw, 5rem);
    }

    .engagement-actions,
    .engagement-close {
        display: grid;
        justify-content: stretch;
    }

    .engagement-actions .button,
    .engagement-close .button {
        width: 100%;
    }

    .engagement-brief-grid {
        grid-template-columns: 1fr;
    }

    .engagement-brief-card {
        min-height: 0;
    }

    .engagement-brief-card h3 {
        margin-top: 26px;
    }

    .engagement-handover {
        margin-top: 60px;
    }

    .engagement-close {
        margin: 65px 0 75px;
    }
}


/* A direct opening statement and a compact set of service choices. */
.page-home .hub-hero-copy h1 {
    max-width: 31ch;
    font-size: clamp(2.35rem, 4.8vw, 5.8rem);
    line-height: 1.04;
}

.about-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: center;
    gap: clamp(32px, 6vw, 90px);
    max-width: 1250px;
}

.about-intro-copy h1 {
    margin: 12px 0 24px;
    font-size: clamp(3.2rem, 7vw, 7rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.about-intro-copy > p:last-child {
    max-width: 62ch;
    margin: 0;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.about-portrait {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    aspect-ratio: 1;
    border: 1px dashed var(--accent-3);
    border-radius: 50%;
    background: rgba(95, 75, 139, 0.05);
    color: var(--muted);
    font-size: 0.8rem;
}

.about-portrait svg {
    width: 90px;
    height: 90px;
    color: var(--accent-3);
}

.about-upwork {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 52px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.about-upwork h2 {
    margin: 12px 0 24px;
    font-size: clamp(1.65rem, 3vw, 2.8rem);
    line-height: 1.1;
}

.upwork-disclosure {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.upwork-disclosure > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.15rem;
    font-weight: 750;
}

.upwork-disclosure > summary::-webkit-details-marker {
    display: none;
}

.disclosure-indicator::before { content: "+"; }
.upwork-disclosure[open] .disclosure-indicator::before { content: "−"; }
.upwork-disclosure .upwork-jobs { margin-top: 0; }

.upwork-disclosure > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

@media (max-width: 760px) {
    .about-intro, .about-upwork { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .about-portrait { width: 180px; }
    .about-upwork { margin-top: 40px; }
}
