/* ===================================================================
   EDNSoft — Revamp 2024
   Monochrome · flat · AI/tech aesthetic (Linear / Vercel inspired)
   =================================================================== */

:root {
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --bg-dark: #0a0a0a;
    --ink: #0a0a0a;
    --ink-soft: #52525b;
    --muted: #a1a1aa;
    --line: rgba(10, 10, 10, 0.1);
    --line-strong: rgba(10, 10, 10, 0.16);

    /* single restrained tech accent, used sparingly */
    --accent: #0a0a0a;
    --accent-faint: rgba(10, 10, 10, 0.06);

    --radius: 14px;
    --radius-lg: 20px;
    --shadow:
        0 1px 2px rgba(10, 10, 10, 0.04),
        0 8px 24px -16px rgba(10, 10, 10, 0.18);
    --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);

    --container: 1160px;
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --display: "Be Vietnam Pro", var(--font);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font);
    background: var(--bg) !important;
    color: var(--ink) !important;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--container), 92vw);
    margin-inline: auto;
}

/* ---------- Background tech grid ---------- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(
        ellipse 90% 60% at 50% 0%,
        #000 30%,
        transparent 75%
    );
    mask-image: radial-gradient(
        ellipse 90% 60% at 50% 0%,
        #000 30%,
        transparent 75%
    );
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
        transform 0.2s,
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    font-family: var(--font);
}
.btn--sm {
    padding: 9px 18px;
    font-size: 0.88rem;
}
.btn--block {
    width: 100%;
}
.btn--primary {
    background: var(--ink);
    color: #fff;
}
.btn--primary:hover {
    transform: translateY(-2px);
    background: #262626;
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}
.btn--ghost:hover {
    transform: translateY(-2px);
    background: var(--accent-faint);
    border-color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 100;
    transition:
        background 0.3s,
        box-shadow 0.3s,
        backdrop-filter 0.3s,
        border-color 0.3s;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom-color: var(--line);
    padding: 12px 0;
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 1.22rem;
    letter-spacing: -0.02em;
}
.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}
.brand__text strong {
    font-weight: 700;
}
.brand__text {
    font-weight: 500;
}

.nav__links {
    display: flex;
    gap: 30px;
}
.nav__links a {
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--ink-soft);
    position: relative;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    height: 1.5px;
    width: 0;
    background: var(--ink);
    transition: width 0.25s;
}
.nav__links a:hover {
    color: var(--ink);
}
.nav__links a:hover::after {
    width: 100%;
}
.nav__links a.is-active {
    color: var(--ink);
    font-weight: 600;
}
.nav__links a.is-active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

/* language toggle */
.lang {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: var(--bg);
}
.lang button {
    border: 0;
    background: transparent;
    padding: 7px 12px;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}
.lang button:hover {
    color: var(--ink);
}
.lang button.is-active {
    background: var(--ink);
    color: #fff;
}

/* ---------- Hero (asymmetric split) ---------- */
.hero {
    padding: 150px 0 80px;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.hero__left {
    max-width: 560px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    margin-bottom: 26px;
}
.badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}
.hero__title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.035em;
    font-size: clamp(2.3rem, 4.6vw, 3.9rem);
    line-height: 1.06;
    margin-bottom: 22px;
    color: var(--ink);
}
/* highlighted word */
.hero__hl {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    padding: 0 0.24em;
    line-height: 1.18;
}
.hero__sub {
    font-size: clamp(1rem, 1.6vw, 1.14rem);
    color: var(--ink-soft);
    margin-bottom: 32px;
}
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__metrics,
.hero__clients {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero__clients {
    align-items: center;
    gap: 16px;
}
.hero__clients-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
}
.hero__clients-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.client-badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    transition:
        border-color 0.2s,
        color 0.2s;
}
.client-badge:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

/* hero visual — browser mockup + floating cards */
.hero__right {
    position: relative;
}
.browser {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -30px rgba(10, 10, 10, 0.35);
    transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
    transform-origin: center;
    transition: transform 0.5s ease;
}
.hero__right:hover .browser {
    transform: perspective(1400px) rotateY(-4deg) rotateX(1deg);
}
.browser__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 14px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.browser__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--line-strong);
}
.browser__dot:nth-child(1) {
    background: #ff5f57;
}
.browser__dot:nth-child(2) {
    background: #febc2e;
}
.browser__dot:nth-child(3) {
    background: #28c840;
}
.browser__url {
    margin-left: 12px;
    flex: 1;
    font-size: 0.78rem;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 5px 12px;
}
.browser__shot {
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.browser__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    animation: floaty 5s ease-in-out infinite;
}
.float-card strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}
.float-card small {
    font-size: 0.74rem;
    color: var(--muted);
}
.float-card--top {
    top: 26px;
    left: -34px;
}
.float-card--bottom {
    bottom: 24px;
    right: -30px;
    animation-delay: -2.5s;
}
.float-card__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}
.float-card__code {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.8rem;
}
@keyframes floaty {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    padding: 20px 0;
    border-block: 1px solid var(--line);
    background: var(--bg-alt);
}
.marquee__track {
    display: flex;
    gap: 34px;
    white-space: nowrap;
    width: max-content;
    animation: scroll 32s linear infinite;
    font-family: var(--display);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.marquee__track span {
    font-size: 1.05rem;
}
@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Sections ---------- */
.section {
    padding: 96px 0;
}
.section--alt {
    background: var(--bg-alt);
}
.section__head {
    max-width: 640px;
    margin: 0 auto 54px;
    text-align: center;
}
.section__title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.025em;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    line-height: 1.12;
}
.section__desc {
    color: var(--ink-soft);
    margin-top: 14px;
    font-size: 1.04rem;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 12px;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}
.eyebrow--light {
    color: rgba(255, 255, 255, 0.7);
}
.lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    margin: 16px 0 24px;
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.checklist {
    list-style: none;
    margin-bottom: 30px;
    display: grid;
    gap: 13px;
}
.checklist li {
    position: relative;
    padding-left: 32px;
    color: var(--ink-soft);
    font-weight: 500;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.about__panel {
    display: flex;
    justify-content: center;
}
.orbit-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: var(--bg-dark);
    color: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.orbit-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.05) 1px,
            transparent 1px
        );
    background-size: 28px 28px;
}
.orbit-card__glow {
    display: none;
}
.orbit-card__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.96rem;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
}
.dot--a {
    opacity: 1;
}
.dot--b {
    opacity: 0.7;
}
.dot--c {
    opacity: 0.45;
}
.dot--d {
    opacity: 0.25;
}
.orbit-card__foot {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 22px;
}
.orbit-card__foot span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}
.orbit-card__foot strong {
    font-family: var(--display);
    font-size: 1.25rem;
}

/* ---------- Cards (services) ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.card__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--bg-alt);
    color: var(--ink);
    margin-bottom: 22px;
    border: 1px solid var(--line);
    font-family: var(--display);
}
.card h3 {
    font-family: var(--display);
    font-size: 1.28rem;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}
.card p {
    color: var(--ink-soft);
    font-size: 0.97rem;
}
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}
.tags li {
    font-size: 0.76rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

/* ---------- Steps ---------- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.step {
    position: relative;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
}
.step__no {
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    color: var(--line-strong);
    letter-spacing: -0.02em;
}
.step h4 {
    font-family: var(--display);
    margin: 6px 0 6px;
    font-size: 1.12rem;
}
.step p {
    color: var(--ink-soft);
    font-size: 0.91rem;
}

/* ---------- Work grid ---------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.work {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
    display: flex;
    flex-direction: column;
}
.work:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.work__thumb {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.work__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.work:hover .work__thumb img {
    transform: scale(1.04);
}
.work__body {
    padding: 22px 24px 26px;
}
.work__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    margin-bottom: 12px;
}
.work h3 {
    font-family: var(--display);
    font-size: 1.3rem;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.work p {
    color: var(--ink-soft);
    font-size: 0.91rem;
}

/* ---------- Team ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.member {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg);
    border: 1px solid var(--line);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}
.member:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.member__avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 16px;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}
.member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.member:hover .member__avatar img {
    transform: scale(1.05);
}
.member h4 {
    font-family: var(--display);
    font-size: 1.12rem;
}
.member p {
    color: var(--muted);
    font-size: 0.87rem;
}

/* ---------- CTA / Contact ---------- */
.cta {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 50px;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 54px;
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(
        ellipse 70% 90% at 100% 0%,
        #000,
        transparent 70%
    );
    mask-image: radial-gradient(
        ellipse 70% 90% at 100% 0%,
        #000,
        transparent 70%
    );
}
.cta__glow {
    display: none;
}
.cta__copy {
    position: relative;
    z-index: 1;
}
.cta__copy h2 {
    font-family: var(--display);
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}
.cta__copy > p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 28px;
    max-width: 420px;
}
.contact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ccard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition:
        transform 0.22s,
        background 0.22s,
        border-color 0.22s;
}
.ccard--static,
.ccard--wide {
    grid-column: 1 / -1;
}
a.ccard:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}
.ccard__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition:
        background 0.22s,
        color 0.22s;
}
.ccard__icon svg {
    width: 19px;
    height: 19px;
}
a.ccard:hover .ccard__icon {
    background: #fff;
    color: var(--ink);
}
.ccard__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ccard__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}
.ccard__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ccard__arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    transition:
        transform 0.22s,
        color 0.22s;
}
a.ccard:hover .ccard__arrow {
    color: #fff;
    transform: translate(2px, -2px);
}

.cta__form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 15px;
    align-self: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 26px;
}
.cta__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.cta__form label {
    display: grid;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}
.cta__form input,
.cta__form textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: var(--font);
    font-size: 0.94rem;
    resize: vertical;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.cta__form input::placeholder,
.cta__form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.cta__form input:focus,
.cta__form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.09);
}
.cta__form .btn--primary {
    background: #fff;
    color: var(--ink);
}
.cta__form .btn--primary:hover {
    background: #e4e4e7;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 58px 0 30px;
}
.footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.footer__brand {
    max-width: 320px;
}
.footer__brand p {
    color: var(--ink-soft);
    font-size: 0.91rem;
    margin-top: 14px;
}
.footer__nav {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    align-items: center;
}
.footer__nav a {
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.94rem;
}
.footer__nav a:hover {
    color: var(--ink);
}
.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .cards,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cta {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    .hero__left {
        max-width: 640px;
    }
    .browser {
        transform: none;
    }
    .hero__right:hover .browser {
        transform: none;
    }
    .float-card--top {
        left: 0;
    }
    .float-card--bottom {
        right: 0;
    }
}
@media (max-width: 760px) {
    .nav__links {
        position: fixed;
        inset: 70px 16px auto 16px;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        border: 1px solid var(--line);
        transform: translateY(-12px) scale(0.98);
        opacity: 0;
        pointer-events: none;
        transition: 0.25s;
    }
    .nav__links.open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .nav__links a {
        padding: 10px 6px;
    }
    .nav__toggle {
        display: flex;
    }
    .nav__toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav__toggle.open span:nth-child(2) {
        opacity: 0;
    }
    .nav__toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .hero {
        padding-top: 120px;
    }
    .float-card--top {
        left: 4px;
        top: 14px;
    }
    .float-card--bottom {
        right: 4px;
        bottom: 14px;
    }
    .cta__form-grid {
        grid-template-columns: 1fr;
    }
    .contact-list {
        grid-template-columns: 1fr;
    }
    .ccard__value {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}
@media (max-width: 480px) {
    .cards,
    .work-grid,
    .steps,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .btn--sm {
        display: none;
    }
    .float-card {
        display: none;
    }
}

/* ===================================================================
   SUBPAGES — page hero, news, careers
   =================================================================== */

/* ---------- Page hero ---------- */
.pagehero {
    padding: 150px 0 56px;
    position: relative;
}
.pagehero::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--line);
    margin-top: 48px;
}
.crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}
.crumbs a {
    color: var(--ink-soft);
}
.crumbs a:hover {
    color: var(--ink);
}
.crumbs span {
    opacity: 0.6;
}
.pagehero h1 {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.06;
    max-width: 760px;
}
.pagehero p {
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    margin-top: 16px;
    max-width: 600px;
}
.pagehero__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- Filter chips ---------- */
.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.chip {
    font-size: 0.86rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.chip:hover {
    border-color: var(--line-strong);
}
.chip--active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

/* ---------- Featured article ---------- */
.feature {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    margin-bottom: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        box-shadow 0.25s,
        border-color 0.25s;
}
.feature:hover {
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.feature__media {
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--bg-alt);
}
.feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.feature:hover .feature__media img {
    transform: scale(1.04);
}
.feature__body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.feature__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.feature__body h2 {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}
.feature__body p {
    color: var(--ink-soft);
    margin-bottom: 22px;
}

/* ---------- News grid ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg);
    transition:
        transform 0.25s,
        box-shadow 0.25s,
        border-color 0.25s;
}
.post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line-strong);
}
.post__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.post:hover .post__media img {
    transform: scale(1.05);
}
.post__body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.cat {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.post h3 {
    font-family: var(--display);
    font-size: 1.18rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-bottom: 10px;
}
.post p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.post__more {
    margin-top: auto;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}
.post:hover .post__more {
    text-decoration: underline;
}

/* ---------- Careers: perks ---------- */
.perks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.perk {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
}
.perk__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    margin-bottom: 18px;
}
.perk h4 {
    font-family: var(--display);
    font-size: 1.08rem;
    margin-bottom: 7px;
}
.perk p {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

/* ---------- Careers: job list ---------- */
.jobs {
    display: grid;
    gap: 14px;
}
.job {
    display: grid;
    grid-template-columns: 1.4fr 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--bg);
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s,
        background 0.25s;
}
.job:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--bg-dark);
}
.job__title {
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}
.job__title small {
    display: block;
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0;
}
.job__dept {
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.job__tag {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
    white-space: nowrap;
}
.job__apply {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    white-space: nowrap;
}
.job__apply span {
    transition: transform 0.2s;
}
.job:hover .job__apply span {
    transform: translateX(4px);
}

/* ---------- Subpage responsive ---------- */
@media (max-width: 940px) {
    .feature {
        grid-template-columns: 1fr;
    }
    .feature__media {
        aspect-ratio: 16 / 9;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .perks {
        grid-template-columns: repeat(2, 1fr);
    }
    .job {
        grid-template-columns: 1fr auto;
        gap: 12px 16px;
    }
    .job__dept {
        grid-column: 1 / -1;
        order: 3;
    }
    .job__apply {
        order: 4;
    }
}
@media (max-width: 560px) {
    .news-grid,
    .perks {
        grid-template-columns: 1fr;
    }
    .feature__body {
        padding: 28px;
    }
    .job {
        grid-template-columns: 1fr;
    }
    .job__tag {
        justify-self: start;
    }
}

/* ===================================================================
   BLOG DETAIL
   =================================================================== */
.article {
    max-width: 760px;
    margin: 0 auto;
}
.article__head {
    padding: 140px 0 0;
}
.article__meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 18px 0 16px;
    flex-wrap: wrap;
}
.article__title {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.08;
}
.article__lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--ink-soft);
    margin-top: 18px;
    line-height: 1.6;
}

.article__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.article__author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--line);
}
.article__author strong {
    display: block;
    font-size: 0.92rem;
}
.article__author span {
    font-size: 0.82rem;
    color: var(--muted);
}

.article__cover {
    margin: 40px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
}
.article__cover img {
    width: 100%;
    display: block;
}
.article__cover figcaption {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
}

/* prose */
.prose {
    font-size: 1.07rem;
    line-height: 1.8;
    color: var(--ink-soft);
}
.prose > * + * {
    margin-top: 1.3em;
}
.prose h2 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-top: 1.8em;
}
.prose h3 {
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--ink);
    margin-top: 1.6em;
}
.prose strong {
    color: var(--ink);
    font-weight: 600;
}
.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose ul,
.prose ol {
    padding-left: 1.3em;
}
.prose li {
    margin-top: 0.5em;
}
.prose li::marker {
    color: var(--muted);
}
.prose blockquote {
    margin: 1.6em 0;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--ink);
    font-family: var(--display);
    font-size: 1.25rem;
    font-style: normal;
    color: var(--ink);
    line-height: 1.4;
}
.prose img {
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.prose figure figcaption {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 10px;
    text-align: center;
}

/* tags + share */
.article__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.article__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.article__tags a {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}
.article__tags a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}
.share {
    display: flex;
    gap: 8px;
    align-items: center;
}
.share span {
    font-size: 0.82rem;
    color: var(--muted);
    margin-right: 4px;
}
.share a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--bg);
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s;
}
.share a:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.share svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .article__head {
        padding-top: 110px;
    }
}

/* WordPress admin bar compatibility for logged-in users. */
body.admin-bar .nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .nav {
        top: 46px;
    }

    body.admin-bar .nav__links {
        inset: 116px 16px auto 16px;
    }
}

/* Hide leftover antreas/plugin mobile menu injected via wp_footer.
   The modern front page has its own header nav + hamburger, so this
   unstyled off-canvas menu (incl. Ecwid store list) must be hidden. */
#menu-mobile,
#menu-mobile-close,
.menu-mobile,
.menu-mobile-close,
.menu-mobile-toggle {
    display: none !important;
}

/* Office gallery under the team section */
.office-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 52px;
}
.office-shot {
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-alt);
}
.office-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.office-shot:hover img {
    transform: scale(1.04);
}
@media (max-width: 720px) {
    .office-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 36px;
    }
}

/* Contact map (right column of the CTA) */
.cta__copy { order: 1; }
.cta__map {
    order: 2;
    position: relative;
    z-index: 1;
    min-height: 340px;
    align-self: stretch;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
}
.cta__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.cta__map-link {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: rgba(10, 10, 10, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: background 0.2s;
}
.cta__map-link:hover { background: rgba(10, 10, 10, 0.92); }

/* Wordmark placeholder thumbnail for projects without a screenshot */
.work__thumb--brand {
    display: grid;
    place-items: center;
    background:
        radial-gradient(130% 120% at 100% 0%, rgba(10, 10, 10, 0.06), transparent 55%),
        var(--bg-alt);
}
.work__thumb--brand span {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    letter-spacing: -0.02em;
    color: var(--ink);
}
.work__thumb--brand em {
    font-style: normal;
    color: var(--muted);
}
