:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --bg-color: #f5efe5;
    --primary: #2d5fc7;
    --accent: #e8b62a;
    --off-white: #efe8dc;
    --gray-900: #141414;
    --gray-700: #2e2e2e;
    --gray-500: #6b6b6b;
    --gray-400: #9a9a9a;
    --line-light: #dfd7c9;
    --line-dark: rgba(255, 255, 255, .14);
    --disp: 'Archivo Black', 'Space Grotesk', sans-serif;
    --head: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --maxw: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--body);
    background: var(--bg-color);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

img,
svg,
video,
canvas,
iframe {
    display: block;
    max-width: 100%;
    height: auto;
}

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

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 10px;
}

section.dark .eyebrow {
    color: var(--gray-400);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .6;
}

h1,
h2,
h3 {
    font-family: var(--head);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 14px 26px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
    transform: translateY(-1px);
}

.btn.ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn.ghost:hover {
    background: var(--primary);
    color: var(--white);
}

section.dark .btn.ghost {
    color: var(--white);
    border-color: var(--white);
}

section.dark .btn.ghost:hover {
    background: var(--white);
    color: var(--black);
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 239, 229, .88);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line-light);
}

header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-mark {
    font-family: var(--disp);
    font-size: 19px;
    letter-spacing: .02em;
}

.logo-mark span {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--gray-500);
    display: block;
    margin-top: 2px;
    text-transform: uppercase;
}

nav.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

nav.main-nav a {
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
    position: relative;
}

nav.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width .2s ease;
}

nav.main-nav a:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--black);
}

/* ---------- Hero ---------- */
.hero {
    padding: 168px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 64px;
    align-items: end;
}

.hero-word {
    font-family: var(--disp);
    font-size: clamp(48px, 8vw, 108px);
    line-height: .92;
    letter-spacing: -0.01em;
    margin: 18px 0 8px;
}

.hero-tech {
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(14px, 2vw, 20px);
    letter-spacing: .5em;
    text-transform: uppercase;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.hero-tech::before,
.hero-tech::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-light);
}

.hero-sub {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-glow {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(10, 10, 10, .05) 0%, rgba(10, 10, 10, 0) 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform .4s ease-out;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.hero-word {
    display: flex;
    flex-wrap: wrap;
}

.hero-word .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(48px);
    animation: letterUp .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

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

.hero-tech {
    opacity: 0;
    animation: fadeIn .7s ease forwards;
    animation-delay: .9s;
}

.hero-sub,
.hero-ctas,
.terminal {
    opacity: 0;
    animation: fadeUp .7s ease forwards;
    animation-delay: 1.05s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* ticker */
.ticker {
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
    overflow: hidden;
    padding: 16px 0;
    background: var(--white);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 26s linear infinite;
}

.ticker-track span {
    font-family: var(--mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 0 28px;
    white-space: nowrap;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 28px;
}

.ticker-track span::after {
    content: "•";
    color: var(--gray-500);
}

@keyframes tickerScroll {
    from {
        transform: translateX(0);
    }

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

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

/* terminal */
.terminal {
    background: var(--black);
    color: #e9e9e6;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 13px;
    padding: 20px 22px;
    height: fit-content;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
    overflow-x: auto;
    max-width: 100%;
}

.terminal-bar {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}

.terminal-bar span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #3a3a38;
}

.terminal-line {
    min-height: 19px;
    white-space: pre;
    opacity: 0;
    animation: fadeIn .3s forwards;
}

.terminal-line.done {
    color: #e9e9e6;
}

.terminal-line .ok {
    color: #e9e9e6;
}

.cursor {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #e9e9e6;
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ---------- generic section spacing ---------- */
section {
    padding: 110px 0;
}

section.dark {
    background: var(--gray-900);
    color: var(--white);
}

section.tight {
    padding: 90px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    max-width: 640px;
}

.section-head p {
    color: var(--gray-500);
    max-width: 360px;
    font-size: 15px;
}

section.dark .section-head p {
    color: var(--gray-400);
}

/* ---------- services ---------- */
.svc-list {
    border-top: 1px solid var(--line-light);
}

.svc-row {
    display: grid;
    grid-template-columns: 110px 1fr 1fr 24px;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line-light);
    cursor: default;
    transition: padding-left .25s ease, background .25s ease;
}

.svc-row:hover {
    padding-left: 14px;
    background: var(--off-white);
}

.svc-path {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gray-500);
}

.svc-name {
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(19px, 2.4vw, 26px);
}

.svc-desc {
    font-size: 14.5px;
    color: var(--gray-500);
    max-width: 420px;
}

.svc-arrow {
    font-family: var(--mono);
    font-size: 18px;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    transform: translateX(-6px);
}

.svc-row:hover .svc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- why ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-item {
    border-top: 1px solid var(--line-dark);
    padding-top: 22px;
}

.why-tag {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 16px;
    display: block;
}

.why-item h3 {
    font-family: var(--head);
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 600;
    line-height: 1.25;
}

/* ---------- automation ---------- */
.auto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.auto-copy p {
    color: var(--gray-500);
    margin: 18px 0 26px;
    max-width: 440px;
}

.auto-list li {
    font-size: 14.5px;
    padding: 10px 0;
    border-top: 1px solid var(--line-light);
    display: flex;
    gap: 12px;
}

.auto-list li:last-child {
    border-bottom: 1px solid var(--line-light);
}

.auto-list li::before {
    content: "—";
    color: var(--gray-500);
}

.flow {
    width: 100%;
    height: auto;
}

.flow text {
    font-family: var(--mono);
    font-size: 11px;
    fill: var(--black);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.flow .node {
    fill: var(--white);
    stroke: var(--black);
    stroke-width: 1.4;
}

.flow .line {
    stroke: var(--black);
    stroke-width: 1.2;
}

.flow .pulse {
    fill: var(--black);
}

/* ---------- work ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--line-light);
}

.work-card {
    background: var(--white);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: background .2s ease;
}

.work-card:hover {
    background: var(--off-white);
}

.work-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--off-white);
    border: 1px solid var(--line-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-thumb span {
    font-family: var(--disp);
    font-size: 22px;
    color: var(--gray-500);
    letter-spacing: -.01em;
}

.work-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.work-meta .visit {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--black);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    transform: translateX(-4px);
}

.work-card:hover .visit {
    opacity: 1;
    transform: translateX(0);
}

.work-meta .tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
}

.work-card h3 {
    font-family: var(--head);
    font-size: 20px;
    font-weight: 600;
}

.work-card p {
    font-size: 14px;
    color: var(--gray-500);
}

.work-note {
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-500);
    font-family: var(--mono);
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-copy h2 {
    font-size: clamp(30px, 5vw, 52px);
    margin-bottom: 20px;
}

.contact-copy p {
    color: var(--gray-400);
    max-width: 380px;
    margin-bottom: 32px;
}

.contact-info li {
    font-family: var(--mono);
    font-size: 13px;
    padding: 10px 0;
    border-top: 1px solid var(--line-dark);
}

.contact-info li span {
    color: var(--gray-400);
    display: inline-block;
    width: 90px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-dark);
    padding: 10px 0;
    color: var(--white);
    font-size: 15px;
}

.field select option {
    color: var(--black);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--white);
}

.field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-status {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 14px;
    min-height: 16px;
}

/* ---------- footer ---------- */
footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 64px 0 32px;
    border-top: 1px solid var(--line-dark);
}

.foot-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 44px;
}

.foot-word {
    font-family: var(--disp);
    font-size: clamp(30px, 5vw, 52px);
    color: var(--white);
    letter-spacing: -.01em;
}

.foot-cols {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-400);
    margin-bottom: 14px;
}

.foot-col a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    padding: 4px 0;
    cursor: pointer;
    transition: color .2s ease, transform .2s ease;
}

.foot-col a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line-dark);
    padding-top: 24px;
    font-family: var(--mono);
    font-size: 11px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------- reveal (multi-directional scroll animation) ---------- */
.reveal,
.reveal-left,
.reveal-right,
.reveal-diag,
.reveal-diag-rev {
    opacity: 0;
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}

.reveal {
    transform: translateY(26px);
}

.reveal-left {
    transform: translate(-56px, 0);
}

.reveal-right {
    transform: translate(56px, 0);
}

.reveal-diag {
    transform: translate(-40px, 40px);
}

.reveal-diag-rev {
    transform: translate(40px, -40px);
}

.reveal.in,
.reveal-left.in,
.reveal-right.in,
.reveal-diag.in,
.reveal-diag-rev.in {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---------- custom cursor ---------- */
.cursor-ring,
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity .2s ease, width .25s cubic-bezier(.2, .8, .2, 1), height .25s cubic-bezier(.2, .8, .2, 1);
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1px solid var(--white);
    background: transparent;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
}

body.custom-cursor-active .cursor-ring,
body.custom-cursor-active .cursor-dot {
    opacity: 1;
}

body.custom-cursor-active,
body.custom-cursor-active * {
    cursor: none !important;
}

.cursor-ring.hovering {
    width: 64px;
    height: 64px;
    border-color: var(--white);
}

.cursor-dot.hovering {
    width: 0;
    height: 0;
}

/* work card lift */
.work-card {
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .25);
}

.work-thumb {
    transition: transform .5s ease;
    overflow: hidden;
}

.work-card:hover .work-thumb {
    transform: scale(1.03);
}

/* button arrow micro-interaction */
.btn .arrow {
    display: inline-block;
    transition: transform .25s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ---------- stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--line-dark);
}

.stat {
    background: var(--gray-900);
    padding: 32px 28px;
}

.stat-num {
    font-family: var(--disp);
    font-size: clamp(32px, 4vw, 52px);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-label {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 10px;
}

/* ---------- testimonial carousel ---------- */
.tcarousel {
    position: relative;
    max-width: 760px;
    overflow: hidden;
    width: 100%;
}

.tcarousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.tslide {
    flex: 0 0 100%;
    padding: 4px;
}

.tcard {
    background: var(--black);
    border: 1px solid var(--line-dark);
    padding: 40px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tstars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.tstars svg {
    width: 15px;
    height: 15px;
    fill: var(--white);
}

.tquote {
    font-family: var(--head);
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 500;
    line-height: 1.5;
}

.tfoot {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 26px;
}

.tavatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--head);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.tname {
    font-size: 14px;
    font-weight: 600;
}

.trole {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-top: 2px;
}

.tcontrols {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
}

.tarrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    flex-shrink: 0;
}

.tarrow:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.06);
}

.tdots {
    display: flex;
    gap: 8px;
}

.tdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-700);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .2s ease, transform .2s ease;
}

.tdot.active {
    background: var(--white);
    transform: scale(1.3);
}

.tcard-video {
    padding: 0;
    overflow: hidden;
}

.tcard-video .video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.tcard-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tcard-video .tfoot {
    padding: 20px 24px 24px;
}

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

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-diag,
    .reveal-diag-rev {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .terminal-line {
        opacity: 1;
        animation: none;
    }

    .cursor {
        animation: none;
    }

    .hero-word .letter,
    .hero-tech,
    .hero-sub,
    .hero-ctas,
    .terminal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .ticker-track {
        animation: none;
    }

    .work-card:hover {
        transform: none;
    }

    .tcarousel-track {
        transition: none;
    }
}

/* ---------- responsive ---------- */
@media (max-width:900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auto-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .quote-track {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .svc-row {
        grid-template-columns: 70px 1fr;
        row-gap: 8px;
    }

    .svc-desc {
        grid-column: 2/3;
    }

    .svc-arrow {
        display: none;
    }

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

    .hero-glow {
        width: 320px;
        height: 320px;
        top: -60px;
        right: 0;
    }
}

@media (max-width:768px) {

    /* Prevent horizontal scroll animation offscreen displacement on mobile */
    .reveal-left,
    .reveal-right,
    .reveal-diag,
    .reveal-diag-rev {
        transform: translateY(20px);
    }

    .svc-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 0;
    }

    .svc-desc {
        grid-column: 1 / -1;
    }
}

@media (max-width:720px) {
    .wrap {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 20px;
        border-bottom: 1px solid var(--line-light);
        transform: translateY(-140%);
        transition: transform .3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    nav.main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .section-head {
        margin-bottom: 40px;
        gap: 20px;
    }

    section {
        padding: 80px 0;
    }

    section.tight {
        padding: 60px 0;
    }

    .foot-top {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width:480px) {
    .wrap {
        padding: 0 16px;
    }

    .hero-word {
        font-size: clamp(36px, 11vw, 56px);
    }

    .hero-tech {
        letter-spacing: .25em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        gap: 40px;
    }

    .tcard {
        padding: 20px 16px;
    }

    .foot-cols {
        gap: 32px;
        flex-direction: column;
    }
}

/* ---------- SERVICE CARD INTERACTION ENHANCEMENT ---------- */
.svc-row {
    cursor: pointer !important;
    position: relative;
}

.svc-row:hover .svc-arrow {
    color: var(--black);
    font-weight: 600;
}

body.overlay-open {
    overflow: hidden !important;
}

/* ---------- FULL-SCREEN SERVICE OVERLAY (HOME PAGE MATCHING THEME) ---------- */
.service-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s cubic-bezier(.16, 1, .3, 1), visibility .4s cubic-bezier(.16, 1, .3, 1);
}

.service-overlay.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.service-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.service-overlay-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--white);
    color: var(--black);
    transform: scale(0.96) translateY(24px);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1);
    padding: 40px 0 80px;
}

.service-overlay.open .service-overlay-panel {
    transform: scale(1) translateY(0);
}

.service-overlay-close {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--black);
    border: 1px solid var(--black);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 40px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .05em;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-overlay-close:hover {
    background: var(--white);
    color: var(--black);
    transform: scale(1.05);
}

.close-label {
    font-size: 11px;
    opacity: .85;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 4px;
}

.service-overlay-close:hover .close-label {
    background: var(--off-white);
    color: var(--black);
}

.service-overlay-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

/* TOP SECTION: HEADER & HERO GALLERY */
.so-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line-light);
    margin-top: 20px;
}

.so-eyebrow {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--gray-500);
    text-transform: uppercase;
    margin-bottom: 14px;
}

.so-title {
    font-family: var(--head);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.08;
    color: var(--black);
    margin-bottom: 18px;
}

.so-tagline {
    font-size: 18px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 32px;
}

.so-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.so-hero-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.so-main-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--off-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line-light);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.so-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.so-main-image-wrap:hover .so-main-img {
    transform: scale(1.03);
}

.so-enlarge-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--black);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 11px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .2s ease, background .2s ease, color .2s ease;
}

.so-main-image-wrap:hover .so-enlarge-btn {
    opacity: 1;
}

.so-enlarge-btn:hover {
    background: var(--white);
    color: var(--black);
}

.so-thumb-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.so-thumb-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.so-thumb-track::-webkit-scrollbar {
    display: none;
}

.so-thumb-item {
    width: 72px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: .6;
    transition: opacity .2s ease, border-color .2s ease;
}

.so-thumb-item.active,
.so-thumb-item:hover {
    opacity: 1;
    border-color: var(--black);
}

.so-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.so-thumb-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-light);
    background: var(--off-white);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    flex-shrink: 0;
}

.so-thumb-arrow:hover {
    background: var(--black);
    color: var(--white);
}

/* SECTION GENERIC */
.so-section {
    padding: 64px 0;
    border-bottom: 1px solid var(--line-light);
}

.so-section-heading {
    font-family: var(--head);
    font-size: clamp(24px, 3vw, 36px);
    color: var(--black);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sec-num {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--gray-500);
    border: 1px solid var(--line-light);
    background: var(--off-white);
    padding: 4px 10px;
    border-radius: 20px;
}

.so-overview-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--gray-500);
    max-width: 920px;
}

/* SECTION 2: FEATURES GRID */
.so-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.so-feature-card {
    background: var(--off-white);
    border: 1px solid var(--line-light);
    border-radius: 16px;
    padding: 24px;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.so-feature-card:hover {
    background: var(--white);
    border-color: var(--black);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.08);
}

.so-feature-icon {
    font-size: 28px;
    margin-bottom: 14px;
    display: block;
}

.so-feature-card h4 {
    font-family: var(--head);
    font-size: 17px;
    color: var(--black);
    margin-bottom: 8px;
}

.so-feature-card p {
    font-size: 13.5px;
    color: var(--gray-500);
    line-height: 1.45;
}

/* SECTION 3: PROCESS TIMELINE */
.so-process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
}

.so-process-step {
    background: var(--off-white);
    border: 1px solid var(--line-light);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    transition: background .25s ease, border-color .25s ease;
}

.so-process-step:hover {
    background: var(--white);
    border-color: var(--black);
}

.so-step-badge {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gray-500);
    letter-spacing: .08em;
    margin-bottom: 12px;
    display: block;
}

.so-process-step h4 {
    font-family: var(--head);
    font-size: 16px;
    color: var(--black);
    margin-bottom: 8px;
}

.so-process-step p {
    font-size: 12.5px;
    color: var(--gray-500);
    line-height: 1.4;
}



/* SECTION 5: TECH BADGES */
.so-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.so-tech-badge {
    font-family: var(--mono);
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--off-white);
    border: 1px solid var(--line-light);
    color: var(--black);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.so-tech-badge:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    transform: translateY(-2px);
}

/* SECTION 6: FAQ ACCORDION */
.so-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 920px;
}

.so-faq-item {
    background: var(--off-white);
    border: 1px solid var(--line-light);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}

.so-faq-item.active {
    border-color: var(--black);
    background: var(--white);
}

.so-faq-question {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--black);
    font-family: var(--head);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.so-faq-icon {
    font-size: 20px;
    transition: transform .3s ease;
}

.so-faq-item.active .so-faq-icon {
    transform: rotate(45deg);
}

.so-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
    transition: max-height .35s ease, padding .35s ease;
}

.so-faq-item.active .so-faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* SECTION 7: FINAL CTA (MATCHES HOME PAGE DARK SECTION) */
.so-final-cta-section {
    border-bottom: none;
    padding-top: 64px;
}

.so-final-cta-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: 24px;
    padding: 64px 32px;
    text-align: center;
    color: var(--white);
}

.so-final-cta-card h3 {
    font-family: var(--head);
    font-size: clamp(28px, 4vw, 42px);
    color: var(--white);
    margin-bottom: 12px;
}

.so-final-cta-card p {
    font-size: 16px;
    color: var(--gray-400);
    margin-bottom: 28px;
}

.so-final-cta-card .btn {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

.so-final-cta-card .btn:hover {
    background: transparent;
    color: var(--white);
}

/* LIGHTBOX MODAL */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.lightbox-modal.open {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 14px;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.lightbox-close:hover {
    background: var(--white);
    color: var(--black);
}

/* OVERLAY RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .so-header-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

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

@media (max-width: 640px) {
    .service-overlay-close {
        top: 16px;
        right: 16px;
        padding: 8px 14px;
    }

    .service-overlay-container {
        padding: 0 20px;
    }

    .so-features-grid {
        grid-template-columns: 1fr;
    }

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

    .so-masonry-grid {
        grid-template-columns: 1fr;
    }

    .so-final-cta-card {
        padding: 40px 20px;
    }
}