/* ============================================================
   KVLK Studio — site stylesheet
   Dark · Swiss-technical · Archivo + JetBrains Mono
   ============================================================ */

:root {
    /* surfaces */
    --bg: #0a0b0d;
    --surface: #101216;
    --surface-2: #15171c;
    --surface-3: #1b1e25;
    --line: rgba(255, 255, 255, .075);
    --line-2: rgba(255, 255, 255, .14);

    /* text */
    --tx: rgba(236, 238, 243, .95);
    --tx-2: rgba(214, 218, 228, .78);
    --tx-dim: rgba(176, 183, 196, .60);
    --tx-mute: rgba(140, 147, 160, .42);

    /* brand accents */
    --blue: oklch(0.62 0.16 245);
    --blue-bright: oklch(0.72 0.15 245);
    --blue-soft: oklch(0.62 0.16 245 / 0.14);
    --gold: oklch(0.83 0.15 92);
    --gold-soft: oklch(0.83 0.15 92 / 0.12);

    --accent: var(--blue);

    /* type */
    --sans: 'Archivo', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    /* metrics */
    --wrap: 1180px;
    --gut: 40px;
    --radius: 16px;
    --radius-s: 11px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--tx);
    font-family: var(--sans);
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ambient page glow + faint grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(1100px 620px at 82% -8%, oklch(0.62 0.16 245 / 0.13), transparent 62%),
    radial-gradient(820px 560px at 6% 108%, oklch(0.83 0.15 92 / 0.055), transparent 60%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--blue);
    color: #fff;
}

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

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

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .18);
}

/* ---------- layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

section {
    position: relative;
}

.divider {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* ---------- type ---------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--tx-dim);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow .dash {
    width: 26px;
    height: 1px;
    background: var(--line-2);
    display: inline-block;
}

.eyebrow.accent {
    color: var(--blue-bright);
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -.022em;
    line-height: 1.04;
    margin: 0;
    color: #fff;
}

.display {
    font-size: clamp(40px, 6.2vw, 60px);
    font-weight: 800;
    letter-spacing: -.034em;
    line-height: .98;
}

.h2 {
    font-size: clamp(30px, 3.6vw, 46px);
    font-weight: 700;
    letter-spacing: -.028em;
}

.h3 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    letter-spacing: -.02em;
}

.lede {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.55;
    color: var(--tx-2);
    font-weight: 400;
}

.muted {
    color: var(--tx-dim);
}

.tnum {
    font-feature-settings: 'tnum' 1;
}

/* ---------- nav ---------- */
.nav-shell {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 18px 0 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 14px 12px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16, 18, 22, .62);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    transition: border-color .3s var(--ease), background .3s var(--ease);
}

.nav-shell.stuck .nav {
    background: rgba(14, 16, 19, .86);
    border-color: var(--line-2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .mark {
    width: 30px;
    height: 30px;
    flex: none;
}

.brand .mark img {
    width: 100%;
    height: 100%;
}

.brand .name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.01em;
    color: #fff;
}

.brand .name b {
    font-weight: 700;
}

.brand-wordmark {
    display: inline-block;
    line-height: 0;
}

.brand-wordmark img {
    width: 132px;
    height: auto;
    display: block;
    opacity: .92;
    transition: opacity .25s ease;
}

.brand-wordmark:hover img {
    opacity: 1;
}

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

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

.hero-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.hero-mark img {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    opacity: .95;
}

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

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tx-2);
    padding: 9px 15px;
    border-radius: 999px;
    position: relative;
    transition: color .2s var(--ease), background .2s var(--ease);
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.nav-links a.current {
    color: #fff;
}

.nav-links a.current::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 4px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
}

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

.nav-burger {
    display: none;
}

/* ---------- buttons ---------- */
.btn {
    --bg: transparent;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
    padding: 12px 20px;
    border-radius: 11px;
    cursor: pointer;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--tx);
    transition: transform .18s var(--ease), border-color .2s, background .2s, color .2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .28);
}

.btn .arw {
    transition: transform .2s var(--ease);
}

.btn:hover .arw {
    transform: translate(3px, -3px);
}

.btn.solid {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: 0 8px 26px -10px oklch(0.62 0.16 245 / 0.7);
}

.btn.solid:hover {
    background: var(--blue-bright);
    border-color: var(--blue-bright);
}

.btn.ghost {
    background: rgba(255, 255, 255, .03);
}

.btn.sm {
    padding: 9px 15px;
    font-size: 13.5px;
    border-radius: 9px;
}

.btn .ico {
    width: 16px;
    height: 16px;
}

.btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(255, 255, 255, .02);
}

/* ---------- chips / labels ---------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tx-dim);
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .02);
}

.chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* pills — platform / language badges */
.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 4px;
}

.pill-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 18px;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.pill-group-label {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tx-mute);
    padding-right: 4px;
    min-width: 76px; /* keeps both labels left-aligned together when adjacent */
}

.pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .025);
    line-height: 1;
}

.pill.pill-platform {
    /* fallbacks for browsers without oklch / color-mix */
    color: #7ed4ff;
    border-color: rgba(126, 212, 255, .35);
    background: rgba(126, 212, 255, .10);
    /* modern */
    color: oklch(0.86 0.10 215);
    border-color: color-mix(in oklch, oklch(0.86 0.10 215) 35%, var(--line));
    background: color-mix(in oklch, oklch(0.86 0.10 215) 10%, transparent);
}

.pill.pill-lang {
    /* fallbacks */
    color: #f0d27a;
    border-color: rgba(240, 210, 122, .35);
    background: rgba(240, 210, 122, .10);
    /* modern */
    color: oklch(0.86 0.14 92);
    border-color: color-mix(in oklch, oklch(0.86 0.14 92) 35%, var(--line));
    background: color-mix(in oklch, oklch(0.86 0.14 92) 10%, transparent);
}

/* legal pages (privacy / terms) */
.legal-wrap {
    max-width: 760px;
}

.legal-body {
    color: var(--tx-2);
}

.legal-body .legal-section {
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.legal-body .legal-section:first-child {
    border-top: 0;
    padding-top: 12px;
}

.legal-body h2 {
    font-size: clamp(20px, 2.2vw, 26px);
    letter-spacing: -.01em;
    margin: 0 0 12px;
    color: var(--tx);
}

.legal-body p, .legal-body li {
    font-size: 16px;
    line-height: 1.7;
}

.legal-body p {
    margin: 0 0 12px;
}

.legal-body p:last-child {
    margin-bottom: 0;
}

.legal-body ul {
    padding-left: 22px;
    margin: 6px 0 0;
}

.legal-body li {
    margin-bottom: 8px;
}

.legal-body li:last-child {
    margin-bottom: 0;
}

.legal-body a {
    color: var(--blue-bright);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in oklch, var(--blue-bright) 35%, transparent);
}

.legal-body a:hover {
    border-bottom-color: var(--blue-bright);
}

.legal-body strong {
    color: var(--tx);
    font-weight: 600;
}

/* flag tag */
.flagtag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--tx-2);
}

.flagtag .flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    flex: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4) inset, 0 1px 3px rgba(0, 0, 0, .4);
}

.flagtag .flag i {
    display: block;
    height: 50%;
}

.flagtag .flag i.b {
    background: oklch(0.60 0.16 245);
}

.flagtag .flag i.y {
    background: oklch(0.83 0.15 92);
}

/* ---------- cards ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}

.card.pad {
    padding: 28px;
}

.card.hover:hover {
    border-color: var(--line-2);
    background: var(--surface-2);
}

/* placeholder media frame (for imagery we don't have yet) */
.frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: radial-gradient(120% 100% at 70% 0%, rgba(255, 255, 255, .045), transparent 55%),
    var(--surface-2);
    border: 1px solid var(--line);
}

.frame.ph {
    display: grid;
    place-items: center;
}

.frame.ph::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(120% 100% at 50% 40%, #000, transparent 78%);
}

.frame .ph-label {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tx-mute);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border: 1px dashed var(--line-2);
    border-radius: 8px;
    background: rgba(10, 11, 13, .5);
}

.frame .ph-label svg {
    width: 14px;
    height: 14px;
    opacity: .7;
}

.frame img.fill {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* founder portrait on /about */
.founder-frame { position: relative; }
.founder-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 50%, rgba(8, 9, 11, .55) 88%, rgba(8, 9, 11, .82) 100%);
}
.founder-caption {
    position: absolute;
    left: 22px;
    bottom: 20px;
    z-index: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 11, 13, .55);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
.founder-caption .cap-name { color: #fff; font-weight: 600; font-size: 14.5px; letter-spacing: -.005em; }
.founder-caption .cap-role { color: var(--tx-dim); font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- reveal animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

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

[data-reveal][data-d="1"] {
    transition-delay: .07s;
}

[data-reveal][data-d="2"] {
    transition-delay: .14s;
}

[data-reveal][data-d="3"] {
    transition-delay: .21s;
}

[data-reveal][data-d="4"] {
    transition-delay: .28s;
}

[data-reveal][data-d="5"] {
    transition-delay: .35s;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- hero ---------- */
.hero {
    padding: 96px 0 64px;
}

.hero .display {
    max-width: 16ch;
}

.hero .lede {
    max-width: 50ch;
    margin-top: 26px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* ---------- studio portal ---------- */
.portal {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 22px;
}

.portal-index {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.portal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.proj-row {
    display: grid;
    grid-template-columns: 48px 1fr 16px;
    gap: 14px;
    align-items: center;
    padding: 13px 12px;
    border-radius: var(--radius-s);
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    transition: background .22s var(--ease), border-color .22s var(--ease);
    text-align: left;
    width: 100%;
    font-family: inherit;
    color: inherit;
}

.proj-row:hover {
    background: rgba(255, 255, 255, .035);
}

.proj-row.active {
    background: var(--blue-soft);
    border-color: oklch(0.62 0.16 245 / 0.4);
}

.proj-row .thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    flex: none;
    border: 1px solid var(--line);
    background: var(--surface-3);
    display: grid;
    place-items: center;
}

.proj-row .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proj-row .thumb .ph-mini {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--tx-mute);
}

.proj-row .t-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--tx);
    letter-spacing: -.01em;
    line-height: 1.2;;
}

.proj-row.active .t-title {
    color: #fff;
}

.proj-row .t-sub {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--tx-dim);
    margin-top: 3px;
    margin-left: 10px
}

.soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: oklch(0.82 0.13 215);
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid oklch(0.72 0.15 230 / 0.4);
    background: oklch(0.72 0.15 230 / 0.12);
    white-space: nowrap;
}

.soon-badge .pdot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: oklch(0.82 0.16 210);
    box-shadow: 0 0 8px oklch(0.82 0.16 210);
    animation: soonPulse 2s infinite;
}

@keyframes soonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .4;
    }
}

.proj-row .chev {
    color: var(--tx-mute);
    opacity: 0;
    transform: translateX(-4px);
    transition: .22s var(--ease);
}

.proj-row:hover .chev, .proj-row.active .chev {
    opacity: 1;
    transform: none;
    color: var(--blue-bright);
}

.portal-preview {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 480px;
}

.preview-media {
    height: 320px;
    position: relative;
    border-bottom: 1px solid var(--line);
    flex: none;
}

.preview-media .frame {
    height: 100%;
    border: 0;
    border-radius: 0;
}

.preview-body {
    padding: 30px 34px 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.preview-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 8px;
}

.pv-anim {
    animation: pvIn .5s var(--ease) both;
}

@keyframes pvIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 38px 28px;
    border-left: 1px solid var(--line);
}

.stat:first-child {
    border-left: 0;
}

.stat .num {
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 800;
    letter-spacing: -.04em;
    color: #fff;
    line-height: 1;
}

.stat .num .u {
    color: var(--blue-bright);
}

.stat .lbl {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tx-dim);
    margin-top: 12px;
}

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

.svc {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 230px;
}

.svc .svc-ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .03);
    color: var(--blue-bright);
}

.svc .svc-ico svg {
    width: 22px;
    height: 22px;
}

.svc .svc-n {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.svc .svc-d {
    font-size: 14.5px;
    color: var(--tx-dim);
    line-height: 1.5;
}

.svc .svc-tag {
    margin-top: auto;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tx-mute);
}

/* ---------- project detail (projects page) ---------- */
.pdetail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.pdetail .pd-media {
    min-height: 440px;
    position: relative;
}

.pdetail .pd-media .frame {
    position: absolute;
    inset: 0;
    border: 0;
    border-radius: 0;
}

.pdetail .pd-body {
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
}

.pdetail.flip .pd-media {
    order: 2;
    border-left: 1px solid var(--line);
}

.pdetail .pd-media {
    border-right: 1px solid var(--line);
}

.pdetail.flip .pd-media {
    border-right: 0;
}

.material-swatches {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.material-swatches .sw {
    text-align: center;
}

.material-swatches .sw .ball {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface-3);
}

.material-swatches .sw .ball img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-swatches .sw .nm {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tx-mute);
    margin-top: 7px;
}

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

.value {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.value .v-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--blue-bright);
    letter-spacing: .1em;
}

.value .v-n {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: #fff;
}

.value .v-d {
    font-size: 14.5px;
    color: var(--tx-dim);
    line-height: 1.55;
}

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.step {
    padding: 30px 26px 30px 0;
    border-top: 2px solid var(--line-2);
    position: relative;
}

.step + .step {
    padding-left: 26px;
}

.step .s-num {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: .14em;
}

.step .s-n {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-top: 14px;
    letter-spacing: -.01em;
}

.step .s-d {
    font-size: 14px;
    color: var(--tx-dim);
    line-height: 1.5;
    margin-top: 8px;
}

/* ---------- CTA band ---------- */
.cta-band {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 60px;
    background: radial-gradient(700px 360px at 88% 10%, oklch(0.62 0.16 245 / 0.16), transparent 60%),
    var(--surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* ---------- contact ---------- */
.contact-hero { padding: 90px 0 80px; }
.contact-hero .display { font-size: clamp(40px, 5.6vw, 72px); margin-top: 16px; }
.contact-hero .lede { max-width: 46ch; margin-top: 24px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 34px;
}
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.contact-submit {
    justify-content: center;
    font-size: 16px;
    padding: 15px;
}
.contact-status {
    font-size: 12.5px;
    text-align: center;
    margin: 0;
    font-family: var(--mono), ui-monospace, Menlo, monospace;
    letter-spacing: .04em;
}
.recaptcha-note {
    font-size: 11px;
    text-align: center;
    margin: 0;
    opacity: .65;
}
.recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}
/* badge hidden — attribution shown in .recaptcha-note instead, per Google's terms */
.grecaptcha-badge {
    visibility: hidden;
}
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tx-dim);
}

.field input, .field textarea {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--tx);
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--line-2);
    border-radius: 11px;
    padding: 13px 15px;
    outline: none;
    transition: border-color .2s, background .2s;
    resize: vertical;
}

.field input:focus, .field textarea:focus {
    border-color: var(--blue);
    background: rgba(47, 111, 224, .06);
}

.field input::placeholder, .field textarea::placeholder {
    color: var(--tx-mute);
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.contact-line .ci {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    display: grid;
    place-items: center;
    color: var(--blue-bright);
    flex: none;
}

.contact-line .ci svg {
    width: 18px;
    height: 18px;
}

.contact-line .cl {
    display: block;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tx-dim);
}

.contact-line .cv {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--tx);
    margin-top: 2px;
}

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    margin-top: 110px;
    padding: 64px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer h4 {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--tx-mute);
    margin: 0 0 18px;
}

.footer .fcol a {
    display: block;
    font-size: 15px;
    color: var(--tx-dim);
    padding: 6px 0;
    transition: color .2s;
}

.footer .fcol a:hover {
    color: #fff;
}

.footer .f-brand .name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.footer-bottom span {
    font-size: 13px;
    color: var(--tx-mute);
    font-family: var(--mono);
    letter-spacing: .04em;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .about-hero {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

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

    .hero-mark {
        justify-content: flex-start;
        order: -1;
    }

    .hero-mark img {
        max-width: 220px;
    }
}

@media (max-width: 980px) {
    :root {
        --gut: 26px;
    }

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

    .portal-index {
        flex-direction: column;
    }

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

    .stat:nth-child(3) {
        border-left: 0;
    }

    .stat {
        border-top: 1px solid var(--line);
    }

    .stat:nth-child(-n+2) {
        border-top: 0;
    }

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

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

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

    .pdetail, .pdetail.flip {
        grid-template-columns: 1fr;
    }

    .pdetail .pd-media, .pdetail.flip .pd-media {
        order: 0;
        border: 0;
        border-bottom: 1px solid var(--line);
        min-height: 320px;
    }

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

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

    .cta-band {
        padding: 40px;
    }
}

@media (max-width: 680px) {
    .nav-links, .nav-cta .btn {
        display: none;
    }

    .nav-burger {
        display: inline-grid;
    }

    .stats, .services, .footer-grid, .process {
        grid-template-columns: 1fr;
    }

    .stat {
        border-left: 0;
    }

    .hero {
        padding: 64px 0 40px;
    }

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

    /* contact page */
    .contact-hero        { padding: 56px 0 40px; }
    .contact-hero .display { font-size: clamp(32px, 9vw, 44px); }
    .contact-hero .lede  { margin-top: 18px; }
    .contact-row         { grid-template-columns: 1fr; gap: 14px; }
    .contact-form        { padding: 22px; gap: 14px; }
    .contact-form .field input,
    .contact-form .field textarea { font-size: 16px; padding: 12px 14px; } /* 16px prevents iOS focus zoom */
    .contact-form .field label    { font-size: 11px; }
    .contact-submit      { padding: 14px; font-size: 15.5px; }
    .contact-line        { padding: 14px 0; gap: 12px; }
    .contact-line .ci    { width: 36px; height: 36px; }
    .contact-line .cv    { font-size: 15px; }

    /* platform / language pills */
    .pill-row { gap: 6px; margin: 10px 0 4px; }
    .pill-groups { gap: 10px; margin: 16px 0 14px; }
    .pill-group { gap: 6px; }
    .pill-group-label { font-size: 10px; letter-spacing: .12em; min-width: 0; width: 100%; padding-right: 0; color: var(--tx-dim); }
    .pill {
        padding: 5px 10px;
        font-size: 11px;
        letter-spacing: .08em;
    }
}

/* ---------- mobile menu ---------- */
.nav-burger {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .03);
    color: var(--tx);
    cursor: pointer;
    place-items: center;
}

.nav-burger svg {
    width: 20px;
    height: 20px;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(8, 9, 11, .97);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    padding: 26px;
    transform: translateY(-100%);
    transition: transform .4s var(--ease);
    visibility: hidden;
}

.mobile-menu.open {
    transform: none;
    visibility: visible;
}

.mobile-menu .mm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 50px;
}

.mobile-menu nav a {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--tx-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.mobile-menu nav a:active {
    color: #fff;
}

.mobile-menu .mm-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
