/* ==========================================================================
   DA ALI COMPANY LIMITED — Design System
   --------------------------------------------------------------------------
   1.  Tokens
   2.  Base & typography
   3.  Layout helpers
   4.  Buttons, badges, icons
   5.  Header & navigation
   6.  Mobile menu
   7.  Hero (home)
   8.  Stats
   9.  Sections & headings
   10. Cards: services, bento, features
   11. Split / about visual
   12. Process timeline
   13. Portfolio
   14. CTA
   15. Testimonials
   16. Accordion
   17. Page hero (inner pages)
   18. Service pages
   19. About page
   20. Services overview page
   21. Contact page & form
   22. Modals
   23. FAQ page & legal pages
   24. Footer
   25. Animations & reveal
   26. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg: #09090b;
    --bg-alt: #0d0d10;
    --surface: #131317;
    --surface-2: #18181d;
    --surface-3: #1f1f25;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --text: #f4f4f5;
    --text-soft: #d4d4d8;
    --muted: #a1a1aa;
    --dim: #71717a;

    --accent: #c6f432;
    --accent-hover: #d4ff4a;
    --accent-ink: #0a0a0a;
    --accent-soft: rgba(198, 244, 50, 0.1);
    --accent-line: rgba(198, 244, 50, 0.35);
    --danger: #f87171;

    --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.8);

    --container: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --section-y: clamp(80px, 10vw, 136px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* 2. Base & typography ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
@supports (overflow: clip) {
    body { overflow-x: clip; }
}

body.no-scroll { overflow: hidden; }

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

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text);
    text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

em { font-style: normal; }

h1 em, h2 em, .hero-title em {
    color: var(--accent);
}

/* 3. Layout helpers ------------------------------------------------------- */
.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: 12px; left: 12px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    transform: translateY(-160%);
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

/* 4. Buttons, badges, icons ------------------------------------------------ */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.btn {
    --btn-h: 50px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--btn-h);
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
    transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:hover .icon-arrow-up { transform: translate(2px, -2px); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 0 0 0 rgba(198, 244, 50, 0);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -10px rgba(198, 244, 50, 0.55);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn-lg { --btn-h: 56px; padding: 0 30px; font-size: 1rem; }
.btn-block { width: 100%; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.badge .icon { width: 16px; height: 16px; color: var(--accent); }

.badge-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}
.badge-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2.4s var(--ease) infinite;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
}

.icon-box {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    color: var(--accent);
    flex-shrink: 0;
    transition: background-color .35s, color .35s, border-color .35s, transform .45s var(--ease);
}
.icon-box .icon { width: 24px; height: 24px; }
.icon-box--accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.icon-box--lg { width: 60px; height: 60px; border-radius: 16px; }
.icon-box--lg .icon { width: 28px; height: 28px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}
.text-link .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .35s var(--ease); }

.sample-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(255, 255, 255, 0.22);
    color: var(--dim);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sample-tag--media {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(9, 9, 11, 0.65);
    color: var(--text-soft);
    backdrop-filter: blur(8px);
}

.stretched-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}

/* Cursor spotlight effect (position set in JS) */
.spotlight { position: relative; isolation: isolate; }
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 244, 50, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* 5. Header & navigation ------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    border-bottom: 1px solid transparent;
    transition: background-color .35s, border-color .35s, height .35s var(--ease), backdrop-filter .35s;
}
.site-header.is-scrolled {
    --header-h: 68px;
    background: rgba(9, 9, 11, 0.72);
    border-bottom-color: var(--border);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}
body.menu-open .site-header {
    background: var(--bg);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 8px;
}
.logo-img {
    display: block;
    width: auto;
    height: 44px;
    transition: height .35s var(--ease), opacity .25s;
}
.site-header.is-scrolled .logo-img { height: 38px; }
.logo:hover .logo-img { opacity: 0.88; }
.footer-brand .logo-img { height: 52px; }

.primary-nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}

.nav-item { position: relative; }
.nav-item.has-dropdown { display: flex; align-items: center; }

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color .25s, background-color .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.has-dropdown .nav-link { padding-right: 6px; }
.has-dropdown .nav-link.is-active { padding-right: 16px; margin-right: 2px; }

.dropdown-toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 50%;
    color: var(--muted);
    transition: color .25s, transform .35s var(--ease), background-color .25s;
}
.dropdown-toggle .icon { width: 15px; height: 15px; }
.dropdown-toggle:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    width: 580px;
    padding: 10px;
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    background: rgba(17, 17, 21, 0.97);
    box-shadow: var(--shadow-lg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.dropdown::before {
    /* invisible bridge so the menu doesn't close while moving the pointer */
    content: "";
    position: absolute;
    inset: -18px 0 auto;
    height: 18px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
}
.has-dropdown:hover .dropdown-toggle,
.has-dropdown.is-open .dropdown-toggle { transform: rotate(180deg); color: var(--text); }
.has-dropdown.is-closed .dropdown { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }

.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

.dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    transition: background-color .25s;
}
.dropdown-link:hover, .dropdown-link.is-active { background: rgba(255, 255, 255, 0.05); }
.dropdown-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    color: var(--accent);
    flex-shrink: 0;
    transition: background-color .25s, color .25s;
}
.dropdown-icon .icon { width: 19px; height: 19px; }
.dropdown-link:hover .dropdown-icon { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.dropdown-title { display: block; color: var(--text); font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.dropdown-text { display: block; margin-top: 3px; color: var(--dim); font-size: 0.8rem; line-height: 1.4; }

.dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color .25s, background-color .25s;
}
.dropdown-footer .icon { width: 17px; height: 17px; color: var(--accent); transition: transform .35s var(--ease); }
.dropdown-footer:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.dropdown-footer:hover .icon { transform: translateX(4px); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.menu-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
}
.menu-toggle-bar {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 1.75px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-toggle-bar:first-child { top: 18px; transform: translateX(-50%); }
.menu-toggle-bar:last-child { top: 25px; transform: translateX(-50%); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { top: 21.5px; transform: translateX(-50%) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { top: 21.5px; transform: translateX(-50%) rotate(-45deg); }

/* 6. Mobile menu -------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding-top: var(--header-h);
    background:
        radial-gradient(600px 400px at 100% 0%, rgba(198, 244, 50, 0.08), transparent 60%),
        var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility 0s .4s;
}
.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .4s var(--ease), visibility 0s;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100% - 1px);
    padding-block: 24px 32px;
}

.mobile-item {
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.mobile-menu.is-open .mobile-item {
    opacity: 1;
    transform: none;
    transition-delay: calc(var(--i) * 55ms + 80ms);
}

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

.mobile-link {
    display: block;
    padding: 16px 0;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-soft);
    transition: color .25s;
}
.mobile-link:hover, .mobile-link.is-active { color: var(--text); }
.mobile-link.is-active::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 12px;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
}

.mobile-sub-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    color: var(--text);
    transition: transform .4s var(--ease), background-color .25s;
}
.mobile-sub-toggle[aria-expanded="true"] { transform: rotate(45deg); background: rgba(255,255,255,0.06); }

.mobile-sub {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .45s var(--ease), visibility 0s .45s;
}
.mobile-sub.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .45s var(--ease), visibility 0s;
}
.mobile-sub > ul { overflow: hidden; }
.mobile-sub a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--muted);
    font-size: 1rem;
    transition: color .25s;
}
.mobile-sub li:last-child a { padding-bottom: 18px; }
.mobile-sub a .icon { width: 18px; height: 18px; color: var(--accent); }
.mobile-sub a:hover, .mobile-sub a.is-active { color: var(--text); }

.mobile-footer { display: grid; gap: 16px; margin-top: 32px; }
.mobile-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
}
.mobile-contact .icon { width: 18px; height: 18px; }

/* 7. Hero (home) ---------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
    overflow: hidden;
}
@supports (overflow: clip) { .hero { overflow: clip; } }

.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg .bg-grid {
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 70%);
}
.hero .glow--a {
    width: 560px; height: 560px;
    top: -180px; right: -120px;
    background: rgba(198, 244, 50, 0.16);
    animation: drift 18s ease-in-out infinite alternate;
}
.hero .glow--b {
    width: 480px; height: 480px;
    bottom: 0; left: -200px;
    background: rgba(94, 234, 212, 0.08);
    animation: drift 22s ease-in-out infinite alternate-reverse;
}
.hero .glow--c {
    width: 360px; height: 360px;
    top: 38%; left: 45%;
    background: rgba(198, 244, 50, 0.06);
    animation: drift 26s ease-in-out infinite alternate;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(64px, 8vw, 112px);
}

.hero-content .badge { margin-bottom: 28px; }

.hero-title {
    font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.6rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.022em;
    word-spacing: 0.04em;
}
.hero-title em {
    position: relative;
    display: inline;
    background: linear-gradient(95deg, var(--accent) 10%, #eaffa6 55%, var(--accent) 90%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

.hero-lead {
    max-width: 560px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.18rem);
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 32px;
    color: var(--muted);
    font-size: 0.9rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon {
    width: 18px; height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    stroke-width: 2.5;
}

/* --- Hero visual / browser mockup --- */
.hero-visual {
    position: relative;
    padding: 24px 12px 44px 28px;
}

.mock-window {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, #17171c, #111115);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.02), 0 0 80px -20px rgba(198, 244, 50, 0.15);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
    transition: transform .8s var(--ease);
}
.hero-visual:hover .mock-window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.mock-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
.mock-dots { display: inline-flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3f3f46; }
.mock-dots i:first-child { background: #ff5f57; }
.mock-dots i:nth-child(2) { background: #febc2e; }
.mock-dots i:nth-child(3) { background: #28c840; }
.mock-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 260px;
    margin-inline: auto;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--dim);
    font-size: 0.72rem;
    justify-content: center;
}
.mock-url .icon { width: 11px; height: 11px; }

.mock-screen { padding: 18px 20px 22px; }

.mock-nav { display: flex; align-items: center; gap: 12px; }
.mock-logo { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); }
.mock-links { display: flex; gap: 10px; margin-left: auto; }
.mock-links i { width: 34px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.mock-btn { width: 64px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.9); }

.mock-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
    align-items: center;
    margin-top: 26px;
}
.mock-copy { display: grid; gap: 9px; }
.mock-copy > span { display: block; border-radius: 6px; }
.mock-tag { width: 40%; height: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.mock-h { width: 95%; height: 16px; background: rgba(255, 255, 255, 0.85); }
.mock-h--short { width: 62%; background: var(--accent); }
.mock-line { width: 90%; height: 6px; background: rgba(255, 255, 255, 0.14); margin-top: 4px; }
.mock-line--short { width: 70%; margin-top: 0; }
.mock-ctas { display: flex !important; gap: 8px; margin-top: 8px; }
.mock-ctas i { width: 70px; height: 22px; border-radius: 999px; background: var(--accent); }
.mock-ctas i + i { background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); }

.mock-art {
    position: relative;
    aspect-ratio: 1;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 30%, rgba(198, 244, 50, 0.35), transparent 55%),
        radial-gradient(circle at 75% 75%, rgba(94, 234, 212, 0.25), transparent 55%),
        #1c1c22;
    overflow: hidden;
}
.mock-orb {
    position: absolute;
    width: 46%; height: 46%;
    left: 27%; top: 27%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #efffb8, var(--accent) 45%, #6b8a12);
    box-shadow: 0 20px 40px -10px rgba(198, 244, 50, 0.6);
    animation: float 7s ease-in-out infinite;
}
.mock-ring {
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    animation: spin 30s linear infinite;
}

.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.mock-card {
    display: grid;
    gap: 7px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
}
.mock-card i { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.mock-card span { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.mock-card span:last-child { width: 65%; background: rgba(255, 255, 255, 0.09); }

.float-card {
    position: absolute;
    z-index: 2;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(22, 22, 27, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.8);
}

.float-code {
    left: -8px;
    bottom: 0;
    width: 230px;
    overflow: hidden;
    animation: float 8s ease-in-out infinite;
}
.float-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--dim);
    font-size: 0.7rem;
    font-family: var(--font-mono);
}
.float-head .mock-dots i { width: 7px; height: 7px; }
.float-code pre {
    margin: 0;
    padding: 12px 14px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--text-soft);
    white-space: pre;
    overflow: hidden;
}
.c-k { color: #c084fc; }
.c-f { color: var(--accent); }
.c-s { color: #5eead4; }
.c-b { color: #fb923c; }

.float-score {
    top: 0;
    right: -4px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px 12px 12px;
    animation: float 9s ease-in-out -3s infinite;
}
.score-ring { width: 48px; height: 48px; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 5; }
.score-track { stroke: rgba(255, 255, 255, 0.08); }
.score-bar {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 169.6;
    stroke-dashoffset: 169.6;
    animation: ring 1.8s var(--ease) .8s forwards;
}
.float-score strong { display: block; font-family: var(--font-display); font-size: 1.35rem; line-height: 1; }
.float-score span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.72rem; }

.float-palette {
    right: 8%;
    bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    animation: float 10s ease-in-out -5s infinite;
}
.palette-type {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-3);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.palette-label { display: block; color: var(--muted); font-size: 0.7rem; margin-bottom: 6px; }
.palette-swatches { display: flex; gap: 5px; }
.palette-swatches i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); }
.palette-swatches i:nth-child(1) { background: var(--accent); }
.palette-swatches i:nth-child(2) { background: #f4f4f5; }
.palette-swatches i:nth-child(3) { background: #5eead4; }
.palette-swatches i:nth-child(4) { background: #27272a; }

/* --- Technology marquee --- */
.marquee {
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 22px 20px;
    color: var(--dim);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.marquee-list li::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
    margin-left: 20px;
}

/* 8. Stats ------------------------------------------------------------- */
.stats-section {
    padding-block: clamp(64px, 8vw, 104px);
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(40px, 5vw, 64px);
}
.stats-intro { max-width: 720px; }
.stats-lead { margin-top: 16px; color: var(--muted); font-size: 1.02rem; }
.stats-title {
    font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem);
    letter-spacing: -0.02em;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
}
.stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 0 8px 28px;
    border-left: 1px solid var(--border-strong);
}
.stat-label { color: var(--text-soft); font-size: 0.95rem; line-height: 1.5; }
.stat-source {
    display: block;
    margin-top: 10px;
    color: var(--dim);
    font-size: 0.76rem;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.18);
    text-underline-offset: 3px;
    transition: color .2s;
}
.stat-source:hover { color: var(--accent); }
.stat-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--accent); }

/* 9. Sections & headings ------------------------------------------------ */
.section { position: relative; padding-block: var(--section-y); }
.section--alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section--tight-top { padding-top: clamp(24px, 4vw, 48px); }
.section + .section--alt, .section--alt + .section { border-top-color: var(--border); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-inline: auto; }

.section-title {
    font-size: clamp(2rem, 1.25rem + 2.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.section-lead {
    max-width: 620px;
    margin-top: 20px;
    color: var(--muted);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
    line-height: 1.7;
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(44px, 6vw, 72px);
}
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row > .btn { flex-shrink: 0; }

/* 10. Cards --------------------------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card, .feature-card, .bento-card, .overview-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface), rgba(19, 19, 23, 0.6));
    transition: transform .5s var(--ease), border-color .4s, background-color .4s, box-shadow .5s var(--ease);
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 300px;
    padding: 32px;
}
.service-card:hover, .feature-card:hover, .bento-card:hover, .overview-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.service-card:hover .icon-box, .feature-card:hover .icon-box, .bento-card:hover .icon-box, .overview-card:hover .icon-box {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
    transform: rotate(-6deg);
}
.service-card .icon-box { margin-bottom: 20px; }
.service-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.service-card:hover .text-link .icon { transform: translateX(4px); }

.service-num {
    position: absolute;
    top: 28px;
    right: 30px;
    color: var(--dim);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.service-title { font-size: 1.35rem; letter-spacing: -0.02em; }
.service-title a:hover { color: var(--text); }

/* Bento grid (Why us) */
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.bento-card {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-height: 220px;
    padding: 28px;
    overflow: hidden;
}
.bento-card--wide { grid-column: span 2; }
.bento-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.bento-card p { color: var(--muted); font-size: 0.94rem; max-width: 380px; }
.bento-body { margin-top: auto; }
.bento-deco {
    position: absolute;
    right: -20px;
    bottom: -30px;
    color: var(--accent);
    opacity: 0.05;
    pointer-events: none;
    transition: opacity .5s, transform .8s var(--ease);
}
.bento-deco .icon { width: 190px; height: 190px; stroke-width: 1; }
.bento-card:hover .bento-deco { opacity: 0.1; transform: rotate(-8deg) scale(1.05); }

/* Feature grid (service pages, values) */
.feature-grid { display: grid; gap: 20px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid.cols-4 > :last-child:nth-child(4n + 3) { grid-column: span 2; }
.feature-card { padding: 28px; }
.feature-card .icon-box { margin-bottom: 24px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card p { color: var(--muted); font-size: 0.94rem; }

/* 11. Split / about visual ------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}
.split--top { align-items: start; }
.split-text p:not(.section-lead) { color: var(--muted); }
.split-text .section-lead + p { margin-top: 20px; }
.split-text > .btn { margin-top: 36px; }

.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }

.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}
.pillars li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color .3s, background-color .3s;
}
.pillars li:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.pillars .icon { width: 18px; height: 18px; color: var(--accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.88rem;
}
.pill-list .icon { width: 16px; height: 16px; color: var(--accent); stroke-width: 2.5; }

.about-visual {
    position: relative;
    aspect-ratio: 1 / 0.92;
    max-width: 580px;
    width: 100%;
}
.av-card {
    position: absolute;
    display: grid;
    gap: 12px;
    align-content: start;
    width: 74%;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.av-wire {
    top: 0; left: 0;
    height: 74%;
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
}
.av-design {
    right: 0; bottom: 0;
    height: 74%;
    background: linear-gradient(160deg, #1b1b21, #121216);
    animation: float 9s ease-in-out infinite;
}
.av-label {
    justify-self: start;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.av-label--accent { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.av-block { display: block; border-radius: 10px; border: 1px dashed rgba(255, 255, 255, 0.18); }
.av-block--nav { height: 22px; }
.av-block--hero { height: 38%; min-height: 70px; }
.av-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.av-row .av-block { height: 54px; }
.av-d-nav { display: flex; gap: 8px; align-items: center; }
.av-d-nav i { height: 7px; width: 30px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.av-d-nav i:first-child { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); margin-right: auto; }
.av-d-hero {
    display: grid;
    gap: 9px;
    padding: 20px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 90% 20%, rgba(198, 244, 50, 0.3), transparent 50%),
        rgba(255, 255, 255, 0.03);
}
.av-d-title { height: 13px; width: 85%; border-radius: 5px; background: rgba(255, 255, 255, 0.85); }
.av-d-title--short { width: 55%; background: var(--accent); }
.av-d-btn { margin-top: 6px; height: 22px; width: 84px; border-radius: 999px; background: var(--accent); }
.av-d-card { height: 58px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }

.av-chip {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(22, 22, 27, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}
.av-chip .icon { width: 18px; height: 18px; color: var(--accent); }
.av-chip--1 { top: 40%; left: -4%; animation: float 8s ease-in-out -2s infinite; }
.av-chip--2 { top: 8%; right: 4%; animation: float 10s ease-in-out -4s infinite; }

/* 12. Process timeline --------------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.process-step { display: grid; gap: 26px; align-content: start; }
.process-marker { position: relative; display: flex; align-items: center; gap: 16px; }
.process-marker::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-line), var(--border) 60%, transparent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--d, 0s) + .3s);
}
.process-step:last-child .process-marker::after {
    background: linear-gradient(90deg, var(--border), transparent);
}
.process.is-visible .process-marker::after { transform: scaleX(1); }
html:not(.js) .process-marker::after { transform: scaleX(1); }

.process-num {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--accent-line);
    background: radial-gradient(circle at 50% 0%, rgba(198, 244, 50, 0.18), var(--surface) 70%);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 0 0 6px var(--bg), 0 0 30px -8px rgba(198, 244, 50, 0.4);
}
.section--alt .process-num { box-shadow: 0 0 0 6px var(--bg-alt), 0 0 30px -8px rgba(198, 244, 50, 0.4); }

.process-body {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    height: 100%;
    transition: border-color .4s, transform .5s var(--ease);
}
.process-step:hover .process-body { border-color: var(--border-strong); transform: translateY(-3px); }
.process-icon { display: inline-flex; margin-bottom: 18px; color: var(--accent); }
.process-icon .icon { width: 26px; height: 26px; }
.process-body h3 { font-size: 1.25rem; margin-bottom: 10px; }
.process-body p { color: var(--muted); font-size: 0.95rem; }

/* Stagger children when the process list is revealed */
html.js .process[data-reveal] { opacity: 1; transform: none; }
html.js .process[data-reveal] .process-step {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
html.js .process.is-visible .process-step { opacity: 1; transform: none; }

/* 13. Portfolio ---------------------------------------------------------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 11px 20px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.025);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color .25s, background-color .25s, border-color .25s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.28); }
.filter-btn.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

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

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .4s, transform .6s var(--ease), box-shadow .6s var(--ease);
}
.project-card:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card.is-hidden { display: none; }
.project-card.is-filtered-in { animation: fadeUp .6s var(--ease) both; }

/* Image keeps its original aspect ratio (from the file's real dimensions) */
.project-media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: var(--ratio, 16 / 9);
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--surface-2);
    cursor: pointer;
    isolation: isolate;
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ratio already matches, so nothing is cropped or distorted */
    transition: transform 1.1s var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.05); }

.project-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(9, 9, 11, 0) 30%, rgba(9, 9, 11, 0.88) 100%);
    color: var(--text);
    text-align: left;
    opacity: 0;
    transition: opacity .45s var(--ease);
}
.project-overlay-type {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform .5s var(--ease);
}
.project-overlay-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transform: translateY(14px);
    transition: transform .55s var(--ease);
}
.project-overlay-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}
.project-overlay-icon .icon { width: 18px; height: 18px; }
.project-card:hover .project-overlay,
.project-media:focus-visible .project-overlay { opacity: 1; }
.project-card:hover .project-overlay-type,
.project-card:hover .project-overlay-cta { transform: none; }

.project-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 24px 26px 26px; }
.project-body p { color: var(--muted); font-size: 0.94rem; flex: 1; margin: 0; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-cat {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.project-num { color: var(--dim); font-family: var(--font-mono); font-size: 0.8rem; }
.project-title { font-size: 1.45rem; letter-spacing: -0.025em; }

.project-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color .25s, border-color .25s, color .25s;
}
.project-link .icon { width: 16px; height: 16px; color: var(--accent); transition: transform .35s var(--ease), color .25s; }
.project-link:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.project-link:hover .icon { color: var(--accent-ink); transform: translateX(3px); }

.portfolio-empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Project modal */
.modal .modal-dialog--project { width: min(100%, 980px); padding: 0; overflow: hidden auto; }
.modal-dialog--project .modal-media {
    aspect-ratio: 1376 / 768;
    background: var(--surface-2);
}
.modal-dialog--project .modal-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-dialog--project .modal-content { gap: 14px; }
.modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.modal-grid p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.modal-grid .modal-list { margin-top: 16px; }
.modal-subtitle { margin-bottom: 12px; font-family: var(--font-body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.modal-features[hidden], .modal-note[hidden] { display: none; }

/* 14. CTA ---------------------------------------------------------------- */
.cta-section { padding-block: clamp(40px, 6vw, 80px); }
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 110px) clamp(22px, 6vw, 80px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, #141418, #0e0e11);
    text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg .bg-grid {
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%);
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.cta-orb--a {
    width: 520px; height: 320px;
    left: 50%; bottom: -220px;
    transform: translateX(-50%);
    background: rgba(198, 244, 50, 0.35);
    animation: breathe 8s ease-in-out infinite;
}
.cta-orb--b {
    width: 300px; height: 300px;
    right: -120px; top: -140px;
    background: rgba(94, 234, 212, 0.12);
}
.cta-panel .eyebrow { justify-content: center; }
.cta-title {
    max-width: 880px;
    margin-inline: auto;
    font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.022em;
}
.cta-text {
    max-width: 620px;
    margin: 24px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }

/* 15. Testimonials ------------------------------------------------------ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.testimonial {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 0;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .4s, transform .5s var(--ease);
}
.testimonial:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.testimonial-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stars { display: flex; gap: 3px; }
.stars span { color: var(--surface-3); }
.stars span.is-on { color: var(--accent); }
.stars .icon { width: 17px; height: 17px; }
.testimonial blockquote { margin: 0; flex: 1; }
.testimonial blockquote p { color: var(--text-soft); font-size: 1.02rem; line-height: 1.7; }
.testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5eead4);
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-weight: 700;
    flex-shrink: 0;
}
.testimonial-author strong { display: block; font-weight: 600; }
.testimonial-author span { display: block; color: var(--dim); font-size: 0.86rem; }

/* 16. Accordion ---------------------------------------------------------- */
.accordion { display: grid; gap: 12px; }
.accordion-item {
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, background-color .3s;
}
.accordion-item:hover { border-color: var(--border-strong); }
.accordion-item.is-open { border-color: var(--accent-line); background: var(--surface-2); }
.accordion-heading { font-size: inherit; font-family: var(--font-body); letter-spacing: 0; }
.accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 22px 24px;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: var(--text);
    border-radius: 18px;
}
.accordion-icon {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.accordion-icon::before, .accordion-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform .45s var(--ease);
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion-item.is-open .accordion-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(180deg); }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .45s var(--ease), visibility 0s .45s;
}
.accordion-item.is-open .accordion-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .45s var(--ease), visibility 0s;
}
.accordion-panel-inner { overflow: hidden; }
.accordion-panel-inner p { padding: 0 24px 24px; margin: 0; color: var(--muted); max-width: 680px; }
html:not(.js) .accordion-panel { grid-template-rows: 1fr; visibility: visible; }

/* 17. Page hero (inner pages) ------------------------------------------ */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px));
    padding-bottom: clamp(56px, 8vw, 100px);
    overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: -1; }
.page-hero .glow--a {
    width: 520px; height: 520px;
    top: -260px; right: 5%;
    background: rgba(198, 244, 50, 0.13);
    animation: drift 20s ease-in-out infinite alternate;
}
.page-hero .glow--b {
    width: 420px; height: 420px;
    top: 10%; left: -240px;
    background: rgba(94, 234, 212, 0.07);
}
.page-hero-inner { position: relative; }
.page-hero .badge { margin-bottom: 26px; }
.page-title {
    max-width: 980px;
    font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.022em;
    word-spacing: 0.04em;
}
.page-lead {
    max-width: 640px;
    margin-top: 24px;
    color: var(--muted);
    font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem);
}
.page-hero .hero-actions { margin-top: 36px; }

.page-hero--center { text-align: center; }
.page-hero--center .page-title, .page-hero--center .page-lead { margin-inline: auto; }
.page-hero--center .hero-actions { justify-content: center; }

.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.breadcrumbs li + li::before { content: "/"; color: var(--surface-3); }
.breadcrumbs a { color: var(--muted); transition: color .2s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs [aria-current] { color: var(--text-soft); }

.error-hero { min-height: 80vh; display: grid; align-items: center; }
.error-code {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: clamp(6rem, 20vw, 13rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, var(--text), rgba(244, 244, 245, 0.08));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 18. Service pages --------------------------------------------------- */
.included-card {
    display: grid;
    gap: 24px;
    padding: clamp(24px, 3vw, 36px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(500px 240px at 100% 0%, rgba(198, 244, 50, 0.08), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
}
.included-head { display: flex; align-items: center; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.included-head h3 { font-size: 1.3rem; }
.included-head p { color: var(--dim); font-size: 0.88rem; margin: 2px 0 0; }

.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-soft); }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.check-list--compact { gap: 10px; }
.check-list--compact li { font-size: 0.93rem; color: var(--muted); }
.check-list--compact .icon { width: 17px; height: 17px; margin-top: 3px; stroke-width: 2.25; }

/* 19. About page ----------------------------------------------------- */
.studio-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 28px;
    align-content: space-between;
    min-height: 440px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(420px 320px at 100% 100%, rgba(198, 244, 50, 0.16), transparent 60%),
        linear-gradient(180deg, #16161b, #101013);
}
.studio-card-bg { position: absolute; inset: 0; z-index: -1; }
.studio-card-bg .bg-grid {
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 100% 100%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 80% 80% at 100% 100%, #000 10%, transparent 70%);
}
.studio-mark { width: 84px; height: 84px; object-fit: contain; }
.studio-quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}
.studio-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.studio-tags li {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--muted);
    font-size: 0.82rem;
    background: rgba(9, 9, 11, 0.4);
}

.service-list { border-top: 1px solid var(--border); }
.service-list li { border-bottom: 1px solid var(--border); }
.service-row {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) minmax(0, 1.6fr) auto;
    align-items: center;
    gap: 28px;
    padding: 26px 8px;
    transition: background-color .3s, padding .4s var(--ease);
}
.service-row:hover { background: rgba(255, 255, 255, 0.02); padding-inline: 20px; }
.service-row .icon-box { width: 48px; height: 48px; }
.service-row-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.service-row-text { color: var(--muted); font-size: 0.95rem; }
.service-row-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    transition: background-color .3s, color .3s, transform .4s var(--ease);
}
.service-row-arrow .icon { width: 18px; height: 18px; }
.service-row:hover .service-row-arrow { background: var(--accent); color: var(--accent-ink); border-color: transparent; transform: rotate(45deg); }
.service-row:hover .icon-box { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.approach-card {
    padding: clamp(24px, 3vw, 36px);
    background: var(--surface);
    transition: background-color .4s;
}
.approach-card + .approach-card { border-left: 1px solid var(--border); }
.approach-card:hover { background: var(--surface-2); }
.approach-num {
    display: block;
    margin-bottom: 48px;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}
.approach-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.approach-card p { color: var(--muted); font-size: 0.94rem; }

.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reason-grid li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 500;
    line-height: 1.45;
    transition: border-color .3s;
}
.reason-grid li:hover { border-color: var(--accent-line); }
.reason-grid .icon { width: 22px; height: 22px; color: var(--accent); }

/* 20. Services overview page ------------------------------------------ */
.service-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.overview-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3.5vw, 40px); scroll-margin-top: calc(var(--header-h) + 24px); }
.overview-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.overview-head .service-num { position: static; }
.overview-title { font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.9rem); letter-spacing: -0.025em; }
.overview-card > p { color: var(--muted); }
.overview-card .check-list { margin: 8px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); flex: 1; align-content: start; }
.overview-card .btn { align-self: flex-start; }

/* 21. Contact page & form -------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.contact-info-title { font-size: 1.6rem; margin-bottom: 10px; }
.contact-info > p { color: var(--muted); }

.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .3s, transform .4s var(--ease);
}
a.contact-card:hover { border-color: var(--accent-line); transform: translateX(4px); }
.contact-card .icon-box { width: 46px; height: 46px; border-radius: 12px; }
.contact-card .icon-box .icon { width: 20px; height: 20px; }
.contact-label { display: block; color: var(--dim); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-value { display: block; color: var(--text); font-weight: 500; word-break: break-word; }
.contact-sub { display: block; color: var(--muted); font-size: 0.86rem; }

.next-steps {
    margin: 28px 0;
    padding: 26px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(198, 244, 50, 0.05), transparent 70%), var(--bg-alt);
}
.next-steps h3 { font-size: 1.1rem; margin-bottom: 20px; }
.next-steps ol { display: grid; gap: 18px; }
.next-steps li { display: flex; gap: 14px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.next-steps strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.next-num {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.form-card {
    padding: clamp(24px, 4vw, 48px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(198, 244, 50, 0.06), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-lg);
}
.form-card-head { margin-bottom: 28px; }
.form-card-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.form-card-head p { margin-top: 8px; color: var(--dim); font-size: 0.9rem; }
.req { color: var(--accent); }

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
    color: #fecaca;
    font-size: 0.92rem;
}
.form-alert[hidden] { display: none; }
.form-alert .icon { width: 20px; height: 20px; color: var(--danger); margin-top: 1px; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text-soft); }

.field input, .field select, .field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(9, 9, 11, 0.6);
    color: var(--text);
    font-size: 1rem; /* ≥16px prevents iOS zoom */
    transition: border-color .25s, box-shadow .25s, background-color .25s;
    -webkit-appearance: none;
    appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #52525b; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(9, 9, 11, 0.9);
    box-shadow: 0 0 0 4px rgba(198, 244, 50, 0.12);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15); border-color: var(--danger); }
.field-error { min-height: 0; color: var(--danger); font-size: 0.82rem; line-height: 1.4; }
.field-error:empty { display: none; }

.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; cursor: pointer; }
.select-wrap select:invalid { color: #71717a; }
.select-wrap option { background: var(--surface); color: var(--text); }
.select-wrap .icon {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.form-privacy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--dim); font-size: 0.85rem; }
.form-privacy .icon { width: 16px; height: 16px; }
.form-privacy a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(10, 10, 10, 0.25);
    border-top-color: var(--accent-ink);
    animation: spin .7s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: 0.9; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }

/* 22. Modals ---------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
}
.modal.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.75);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.modal-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(16px) scale(0.97);
    transition: transform .45s var(--ease);
}
.modal.is-open .modal-dialog { transform: none; }

.modal-dialog--wide { width: min(100%, 980px); display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden auto; }
.modal-media { background: var(--surface-2); min-height: 100%; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.modal-content { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 40px); }
.modal-content .project-cat { align-self: flex-start; }
.modal-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; padding-right: 32px; }
.modal-content > p { color: var(--muted); margin: 0; }
.modal-list { margin: 0; padding: 16px 0; border-block: 1px solid var(--border); }
.modal-list dt { color: var(--dim); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-list dd { margin: 4px 0 0; color: var(--text-soft); }
.modal-note {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed var(--border-strong);
    color: var(--dim);
    font-size: 0.84rem;
    line-height: 1.5;
}
.modal-note .icon { width: 18px; height: 18px; margin-top: 1px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 8px; }
.modal-actions--center { justify-content: center; }
.modal-actions [hidden] { display: none; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(19, 19, 23, 0.85);
    color: var(--text);
    transition: background-color .25s, transform .35s var(--ease);
}
.modal-close:hover { background: var(--surface-3); transform: rotate(90deg); }
.modal-close .icon { width: 18px; height: 18px; }

.modal-dialog--success {
    padding: clamp(36px, 6vw, 56px) clamp(24px, 5vw, 48px);
    text-align: center;
    background:
        radial-gradient(400px 220px at 50% 0%, rgba(198, 244, 50, 0.14), transparent 70%),
        var(--surface);
}
.modal-dialog--success p { color: var(--muted); max-width: 380px; margin: 14px auto 0; }
.modal-dialog--success .modal-actions { margin-top: 32px; }
.success-icon {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    box-shadow: 0 0 0 10px rgba(198, 244, 50, 0.05), 0 0 60px -10px rgba(198, 244, 50, 0.5);
}
.success-icon svg { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; }
.modal.is-open .success-icon circle { animation: draw .7s var(--ease) .15s forwards; }
.modal.is-open .success-icon path { animation: draw .45s var(--ease) .7s forwards; }
.success-title {
    font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

/* 23. FAQ page & legal pages ------------------------------------------ */
.faq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-nav-title { display: block; margin-bottom: 14px; color: var(--dim); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.faq-nav ul { display: grid; gap: 4px; }
.faq-nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color .2s, background-color .2s;
}
.faq-nav a:hover, .faq-nav a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.faq-groups { display: grid; gap: 56px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group-title { font-size: 1.5rem; margin-bottom: 20px; letter-spacing: -0.025em; }

.prose {
    max-width: 780px;
    color: var(--text-soft);
    font-size: 1.02rem;
}
.prose-meta { color: var(--dim); font-size: 0.9rem; margin-bottom: 40px !important; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.prose h2 { font-size: 1.4rem; margin: 44px 0 14px; letter-spacing: -0.02em; }
.prose p { color: var(--muted); }
.prose ul { display: grid; gap: 10px; margin: 0 0 1rem; }
.prose li { position: relative; padding-left: 22px; color: var(--muted); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--text-soft); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* 24. Footer ---------------------------------------------------------- */
.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(64px, 8vw, 104px);
    border-top: 1px solid var(--border);
    background: #070709;
}
.footer-glow {
    position: absolute;
    width: 700px;
    height: 300px;
    left: 50%;
    top: -200px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(198, 244, 50, 0.07);
    filter: blur(100px);
    pointer-events: none;
}
.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 4vw, 56px);
    padding-bottom: clamp(48px, 6vw, 72px);
}
.footer-brand p { max-width: 340px; margin-top: 20px; color: var(--muted); font-size: 0.95rem; }
.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--accent-line);
    color: var(--accent);
    font-weight: 600;
    transition: gap .3s var(--ease);
}
.footer-cta:hover { gap: 12px; }
.footer-cta .icon { width: 18px; height: 18px; }

.footer-title {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-soft); font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }

.footer-contact li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-soft); font-size: 0.95rem; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.footer-contact a { word-break: break-word; }


.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid var(--border);
    color: var(--dim);
    font-size: 0.88rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal a { color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--text); }

/* 25. Animations & reveal --------------------------------------------- */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 40px) scale(1.12); }
}
@keyframes breathe {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.12); }
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.9; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { to { stroke-dashoffset: 3.4; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }
    html.js [data-reveal], html.js .process[data-reveal] .process-step { opacity: 1; transform: none; }
    .process-marker::after { transform: scaleX(1); }
    .score-bar { stroke-dashoffset: 3.4; }
    .marquee-track { animation: none; }
}

/* 26. Responsive ------------------------------------------------------ */
@media (max-width: 1200px) {
    .dropdown { width: 540px; }
    .float-code { left: -4px; }
}

@media (max-width: 1100px) {
    .feature-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid.cols-4 > :last-child:nth-child(4n + 3) { grid-column: auto; }
    .feature-grid.cols-4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .approach-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach-card:nth-child(3) { border-left: 0; }
    .approach-card:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

@media (max-width: 1023px) {
    .logo-img, .site-header.is-scrolled .logo-img { height: 38px; }
    :root { --header-h: 68px; }

    .primary-nav, .header-actions .header-cta { display: none; }
    .menu-toggle { display: block; }
    .header-actions { margin-left: auto; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-content { max-width: 720px; }
    .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }

    .stats-inner { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }

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

    .split, .contact-layout { grid-template-columns: minmax(0, 1fr); }
    .about-visual { margin-inline: auto; }
    .sticky-col { position: static; }

    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
    .process-step:nth-child(2) .process-marker::after { background: linear-gradient(90deg, var(--border), transparent); }

    .testimonials-grid { grid-template-columns: 1fr; max-width: 680px; margin-inline: auto; }
    .feature-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .service-row { grid-template-columns: auto 1fr auto; gap: 8px 20px; }
    .service-row-text { grid-column: 2 / 3; grid-row: 2; }
    .service-row .icon-box { grid-row: 1 / 3; }
    .service-row-arrow { grid-row: 1 / 3; grid-column: 3; }

    .form-card { order: -1; }

    .faq-layout { grid-template-columns: 1fr; }
    .faq-nav { position: static; }
    .faq-nav-title { display: none; }
    .faq-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
    .faq-nav a { border: 1px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }

    .modal-dialog--wide { grid-template-columns: 1fr; }
    .modal-media img { max-height: 320px; }
}

@media (max-width: 767px) {
    .section-head-row { flex-direction: column; align-items: flex-start; }

    .services-grid, .portfolio-grid, .service-overview { grid-template-columns: 1fr; }
    .service-card { min-height: 0; }

    .bento { grid-template-columns: 1fr; }
    .bento-card--wide { grid-column: auto; }
    .bento-card { min-height: 0; }

    .feature-grid.cols-3, .feature-grid.cols-4 { grid-template-columns: 1fr; }
    .feature-grid.cols-4 > :last-child:nth-child(odd) { grid-column: auto; }

    /* Vertical timeline */
    .process { grid-template-columns: 1fr; row-gap: 0; }
    .process-step { grid-template-columns: 58px minmax(0, 1fr); gap: 20px; }
    .process-marker { flex-direction: column; align-items: center; gap: 0; }
    .process-marker::after {
        width: 1px;
        height: auto;
        min-height: 24px;
        background: linear-gradient(180deg, var(--accent-line), var(--border));
        transform-origin: top;
        transform: scaleY(0);
    }
    .process.is-visible .process-marker::after { transform: scaleY(1); }
    html:not(.js) .process-marker::after { transform: scaleY(1); }
    .process-step:last-child .process-marker::after { display: none; }
    .process-step:nth-child(2) .process-marker::after { background: linear-gradient(180deg, var(--accent-line), var(--border)); }
    .process-body { margin-bottom: 20px; }

    .approach-grid { grid-template-columns: 1fr; }
    .approach-card + .approach-card { border-left: 0; border-top: 1px solid var(--border); }
    .approach-num { margin-bottom: 24px; }

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

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat { padding-left: 18px; }

    .form-grid { grid-template-columns: 1fr; }
    .form-footer { flex-direction: column-reverse; align-items: stretch; }
    .form-footer .btn { width: 100%; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col:last-child { grid-column: 1 / -1; }

    .cta-actions .btn, .hero-actions .btn { flex: 1 1 auto; }
    .studio-card { min-height: 360px; }
}

@media (max-width: 560px) {
    .hero-visual { padding: 16px 0 36px; }
    .mock-window { transform: none; }
    .hero-visual:hover .mock-window { transform: none; }
    .mock-screen { padding: 14px; }
    .mock-links i:nth-child(n + 3) { display: none; }
    .float-code { width: 190px; left: -6px; bottom: -4px; }
    .float-code pre { font-size: 0.64rem; }
    .float-score { right: -6px; top: -6px; padding: 8px 12px 8px 8px; }
    .score-ring { width: 38px; height: 38px; }
    .float-score strong { font-size: 1.1rem; }
    .float-palette { display: none; }

    .about-visual { aspect-ratio: 1 / 1.05; }
    .av-card { width: 84%; padding: 16px; }
    .av-chip { font-size: 0.78rem; padding: 8px 12px 8px 10px; }
    .av-chip--1 { left: 0; }

    .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .cta-actions .btn span { overflow: hidden; text-overflow: ellipsis; }

    .service-row { grid-template-columns: 1fr auto; padding: 22px 0; }
    .service-row:hover { padding-inline: 0; }
    .service-row .icon-box { display: none; }
    .service-row-text { grid-column: 1; }
    .service-row-arrow { grid-column: 2; }

    .testimonial { padding: 24px; }
    .accordion-trigger { padding: 18px; font-size: 1rem; }
    .accordion-panel-inner p { padding: 0 18px 20px; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
    .logo-img, .site-header.is-scrolled .logo-img { height: 34px; }
    .stats-grid { grid-template-columns: 1fr; row-gap: 28px; }
    .float-code { display: none; }
    .project-body { padding: 22px 20px 24px; }
}

/* Service-page research insight */

.insight {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 32px 0 0;
    padding: 22px 24px;
    border-radius: 18px;
    border: 1px solid var(--accent-line);
    background: linear-gradient(135deg, rgba(198, 244, 50, 0.08), transparent 70%);
}
.insight-value {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
}
.insight p { margin: 0; color: var(--text-soft); font-size: 0.95rem; line-height: 1.55; }
.insight a { display: inline-block; margin-top: 8px; color: var(--dim); font-size: 0.78rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.18); }
.insight a:hover { color: var(--accent); }

/* Commitments (homepage) */
.commitments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.commitment {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color .4s, transform .5s var(--ease);
}
.commitment:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.commitment .icon-box { margin-bottom: 22px; }
.commitment h3 { font-size: 1.15rem; margin-bottom: 10px; }
.commitment p { color: var(--muted); font-size: 0.94rem; }
@media (max-width: 1023px) { .commitments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .commitments { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .insight { flex-direction: column; gap: 10px; } }

/* Portfolio responsive: 3 columns desktop → 2 tablet → 1 mobile */
@media (max-width: 1023px) {
    .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modal-dialog--project .modal-media img { max-height: none; }
}
@media (max-width: 767px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .modal-grid { grid-template-columns: 1fr; gap: 20px; }
}
