:root {
    --ink: #061015;
    --ink-2: #0b151b;
    --surface: rgba(255, 255, 255, 0.07);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --line: rgba(255, 255, 255, 0.16);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #f7fbff;
    --muted: #b8c5cf;
    --blue: #4b9dff;
    --amber: #f2b544;
    --emerald: #3ad6a2;
    --rose: #ff5a78;
    --violet: #9a7cff;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -4;
    background:
        linear-gradient(115deg, rgba(75, 157, 255, 0.18), transparent 26%),
        linear-gradient(250deg, rgba(242, 181, 68, 0.14), transparent 32%),
        linear-gradient(25deg, transparent 52%, rgba(58, 214, 162, 0.12)),
        linear-gradient(180deg, #071018, #10131a 52%, #071015);
}

body::after {
    z-index: -3;
    opacity: 0.28;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

#site-field {
    position: fixed;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.72;
    pointer-events: none;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(76px, 9vw, 132px) 0;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 999;
    transform: translateY(-140%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--text);
    color: var(--ink);
    padding: 10px 14px;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    border-color: var(--line-soft);
    background: rgba(6, 16, 21, 0.78);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px) saturate(1.25);
}

.nav-shell {
    display: flex;
    min-height: 86px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(75, 157, 255, 0.95), rgba(58, 214, 162, 0.84) 52%, rgba(242, 181, 68, 0.95));
    color: #061015;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0 36px rgba(75, 157, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -40% -140%;
    background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.74), transparent 60%);
    transform: translateX(-45%) rotate(12deg);
    animation: brand-shine 5s ease-in-out infinite;
}

.brand-text {
    display: grid;
    gap: 0;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    padding: 7px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
}

.site-nav a {
    position: relative;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 12px;
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 24px rgba(75, 157, 255, 0.16);
    transform: translateY(-1px);
}

.nav-cta,
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 800;
    padding: 12px 18px;
    transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease, background 190ms ease;
}

.nav-cta {
    background: linear-gradient(135deg, rgba(75, 157, 255, 0.96), rgba(58, 214, 162, 0.9));
    color: #061015;
    box-shadow: 0 0 34px rgba(75, 157, 255, 0.18);
}

.btn::before,
.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%);
    transition: transform 450ms ease, opacity 180ms ease;
}

.btn:hover::before,
.nav-cta:hover::before {
    opacity: 1;
    transform: translateX(120%);
}

.btn:hover,
.nav-cta:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--emerald));
    color: #051016;
    box-shadow: 0 0 34px rgba(75, 157, 255, 0.2);
}

.btn-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.btn-light {
    background: #ffffff;
    color: #061015;
}

.btn span,
.nav-cta span {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: rgba(6, 16, 21, 0.18);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
    padding-top: 84px;
}

.hero-grid,
.page-hero-grid,
.split-grid,
.contact-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.hero-grid {
    min-height: calc(100svh - 170px);
}

.hero-copy h1,
.page-hero-copy h1 {
    max-width: 900px;
    margin: 18px 0 22px;
    font-size: 5rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-copy p,
.page-hero-copy p,
.split-copy p,
.section-header p,
.contact-info p,
.detail-sidebar p {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--rose));
}

.hero-visual,
.page-hero-media,
.split-media,
.service-card,
.project-card,
.stat-card,
.value-card,
.blog-card,
.detail-card,
.contact-form {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.tilt-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --mx: 50%;
    --my: 50%;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tilt-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.18), transparent 42%);
    transition: opacity 180ms ease;
}

.tilt-card:hover::before {
    opacity: 1;
}

.hero-visual {
    min-height: 620px;
    isolation: isolate;
}

.hero-visual img,
.page-hero-media img,
.split-media img,
.project-card img,
.detail-card img,
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 650ms ease, filter 650ms ease;
}

.hero-visual:hover img,
.page-hero-media:hover img,
.split-media:hover img,
.project-card:hover img,
.detail-card:hover img,
.service-card:hover img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.04);
}

.hero-visual img,
.page-hero-media img,
.split-media img,
.service-card img {
    position: absolute;
    inset: 0;
}

.hero-visual::after,
.page-hero-media::after,
.split-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent, rgba(6, 16, 21, 0.68)),
        linear-gradient(90deg, rgba(75, 157, 255, 0.18), transparent 45%, rgba(242, 181, 68, 0.12));
}

.hero-panel,
.media-badge {
    position: absolute;
    z-index: 3;
    display: grid;
    gap: 2px;
    max-width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(6, 16, 21, 0.64);
    padding: 16px;
    backdrop-filter: blur(16px);
}

.hero-panel span,
.media-badge span {
    color: var(--amber);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-panel strong,
.media-badge strong {
    font-size: 0.96rem;
}

.hero-panel-top {
    top: 24px;
    left: 24px;
}

.hero-panel-bottom {
    right: 24px;
    bottom: 24px;
}

.page-hero {
    padding-top: 96px;
}

.page-hero-media {
    min-height: 460px;
}

.media-badge {
    right: 22px;
    bottom: 22px;
}

.chip {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-weight: 800;
    padding: 9px 12px;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header-left {
    margin-left: 0;
    text-align: left;
}

.section-header h2,
.split-copy h2,
.contact-info h2,
.detail-sidebar h2,
.cta-inner h2 {
    margin: 14px 0 16px;
    font-size: 3.15rem;
    line-height: 1.05;
    letter-spacing: 0;
}

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

.stat-card {
    padding: 28px;
}

.stat-card strong {
    display: block;
    background: linear-gradient(135deg, #fff, var(--amber), var(--emerald));
    background-clip: text;
    color: transparent;
    font-size: 3.4rem;
    line-height: 1;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

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

.service-card {
    min-height: 430px;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 70%;
    background: linear-gradient(180deg, transparent, rgba(6, 16, 21, 0.96));
}

.service-card-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 24px;
}

.service-card-body span,
.project-card span,
.detail-card span,
.blog-meta span {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.service-card h3,
.project-card h3,
.value-card h3,
.blog-card h3,
.detail-card h3,
.timeline-item h3 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
    line-height: 1.18;
}

.service-card p,
.project-card p,
.value-card p,
.blog-card p,
.detail-card p,
.timeline-item p,
.capability-item p {
    margin: 0;
    color: var(--muted);
}

.accent-blue {
    box-shadow: 0 24px 80px rgba(75, 157, 255, 0.14);
}

.accent-amber {
    box-shadow: 0 24px 80px rgba(242, 181, 68, 0.14);
}

.accent-emerald {
    box-shadow: 0 24px 80px rgba(58, 214, 162, 0.14);
}

.accent-rose {
    box-shadow: 0 24px 80px rgba(255, 90, 120, 0.14);
}

.split-section {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.045), transparent 50%, rgba(242, 181, 68, 0.04));
}

.split-grid.reverse {
    grid-template-columns: 0.97fr 1.03fr;
}

.split-media {
    min-height: 560px;
}

.split-copy {
    max-width: 620px;
}

.feature-list,
.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.feature-list span,
.contact-list a,
.contact-list span {
    position: relative;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-weight: 800;
    padding: 14px 16px 14px 46px;
}

.feature-list span::before,
.contact-list a::before,
.contact-list span::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--blue), var(--emerald));
    transform: translateY(-50%);
    box-shadow: 0 0 18px rgba(75, 157, 255, 0.28);
}

.capability-section {
    background:
        linear-gradient(180deg, rgba(6, 16, 21, 0.1), rgba(255, 255, 255, 0.04)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.capability-grid.compact {
    grid-template-columns: repeat(4, 1fr);
}

.capability-item {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    padding: 18px;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.capability-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.085);
}

.capability-item span {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: rgba(242, 181, 68, 0.15);
    color: var(--amber);
    font-size: 0.82rem;
    font-weight: 900;
}

.project-grid,
.blog-grid,
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.project-grid-large {
    grid-template-columns: repeat(2, 1fr);
}

.project-card {
    display: grid;
    min-height: 510px;
    grid-template-rows: 250px 1fr;
}

.project-card > div {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.project-card strong {
    display: inline-flex;
    margin-top: 18px;
    color: var(--emerald);
}

.project-card a,
.blog-card a {
    display: inline-flex;
    margin-top: 20px;
    color: var(--amber);
    font-weight: 900;
}

.value-card,
.blog-card {
    padding: 24px;
}

.value-card {
    min-height: 220px;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.timeline-item {
    position: relative;
    min-height: 250px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.055);
    padding: 24px;
}

.timeline-item span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 28px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(75, 157, 255, 0.24), rgba(242, 181, 68, 0.2));
    color: #fff;
    font-weight: 900;
}

.detail-grid {
    align-items: start;
    grid-template-columns: 0.36fr 0.64fr;
}

.detail-sidebar {
    position: sticky;
    top: 120px;
}

.detail-stack {
    display: grid;
    gap: 18px;
}

.detail-card {
    display: grid;
    grid-template-columns: 0.16fr 0.34fr 0.5fr;
    gap: 18px;
    align-items: stretch;
    min-height: 240px;
    padding: 16px;
}

.detail-card img {
    border-radius: 6px;
}

.detail-card > div:last-child {
    padding: 10px 10px 10px 0;
}

.detail-number {
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--amber);
    font-size: 1.4rem;
    font-weight: 900;
}

.blog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.blog-card {
    min-height: 310px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.84rem;
}

.contact-section {
    padding-top: 42px;
}

.contact-grid {
    align-items: start;
}

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

.contact-form.form-shake {
    animation: form-shake 320ms ease;
}

.contact-form label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    padding: 13px 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-form select option {
    color: #061015;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(75, 157, 255, 0.78);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 4px rgba(75, 157, 255, 0.14);
}

.form-message {
    border-radius: var(--radius);
    padding: 14px 16px;
    font-weight: 800;
}

.form-message p {
    margin: 0;
}

.form-message.success {
    border: 1px solid rgba(58, 214, 162, 0.42);
    background: rgba(58, 214, 162, 0.12);
    color: #bfffe9;
}

.form-message.error {
    border: 1px solid rgba(255, 90, 120, 0.42);
    background: rgba(255, 90, 120, 0.12);
    color: #ffd6dd;
}

.cta-band {
    padding: 0 0 112px;
}

.cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(75, 157, 255, 0.22), rgba(255, 90, 120, 0.1) 46%, rgba(242, 181, 68, 0.22)),
        rgba(255, 255, 255, 0.07);
    padding: clamp(30px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, 0.08) 22% 23%, transparent 23% 47%, rgba(255, 255, 255, 0.08) 47% 48%, transparent 48%),
        linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: panel-scan 8s linear infinite;
}

.cta-inner > * {
    position: relative;
    z-index: 2;
}

.cta-inner p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: rgba(4, 9, 12, 0.62);
    padding: 64px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 46px;
}

.footer-brand p,
.site-footer p {
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a,
.site-footer a {
    color: var(--muted);
    transition: color 180ms ease;
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.92rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes brand-shine {
    0%,
    45% {
        transform: translateX(-45%) rotate(12deg);
    }

    65%,
    100% {
        transform: translateX(65%) rotate(12deg);
    }
}

@keyframes panel-scan {
    from {
        transform: translateX(-20%);
    }

    to {
        transform: translateX(20%);
    }
}

@keyframes form-shake {
    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-7px);
    }

    75% {
        transform: translateX(7px);
    }
}

@media (max-width: 1100px) {
    .hero-copy h1,
    .page-hero-copy h1 {
        font-size: 4.2rem;
    }

    .section-header h2,
    .split-copy h2,
    .contact-info h2,
    .detail-sidebar h2,
    .cta-inner h2 {
        font-size: 2.7rem;
    }

    .service-grid,
    .project-grid,
    .capability-grid.compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid:not(.project-grid-large) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-shell {
        min-height: 76px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 78px;
        left: 20px;
        right: 20px;
        display: grid;
        gap: 8px;
        transform: translateY(-18px);
        opacity: 0;
        pointer-events: none;
        background: rgba(6, 16, 21, 0.94);
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-header.is-open .site-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav a {
        padding: 13px 14px;
    }

    .nav-cta {
        display: none;
    }

    .hero-grid,
    .page-hero-grid,
    .split-grid,
    .split-grid.reverse,
    .contact-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
    }

    .hero-copy h1,
    .page-hero-copy h1 {
        font-size: 3.35rem;
        line-height: 1.04;
    }

    .hero-visual,
    .page-hero-media,
    .split-media {
        min-height: 420px;
    }

    .stat-grid,
    .capability-grid,
    .blog-grid,
    .timeline,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }

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

    .detail-number {
        width: 64px;
        height: 52px;
    }

    .cta-inner,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .section {
        padding: 68px 0;
    }

    .hero {
        padding-top: 52px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-text strong {
        font-size: 0.95rem;
    }

    .hero-copy h1,
    .page-hero-copy h1 {
        font-size: 2.55rem;
    }

    .section-header h2,
    .split-copy h2,
    .contact-info h2,
    .detail-sidebar h2,
    .cta-inner h2 {
        font-size: 2.1rem;
    }

    .hero-actions,
    .chip-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .nav-cta {
        width: 100%;
    }

    .hero-visual,
    .page-hero-media,
    .split-media {
        min-height: 340px;
    }

    .hero-panel,
    .media-badge {
        left: 14px;
        right: 14px;
        max-width: none;
    }

    .hero-panel-top {
        top: 14px;
    }

    .hero-panel-bottom,
    .media-badge {
        bottom: 14px;
    }

    .service-grid,
    .project-grid,
    .project-grid-large,
    .capability-grid.compact,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: 460px;
        grid-template-rows: 220px 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    #site-field {
        display: none;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
