:root {
    --bg: #f4f7fb;
    --bg-soft: rgba(255, 255, 255, 0.66);
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --surface-alt: #e8effa;
    --text: #0f1728;
    --text-soft: #526074;
    --line: rgba(115, 134, 173, 0.18);
    --primary: #0f4fcf;
    --primary-strong: #0b2d6e;
    --secondary: #35b5ff;
    --accent: #8ad8ff;
    --shadow: 0 22px 60px rgba(12, 32, 68, 0.12);
    --shadow-soft: 0 16px 34px rgba(12, 32, 68, 0.08);
    --glow-one: rgba(48, 110, 255, 0.18);
    --glow-two: rgba(29, 188, 255, 0.2);
    --glow-three: rgba(17, 75, 186, 0.12);
    --radius-xl: 3.2rem;
    --radius-lg: 2.2rem;
    --radius-md: 1.4rem;
    --container: min(118rem, calc(100% - 3.2rem));
}

html[data-theme='dark'] {
    --bg: #07111f;
    --bg-soft: rgba(8, 17, 31, 0.76);
    --surface: rgba(10, 22, 38, 0.78);
    --surface-strong: rgba(13, 28, 47, 0.92);
    --surface-alt: #102338;
    --text: #edf4ff;
    --text-soft: #9eb0ca;
    --line: rgba(133, 170, 230, 0.16);
    --primary: #6fb4ff;
    --primary-strong: #bedbff;
    --secondary: #36d5ff;
    --accent: #18365a;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 18px 38px rgba(0, 0, 0, 0.24);
    --glow-one: rgba(15, 89, 220, 0.28);
    --glow-two: rgba(6, 168, 211, 0.2);
    --glow-three: rgba(76, 58, 166, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.7rem;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, var(--bg) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

::selection {
    background: rgba(53, 181, 255, 0.24);
    color: var(--text);
}

html[data-theme='dark'] body {
    background:
        radial-gradient(circle at top left, rgba(64, 116, 204, 0.12), transparent 32%),
        linear-gradient(180deg, #06101c 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

a,
button,
input,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(53, 181, 255, 0.68);
    outline-offset: 3px;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.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;
}

button,
input,
textarea {
    font: inherit;
}

html.js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 3.2rem, 0) scale(0.985);
    filter: blur(10px);
    transition:
        opacity 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.82s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

html.js [data-reveal='left'] {
    transform: translate3d(-4.8rem, 0, 0) scale(0.985);
}

html.js [data-reveal='right'] {
    transform: translate3d(4.8rem, 0, 0) scale(0.985);
}

html.js [data-reveal='zoom'] {
    transform: translate3d(0, 2rem, 0) scale(0.94);
}

html.js [data-reveal='soft'] {
    transform: translate3d(0, 2rem, 0);
    filter: blur(6px);
}

html.js [data-reveal].is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
}

html.js [data-reveal][data-reveal-media] picture,
html.js [data-reveal][data-reveal-media] img {
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js [data-reveal][data-reveal-media]:not(.is-inview) picture,
html.js [data-reveal][data-reveal-media]:not(.is-inview) img {
    transform: scale(1.06);
}

html.js [data-reveal][data-reveal-media].is-inview picture,
html.js [data-reveal][data-reveal-media].is-inview img {
    transform: scale(1);
}

.site-main,
.site-header__bar,
.site-footer__content {
    width: var(--container);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 1.6rem;
    top: -5rem;
    z-index: 50;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    color: var(--text);
    font-weight: 700;
}

.skip-link:focus-visible {
    top: 1.6rem;
}

.site-main {
    padding-top: 14rem;
    padding-bottom: 8rem;
    position: relative;
    z-index: 2;
}

.site-noise,
.site-glow {
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.site-noise {
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 4.4rem 4.4rem;
    opacity: 0.18;
    mix-blend-mode: soft-light;
}

.site-glow {
    filter: blur(120px);
    border-radius: 50%;
}

.site-glow--one {
    width: 38rem;
    height: 38rem;
    top: 8rem;
    left: -10rem;
    background: var(--glow-one);
}

.site-glow--two {
    width: 34rem;
    height: 34rem;
    top: 40rem;
    right: -6rem;
    background: var(--glow-two);
}

.site-glow--three {
    width: 28rem;
    height: 28rem;
    bottom: 10rem;
    left: 30%;
    background: var(--glow-three);
}

.site-header {
    position: fixed;
    top: 1.8rem;
    left: 0;
    width: 100%;
    z-index: 20;
}

.site-header__bar {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 2rem;
    border: 1px solid rgba(115, 134, 173, 0.14);
    border-radius: 3.2rem;
    background: var(--bg-soft);
    backdrop-filter: blur(24px);
    box-shadow: var(--shadow-soft);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.site-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6.4rem;
    height: 6.4rem;
    padding: 0.65rem;
    border: 1px solid rgba(122, 144, 188, 0.24);
    border-radius: 2rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.92) 100%);
    box-shadow:
        0 18px 40px rgba(18, 42, 77, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site-brand__logo {
    width: 5.2rem;
    height: 5.2rem;
    object-fit: contain;
}

[data-theme="dark"] .site-brand__mark {
    border-color: rgba(164, 188, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.98) 0%, rgba(223, 234, 255, 0.94) 100%);
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.site-header__panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
}

.site-nav__link {
    color: var(--text-soft);
    font-size: 1.45rem;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--primary);
    transform: translateY(-1px);
}

.site-menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 4.8rem;
    height: 4.8rem;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 1.6rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.site-menu-toggle span {
    display: block;
    width: 1.8rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__bar.is-open .site-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header__bar.is-open .site-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header__bar.is-open .site-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-header__controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.lang-switch__link,
.theme-toggle__text {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 1.3rem;
    color: var(--text-soft);
    font-weight: 700;
}

.lang-switch__link.is-active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.theme-toggle {
    cursor: pointer;
}

.theme-toggle__dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 0 0.5rem rgba(53, 181, 255, 0.14);
}

.section-eyebrow {
    margin: 0 0 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 0.98;
}

h1,
h2 {
    font-family: 'Space Grotesk', sans-serif;
}

h3 {
    font-family: 'Inter', sans-serif;
    line-height: 1.08;
}

p {
    margin: 0;
    color: var(--text-soft);
}

.hero,
.page-hero,
.project-hero {
    display: grid;
    gap: 2.4rem;
}

.hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(28rem, 0.75fr);
    align-items: stretch;
    min-height: 64rem;
}

.hero__copy,
.hero__panel,
.page-hero,
.project-hero__copy {
    position: relative;
    z-index: 2;
}

.hero h1,
.page-hero h1,
.project-hero h1 {
    font-size: clamp(4.4rem, 7vw, 9rem);
    max-width: 10.8ch;
}

.hero__intro,
.page-hero__intro {
    max-width: 68rem;
    font-size: clamp(1.85rem, 2.2vw, 2.3rem);
    margin-top: 2.4rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 3rem;
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 5.4rem;
    padding: 0 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 18px 34px rgba(15, 79, 207, 0.18);
}

.button--secondary {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 100%),
        var(--surface);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 35%);
    pointer-events: none;
}

.hero-card {
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at top right, rgba(108, 180, 255, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 100%);
}

.hero-card__label {
    color: var(--text);
    font-weight: 700;
}

.hero-card__stats {
    list-style: none;
    padding: 0;
    margin: 6rem 0 0;
    display: grid;
    gap: 1.6rem;
}

.hero-card__stats li {
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.hero-card__stats strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.8rem;
    color: var(--text);
}

.section-block,
.policy-list,
.contact-grid,
.filters,
.project-grid,
.project-nav,
.details-grid,
.content-grid {
    margin-top: 8rem;
}

.section-head {
    display: grid;
    gap: 1.2rem;
    max-width: 76rem;
    margin-bottom: 2.8rem;
}

.section-head h2 {
    font-size: clamp(3rem, 4vw, 5.4rem);
}

.card-grid {
    display: grid;
    gap: 2rem;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    padding: 2.8rem;
}

.card h3 {
    font-size: 2.6rem;
    margin-bottom: 1.4rem;
}

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    display: grid;
    gap: 0;
    align-content: start;
}

.project-card__image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.04);
}

.project-card__body {
    padding: 2.4rem;
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.project-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 700;
}

.project-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 3rem;
}

.project-card h3 {
    font-size: 2.8rem;
    line-height: 1.02;
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--primary);
}

.project-card__link::after {
    content: '↗';
    font-size: 1.45rem;
    transition: transform 0.2s ease;
}

.project-card:hover .project-card__link::after {
    transform: translate(2px, -2px);
}

.article-card {
    display: grid;
    align-content: start;
    gap: 0;
}

.article-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.article-card__image img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.04);
}

.article-card__body {
    padding: 2.4rem;
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.article-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 700;
}

.article-card h3 {
    font-size: clamp(2.6rem, 2.6vw, 4rem);
    line-height: 1.04;
}

.article-card--featured {
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.1fr) minmax(30rem, 0.9fr);
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 100%),
        var(--surface);
}

.article-card--featured .article-card__image {
    aspect-ratio: auto;
    min-height: 100%;
}

.article-card--featured .article-card__body {
    padding: 2.8rem;
}

.chip-list {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.chip-list li {
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
}

.project-card .chip-list li {
    font-size: 1.2rem;
    padding: 0.65rem 1rem;
    background: rgba(69, 122, 208, 0.08);
    color: var(--text-soft);
}

.chip-list--topics li {
    min-height: 4.4rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 100%),
        var(--surface);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 1.35rem;
}

.chip-list--topics li a {
    display: inline-flex;
    align-items: center;
    min-height: 4.4rem;
    padding: 0 1.5rem;
}

.chip-list--topics li.is-active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 1.4rem 3rem rgba(26, 88, 191, 0.18);
}

.chip-list--topics li.is-active a {
    color: #ffffff;
}

.chip-list--tech li {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.chip-list__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
}

.timeline-list {
    display: grid;
    gap: 1.4rem;
}

.timeline-item {
    padding: 2.4rem;
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 2rem;
    align-items: start;
}

.timeline-item__index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--primary);
    font-weight: 700;
}

.timeline-item h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-block {
    margin-top: 8rem;
    padding: 3.2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
}

.section-block__action {
    margin-top: 2.4rem;
}

.content-grid,
.contact-grid,
.project-hero {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(28rem, 0.9fr);
}

.story-card,
.stack-card,
.contact-info,
.contact-form,
.project-hero__image {
    padding: 2.8rem;
}

.stack-card .chip-list {
    margin-top: 1.6rem;
}

.filters {
    padding: 2rem;
    display: grid;
    gap: 1.4rem;
}

.filters__group {
    display: grid;
    gap: 1rem;
}

.filters__group > span {
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 700;
}

.filters__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filters__links a,
.filters__clear {
    display: inline-flex;
    align-items: center;
    min-height: 4rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text-soft);
    font-size: 1.35rem;
    font-weight: 700;
}

.filters__links a.is-active,
.filters__clear:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #fff;
}

.details-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-card {
    padding: 2.8rem;
}

.detail-card h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.project-nav {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-nav__item {
    padding: 2.4rem;
    display: grid;
    gap: 0.8rem;
}

.project-nav__item span {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
}

.project-nav__item strong {
    font-size: 2.2rem;
    line-height: 1.1;
}

.editorial-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-intro {
    padding: 3rem;
    display: grid;
    gap: 2.6rem;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 100%),
        var(--surface);
}

.editorial-intro__copy {
    max-width: 70rem;
}

.editorial-intro__copy h2 {
    font-size: clamp(3rem, 4vw, 5rem);
    margin: 0.6rem 0 0;
}

.editorial-intro__grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-intro__item {
    display: grid;
    gap: 1rem;
    align-content: start;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.editorial-intro__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1.4rem;
    background: var(--surface-alt);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.editorial-intro__item h3 {
    font-size: 1.9rem;
    margin: 0 0 0.8rem;
}

.topic-strip {
    padding: 2rem;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.14), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 100%),
        var(--surface);
}

.pagination {
    margin-top: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.pagination__link,
.pagination__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 4.4rem;
    padding: 0 1.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
}

.pagination__link:hover {
    border-color: rgba(39, 116, 233, 0.28);
    transform: translateY(-1px);
}

.pagination__info {
    color: var(--text-soft);
}

.editorial-grid--home .article-card--featured,
.editorial-grid--blog .article-card--featured {
    grid-column: span 2;
}

.article-meta-strip {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta-strip span {
    display: inline-flex;
    align-items: center;
    min-height: 3.8rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    background: var(--surface-alt);
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 700;
}

.article-layout {
    margin-top: 7rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.34fr);
    align-items: start;
}

.article-content,
.article-sidebar {
    padding: 2.8rem;
}

.article-content__lead {
    margin-bottom: 2.6rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid var(--line);
}

.article-content__lead p {
    margin: 0;
    font-size: 2rem;
    line-height: 1.75;
    color: var(--text);
}

.article-keypoints {
    padding-bottom: 2.4rem;
    margin-bottom: 2.6rem;
    border-bottom: 1px solid var(--line);
}

.article-keypoints ul,
.article-section ul {
    margin: 1.4rem 0 0;
    padding-left: 2rem;
    display: grid;
    gap: 0.9rem;
}

.article-body {
    display: grid;
    gap: 3rem;
}

.article-section h2 {
    font-size: clamp(2.8rem, 3vw, 4rem);
    margin-bottom: 1.4rem;
}

.article-section p {
    margin: 0 0 1.4rem;
    color: var(--text);
}

.article-sidebar {
    position: sticky;
    top: 12rem;
    display: grid;
    gap: 1.8rem;
}

.article-sidebar__group {
    display: grid;
    gap: 0.8rem;
}

.article-sidebar__group--tone {
    padding: 1.6rem;
    border-radius: 1.8rem;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 100%),
        var(--surface);
    border: 1px solid var(--line);
}

.article-sidebar__group span {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
}

.article-sidebar__group p {
    margin: 0;
}

.contact-info h2 {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
}

.contact-info__list {
    display: grid;
    gap: 1.8rem;
}

.contact-info__list span {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-info__list a,
.contact-info__list p {
    color: var(--text);
}

.contact-form form,
.form-grid {
    display: grid;
    gap: 1.6rem;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
    display: grid;
    gap: 0.7rem;
}

.contact-form span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    border-radius: 1.6rem;
    padding: 1.3rem 1.5rem;
    outline: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(53, 181, 255, 0.54);
    transform: translateY(-1px);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
.button:focus-visible,
.site-nav__link:focus-visible,
.lang-switch__link:focus-visible,
.theme-toggle:focus-visible,
.filters__links a:focus-visible,
.filters__clear:focus-visible,
.project-card__link:focus-visible,
.site-footer__links a:focus-visible,
.site-footer__email:focus-visible,
.scroll-top:focus-visible,
.faq-toggle:focus-visible {
    outline-offset: 4px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.checkbox-row input {
    width: 1.8rem;
    height: 1.8rem;
}

.form-alert {
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.4rem;
    border-radius: 1.4rem;
    font-size: 1.45rem;
    font-weight: 600;
}

.form-alert--error {
    background: rgba(186, 26, 26, 0.12);
    color: #c53030;
}

.form-alert--exito {
    background: rgba(20, 129, 82, 0.12);
    color: #0d8f58;
}

.faq-list {
    display: grid;
    gap: 1.2rem;
}

.faq-item {
    padding: 0;
}

.faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 2rem 2.2rem;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.faq-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 700;
}

.faq-icon {
    font-size: 2.4rem;
    color: var(--primary);
}

.faq-content {
    display: none;
    padding: 0 2.2rem 2rem;
}

.faq-content[hidden] {
    display: none;
}

.faq-item.is-open .faq-content {
    display: block;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.policy-list {
    display: grid;
    gap: 1.6rem;
}

.policy-item {
    padding: 2.6rem;
}

.policy-item h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.empty-state {
    margin-top: 8rem;
    padding: 4rem;
    display: grid;
    gap: 1.6rem;
    justify-items: start;
}

.site-footer {
    position: relative;
    z-index: 2;
    padding: 0 0 3.6rem;
}

.site-footer__content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(28rem, 0.8fr);
    gap: 2rem;
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    backdrop-filter: blur(24px);
}

.site-footer__intro h2 {
    font-size: clamp(3rem, 4vw, 5rem);
    margin-bottom: 1.4rem;
}

.site-footer__email {
    display: inline-block;
    margin-bottom: 1.8rem;
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text);
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-bottom: 1.8rem;
}

.site-footer__links a {
    color: var(--text-soft);
    font-weight: 600;
}

.site-footer__copyright {
    font-size: 1.3rem;
}

.scroll-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    color: var(--text);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    z-index: 30;
}

.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.hero--home {
    align-items: center;
    min-height: auto;
    gap: 3rem;
}

.hero__title {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.2rem;
    align-items: baseline;
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__meta {
    margin-top: 2.4rem;
    padding: 2rem;
    display: grid;
    gap: 1.6rem;
    max-width: 64rem;
    border-radius: var(--radius-lg);
}

.hero__note {
    color: var(--text);
    font-size: 1.55rem;
    font-weight: 600;
    max-width: 56rem;
}

.page-hero__media--home picture,
.page-hero__media--contact picture,
.page-hero__media--about picture,
.page-hero__media--portfolio picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-stats {
    margin-top: 2.4rem;
    padding: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stats__item {
    padding: 2rem 2.2rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid var(--line);
}

html[data-theme='dark'] .hero-stats__item {
    background: rgba(255, 255, 255, 0.04);
}

.hero-stats__item strong {
    display: block;
    margin-bottom: 0.7rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.8rem, 3vw, 4.6rem);
    line-height: 1;
    color: var(--text);
}

.hero-stats__item span {
    color: var(--text-soft);
    font-size: 1.45rem;
}

.manifesto {
    margin-top: 8rem;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: stretch;
}

.manifesto__quote,
.manifesto__body {
    padding: 3rem;
    height: 100%;
}

.manifesto__quote {
    display: grid;
    align-content: start;
}

.manifesto__quote h2 {
    font-family: 'Newsreader', serif;
    font-size: clamp(3.8rem, 5vw, 6.2rem);
    line-height: 0.95;
    color: var(--primary-strong);
}

.manifesto__body > p {
    font-size: 1.95rem;
    max-width: 70rem;
    margin-top: 0;
}

.approach-grid {
    margin-top: 2.6rem;
    display: grid;
    gap: 1.4rem;
}

.approach-card {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    align-items: start;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.approach-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-width: 0;
}

.approach-card__index {
    flex: 0 0 auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.approach-card h3 {
    font-size: 2.1rem;
    margin: 0;
}

.approach-card p {
    margin: 0;
}

.section-head--wide {
    max-width: 88rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 0.85fr;
    gap: 2rem;
}

.project-card--showcase {
    height: 100%;
}

.project-card--featured {
    grid-row: span 2;
}

.project-card--featured .project-card__image {
    aspect-ratio: 4 / 5;
}

.project-card--featured .project-card__body {
    padding: 2.6rem;
    align-content: start;
}

.project-card--featured h3 {
    font-size: 3.4rem;
}

.project-card--compact .project-card__image {
    aspect-ratio: 4 / 3.4;
}

.project-card--compact .project-card__body {
    align-content: start;
}

.project-card--showcase .chip-list {
    margin-top: -0.2rem;
}

.section-block--stack {
    overflow: hidden;
}

.stack-marquee {
    position: relative;
    overflow: hidden;
    padding: 0.4rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stack-marquee::before,
.stack-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12rem;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stack-marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.stack-marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg), transparent);
}

.stack-marquee__track {
    display: flex;
    gap: 1.6rem;
    width: max-content;
    animation: stack-marquee 24s linear infinite;
}

.stack-marquee__list {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    margin: 0;
    padding: 1.2rem 0;
}

.stack-marquee__list li {
    padding: 1rem 1.6rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    white-space: nowrap;
}

.stack-pill {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.stack-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.stack-pill__icon i {
    font-size: 2rem;
}

.stack-pill__icon .devicon-nextjs-line,
.stack-pill__icon .devicon-nextjs-original,
.stack-pill__icon .devicon-flask-original {
    color: var(--text);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.8rem;
    display: grid;
    gap: 2.4rem;
}

.testimonial-card__quote {
    margin: 0;
    font-family: 'Newsreader', serif;
    font-size: clamp(2.8rem, 3vw, 4rem);
    line-height: 1.05;
    color: var(--primary-strong);
}

.testimonial-card__meta {
    display: grid;
    gap: 0.3rem;
}

.testimonial-card__meta strong {
    font-size: 1.5rem;
}

.testimonial-card__meta span {
    color: var(--text-soft);
    font-size: 1.35rem;
}

.process-board {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.process-step {
    padding: 2.4rem;
    display: grid;
    gap: 1.6rem;
    min-height: 28rem;
}

.process-step__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 1.6rem;
    background: var(--surface-alt);
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 1.25rem;
}

.process-step h3 {
    font-size: 2.4rem;
}

.cta-block--home {
    background:
        radial-gradient(circle at top right, rgba(65, 139, 255, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(10, 54, 144, 0.96), rgba(29, 159, 255, 0.86));
    border-color: transparent;
}

.cta-block--home h2,
.cta-block--home p,
.cta-block--home .section-eyebrow {
    color: #ffffff;
}

.cta-block--home .button--primary {
    background: #ffffff;
    border-color: transparent;
    color: var(--primary-strong);
    box-shadow: 0 20px 36px rgba(6, 19, 46, 0.18);
}

.cta-block--home .button--primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-strong);
}

.cta-block--home .button--secondary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.cta-block--home .button--secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.page-hero--portfolio,
.page-hero--blog,
.page-hero--article,
.page-hero--about,
.page-hero--contact {
    max-width: 92rem;
}

.page-hero--portfolio {
    grid-template-columns: minmax(0, 1fr) minmax(32rem, 0.92fr);
    align-items: center;
    max-width: none;
}

.page-hero--contact {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.86fr);
    align-items: center;
    max-width: none;
}

.page-hero--blog {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.86fr);
    align-items: center;
    max-width: none;
}

.page-hero--article {
    grid-template-columns: minmax(0, 1fr) minmax(32rem, 0.92fr);
    align-items: center;
    max-width: none;
}

.page-hero--about {
    grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.86fr);
    align-items: center;
    max-width: none;
}

.page-hero__media--contact {
    overflow: hidden;
    padding: 0;
    min-height: 42rem;
    height: 100%;
}

.page-hero__media--home {
    overflow: hidden;
    padding: 0;
    min-height: 56rem;
    height: 100%;
}

.page-hero__media--portfolio {
    overflow: hidden;
    padding: 0;
    min-height: 44rem;
    height: 100%;
}

.page-hero__media--blog {
    overflow: hidden;
    padding: 0;
    min-height: 44rem;
    height: 100%;
}

.page-hero__media--article {
    overflow: hidden;
    padding: 0;
    min-height: 48rem;
    height: 100%;
}

.page-hero__media--about {
    overflow: hidden;
    padding: 0;
    min-height: 44rem;
    height: 100%;
}

.page-hero__media--home img,
.page-hero__media--contact img,
.page-hero__media--blog img,
.page-hero__media--article img,
.page-hero__media--portfolio img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.page-hero__media--about img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.portfolio-shell,
.about-shell,
.contact-shell,
.case-layout {
    margin-top: 7rem;
    display: grid;
    gap: 2rem;
}

.portfolio-shell {
    grid-template-columns: minmax(27rem, 0.42fr) minmax(0, 1fr);
    align-items: start;
}

.filter-sidebar {
    padding: 2.4rem;
    position: sticky;
    top: 12rem;
    display: grid;
    gap: 2.2rem;
    max-height: calc(100svh - 14rem);
    overflow: auto;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
}

.filter-sidebar::-webkit-scrollbar {
    width: 0.8rem;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(55, 113, 205, 0.26);
}

.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar__intro h2 {
    font-size: clamp(3.6rem, 4vw, 5rem);
    margin: 0.6rem 0 1rem;
}

.filter-sidebar__active {
    display: grid;
    gap: 1rem;
}

.filter-sidebar__active > span {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.chip-list--active-filters li {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 1.2rem 2.8rem rgba(26, 88, 191, 0.18);
}

.filters-drawer {
    display: grid;
    gap: 1.4rem;
}

.filters-drawer > summary {
    list-style: none;
}

.filters-drawer > summary::-webkit-details-marker,
.filters__group-summary::-webkit-details-marker {
    display: none;
}

.filters-drawer__summary,
.filters__group-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    cursor: pointer;
}

.filters-drawer__summary {
    min-height: 5.2rem;
    padding: 0 1.8rem;
    border-radius: 1.8rem;
    border: 1px solid rgba(79, 124, 196, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.filters-drawer__icon {
    display: inline-grid;
    gap: 0.35rem;
    width: 1.8rem;
}

.filters-drawer__icon span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

.filters-drawer__icon span:nth-child(2) {
    width: 1.25rem;
}

.filters-drawer__icon span:nth-child(3) {
    width: 0.9rem;
}

.filters__group-summary {
    position: relative;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--primary);
    font-weight: 800;
}

.filters__group-summary::after {
    content: '+';
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-soft);
    transition: transform 0.2s ease, color 0.2s ease;
}

.filters__group[open] .filters__group-summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.filters--sidebar {
    margin-top: 0;
    padding: 0;
    gap: 1.2rem;
}

.filters__group--panel {
    padding: 1.8rem;
    border-radius: 2.2rem;
    border: 1px solid rgba(95, 138, 196, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(243, 248, 255, 0.82));
    box-shadow: 0 1.8rem 4rem rgba(16, 39, 84, 0.08);
}

.filters__group--panel .filters__links {
    margin-top: 1.2rem;
    gap: 0.9rem;
}

.filters__group--panel .filters__links a {
    min-height: 4.2rem;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.74);
}

.filters__group--panel .filters__links a.is-active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 1.4rem 3rem rgba(26, 88, 191, 0.2);
}

.filters__group--panel .filters__links a:hover {
    border-color: rgba(39, 116, 233, 0.28);
    color: var(--text);
}

.filters--sidebar .filters__clear {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
}

.portfolio-results {
    display: grid;
    gap: 2rem;
}

.showcase-grid--portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.showcase-grid--portfolio .project-card--featured {
    grid-column: span 2;
    grid-row: auto;
}

.showcase-grid--portfolio .project-card--featured .project-card__image {
    aspect-ratio: 16 / 9;
}

.page-hero--portfolio .page-hero__copy {
    max-width: 62rem;
}

.page-hero--portfolio h1,
.page-hero--blog h1,
.page-hero--article h1,
.page-hero--about h1,
.page-hero--contact h1 {
    max-width: 11.5ch;
}

.page-hero--portfolio h1 .hero__title-accent,
.page-hero--blog h1 .hero__title-accent,
.page-hero--article h1 .hero__title-accent,
.page-hero--about h1 .hero__title-accent,
.page-hero--contact h1 .hero__title-accent {
    display: inline-block;
    margin: 0 0.14em 0 0.08em;
}

html[data-theme='dark'] .filter-sidebar {
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.18), transparent 38%),
        linear-gradient(180deg, rgba(12, 20, 40, 0.88), rgba(9, 15, 31, 0.78));
}

html[data-theme='dark'] .filters-drawer__summary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(109, 150, 204, 0.16);
}

html[data-theme='dark'] .filters__group--panel {
    border-color: rgba(109, 150, 204, 0.16);
    background:
        linear-gradient(180deg, rgba(15, 26, 48, 0.78), rgba(10, 18, 35, 0.92));
    box-shadow: 0 2.2rem 4.8rem rgba(0, 0, 0, 0.26);
}

html[data-theme='dark'] .filters__group--panel .filters__links a {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme='dark'] .filters__group--panel .filters__links a.is-active {
    color: #ffffff;
}

html[data-theme='dark'] .filters__group--panel .filters__links a:hover {
    border-color: rgba(74, 152, 255, 0.34);
    color: var(--text);
}

.project-hero--case {
    align-items: center;
}

.project-summary {
    margin-top: 2.2rem;
    padding: 2rem;
    display: grid;
    gap: 1.4rem;
    max-width: 64rem;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 100%),
        var(--surface);
}

.project-gallery {
    padding: 1.6rem;
    display: grid;
    gap: 1.4rem;
}

.project-gallery__frame {
    position: relative;
}

.project-gallery__viewport {
    overflow: hidden;
    border-radius: 2.8rem;
}

.project-gallery__track {
    display: flex;
    transition: transform 0.28s ease;
}

.project-gallery__slide {
    min-width: 100%;
}

.project-gallery__zoom {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.project-gallery__zoom:focus-visible,
.project-gallery__thumb:focus-visible,
.project-gallery__nav:focus-visible,
.project-gallery__modal-nav:focus-visible,
.project-gallery__modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.project-gallery__slide picture,
.project-gallery__slide img {
    display: block;
    width: 100%;
}

.project-gallery__slide img {
    aspect-ratio: 4 / 4.8;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.project-gallery__nav,
.project-gallery__modal-nav,
.project-gallery__modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    cursor: pointer;
}

.project-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.project-gallery__nav--prev {
    left: 1.4rem;
}

.project-gallery__nav--next {
    right: 1.4rem;
}

.project-gallery__nav span,
.project-gallery__modal-nav,
.project-gallery__modal-close {
    font-size: 2.2rem;
    line-height: 1;
}

.project-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.2rem, 1fr));
    gap: 1rem;
}

.project-gallery__thumb {
    padding: 0;
    border: 1px solid transparent;
    border-radius: 1.8rem;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.project-gallery__thumb picture,
.project-gallery__thumb img {
    display: block;
    width: 100%;
}

.project-gallery__thumb img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-gallery__thumb.is-active {
    border-color: var(--primary);
    box-shadow: 0 1.4rem 3rem rgba(26, 88, 191, 0.18);
}

.project-gallery__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-size: 1.35rem;
    color: var(--text-soft);
    padding: 0.2rem 0.2rem 0;
}

.project-gallery__footer strong {
    color: var(--text);
}

.project-gallery__modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(6, 12, 25, 0.82);
    backdrop-filter: blur(12px);
    padding: 3rem;
}

.project-gallery__modal[hidden] {
    display: none;
}

.project-gallery__modal:not([hidden]) {
    display: grid;
    place-items: center;
}

.project-gallery__modal-shell {
    position: relative;
    width: min(128rem, 100%);
    height: min(92svh, 94rem);
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr) 7rem;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.6rem;
}

.project-gallery__modal-stage {
    grid-column: 2;
    width: 100%;
    height: 100%;
    border-radius: 3rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 3.2rem 8rem rgba(0, 0, 0, 0.35);
}

.project-gallery__modal-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-gallery__modal-nav,
.project-gallery__modal-close {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 50%;
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.22);
}

.project-gallery__modal-nav--prev {
    grid-column: 1;
}

.project-gallery__modal-nav--next {
    grid-column: 3;
}

.project-gallery__modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.project-gallery__modal-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.45rem;
}

.case-layout {
    grid-template-columns: 1fr;
    align-items: start;
}

.case-rail {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.4rem;
}

.case-rail__item {
    padding: 1.6rem;
    border-radius: 1.8rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.24));
    border: 1px solid var(--line);
}

html[data-theme='dark'] .case-rail__item {
    background: rgba(255, 255, 255, 0.04);
}

.case-rail__item span {
    display: block;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
}

.case-rail__item strong {
    color: var(--text);
    line-height: 1.35;
}

.case-rail__item--action {
    align-content: start;
}

.case-rail__item--action .button {
    margin-top: 0.6rem;
}

.case-panels {
    display: grid;
    gap: 2rem;
}

.detail-card--lead {
    padding: 3rem;
    background:
        radial-gradient(circle at top right, rgba(53, 181, 255, 0.15), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 100%),
        var(--surface);
}

.detail-card--lead h2 {
    font-size: clamp(3rem, 3.6vw, 4.6rem);
    line-height: 1.02;
}

.details-grid--case .detail-card--wide {
    grid-column: span 2;
}

.showcase-grid--related {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(30rem, 0.85fr);
    align-items: start;
}

.about-story,
.about-profile {
    padding: 3rem;
}

.about-story h2 {
    font-size: clamp(3rem, 4vw, 5.2rem);
    margin: 0.8rem 0 1.4rem;
}

.about-story__lead {
    font-size: 1.95rem;
    max-width: 68rem;
}

.about-highlights {
    margin-top: 2.8rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.about-highlight {
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.about-highlight strong {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.7rem;
    color: var(--text);
}

.about-profile blockquote {
    margin: 0;
    font-family: 'Newsreader', serif;
    font-size: clamp(3rem, 4.2vw, 4.8rem);
    line-height: 1;
    color: var(--primary-strong);
}

.about-profile {
    display: grid;
    gap: 2.2rem;
}

.about-profile__summary {
    font-size: 1.8rem;
}

.about-profile__facts {
    margin-top: 0;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.approach-grid--about {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approach-card--panel {
    display: grid;
    padding: 2rem;
    border-top: 0;
    grid-template-columns: 1fr;
}

.process-board--journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-shell {
    grid-template-columns: minmax(28rem, 0.42fr) minmax(0, 1fr);
    align-items: start;
}

.contact-info--rich,
.contact-form--rich {
    padding: 2.6rem;
}

.contact-info--rich h2 {
    font-size: clamp(3.2rem, 4vw, 5rem);
    margin-bottom: 1.2rem;
}

.contact-note {
    margin-top: 2.4rem;
    padding: 1.8rem;
    border-radius: 2rem;
}

.contact-note span {
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
}

.faq-list--rich {
    grid-template-columns: 1fr;
    max-width: 92rem;
}

@keyframes stack-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 1080px) {
    .site-header__bar,
    .hero,
    .content-grid,
    .contact-grid,
    .project-hero,
    .site-footer__content {
        grid-template-columns: 1fr;
    }

    .site-header__bar {
        border-radius: 3rem;
        grid-template-columns: auto 1fr;
    }

    .site-header__panel {
        grid-template-columns: 1fr;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .page-hero--portfolio,
    .page-hero--blog,
    .page-hero--article,
    .page-hero--contact,
    .page-hero--about {
        grid-template-columns: 1fr;
    }

    .project-grid,
    .card-grid--three,
    .details-grid,
    .project-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-hero__media--home {
        min-height: 44rem;
    }

    .page-hero__media--portfolio,
    .page-hero__media--blog,
    .page-hero__media--article,
    .page-hero__media--about,
    .page-hero__media--contact {
        min-height: 38rem;
    }

    .page-hero__media--home img {
        min-height: 44rem;
    }

    .hero-stats,
    .manifesto,
    .showcase-grid,
    .process-board,
    .testimonial-grid,
    .portfolio-shell,
    .about-shell,
    .contact-shell,
    .case-layout,
    .editorial-grid,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .project-card--featured {
        grid-row: auto;
    }

    .filter-sidebar,
    .case-rail {
        position: static;
    }

    .filters-drawer[open] .filters__group {
        overflow: hidden;
    }

    .showcase-grid--related,
    .faq-list--rich,
    .approach-grid--about,
    .about-highlights,
    .editorial-intro__grid {
        grid-template-columns: 1fr;
    }

    .showcase-grid--portfolio .project-card--featured {
        grid-column: auto;
    }

    .article-card--featured {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-main {
        padding-top: 12.5rem;
    }

    .site-header {
        top: 1rem;
    }

    .site-header__bar {
        padding: 1.4rem;
        grid-template-columns: auto auto;
        align-items: center;
    }

    .site-menu-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .site-header__panel {
        display: none;
        grid-column: 1 / -1;
        padding-top: 0.8rem;
        border-top: 1px solid var(--line);
    }

    .site-header__bar.is-open .site-header__panel {
        display: grid;
    }

    .site-nav,
    .site-header__controls,
    .hero__actions,
    .filters__links,
    .site-footer__links {
        justify-content: flex-start;
    }

    .site-nav,
    .site-header__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav__link,
    .lang-switch,
    .theme-toggle {
        width: 100%;
        justify-content: center;
    }

    .project-grid,
    .card-grid--three,
    .details-grid,
    .project-nav,
    .form-grid,
    .process-board--journey,
    .showcase-grid--portfolio,
    .editorial-grid--home,
    .editorial-grid--blog,
    .editorial-grid--related {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .cta-block {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero h1,
    .page-hero h1,
    .project-hero h1 {
        max-width: none;
    }

    .hero__title {
        gap: 0.4rem 0.9rem;
    }

    .project-gallery__modal {
        padding: 1.6rem;
    }

    .project-gallery__modal-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
    }

    .project-gallery__modal-stage,
    .project-gallery__modal-footer {
        grid-column: 1;
    }

    .project-gallery__modal-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
    }

    .project-gallery__modal-nav--prev {
        left: 0.8rem;
    }

    .project-gallery__modal-nav--next {
        right: 0.8rem;
    }

    .manifesto__quote,
    .manifesto__body,
    .process-step,
    .cta-block--home,
    .project-card--featured .project-card__body {
        padding: 2rem;
    }

    .hero__meta {
        padding: 1.8rem;
    }

    .page-hero__media--home img,
    .page-hero__media--portfolio img,
    .page-hero__media--blog img,
    .page-hero__media--article img,
    .page-hero__media--about img,
    .page-hero__media--contact img,
    .project-card--compact .project-card__image {
        min-height: 30rem;
    }

    .article-content,
    .article-sidebar,
    .article-card__body {
        padding: 2rem;
    }

    .stack-marquee::before,
    .stack-marquee::after {
        width: 5rem;
    }

    .hero-stats__item {
        padding: 1.8rem;
    }

    .approach-card {
        flex-direction: column;
    }

    .details-grid--case .detail-card--wide {
        grid-column: auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .project-card__image img,
    .button,
    .scroll-top,
    .site-nav__link {
        transform: none !important;
    }

    html.js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
