:root {
    --ink: #f3f8f7;
    --muted: #bdc9cf;
    --panel: #18232c;
    --panel-2: #22313b;
    --surface: #121a21;
    --surface-2: #17242d;
    --line: rgba(214, 236, 232, 0.16);
    --green: #40b84f;
    --green-deep: #0c6f2d;
    --blue: #14a7d8;
    --energy: #d7e84a;
    --shadow: 0 18px 54px rgba(0, 0, 0, 0.28);
    --soft-glow: 0 0 0 1px rgba(64, 184, 79, 0.05), 0 18px 48px rgba(3, 10, 14, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: #0f171d;
    letter-spacing: 0;
}

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

img {
    max-width: 100%;
    display: block;
}

.public-page {
    background:
            linear-gradient(90deg, rgba(64, 184, 79, 0.045) 1px, transparent 1px),
            linear-gradient(0deg, rgba(20, 167, 216, 0.038) 1px, transparent 1px),
            linear-gradient(180deg, #111a21 0%, #0f171d 46%, #131d24 100%);
    background-size: 72px 72px, 72px 72px, auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 12px 5vw;
    background: rgba(13, 21, 27, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    line-height: 1.05;
}

.brand img,
.site-footer img {
    border-radius: 8px;
    object-fit: contain;
}

.brand strong {
    color: var(--blue);
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-nav a {
    padding: 10px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    border-color: rgba(64, 184, 79, 0.45);
    background: rgba(64, 184, 79, 0.12);
}

.site-nav-toggle,
.site-nav-backdrop {
    display: none;
}

.site-nav-toggle {
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
            rgba(9, 17, 22, 0.82);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(3, 10, 14, 0.18);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.site-nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 220ms ease, opacity 220ms ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
    border-color: rgba(64, 184, 79, 0.4);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
            rgba(14, 24, 30, 0.94);
    box-shadow: 0 16px 30px rgba(3, 10, 14, 0.24);
    transform: translateY(-1px);
    outline: none;
}

body.site-nav-open {
    overflow: hidden;
}

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

body.site-nav-open .site-nav-toggle span:nth-child(2) {
    opacity: 0;
}

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

.header-tools {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.locale-switcher {
    position: relative;
    flex: 0 0 auto;
}

.locale-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 9px 12px;
    color: var(--ink);
    border: 1px solid rgba(64, 184, 79, 0.42);
    border-radius: 8px;
    background: rgba(64, 184, 79, 0.1);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.locale-switcher summary::-webkit-details-marker {
    display: none;
}

.locale-switcher svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    color: var(--green);
}

.locale-switcher summary span {
    font-weight: 700;
    font-size: 0.88rem;
}

.locale-menu {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 10px);
    z-index: 30;
    width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(13, 20, 27, 0.98);
    box-shadow: var(--shadow);
}

.locale-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 8px;
}

.locale-menu a:hover,
.locale-menu a.is-active {
    color: var(--ink);
    border-color: rgba(64, 184, 79, 0.42);
    background: rgba(64, 184, 79, 0.1);
}

.locale-menu small {
    color: var(--green);
    font-weight: 800;
    letter-spacing: 0;
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.055);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.theme-icon-moon,
.theme-light .theme-icon-sun {
    display: none;
}

.theme-light .theme-icon-moon {
    display: block;
}

.hero-section {
    position: relative;
    min-height: 78vh;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: clamp(24px, 3vw, 34px);
    padding: 96px 5vw 82px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
            radial-gradient(circle at 50% 32%, rgba(64, 184, 79, 0.16), transparent 24%),
            radial-gradient(circle at 50% 72%, rgba(20, 167, 216, 0.12), transparent 26%),
            linear-gradient(135deg, #142129 0%, #172731 54%, #101820 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
            linear-gradient(0deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 96px 96px;
    opacity: 0.42;
    pointer-events: none;
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: min(980px, 94vw);
    min-height: clamp(180px, 18vw, 220px);
    padding: 12px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    overflow: hidden;
}

.hero-visual::before {
    content: none;
}

.hero-visual::after {
    content: none;
}

.hero-badge {
    display: none;
}

.hero-badge img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hero-badge span {
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-visual-orbit {
    display: block;
    position: absolute;
    width: min(720px, 82%);
    height: min(220px, 72%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(64, 184, 79, 0.14), rgba(20, 167, 216, 0.06) 48%, transparent 72%);
    filter: blur(22px);
    opacity: 0.9;
    pointer-events: none;
}

.hero-backdrop {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: 220px;
    object-fit: contain;
    opacity: 1;
    filter: saturate(1.08) contrast(1.02) drop-shadow(0 20px 36px rgba(3, 10, 14, 0.1));
    transform: none;
}

.hero-visual-caption {
    display: none;
}

.hero-visual-caption span {
    color: rgba(243, 248, 247, 0.64);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-visual-caption strong {
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            linear-gradient(100deg, rgba(64, 184, 79, 0.12), transparent 42%),
            linear-gradient(18deg, transparent 40%, rgba(20, 167, 216, 0.1), transparent 62%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    justify-items: center;
    gap: 0;
    padding-inline-start: 0;
}

.hero-content::before {
    content: none;
    display: block;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 12px;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--energy);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-content .eyebrow {
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(133, 221, 35, 0.22);
    border-radius: 999px;
    background: rgba(133, 221, 35, 0.08);
    box-shadow: 0 0 24px rgba(133, 221, 35, 0.08);
    letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(3rem, 4.2vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
}

h3 {
    margin: 0;
    font-size: 1.25rem;
}

.hero-content > p:not(.eyebrow),
.page-hero p,
.section-grid > p,
.service-card p,
.reference-list span,
.split-section p,
.contact-info p,
.muted {
    color: var(--muted);
    line-height: 1.7;
}

.cms-text-block {
    white-space: pre-line;
}

.hero-content > p:not(.eyebrow) {
    max-width: 44rem;
    margin-inline: auto;
    font-size: 1.08rem;
    line-height: 1.72;
    opacity: 0.92;
}

.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.hero-section .button {
    min-height: 58px;
    padding: 14px 28px;
    border-radius: 18px;
    font-size: 1rem;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

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

.hero-section .button-primary {
    box-shadow: 0 0 24px rgba(130, 217, 30, 0.28);
}

.hero-section .button-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    background: linear-gradient(135deg, var(--green), var(--blue));
    color: #061006;
    border-color: transparent;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.075);
    color: var(--ink);
}

.approach-band {
    padding: 70px 5vw;
    border-bottom: 1px solid var(--line);
    background:
            linear-gradient(90deg, rgba(64, 184, 79, 0.11), transparent 34%),
            linear-gradient(180deg, #182731, #142029);
}

.approach-inner {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(30px, 5vw, 74px);
    align-items: start;
}

.approach-heading h2 {
    max-width: 520px;
    font-size: 1.75rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.approach-grid article {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 24px;
    min-height: 126px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    box-shadow: none;
}

.approach-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--energy);
    font-weight: 700;
    font-size: 0.86rem;
    border: 1px solid rgba(215, 232, 74, 0.32);
    border-radius: 0;
    background: rgba(215, 232, 74, 0.07);
}

.approach-grid h3 {
    margin-bottom: 10px;
}

.approach-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.vision-mission-layout {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    align-items: stretch;
}

.vision-mission-heading {
    display: grid;
    align-content: start;
    gap: 16px;
}

.vision-mission-heading .eyebrow {
    margin: 0;
}

.vision-mission-heading h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.15rem);
    line-height: 1.06;
}

.vision-mission-intro {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.vision-mission-card {
    position: relative;
    min-height: 100%;
    padding: 28px 28px 30px;
    border: 1px solid rgba(214, 236, 232, 0.14);
    border-radius: 24px;
    background:
            radial-gradient(circle at top right, rgba(64, 184, 79, 0.14), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
            rgba(11, 20, 26, 0.56);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.vision-mission-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 232, 74, 0.5), rgba(20, 167, 216, 0.18), transparent 72%);
}

.vision-mission-card .eyebrow {
    margin: 0 0 12px;
}

.vision-mission-card h3 {
    margin: 0 0 14px;
    font-size: clamp(1.3rem, 1.5vw, 1.7rem);
    line-height: 1.14;
}

.vision-mission-card p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.section-grid,
.content-section,
.split-section,
.contact-layout,
.page-hero {
    padding: 72px 5vw;
}

.section-grid {
    background:
            linear-gradient(90deg, rgba(20, 167, 216, 0.055), transparent 38%),
            var(--surface);
    border-bottom: 1px solid var(--line);
}

.content-section {
    position: relative;
    background: linear-gradient(180deg, rgba(23, 36, 45, 0.72), rgba(18, 28, 36, 0.72));
    border-bottom: 1px solid var(--line);
}

.content-section:nth-of-type(even) {
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.055), transparent 32%),
            linear-gradient(180deg, rgba(28, 43, 52, 0.78), rgba(19, 30, 38, 0.78));
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 42px;
    align-items: start;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 34px;
    padding-inline-start: clamp(0px, 2vw, 26px);
    border-inline-start: 3px solid rgba(64, 184, 79, 0.7);
}

.section-heading h2 {
    max-width: 720px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.content-section .card-grid:not(.wide) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.content-section .card-grid:not(.wide) .service-card:first-child {
    grid-row: auto;
    min-height: 380px;
}

.card-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.service-card,
.reference-list article,
.value-grid article,
.contact-form,
.contact-info {
    border: 1px solid var(--line);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%),
            linear-gradient(180deg, var(--panel), var(--panel-2));
    border-radius: 0;
    box-shadow: var(--soft-glow);
}

.service-card {
    min-height: 420px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.service-list-card {
    min-height: 520px;
}

.service-card .button,
.service-card .text-link {
    margin-top: auto;
    margin-inline: 22px;
    margin-bottom: 22px;
    align-self: flex-start;
}

.service-card-media,
.service-card > img {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 220px;
    overflow: hidden;
    border-radius: 0;
    border: 1px solid var(--line);
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.18), rgba(40, 144, 214, 0.11)),
            #17242d;
    margin: 0 0 18px;
}

.service-card-media img,
.service-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    border: 0;
    margin: 0;
    display: block;
    background: transparent;
}

.service-card h2,
.service-card h3 {
    margin: 0 22px;
    min-height: 2.55em;
    overflow: visible;
}

.service-card p {
    margin: 12px 22px 18px;
}

.service-card-summary,
.service-card-detail {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-summary {
    -webkit-line-clamp: 2;
}

.service-card-detail {
    -webkit-line-clamp: 4;
}

.service-directory {
    padding-top: clamp(34px, 5vw, 58px);
}

.service-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-directory-card {
    min-width: 0;
    min-height: 490px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
            linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--soft-glow);
}

.service-directory-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background:
            radial-gradient(circle at 50% 42%, rgba(64, 184, 79, 0.16), transparent 44%),
            linear-gradient(135deg, rgba(64, 184, 79, 0.12), rgba(40, 144, 214, 0.1)),
            #18252e;
}

.service-directory-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.service-directory-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 22px 22px;
}

.service-directory-copy h2 {
    max-width: 100%;
    min-height: 2.45em;
    margin-top: -2px;
    color: var(--ink);
    font-size: clamp(1.16rem, 1.35vw, 1.34rem);
    line-height: 1.2;
    display: flex;
    align-items: flex-start;
}

.service-directory-copy p {
    max-width: 100%;
    margin: 16px 0 18px;
    color: var(--muted);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-directory-copy .text-link {
    margin-top: auto;
}

.text-link {
    display: inline-flex;
    color: var(--energy);
    font-weight: 700;
}

.service-detail-hero {
    position: relative;
    padding: clamp(34px, 5vw, 58px) clamp(48px, 8vw, 124px) 20px;
    border-bottom: 1px solid var(--line);
    background:
            linear-gradient(90deg, rgba(64, 184, 79, 0.08), transparent 34%),
            linear-gradient(125deg, #17242d, #111a22 58%, #0d141b);
    overflow: hidden;
}

.service-detail-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(24px, 4vw, 54px);
    align-items: end;
}

.service-detail-hero-copy {
    min-width: 0;
}

.service-detail-hero::after {
    content: "";
    position: absolute;
    inset-inline-start: 5vw;
    bottom: 0;
    width: min(420px, 42vw);
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue), transparent);
}

.service-detail-back {
    position: relative;
    z-index: 1;
    width: max-content;
    display: inline-flex;
    margin-bottom: 22px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.service-detail-back:hover {
    color: var(--ink);
    border-color: rgba(64, 184, 79, 0.45);
    background: rgba(64, 184, 79, 0.08);
}

.service-detail-hero .eyebrow,
.service-detail-hero h1,
.service-detail-hero-summary {
    position: relative;
    z-index: 1;
}

.service-detail-hero h1 {
    max-width: 980px;
}

.service-detail-hero-summary {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    line-height: 1.8;
}

.service-detail-overview {
    display: grid;
    gap: 12px;
    align-content: start;
}

.service-detail-overview-card,
.service-detail-overview-stat {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
            rgba(16, 26, 33, 0.76);
    backdrop-filter: blur(12px);
}

.service-detail-overview-card {
    padding: 18px 20px;
}

.service-detail-overview-card .eyebrow {
    margin: 0;
}

.service-detail-overview-text {
    margin: 12px 0 0;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.75;
}

.service-detail-overview-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
}

.service-detail-overview-stat span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.service-detail-overview-stat strong {
    color: var(--energy);
    font-size: 1.4rem;
    line-height: 1;
}

.service-detail-showcase {
    display: grid;
    grid-template-columns: minmax(300px, 0.54fr) minmax(0, 0.7fr);
    gap: clamp(24px, 3vw, 34px);
    align-items: start;
    justify-content: center;
    padding: clamp(34px, 5vw, 58px) clamp(48px, 8vw, 124px) clamp(52px, 7vw, 86px);
    background:
            linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 28%),
            linear-gradient(180deg, rgba(19, 30, 38, 0.5), rgba(14, 22, 28, 0.78));
}

.service-detail-visual {
    position: relative;
    margin: 0;
    min-height: clamp(280px, 36vw, 470px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    background:
            radial-gradient(circle at 46% 38%, rgba(255, 255, 255, 0.08), transparent 30%),
            linear-gradient(135deg, rgba(64, 184, 79, 0.05), rgba(20, 167, 216, 0.05));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.service-detail-visual img {
    width: 100%;
    height: clamp(280px, 34vw, 460px);
    object-fit: cover;
    padding: clamp(12px, 3vw, 36px);
    background: transparent;
}

.service-detail-panel {
    width: min(100%, 860px);
    min-height: clamp(300px, 34vw, 420px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%),
            rgba(20, 31, 39, 0.96);
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
}

.service-detail-panel-head {
    padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px) 0;
}

.service-detail-panel-head h2 {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
    line-height: 1.08;
}

.service-detail-narrative {
    padding: 0 clamp(22px, 3vw, 34px) clamp(24px, 3vw, 28px);
}

.service-detail-summary {
    margin: 18px 0 0;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.65;
}

.service-detail-text {
    margin: 22px 0 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
    white-space: pre-line;
}

.service-detail-actions {
    display: flex;
    justify-content: flex-start;
    padding: 0 clamp(22px, 3vw, 34px) clamp(24px, 3vw, 30px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-detail-actions .text-link {
    margin-top: 16px;
}

.service-media-section {
    padding-block: clamp(46px, 6vw, 74px);
    padding-inline: clamp(24px, 4vw, 56px) clamp(48px, 8vw, 124px);
}

.public-page main > .service-media-section > .section-heading {
    width: min(900px, 100%);
    max-width: 900px;
    margin-inline: 0;
}

.service-media-section .section-heading {
    max-width: 900px;
    margin-inline: 0;
}

.service-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(900px, 100%);
    max-width: 900px;
    margin-inline: 0;
}

.service-media-grid article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #16222b;
}

.service-media-grid img,
.service-media-grid iframe,
.service-media-grid video {
    width: 100%;
    height: clamp(180px, 22vw, 260px);
    border: 0;
    display: block;
}

.service-media-grid img {
    object-fit: cover;
    padding: 0;
}

.reference-gallery-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(62px, 8vw, 118px);
}

.reference-gallery-section::before {
    content: "";
    position: absolute;
    inset: clamp(18px, 4vw, 54px) 0 auto;
    z-index: -1;
    height: min(46vw, 520px);
    background:
            linear-gradient(110deg, rgba(64, 184, 79, 0.16), transparent 32%),
            linear-gradient(280deg, rgba(20, 167, 216, 0.12), transparent 44%),
            repeating-linear-gradient(90deg, rgba(214, 236, 232, 0.08) 0 1px, transparent 1px 112px);
    clip-path: polygon(0 15%, 78% 0, 100% 64%, 16% 100%);
    opacity: 0.64;
}

.reference-atelier {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(78px, auto);
    gap: clamp(13px, 1.7vw, 24px);
    align-items: stretch;
    border: 0;
}

.reference-atelier.large {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.reference-tile {
    --tilt: -1.4deg;
    --lift: 0px;
    position: relative;
    grid-column: span 5;
    min-height: clamp(190px, 20vw, 270px);
    padding: clamp(22px, 2.7vw, 34px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(22px, 3vw, 42px);
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background:
            linear-gradient(145deg, rgba(246, 255, 249, 0.1), rgba(246, 255, 249, 0.025) 38%, rgba(20, 167, 216, 0.08)),
            linear-gradient(180deg, rgba(23, 36, 45, 0.96), rgba(12, 23, 30, 0.98));
    box-shadow: none;
    transform: translateY(var(--lift)) rotate(var(--tilt));
    transition: opacity 520ms ease, transform 540ms cubic-bezier(0.2, 0.75, 0.22, 1), background 540ms ease;
}

.reference-tile::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(215, 232, 74, 0.46), rgba(64, 184, 79, 0.12), rgba(20, 167, 216, 0.38));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.7;
    pointer-events: none;
}

.reference-tile::after {
    content: "";
    position: absolute;
    inset: auto -12% -34% 18%;
    height: 54%;
    background: radial-gradient(ellipse at center, rgba(64, 184, 79, 0.26), transparent 62%);
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition: opacity 420ms ease, transform 540ms cubic-bezier(0.2, 0.75, 0.22, 1);
    pointer-events: none;
}

.reference-tile:nth-child(4n + 1) {
    grid-column: span 7;
    --lift: 24px;
}

.reference-tile:nth-child(4n + 2) {
    grid-column: span 5;
    min-height: clamp(220px, 24vw, 320px);
    --tilt: 1.2deg;
}

.reference-tile:nth-child(4n + 3) {
    grid-column: 2 / span 4;
    min-height: clamp(170px, 18vw, 236px);
    --tilt: 0.8deg;
}

.reference-tile:nth-child(4n) {
    grid-column: span 6;
    --lift: -12px;
    --tilt: -0.7deg;
}

.references-strip .reference-tile:nth-child(4n + 3) {
    grid-column: span 5;
}

.reference-tile:hover,
.reference-tile:focus-within {
    background:
            linear-gradient(145deg, rgba(246, 255, 249, 0.14), rgba(246, 255, 249, 0.035) 36%, rgba(20, 167, 216, 0.14)),
            linear-gradient(180deg, rgba(24, 42, 51, 0.98), rgba(11, 24, 30, 0.99));
    transform: translateY(calc(var(--lift) - 12px)) rotate(0deg);
}

.reference-tile:hover::after,
.reference-tile:focus-within::after {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reference-mark {
    position: relative;
    z-index: 1;
    width: clamp(88px, 11vw, 138px);
    min-height: clamp(76px, 8vw, 104px);
    display: grid;
    place-items: center;
    padding: 14px;
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
            rgba(255, 255, 255, 0.04);
    transform: translate3d(0, 0, 0);
    transition: transform 540ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.reference-tile:hover .reference-mark,
.reference-tile:focus-within .reference-mark {
    transform: translate3d(8px, -8px, 0) scale(1.04);
}

.reference-mark img {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    margin: 0;
    filter: saturate(0.9) contrast(1.06);
}

.reference-copy {
    position: relative;
    z-index: 1;
    max-width: 46rem;
}

.reference-list strong,
.reference-list span {
    display: block;
}

.reference-list strong {
    max-width: 18ch;
    font-size: clamp(1.18rem, 1.45vw, 1.62rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.reference-list span {
    margin-top: 14px;
    max-width: 48ch;
    font-size: 0.96rem;
}

body.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(34px) rotate(var(--tilt));
}

body.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(var(--lift)) rotate(var(--tilt));
    animation: referenceReveal 720ms cubic-bezier(0.2, 0.75, 0.22, 1) backwards;
    animation-delay: calc(min(var(--i), 6) * 70ms);
}

@keyframes referenceReveal {
    from {
        opacity: 0;
        transform: translateY(34px) rotate(var(--tilt));
    }

    to {
        opacity: 1;
        transform: translateY(var(--lift)) rotate(var(--tilt));
    }
}

.reference-gallery-section {
    padding-block: clamp(38px, 5.4vw, 82px) clamp(72px, 8vw, 124px);
}

.reference-gallery-section::before {
    inset: clamp(44px, 7vw, 96px) clamp(28px, 5vw, 92px) auto;
    height: clamp(180px, 28vw, 390px);
    background:
            linear-gradient(115deg, rgba(64, 184, 79, 0.18), rgba(64, 184, 79, 0.03) 38%, transparent 62%),
            linear-gradient(286deg, rgba(20, 167, 216, 0.16), transparent 48%),
            repeating-linear-gradient(90deg, rgba(214, 236, 232, 0.08) 0 1px, transparent 1px 96px);
    clip-path: polygon(0 18%, 92% 0, 100% 78%, 8% 100%);
}

.reference-atelier,
.reference-atelier.large {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    grid-auto-rows: auto;
    gap: clamp(18px, 2vw, 30px);
    align-items: stretch;
}

.reference-tile,
.reference-tile:nth-child(4n + 1),
.reference-tile:nth-child(4n + 2),
.reference-tile:nth-child(4n + 3),
.reference-tile:nth-child(4n),
.references-strip .reference-tile:nth-child(4n + 3) {
    --lift: 0px;
    --tilt: 0deg;
    grid-column: auto;
    min-height: clamp(300px, 27vw, 370px);
    padding: 0;
    gap: 0;
    justify-content: stretch;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 46%, rgba(64, 184, 79, 0.055)),
            linear-gradient(180deg, #17252e, #101a21);
    transform: translateY(0);
}

.reference-tile::before {
    background:
            linear-gradient(180deg, rgba(215, 232, 74, 0.34), rgba(64, 184, 79, 0.08) 44%, rgba(20, 167, 216, 0.24));
    opacity: 0.82;
}

.reference-tile::after {
    inset: 0;
    height: auto;
    background:
            linear-gradient(180deg, transparent 34%, rgba(64, 184, 79, 0.11) 64%, rgba(20, 167, 216, 0.1)),
            linear-gradient(140deg, transparent 0 48%, rgba(215, 232, 74, 0.13) 48% 49%, transparent 49%);
    opacity: 0;
    transform: none;
}

.reference-mark {
    width: 100%;
    min-height: clamp(154px, 15vw, 202px);
    padding: clamp(28px, 3.4vw, 46px);
    border-radius: 0;
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
            radial-gradient(circle at 52% 45%, rgba(64, 184, 79, 0.13), transparent 60%);
}

.reference-mark::after {
    content: "";
    position: absolute;
    inset-inline: clamp(24px, 3vw, 38px);
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(215, 232, 74, 0.42), transparent);
}

.reference-mark img {
    max-width: min(178px, 78%);
    max-height: 98px;
    filter: saturate(0.96) contrast(1.08) drop-shadow(0 18px 26px rgba(0, 0, 0, 0.18));
    transition: transform 560ms cubic-bezier(0.2, 0.75, 0.22, 1), filter 560ms ease;
}

.reference-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.4vw, 28px);
}

.reference-list strong {
    max-width: 100%;
    min-height: 2.22em;
    font-size: clamp(1.04rem, 1.1vw, 1.24rem);
    line-height: 1.15;
    text-transform: uppercase;
}

.reference-list span {
    margin-top: 12px;
    max-width: 34ch;
    font-size: 0.94rem;
}

.reference-copy small {
    width: fit-content;
    margin-top: auto;
    padding-top: 22px;
    color: var(--energy);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.reference-copy small::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 1px;
    margin-inline-start: 10px;
    vertical-align: middle;
    background: currentColor;
    transform-origin: left center;
    transition: transform 360ms ease;
}

.reference-tile:hover,
.reference-tile:focus-within {
    transform: translateY(-10px);
}

.reference-tile:hover .reference-mark,
.reference-tile:focus-within .reference-mark {
    transform: none;
}

.reference-tile:hover .reference-mark img,
.reference-tile:focus-within .reference-mark img {
    transform: translateY(-6px) scale(1.045);
    filter: saturate(1.08) contrast(1.08) drop-shadow(0 24px 34px rgba(64, 184, 79, 0.18));
}

.reference-tile:hover .reference-copy small::after,
.reference-tile:focus-within .reference-copy small::after {
    transform: scaleX(1.65);
}

.reference-atelier,
.reference-atelier.large {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
    perspective: 1400px;
}

.reference-tile,
.reference-tile:nth-child(4n + 1),
.reference-tile:nth-child(4n + 2),
.reference-tile:nth-child(4n + 3),
.reference-tile:nth-child(4n),
.references-strip .reference-tile:nth-child(4n + 3) {
    position: relative;
    min-height: clamp(285px, 25vw, 350px);
    display: grid;
    place-items: stretch;
    transform-style: preserve-3d;
    transition: opacity 520ms ease, transform 720ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.reference-tile::before,
.reference-tile::after {
    transform: translateZ(1px);
}

.reference-mark,
.reference-front-title,
.reference-copy {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.reference-mark {
    align-self: start;
    min-height: clamp(180px, 17vw, 220px);
}

.reference-front-title {
    position: relative;
    z-index: 2;
    align-self: end;
    display: flex;
    align-items: flex-start;
    min-height: 2.35em;
    width: 100%;
    padding: 0 clamp(22px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px);
    color: var(--ink);
    font-size: clamp(1.04rem, 1.1vw, 1.24rem);
    line-height: 1.15;
    text-transform: uppercase;
}

.reference-copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    justify-content: center;
    min-height: 100%;
    padding: clamp(24px, 2.6vw, 34px);
    border-radius: 8px;
    background:
            linear-gradient(150deg, rgba(64, 184, 79, 0.18), rgba(20, 167, 216, 0.12)),
            linear-gradient(180deg, rgba(20, 34, 42, 0.98), rgba(9, 18, 24, 0.99));
    transform: rotateY(180deg);
}

.reference-copy span {
    max-width: 100%;
    font-size: 0.98rem;
}

.reference-tile:hover,
.reference-tile:focus-within {
    transform: translateY(-8px) rotateY(180deg);
}

.reference-tile:hover .reference-mark img,
.reference-tile:focus-within .reference-mark img {
    transform: none;
}

.reference-tile:hover::after,
.reference-tile:focus-within::after {
    opacity: 0;
}

.theme-light .reference-copy {
    background:
            linear-gradient(150deg, rgba(33, 139, 61, 0.14), rgba(8, 127, 179, 0.12)),
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 245, 246, 0.99));
}

.theme-light .reference-front-title,
.theme-light .reference-copy {
    color: #12202a;
}

.page-hero {
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.1), transparent 36%),
            linear-gradient(120deg, #182731, #111b23);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: 3rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 34px;
}

.split-section > img {
    width: 100%;
    min-height: 340px;
    object-fit: contain;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #17242d;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.value-grid article {
    padding: 22px;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(28px, 4vw, 52px);
    padding: 72px 5vw;
    align-items: start;
    border-bottom: 1px solid var(--line);
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.06), transparent 34%),
            linear-gradient(180deg, rgba(23, 36, 45, 0.76), rgba(18, 29, 37, 0.76));
}

.about-rail {
    position: relative;
}

.about-visual {
    position: sticky;
    top: 112px;
    margin: 0;
    min-height: 360px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
            radial-gradient(circle at 50% 28%, rgba(64, 184, 79, 0.14), transparent 30%),
            linear-gradient(135deg, rgba(64, 184, 79, 0.12), rgba(20, 167, 216, 0.08)),
            #17242d;
    box-shadow: var(--soft-glow);
}

.about-visual img {
    width: 100%;
    min-height: 360px;
    display: block;
    object-fit: contain;
    padding: clamp(24px, 4vw, 40px);
}

.about-editorial {
    min-width: 0;
}

.about-prose {
    display: grid;
    gap: 22px;
}

.about-prose > p,
.about-prose > ul,
.about-value-grid article p:last-child {
    margin: 0;
}

.about-inline-heading {
    margin: 18px 0 -4px;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.2;
}

.about-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0;
    padding: 22px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 38%),
            linear-gradient(180deg, rgba(20, 31, 39, 0.96), rgba(14, 24, 30, 0.96));
    box-shadow: var(--soft-glow);
}

.about-feature-list li {
    position: relative;
    min-width: 0;
    padding-inline-start: 18px;
    color: var(--ink);
    line-height: 1.65;
}

.about-feature-list li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--blue));
    transform: translateY(-50%);
}

.about-value-grid {
    margin-top: 34px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
    gap: 24px;
}

.contact-info,
.contact-form {
    padding: 26px;
}

.contact-info a,
.social-links a {
    display: inline-flex;
    margin-inline-end: 12px;
    margin-top: 12px;
    color: var(--blue);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    color: var(--ink);
    border: 1px solid rgba(64, 184, 79, 0.32);
    border-radius: 8px;
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.16), rgba(20, 167, 216, 0.1)),
            rgba(255, 255, 255, 0.045);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(20, 167, 216, 0.55);
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.24), rgba(20, 167, 216, 0.18)),
            rgba(255, 255, 255, 0.07);
}

.social-links svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.social-links span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.contact-info iframe {
    width: 100%;
    min-height: 280px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 24px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(214, 236, 232, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.065);
    color: var(--ink);
    padding: 13px 14px;
    font: inherit;
}

.success {
    color: var(--energy);
}

.site-footer {
    border-top: 1px solid rgba(64, 184, 79, 0.22);
    background:
            linear-gradient(135deg, rgba(64, 184, 79, 0.12), transparent 36%),
            linear-gradient(90deg, rgba(20, 167, 216, 0.1), transparent 48%),
            #101922;
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(360px, 0.9fr) minmax(520px, 1.1fr);
    gap: clamp(40px, 7vw, 110px);
    align-items: start;
    padding: 48px 5vw 36px;
}

.footer-brand {
    display: grid;
    gap: 18px;
    max-width: 520px;
}

.footer-brand .brand {
    width: fit-content;
}

.footer-brand p,
.footer-brand strong {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-brand strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.footer-groups {
    display: grid;
    grid-template-columns: minmax(130px, 0.65fr) minmax(260px, 1fr) minmax(130px, 0.55fr);
    gap: clamp(28px, 4vw, 58px);
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
}

.footer-column h2 {
    margin: 0 0 8px;
    color: var(--energy);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: keep-all;
}

.footer-column a,
.footer-column span {
    color: var(--muted);
    line-height: 1.5;
    overflow-wrap: normal;
    word-break: normal;
}

.footer-contact-item {
    display: grid;
    gap: 4px;
}

.footer-contact-item strong {
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 600;
}

.footer-column a:hover {
    color: var(--ink);
}

.footer-reach {
    gap: 12px;
}

.footer-reach-label {
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-reach-mail {
    width: fit-content;
    color: var(--ink);
    font-size: 1.04rem;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-socials {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-links a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
    transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.footer-social-links a:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 184, 79, 0.34);
    background: rgba(64, 184, 79, 0.1);
}

.footer-social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 5vw;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: rgba(7, 13, 18, 0.56);
}

.rtl {
    font-family: Arial, Helvetica, sans-serif;
}

.theme-light {
    --ink: #12202a;
    --muted: #5e707a;
    --panel: #ffffff;
    --panel-2: #edf4f5;
    --surface: #f3f7f8;
    --surface-2: #e7eff1;
    --line: rgba(18, 32, 42, 0.15);
    --green: #218b3d;
    --green-deep: #0b6a2b;
    --blue: #087fb3;
    --energy: #778900;
    --shadow: 0 18px 46px rgba(15, 32, 42, 0.12);
    --soft-glow: 0 0 0 1px rgba(32, 138, 58, 0.08), 0 18px 38px rgba(15, 32, 42, 0.12);
    background: #eef4f5;
}

.theme-light.public-page {
    background:
            linear-gradient(90deg, rgba(18, 32, 42, 0.045) 1px, transparent 1px),
            linear-gradient(0deg, rgba(8, 127, 179, 0.04) 1px, transparent 1px),
            linear-gradient(180deg, #f4f8f9 0%, #edf4f5 48%, #e8f0f2 100%);
}

.theme-light .site-header {
    background: rgba(246, 250, 250, 0.9);
    box-shadow: 0 16px 34px rgba(18, 32, 42, 0.08);
}

.theme-light .brand img {
    filter: drop-shadow(0 8px 18px rgba(18, 32, 42, 0.1));
}

.theme-light .hero-section {
    background:
            radial-gradient(circle at 50% 28%, rgba(33, 139, 61, 0.12), transparent 24%),
            radial-gradient(circle at 50% 72%, rgba(8, 127, 179, 0.1), transparent 24%),
            linear-gradient(135deg, #f6fafb 0%, #dfe9ec 48%, #cddce1 100%);
}

.theme-light .hero-section::after {
    background:
            linear-gradient(90deg, rgba(19, 32, 40, 0.035) 1px, transparent 1px),
            linear-gradient(0deg, rgba(19, 32, 40, 0.028) 1px, transparent 1px);
    opacity: 0.26;
}

.theme-light .hero-section::before {
    background:
            linear-gradient(100deg, rgba(33, 139, 61, 0.11), transparent 42%),
            linear-gradient(18deg, transparent 45%, rgba(8, 127, 179, 0.1), transparent 64%);
}

.theme-light .hero-backdrop {
    opacity: 1;
    filter: saturate(1.04) contrast(1.01);
}

.theme-light .hero-visual {
    border-color: transparent;
    background: none;
    box-shadow: none;
}

.theme-light .hero-visual::after {
    content: none;
}

.theme-light .hero-content .eyebrow {
    border-color: rgba(33, 139, 61, 0.16);
    background: rgba(33, 139, 61, 0.08);
    box-shadow: 0 0 18px rgba(33, 139, 61, 0.06);
}

.theme-light .button {
    border-color: rgba(18, 32, 42, 0.16);
}

.theme-light .hero-section .button-secondary {
    border-color: rgba(18, 32, 42, 0.1);
    background: rgba(255, 255, 255, 0.56);
}

.theme-light .button-primary {
    color: #f7fbf8;
}

.theme-light .button-secondary,
.theme-light .theme-toggle,
.theme-light .locale-switcher summary {
    background: rgba(255, 255, 255, 0.72);
}

.theme-light .locale-menu {
    border-color: rgba(18, 32, 42, 0.16);
    background: rgba(250, 253, 253, 0.98);
    box-shadow: 0 18px 42px rgba(18, 32, 42, 0.14);
}

.theme-light .locale-menu a {
    color: #516470;
}

.theme-light .locale-menu a:hover,
.theme-light .locale-menu a.is-active {
    color: #12202a;
    border-color: rgba(33, 139, 61, 0.36);
    background: rgba(33, 139, 61, 0.08);
}

.theme-light .approach-band {
    background:
            linear-gradient(90deg, rgba(33, 139, 61, 0.1), transparent 34%),
            linear-gradient(180deg, #e5eef1, #f4f8f9);
}

.theme-light .approach-grid {
    border-top-color: rgba(18, 32, 42, 0.18);
}

.theme-light .approach-grid article {
    border-bottom-color: rgba(18, 32, 42, 0.18);
}

.theme-light .approach-grid span {
    color: #ffffff;
    border-color: #218b3d;
    background: #218b3d;
    box-shadow: 0 10px 24px rgba(33, 139, 61, 0.18);
}

.theme-light .vision-mission-card {
    border-color: rgba(18, 32, 42, 0.08);
    background:
            radial-gradient(circle at top right, rgba(33, 139, 61, 0.12), transparent 34%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 248, 0.84)),
            rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(18, 32, 42, 0.08);
}

.theme-light .vision-mission-card p:last-child {
    color: rgba(19, 32, 40, 0.74);
}

.theme-light .section-grid {
    background:
            linear-gradient(90deg, rgba(8, 127, 179, 0.055), transparent 38%),
            #f6fafb;
}

.theme-light .content-section {
    background: linear-gradient(180deg, rgba(244, 248, 249, 0.96), rgba(231, 239, 241, 0.96));
}

.theme-light .content-section:nth-of-type(even) {
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.06), transparent 32%),
            linear-gradient(180deg, rgba(237, 244, 245, 0.98), rgba(246, 250, 251, 0.98));
}

.theme-light .page-hero,
.theme-light .service-detail-hero {
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.08), transparent 36%),
            linear-gradient(120deg, #edf4f5, #f8fbfb);
}

.theme-light .service-detail-showcase {
    background:
            linear-gradient(180deg, rgba(237, 244, 245, 0.98), rgba(246, 250, 251, 0.98));
}

.theme-light .service-detail-panel {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 245, 0.98));
    box-shadow: 0 16px 38px rgba(18, 32, 42, 0.1);
}

.theme-light .service-detail-overview-card,
.theme-light .service-detail-overview-stat {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 248, 0.94)),
            rgba(255, 255, 255, 0.9);
    border-color: rgba(18, 32, 42, 0.1);
}

.theme-light .service-detail-visual {
    background:
            radial-gradient(circle at 46% 38%, rgba(33, 139, 61, 0.07), transparent 30%),
            linear-gradient(135deg, rgba(33, 139, 61, 0.05), rgba(8, 127, 179, 0.05));
}

.theme-light .service-detail-back {
    background: rgba(255, 255, 255, 0.64);
}

.theme-light .service-detail-text {
    border-top-color: rgba(18, 32, 42, 0.12);
}

.theme-light .service-media-section,
.theme-light .split-section,
.theme-light .about-layout,
.theme-light .contact-layout {
    background: linear-gradient(180deg, rgba(246, 250, 251, 0.96), rgba(232, 240, 242, 0.96));
}

.theme-light .service-card,
.theme-light .value-grid article,
.theme-light .about-feature-list,
.theme-light .contact-form,
.theme-light .contact-info {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 245, 0.98));
    box-shadow: 0 14px 36px rgba(18, 32, 42, 0.1);
}

.theme-light .service-card {
    border-color: rgba(18, 32, 42, 0.16);
}

.theme-light .service-directory-card {
    color: #12202a;
    border-color: rgba(18, 32, 42, 0.14);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 244, 245, 0.98));
    box-shadow: 0 16px 38px rgba(18, 32, 42, 0.1);
}

.theme-light .service-directory-media {
    border-bottom-color: rgba(18, 32, 42, 0.12);
    background:
            radial-gradient(circle at 50% 42%, rgba(33, 139, 61, 0.1), transparent 45%),
            linear-gradient(135deg, rgba(33, 139, 61, 0.07), rgba(8, 127, 179, 0.06)),
            #ffffff;
    box-shadow: none;
}

.theme-light .service-card-media,
.theme-light .service-card > img,
.theme-light .split-section > img,
.theme-light .about-visual,
.theme-light .service-media-grid article {
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.1), rgba(8, 127, 179, 0.08)),
            #e7eff1;
}

.theme-light .service-card > img,
.theme-light .service-card-media {
    border-inline: 0;
    border-top: 0;
    border-color: rgba(18, 32, 42, 0.1);
}

.theme-light .reference-gallery-section::before {
    background:
            linear-gradient(110deg, rgba(33, 139, 61, 0.18), transparent 34%),
            linear-gradient(280deg, rgba(8, 127, 179, 0.13), transparent 46%),
            repeating-linear-gradient(90deg, rgba(18, 32, 42, 0.07) 0 1px, transparent 1px 112px);
    opacity: 0.72;
}

.theme-light .reference-tile {
    color: #12202a;
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 248, 0.74) 42%, rgba(8, 127, 179, 0.1)),
            #edf4f5;
}

.theme-light .reference-tile:hover,
.theme-light .reference-tile:focus-within {
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 245, 0.86) 40%, rgba(33, 139, 61, 0.12)),
            #f7fbfb;
}

.theme-light .reference-mark {
    background:
            linear-gradient(135deg, rgba(18, 32, 42, 0.08), rgba(255, 255, 255, 0.5)),
            rgba(255, 255, 255, 0.58);
}

.theme-light input,
.theme-light textarea {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(18, 32, 42, 0.18);
}

.theme-light .site-footer {
    --ink: #12202a;
    --muted: #5e707a;
    --line: rgba(18, 32, 42, 0.15);
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.08), transparent 36%),
            linear-gradient(90deg, rgba(8, 127, 179, 0.08), transparent 48%),
            #e3ecef;
}

.theme-light .footer-bottom {
    background: rgba(255, 255, 255, 0.46);
}

.theme-light .footer-social-links a {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(18, 32, 42, 0.14);
}

.theme-light .site-nav-toggle {
    border-color: rgba(18, 32, 42, 0.12);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 248, 0.82)),
            rgba(255, 255, 255, 0.78);
    color: #132028;
    box-shadow: 0 12px 24px rgba(18, 32, 42, 0.08);
}

.theme-light .site-nav-toggle:hover,
.theme-light .site-nav-toggle:focus-visible {
    border-color: rgba(33, 139, 61, 0.24);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 244, 246, 0.94)),
            rgba(255, 255, 255, 0.92);
}

.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0d151c, #15242e 48%, #0c1b13);
    transition: opacity 420ms ease, visibility 420ms ease;
    overflow: hidden;
}

.theme-light .intro-overlay {
    background:
            radial-gradient(circle at 50% 40%, rgba(33, 139, 61, 0.18), transparent 34%),
            linear-gradient(135deg, #eef5f6, #dbe8eb 48%, #edf4f5);
}

.theme-light .intro-energy {
    background: linear-gradient(90deg, transparent, #087fb3, #218b3d, transparent);
}

.theme-light .intro-glow {
    border-color: rgba(33, 139, 61, 0.28);
    background:
            radial-gradient(circle, rgba(33, 139, 61, 0.15), transparent 58%),
            radial-gradient(circle, rgba(8, 127, 179, 0.11), transparent 66%);
    box-shadow:
            0 0 42px rgba(33, 139, 61, 0.18),
            inset 0 0 34px rgba(8, 127, 179, 0.08);
}

.theme-light .intro-mark img {
    filter: drop-shadow(0 24px 56px rgba(18, 32, 42, 0.18));
}

.theme-light .intro-overlay p {
    color: #516470;
}

.intro-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-energy {
    position: absolute;
    inset-inline-start: -20%;
    width: 140%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--energy), transparent);
    transform: rotate(-12deg);
    animation: streak 2.1s ease forwards;
}

.intro-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: min(360px, 72vw);
    min-height: 260px;
}

.intro-glow {
    position: absolute;
    width: min(260px, 54vw);
    aspect-ratio: 1;
    border: 1px solid rgba(64, 184, 79, 0.34);
    border-radius: 50%;
    background:
            radial-gradient(circle, rgba(64, 184, 79, 0.18), transparent 58%),
            radial-gradient(circle, rgba(20, 167, 216, 0.13), transparent 66%);
    box-shadow:
            0 0 42px rgba(64, 184, 79, 0.22),
            inset 0 0 36px rgba(20, 167, 216, 0.1);
    opacity: 0;
    transform: scale(0.76);
    animation: introGlow 1.5s ease forwards;
}

.intro-mark img {
    position: relative;
    z-index: 1;
    width: min(310px, 66vw);
    height: auto;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.34));
    transform: translateY(14px) scale(0.94);
    animation: logoPop 980ms ease 0.42s forwards;
}

.intro-overlay p {
    position: absolute;
    bottom: 14%;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 700ms ease 1.12s forwards;
}

.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.error-shell {
    width: min(560px, calc(100% - 32px));
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

@keyframes streak {
    from { transform: translateX(-35%) rotate(-12deg); opacity: 0; }
    25% { opacity: 1; }
    to { transform: translateX(35%) rotate(-12deg); opacity: 0; }
}

@keyframes introGlow {
    45% { opacity: 1; transform: scale(1); }
    to { opacity: 0.82; transform: scale(1.08); }
}

@keyframes logoPop {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 920px) {
    h1 {
        font-size: 2.7rem;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 10px 12px;
        min-height: auto;
        padding: 10px 20px 12px;
        align-items: center;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .brand img {
        width: 52px;
        height: 52px;
    }

    .site-header .brand span {
        font-size: 0.94rem;
    }

    .site-nav-toggle {
        display: grid;
        grid-column: 2;
        grid-row: 1;
        align-self: center;
    }

    .site-nav {
        position: fixed;
        top: 78px;
        left: 20px;
        right: 20px;
        z-index: 32;
        display: grid;
        gap: 10px;
        padding: 18px;
        border: 1px solid rgba(214, 236, 232, 0.14);
        border-radius: 18px;
        background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
                linear-gradient(180deg, rgba(11, 19, 24, 0.98), rgba(13, 23, 29, 0.98));
        box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px) scale(0.985);
        transition: opacity 260ms ease, transform 300ms cubic-bezier(0.2, 0.75, 0.22, 1), visibility 260ms ease;
    }

    .site-nav::before {
        content: "";
        display: block;
        width: 64px;
        height: 3px;
        margin-bottom: 4px;
        border-radius: 999px;
        background: linear-gradient(90deg, var(--green), var(--blue));
    }

    .site-nav a {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid rgba(214, 236, 232, 0.08);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        white-space: normal;
        font-size: 0.98rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
    }

    .site-nav a:hover,
    .site-nav a.is-active {
        transform: translateX(2px);
        border-color: rgba(64, 184, 79, 0.28);
        background:
                linear-gradient(90deg, rgba(64, 184, 79, 0.14), rgba(20, 167, 216, 0.08)),
                rgba(255, 255, 255, 0.03);
    }

    .header-tools {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-content: flex-end;
        gap: 8px;
    }

    .site-nav-backdrop {
        position: fixed;
        inset: 78px 0 0;
        z-index: 31;
        display: block;
        background:
                radial-gradient(circle at top center, rgba(64, 184, 79, 0.08), transparent 28%),
                rgba(6, 11, 15, 0.44);
        backdrop-filter: blur(8px);
    }

    body.site-nav-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    .locale-switcher summary,
    .theme-toggle {
        min-height: 40px;
        height: 40px;
    }

    .locale-switcher summary {
        padding: 8px 11px;
    }

    .theme-toggle {
        width: 40px;
    }

    .hero-section,
    .approach-inner {
        grid-template-columns: 1fr;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        max-width: none;
        padding: 24px;
        border: 1px solid rgba(214, 236, 232, 0.12);
        border-radius: 18px;
        background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
                rgba(12, 21, 28, 0.64);
        box-shadow: 0 20px 44px rgba(0, 0, 0, 0.16);
    }

    .footer-groups {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-column {
        padding: 20px 18px;
        border: 1px solid rgba(214, 236, 232, 0.1);
        border-radius: 16px;
        background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.014)),
                rgba(12, 20, 27, 0.52);
    }

    .footer-bottom {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .theme-light .footer-brand,
    .theme-light .footer-column {
        border-color: rgba(18, 32, 42, 0.08);
        background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 248, 0.82)),
                rgba(255, 255, 255, 0.86);
        box-shadow: 0 16px 34px rgba(18, 32, 42, 0.06);
    }

    .theme-light .site-nav {
        border-color: rgba(18, 32, 42, 0.08);
        background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 248, 0.94)),
                #eef4f5;
        box-shadow: 0 22px 46px rgba(18, 32, 42, 0.12);
    }

    .theme-light .site-nav a {
        border-color: rgba(18, 32, 42, 0.08);
        background: rgba(255, 255, 255, 0.64);
        color: #51636d;
    }

    .theme-light .site-nav a:hover,
    .theme-light .site-nav a.is-active {
        color: #132028;
        border-color: rgba(33, 139, 61, 0.18);
        background:
                linear-gradient(90deg, rgba(33, 139, 61, 0.12), rgba(8, 127, 179, 0.06)),
                rgba(255, 255, 255, 0.82);
    }

    .theme-light .site-nav-backdrop {
        background:
                radial-gradient(circle at top center, rgba(33, 139, 61, 0.08), transparent 28%),
                rgba(237, 244, 246, 0.52);
    }

    .hero-backdrop {
        width: min(150px, 52%);
        opacity: 1;
        transform: none;
    }

    .hero-visual {
        min-height: 140px;
        order: 1;
        width: min(94vw, 680px);
        padding: 8px 0;
        border-radius: 0;
    }

    .hero-content {
        order: 2;
    }

    .hero-content h1 {
        max-width: 13ch;
    }

    .approach-grid,
    .section-grid,
    .service-detail-showcase,
    .service-media-grid,
    .service-directory-grid,
    .card-grid,
    .card-grid.wide,
    .reference-list,
    .reference-list.large,
    .about-layout,
    .split-section,
    .value-grid,
    .about-feature-list,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .content-section .card-grid:not(.wide) {
        grid-template-columns: 1fr;
    }

    .content-section .card-grid:not(.wide) .service-card:first-child {
        grid-row: auto;
        min-height: 380px;
    }

    .content-section .card-grid:not(.wide) .service-card:first-child img {
        min-height: 190px;
    }

    .service-detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .service-detail-overview {
        grid-template-columns: 1fr;
    }

    .about-visual {
        position: static;
    }

    .reference-gallery-section {
        padding-block: 54px;
    }

    .reference-gallery-section::before {
        inset-block-start: 22px;
        height: 72%;
        clip-path: polygon(0 8%, 100% 0, 100% 78%, 0 100%);
    }

    .reference-tile,
    .reference-tile:nth-child(4n + 1),
    .reference-tile:nth-child(4n + 2),
    .reference-tile:nth-child(4n + 3),
    .reference-tile:nth-child(4n),
    .references-strip .reference-tile:nth-child(4n + 3) {
        grid-column: 1 / -1;
        min-height: auto;
        --lift: 0px;
        --tilt: 0deg;
    }

    .reference-tile {
        padding: 24px;
        gap: 26px;
    }

    .reference-mark {
        width: 100%;
        min-height: 150px;
    }

    .service-detail-hero {
        padding-block: 42px;
    }

    .service-detail-visual img,
    .service-media-grid img,
    .service-media-grid iframe,
    .service-media-grid video {
        height: clamp(180px, 54vw, 280px);
    }
}

@media (max-width: 560px) {
    .hero-section,
    .section-grid,
    .content-section,
    .split-section,
    .contact-layout,
    .page-hero {
        padding-inline: 20px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .approach-band {
        padding-block: 40px;
    }

    .approach-grid article {
        min-height: auto;
    }

    .vision-mission-card {
        padding: 22px 22px 24px;
        border-radius: 18px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding-inline: 20px;
    }

    .footer-groups {
        grid-template-columns: 1fr;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding-inline: 16px;
    }

    .site-nav {
        left: 12px;
        right: 12px;
        top: 74px;
    }

    .header-tools {
        gap: 6px;
    }

    .locale-switcher summary {
        min-width: 0;
        padding-inline: 9px;
    }

    .footer-brand,
    .footer-column,
    .footer-reach,
    .footer-contact-item {
        min-width: 0;
    }

    .hero-visual {
        min-height: 120px;
        width: 96vw;
        padding: 6px 0;
    }

    .hero-content > p:not(.eyebrow) {
        max-width: 100%;
        font-size: 1.02rem;
    }

    .footer-column a,
    .footer-column span,
    .footer-reach-mail {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .reference-list strong {
        font-size: 1.22rem;
    }

    .reference-list span {
        font-size: 0.94rem;
    }

    .footer-bottom {
        flex-direction: column;
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reference-tile,
    .reference-mark,
    .reference-tile::after,
    [data-reveal].is-visible {
        animation: none;
        transition: none;
        transform: none;
    }

    body.reveal-ready [data-reveal] {
        opacity: 1;
    }
}

/* Final reference flip system */
.reference-atelier,
.reference-atelier.large {
    width: min(1280px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: clamp(22px, 2vw, 34px);
    perspective: 1600px;
}

.reference-tile,
.reference-tile:nth-child(4n + 1),
.reference-tile:nth-child(4n + 2),
.reference-tile:nth-child(4n + 3),
.reference-tile:nth-child(4n),
.references-strip .reference-tile:nth-child(4n + 3) {
    grid-column: auto;
    min-height: clamp(300px, 24vw, 360px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    transform: none;
}

body.reveal-ready .reference-tile[data-reveal],
body.reveal-ready .reference-tile[data-reveal].is-visible {
    transform: none;
}

.reference-tile::before,
.reference-tile::after {
    content: none;
}

.reference-flip {
    position: relative;
    width: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 760ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.reference-tile:hover .reference-flip,
.reference-tile:focus-within .reference-flip {
    transform: rotateY(180deg);
}

.reference-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 42, 0.16);
    border-radius: 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.reference-face-front {
    display: flex;
    flex-direction: column;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.96)),
            #f5fafb;
}

.theme-dark .reference-face-front,
body:not(.theme-light) .reference-face-front {
    border-color: rgba(214, 236, 232, 0.14);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
            linear-gradient(180deg, #17252e, #101a21);
}

.reference-face-back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 3vw, 38px);
    color: #f3f8f7;
    background:
            linear-gradient(145deg, rgba(64, 184, 79, 0.22), rgba(20, 167, 216, 0.14)),
            linear-gradient(180deg, #16252e, #0f1920);
    transform: rotateY(180deg);
}

.reference-mark {
    flex: 1;
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: clamp(30px, 4vw, 58px);
    border-radius: 0;
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.12), transparent 58%),
            linear-gradient(135deg, rgba(18, 32, 42, 0.04), rgba(255, 255, 255, 0.58));
    transform: none;
}

.theme-dark .reference-face-front .reference-mark,
body:not(.theme-light) .reference-face-front .reference-mark {
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.16), transparent 58%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.reference-mark::after {
    content: none;
}

.reference-mark img {
    width: auto;
    max-width: min(190px, 78%);
    max-height: 104px;
    object-fit: contain;
    margin: 0;
    filter: saturate(1) contrast(1.05);
    transform: none;
}

.reference-front-title {
    width: 100%;
    min-height: 86px;
    display: flex;
    align-items: center;
    padding: 20px clamp(22px, 2.5vw, 32px);
    color: #16242d;
    background: rgba(232, 242, 244, 0.72);
    font-size: clamp(1rem, 1.05vw, 1.2rem);
    font-weight: 800;
    line-height: 1.16;
    text-transform: uppercase;
}

.theme-dark .reference-front-title,
body:not(.theme-light) .reference-front-title {
    color: var(--ink);
    background: rgba(9, 18, 24, 0.42);
}

.reference-face-back strong {
    max-width: 18ch;
    color: inherit;
    font-size: clamp(1.15rem, 1.25vw, 1.45rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.reference-face-back span {
    display: block;
    margin-top: 18px;
    max-width: 38ch;
    color: rgba(243, 248, 247, 0.76);
    font-size: 0.98rem;
    line-height: 1.72;
}

.theme-light .reference-face-front {
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.96)),
            #f5fafb;
}

.theme-light .reference-face-back {
    color: #f3f8f7;
    background:
            linear-gradient(145deg, rgba(33, 139, 61, 0.24), rgba(8, 127, 179, 0.15)),
            linear-gradient(180deg, #172932, #10202a);
}

@media (max-width: 1024px) {
    .reference-atelier,
    .reference-atelier.large {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .reference-atelier,
    .reference-atelier.large {
        grid-template-columns: 1fr !important;
    }
}

.home-reference-strip {
    --home-reference-page: 0;
    padding: clamp(58px, 7vw, 92px) clamp(28px, 6vw, 92px) clamp(54px, 7vw, 88px);
    color: #303336;
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.055), transparent 34%),
            linear-gradient(180deg, rgba(237, 244, 245, 0.98), rgba(226, 236, 239, 0.98));
    border-top: 1px solid rgba(18, 32, 42, 0.1);
    border-bottom: 1px solid rgba(18, 32, 42, 0.1);
}

.theme-dark .home-reference-strip,
body:not(.theme-light) .home-reference-strip {
    color: var(--ink);
    background:
            linear-gradient(90deg, rgba(64, 184, 79, 0.055) 1px, transparent 1px),
            linear-gradient(0deg, rgba(20, 167, 216, 0.045) 1px, transparent 1px),
            linear-gradient(180deg, #111a21, #0f171d);
    background-size: 72px 72px, 72px 72px, auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.public-page main > .approach-band,
.public-page main > .section-grid,
.public-page main > .content-section {
    padding-inline: clamp(28px, 6vw, 92px);
}

.public-page main > .approach-band > .approach-inner,
.public-page main > .section-grid,
.public-page main > .content-section > .section-heading,
.public-page main > .content-section > .card-grid,
.public-page main > .home-reference-strip > .home-reference-heading,
.public-page main > .home-reference-strip > .home-reference-carousel {
    width: min(1260px, 100%);
    margin-inline: auto;
}

.public-page main > .content-section > .card-grid {
    align-items: stretch;
}

.public-page main > .content-section.service-media-section > .section-heading,
.public-page main > .content-section.service-media-section > .service-media-grid {
    width: min(900px, 100%);
    max-width: 900px;
    margin-inline: 0;
}

.public-page main > .content-section.service-media-section > .section-heading {
    justify-content: flex-start;
}

.home-reference-strip::before {
    content: none;
}

.home-reference-heading {
    width: min(1260px, 100%);
    margin: 0 auto clamp(42px, 5vw, 66px);
    padding-inline-start: clamp(0px, 2vw, 26px);
    display: flex;
    border-inline-start: 3px solid rgba(64, 184, 79, 0.7);
}

.home-reference-heading .eyebrow {
    margin: 0;
    padding: 0;
    color: var(--energy);
    font-size: 0.8rem;
    line-height: 1.2;
}

.theme-dark .home-reference-heading .eyebrow,
body:not(.theme-light) .home-reference-heading .eyebrow {
    color: var(--energy);
}

.home-reference-carousel {
    width: min(1260px, 100%);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: clamp(14px, 2vw, 28px);
    align-items: center;
}

.home-reference-window {
    overflow: hidden;
}

.home-reference-track {
    --home-reference-visible: 4;
    display: flex;
    transform: translateX(calc(var(--home-reference-page) * -100%));
    transition: transform 520ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.home-reference-item {
    flex: 0 0 calc(100% / var(--home-reference-visible));
    min-width: 0;
    padding-inline: clamp(18px, 2vw, 34px);
    display: grid;
    grid-template-rows: 148px minmax(48px, auto);
    align-items: center;
    justify-items: center;
    text-align: center;
}

.home-reference-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 148px;
}

.theme-dark .home-reference-logo,
body:not(.theme-light) .home-reference-logo {
    border-radius: 8px;
    background:
            radial-gradient(circle at 50% 45%, rgba(64, 184, 79, 0.14), transparent 58%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.home-reference-logo::before {
    content: "";
    position: absolute;
    width: clamp(118px, 11vw, 168px);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
            radial-gradient(circle, rgba(245, 193, 42, 0.2), rgba(64, 184, 79, 0.08) 42%, transparent 68%);
    opacity: 0;
    transform: scale(0.76);
    transition: opacity 360ms ease, transform 420ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.home-reference-logo img {
    max-width: min(210px, 86%);
    max-height: 86px;
    object-fit: contain;
    filter: saturate(0.92) contrast(1.02);
    transition: transform 360ms ease, filter 360ms ease;
}

.home-reference-item:hover .home-reference-logo img {
    transform: translateY(-8px) scale(1.06);
    filter: saturate(1.05) contrast(1.06);
}

.home-reference-item:hover .home-reference-logo::before {
    opacity: 1;
    transform: scale(1);
}

.home-reference-item strong {
    position: relative;
    align-self: end;
    max-width: 24ch;
    color: #303336;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    transition: color 220ms ease, transform 260ms ease;
}

.theme-dark .home-reference-item strong,
body:not(.theme-light) .home-reference-item strong {
    color: var(--ink);
}

.home-reference-item strong::after {
    content: "";
    position: absolute;
    inset-inline-start: 50%;
    bottom: -12px;
    width: 34px;
    height: 2px;
    background: #f5c12a;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.3);
    transform-origin: center;
    transition: opacity 220ms ease, transform 280ms ease;
}

.home-reference-item:hover strong {
    color: #111820;
    transform: translateY(-2px);
}

.theme-dark .home-reference-item:hover strong,
body:not(.theme-light) .home-reference-item:hover strong {
    color: #ffffff;
}

.home-reference-item:hover strong::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.home-reference-arrow {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #44484c;
    background: transparent;
    font-size: 2.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-dark .home-reference-arrow,
body:not(.theme-light) .home-reference-arrow {
    color: rgba(243, 248, 247, 0.82);
}

.home-reference-arrow:hover {
    color: #111820;
    background: rgba(245, 193, 42, 0.12);
    transform: translateY(-1px);
}

.theme-dark .home-reference-arrow:hover,
body:not(.theme-light) .home-reference-arrow:hover {
    color: #ffffff;
    background: rgba(215, 232, 74, 0.08);
}

.home-reference-arrow:disabled {
    opacity: 0.28;
    cursor: default;
    transform: none;
}

.theme-light .home-reference-strip {
    color: #303336;
    background:
            linear-gradient(135deg, rgba(33, 139, 61, 0.055), transparent 34%),
            linear-gradient(180deg, rgba(237, 244, 245, 0.98), rgba(226, 236, 239, 0.98));
}

@media (max-width: 1024px) {
    .home-reference-track {
        --home-reference-visible: 3;
    }
}

@media (max-width: 720px) {
    .home-reference-carousel {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
    }

    .home-reference-track {
        --home-reference-visible: 2;
    }

    .home-reference-item {
        padding-inline: 12px;
    }
}

@media (max-width: 560px) {
    .public-page main > .approach-band,
    .public-page main > .section-grid,
    .public-page main > .content-section {
        padding-inline: 20px;
    }

    .home-reference-heading {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .home-reference-track {
        --home-reference-visible: 1;
    }
}

/* Softer reference reveal: avoids the half-card 180deg frame. */
.reference-flip {
    transform: translateZ(0);
    transition: transform 520ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.reference-face {
    transition:
            opacity 360ms ease,
            transform 560ms cubic-bezier(0.22, 0.8, 0.22, 1),
            filter 560ms ease;
}

.reference-face-front {
    z-index: 2;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reference-face-back {
    z-index: 1;
    opacity: 0;
    transform: translateY(14px) scale(0.975);
    pointer-events: none;
}

.reference-tile:hover .reference-flip,
.reference-tile:focus-within .reference-flip {
    transform: scale(1.01);
}

.reference-tile:hover .reference-face-front,
.reference-tile:focus-within .reference-face-front {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
    filter: blur(0.7px);
}

.reference-tile:hover .reference-face-back,
.reference-tile:focus-within .reference-face-back {
    z-index: 3;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: none;
}

/* Reference drawer mode */
.reference-flip {
    position: relative;
    width: 100%;
    min-height: inherit;
    transform: none !important;
    transform-style: flat;
}

.reference-tile:hover .reference-flip,
.reference-tile:focus-within .reference-flip {
    transform: none !important;
}

.reference-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
}

.reference-face-front {
    position: relative;
    inset: auto;
    min-height: inherit;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.reference-face-back {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    min-height: 0;
    display: grid;
    gap: 10px;
    justify-content: start;
    padding: 18px 20px 20px;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 1;
    transform: translateY(calc(100% - 74px)) !important;
    pointer-events: none;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1), background-color 260ms ease;
    background:
            linear-gradient(180deg, rgba(9, 18, 24, 0.1), rgba(9, 18, 24, 0.96) 18%, rgba(9, 18, 24, 0.99)),
            linear-gradient(145deg, rgba(64, 184, 79, 0.16), rgba(20, 167, 216, 0.12));
}

.reference-tile:hover .reference-face-back,
.reference-tile:focus-within .reference-face-back {
    transform: translateY(0) !important;
}

.reference-back-title {
    margin: 0;
    color: #f3f8f7;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.reference-back-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    color: rgba(243, 248, 247, 0.84);
    font-size: 0.94rem;
    line-height: 1.55;
}

.reference-tile:hover .reference-mark img,
.reference-tile:focus-within .reference-mark img {
    transform: translateY(-4px) scale(1.03);
}

.theme-light .reference-face-back {
    border-top-color: rgba(18, 32, 42, 0.08);
    background:
            linear-gradient(180deg, rgba(244, 248, 249, 0.12), rgba(18, 32, 42, 0.82) 18%, rgba(18, 32, 42, 0.96)),
            linear-gradient(145deg, rgba(33, 139, 61, 0.16), rgba(8, 127, 179, 0.1));
}

/* References page: teaser on hover, full text in modal */
.reference-card {
    min-height: clamp(300px, 24vw, 360px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transform: none;
    isolation: isolate;
}

.reference-card::before,
.reference-card::after {
    content: none;
}

.reference-card-trigger {
    position: relative;
    width: 100%;
    min-height: inherit;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.reference-card-shell {
    position: relative;
    display: flex;
    min-height: inherit;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 42, 0.16);
    border-radius: 8px;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018) 46%, rgba(64, 184, 79, 0.055)),
            linear-gradient(180deg, #17252e, #101a21);
    box-shadow: 0 24px 48px rgba(7, 17, 23, 0.26);
    transition:
            transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1),
            box-shadow 420ms ease,
            border-color 320ms ease;
}

.reference-card-trigger:hover .reference-card-shell,
.reference-card-trigger:focus-visible .reference-card-shell,
.reference-card:focus-within .reference-card-shell {
    transform: translateY(-8px);
    border-color: rgba(215, 232, 74, 0.34);
    box-shadow: 0 32px 64px rgba(7, 17, 23, 0.34);
}

.reference-card-trigger:focus-visible {
    outline: none;
}

.reference-card-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
}

.reference-card .reference-mark {
    flex: 1;
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: clamp(30px, 4vw, 58px);
    border-radius: 0;
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.12), transparent 58%),
            linear-gradient(135deg, rgba(18, 32, 42, 0.04), rgba(255, 255, 255, 0.58));
    transform: none;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1), background 320ms ease;
}

.theme-dark .reference-card .reference-mark,
body:not(.theme-light) .reference-card .reference-mark {
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.16), transparent 58%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.reference-card .reference-mark::after {
    content: none;
}

.reference-card .reference-mark img {
    width: auto;
    max-width: min(190px, 78%);
    max-height: 104px;
    object-fit: contain;
    margin: 0;
    filter: saturate(1) contrast(1.05);
    transform: none;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.reference-card-trigger:hover .reference-mark,
.reference-card-trigger:focus-visible .reference-mark {
    transform: translateY(-4px);
}

.reference-card-trigger:hover .reference-mark img,
.reference-card-trigger:focus-visible .reference-mark img {
    transform: translateY(-4px) scale(1.03);
}

.reference-card .reference-front-title {
    position: relative;
    z-index: 1;
    padding: 22px 24px 24px;
    color: #f3f8f7;
    font-size: clamp(1.02rem, 1.16vw, 1.3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reference-card-teaser {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    display: grid;
    gap: 10px;
    align-content: end;
    padding: 18px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background:
            linear-gradient(180deg, rgba(9, 18, 24, 0.12), rgba(9, 18, 24, 0.96) 18%, rgba(9, 18, 24, 0.99)),
            linear-gradient(145deg, rgba(64, 184, 79, 0.16), rgba(20, 167, 216, 0.12));
    opacity: 0;
    transform: translateY(26px);
    transition:
            opacity 320ms ease,
            transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1);
    pointer-events: none;
}

.reference-card-trigger:hover .reference-card-teaser,
.reference-card-trigger:focus-visible .reference-card-teaser,
.reference-card:focus-within .reference-card-teaser {
    opacity: 1;
    transform: translateY(0);
}

.reference-back-kicker {
    margin: 0;
    color: var(--energy);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.reference-card .reference-back-title {
    margin: 0;
    color: #f3f8f7;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.reference-card .reference-back-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 0;
    color: rgba(243, 248, 247, 0.84);
    font-size: 0.94rem;
    line-height: 1.55;
}

.reference-back-link {
    width: fit-content;
    margin-top: 6px;
    color: #f3f8f7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reference-back-link::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-inline-start: 10px;
    vertical-align: middle;
    background: currentColor;
}

.reference-modal-payload {
    display: none;
}

.reference-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: clamp(18px, 4vw, 42px);
}

.reference-modal[hidden] {
    display: none;
}

body.reference-modal-open {
    overflow: hidden;
}

.reference-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 11, 15, 0.7);
    backdrop-filter: blur(10px);
}

.reference-modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(220px, 0.92fr) minmax(0, 1.2fr);
    width: min(980px, 100%);
    max-height: min(88vh, 920px);
    overflow: hidden;
    border: 1px solid rgba(215, 232, 74, 0.16);
    border-radius: 18px;
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
            linear-gradient(180deg, #132028, #0d171d);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

.reference-modal-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: clamp(28px, 5vw, 54px);
    background:
            radial-gradient(circle at 50% 42%, rgba(64, 184, 79, 0.24), transparent 52%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

.reference-modal-mark {
    min-height: 220px;
    border-radius: 14px;
}

.reference-modal-mark img {
    max-width: min(240px, 82%);
    max-height: 130px;
}

.reference-modal-copy {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 0;
    padding: clamp(28px, 4vw, 48px);
    overflow: hidden;
}

.reference-modal-copy h2 {
    margin: 0;
    color: #f3f8f7;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    line-height: 1.08;
    text-transform: uppercase;
}

.reference-modal-copy [data-reference-modal-description] {
    display: block;
    margin: 0;
    color: rgba(243, 248, 247, 0.8);
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-line;
    max-height: min(56vh, 560px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-inline-end: 8px;
    scrollbar-gutter: stable;
}

.reference-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(8, 16, 21, 0.68);
    color: #f3f8f7;
    cursor: pointer;
    transition: background 220ms ease, transform 220ms ease;
}

.reference-modal-close:hover,
.reference-modal-close:focus-visible {
    background: rgba(18, 32, 42, 0.92);
    transform: scale(1.04);
    outline: none;
}

.theme-light .reference-card-shell {
    border-color: rgba(18, 32, 42, 0.08);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.96)),
            #f5fafb;
}

.theme-light .reference-card .reference-front-title {
    color: var(--ink);
}

.theme-light .reference-card-teaser {
    border-top-color: rgba(18, 32, 42, 0.08);
    background:
            linear-gradient(180deg, rgba(244, 248, 249, 0.12), rgba(18, 32, 42, 0.82) 18%, rgba(18, 32, 42, 0.96)),
            linear-gradient(145deg, rgba(33, 139, 61, 0.16), rgba(8, 127, 179, 0.1));
}

.theme-light .reference-modal-dialog {
    border-color: rgba(18, 32, 42, 0.1);
    background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(240, 247, 248, 0.92)),
            #eff5f6;
}

.theme-light .reference-modal-media {
    background:
            radial-gradient(circle at 50% 42%, rgba(64, 184, 79, 0.18), transparent 52%),
            linear-gradient(180deg, rgba(18, 32, 42, 0.02), rgba(18, 32, 42, 0.04));
}

.theme-light .reference-modal-copy h2 {
    color: #132028;
}

.theme-light .reference-modal-copy [data-reference-modal-description] {
    color: rgba(19, 32, 40, 0.76);
}

.theme-light .reference-modal-close {
    border-color: rgba(18, 32, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: #132028;
}

@media (max-width: 900px) {
    .reference-modal-dialog {
        grid-template-columns: 1fr;
        max-height: min(90vh, 920px);
    }

    .reference-modal-media {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .reference-card {
        min-height: 280px;
    }

    .reference-card .reference-mark {
        min-height: 160px;
        padding: 28px;
    }

    .reference-card .reference-front-title {
        padding: 18px 18px 20px;
    }

    .reference-card-teaser {
        padding: 16px 16px 18px;
    }

    .reference-modal {
        padding: 12px;
    }

    .reference-modal-copy {
        padding: 22px 18px 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reference-card-shell,
    .reference-card .reference-mark,
    .reference-card .reference-mark img,
    .reference-card-teaser,
    .reference-modal-close {
        transition: none;
    }
}

/* References page: restore flip hover while keeping click-to-modal */
.reference-card-trigger {
    display: block;
    overflow: hidden;
}

.reference-card-shell,
.reference-card-brand,
.reference-card-teaser {
    all: unset;
}

.reference-card .reference-flip {
    position: relative;
    width: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
    transition: transform 760ms cubic-bezier(0.18, 0.78, 0.2, 1);
}

.reference-card:hover .reference-flip,
.reference-card:focus-within .reference-flip,
.reference-card-trigger:hover .reference-flip,
.reference-card-trigger:focus-visible .reference-flip {
    transform: rotateY(180deg);
}

.reference-card .reference-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid rgba(18, 32, 42, 0.16);
    border-radius: 8px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition:
            opacity 360ms ease,
            transform 560ms cubic-bezier(0.22, 0.8, 0.22, 1),
            filter 560ms ease;
}

.reference-card .reference-face-front {
    z-index: 2;
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0) scale(1);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 248, 0.96)),
            #f5fafb;
}

.theme-dark .reference-card .reference-face-front,
body:not(.theme-light) .reference-card .reference-face-front {
    border-color: rgba(214, 236, 232, 0.14);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
            linear-gradient(180deg, #17252e, #101a21);
}

.reference-card .reference-face-back {
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: clamp(26px, 3vw, 38px);
    color: #f3f8f7;
    background:
            linear-gradient(145deg, rgba(64, 184, 79, 0.22), rgba(20, 167, 216, 0.14)),
            linear-gradient(180deg, #16252e, #0f1920);
    transform: rotateY(180deg);
    opacity: 1;
}

.reference-card .reference-mark {
    flex: 1;
    width: 100%;
    min-height: 190px;
    display: grid;
    place-items: center;
    padding: clamp(30px, 4vw, 58px);
    border-radius: 0;
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.12), transparent 58%),
            linear-gradient(135deg, rgba(18, 32, 42, 0.04), rgba(255, 255, 255, 0.58));
    transform: none;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.theme-dark .reference-card .reference-face-front .reference-mark,
body:not(.theme-light) .reference-card .reference-face-front .reference-mark {
    background:
            radial-gradient(circle at 50% 46%, rgba(64, 184, 79, 0.16), transparent 58%),
            linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.reference-card .reference-mark::after {
    content: none;
}

.reference-card .reference-mark img {
    width: auto;
    max-width: min(190px, 78%);
    max-height: 104px;
    object-fit: contain;
    margin: 0;
    filter: saturate(1) contrast(1.05);
    transform: none;
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.22, 1);
}

.reference-card:hover .reference-mark img,
.reference-card:focus-within .reference-mark img {
    transform: translateY(-4px) scale(1.03);
}

.reference-card .reference-front-title {
    position: relative;
    z-index: 1;
    padding: 22px 24px 24px;
    color: #f3f8f7;
    font-size: clamp(1.02rem, 1.16vw, 1.3rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.theme-light .reference-card .reference-front-title {
    color: var(--ink);
}

.reference-card .reference-back-kicker {
    margin: 0 0 10px;
    color: var(--energy);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.reference-card .reference-back-title {
    margin: 0;
    max-width: 18ch;
    color: inherit;
    font-size: clamp(1.15rem, 1.25vw, 1.45rem);
    line-height: 1.12;
    text-transform: uppercase;
}

.reference-card .reference-back-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    margin: 18px 0 0;
    max-width: 38ch;
    color: rgba(243, 248, 247, 0.76);
    font-size: 0.98rem;
    line-height: 1.72;
}

.reference-card .reference-back-link {
    display: inline-block;
    width: fit-content;
    margin-top: 18px;
    color: #f3f8f7;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reference-card .reference-back-link::after {
    content: "";
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-inline-start: 10px;
    vertical-align: middle;
    background: currentColor;
}

.theme-light .reference-card .reference-face-back {
    color: #f3f8f7;
    background:
            linear-gradient(145deg, rgba(33, 139, 61, 0.24), rgba(8, 127, 179, 0.15)),
            linear-gradient(180deg, #172932, #10202a);
}

@media (max-width: 640px) {
    .reference-card .reference-face-back {
        padding: 22px 20px;
    }
}
