/* ============================================================
   CODE & CURRENT — Web Design & Development
   Single-page portfolio stylesheet
   ------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Utilities & buttons
   5.  Header & navigation
   6.  Hero
   7.  Sections & cards
   8.  Services & pricing
   9.  Recent projects
   10. How it works
   11. Contact
   12. Footer
   13. Floating UI
   14. Motion
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
    /* Surfaces */
    --ink-950: #07080c;
    --ink-900: #0a0c12;
    --ink-850: #0d1016;
    --ink-800: #11141d;
    --ink-750: #161a25;

    /* Text */
    --cream: #f3f0e8;
    --text: #b6b3ab;
    --muted: #83817b;
    --dim: #5d5c58;

    /* Lines */
    --line: rgba(243, 240, 232, 0.09);
    --line-strong: rgba(243, 240, 232, 0.17);

    /* Accent — electric cobalt */
    --accent: #2f6bff;
    --accent-soft: #86a6ff;
    --accent-deep: #1a3fbf;
    --accent-tint: rgba(47, 107, 255, 0.1);
    --accent-tint-strong: rgba(47, 107, 255, 0.22);

    /* Feedback */
    --danger: #ff8f8f;
    --success: #8ee6a8;

    /* Type */
    --font-display: "Space Grotesk", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

    /* Layout */
    --container: 1200px;
    --header-h: 74px;
    --gutter: 1.5rem;
    --radius: 18px;
    --radius-sm: 11px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--ink-950);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ambient accent glow behind everything (html owns the base colour) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 45% at 50% -8%, rgba(47, 107, 255, 0.14), transparent 70%),
        radial-gradient(ellipse 50% 40% at 92% 22%, rgba(47, 107, 255, 0.07), transparent 72%);
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
}

::selection {
    background: rgba(47, 107, 255, 0.35);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07080c; }
::-webkit-scrollbar-thumb {
    background: #232734;
    border: 2px solid #07080c;
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #323949; }

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--cream);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 8vw, 5.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 5.2vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

p { text-wrap: pretty; }

/* ------------------------------------------------------------
   4. UTILITIES & BUTTONS
   ------------------------------------------------------------ */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 200;
    padding: 0.8rem 1.15rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 9px;
    transition: top 0.25s ease;
}
.skip-link:focus { top: 1rem; }

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

/* Sections receive programmatic focus after in-page navigation */
[tabindex="-1"]:focus { outline: none; }

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
                background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.83rem; border-radius: 9px; }
.btn-lg { padding: 1rem 1.7rem; font-size: 0.97rem; }
.btn-block { width: 100%; }

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #4a80ff 0%, #2f6bff 100%);
    box-shadow: 0 10px 30px -14px rgba(47, 107, 255, 0.95),
                inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px -16px rgba(47, 107, 255, 1),
                inset 0 1px 0 rgba(255, 255, 255, 0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    color: var(--cream);
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(243, 240, 232, 0.32);
    transform: translateY(-2px);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn.is-loading { pointer-events: none; opacity: 0.75; }

.btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   5. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 120;
    background: transparent;
    pointer-events: none;
}
.scroll-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
    transition: width 0.12s linear;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease,
                backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
    background: rgba(7, 8, 12, 0.72);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding-block: 0.9rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--cream);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.brand-mark svg { width: 21px; height: 21px; }
.brand:hover .brand-mark {
    border-color: var(--accent-tint-strong);
    background: var(--accent-tint);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--cream);
    white-space: nowrap;
}
.brand-amp { color: var(--accent); }

.site-nav { display: none; }

.site-nav a {
    position: relative;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
}
.site-nav a:hover { color: var(--cream); }

.site-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.05rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
}
.site-nav a.is-active { color: var(--cream); }
.site-nav a.is-active::after { transform: translateX(-50%) scale(1); opacity: 1; }

.header-cta { display: none; }

.nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.nav-toggle:hover { border-color: var(--accent-tint-strong); background: var(--accent-tint); }

.nav-toggle-box {
    display: grid;
    gap: 6px;
    width: 18px;
}
.nav-toggle-box span {
    display: block;
    height: 1.6px;
    width: 100%;
    border-radius: 2px;
    background: var(--cream);
    transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child {
    transform: translateY(3.8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child {
    transform: translateY(-3.8px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(7, 8, 12, 0.66);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.nav-overlay.is-open { opacity: 1; }
.nav-overlay[hidden] { display: none; }

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: min(360px, 88vw);
    height: 100dvh;
    padding: calc(var(--header-h) + 1.5rem) 1.75rem 2rem;
    background: var(--ink-900);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 70px -40px rgba(0, 0, 0, 1);
    transform: translateX(100%);
    transition: transform 0.42s var(--ease);
    overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav[hidden] { display: none; }

.mobile-nav a {
    padding: 0.95rem 0.35rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream);
    border-bottom: 1px solid var(--line);
    transition: color 0.25s ease, padding-left 0.25s ease;
}
.mobile-nav a:hover { color: var(--accent-soft); padding-left: 0.7rem; }

.mobile-nav .mobile-nav-cta {
    margin-top: 1.75rem;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    text-align: center;
    border-bottom: none;
}
.mobile-nav .mobile-nav-cta:hover { padding-left: 1rem; color: #fff; }

.mobile-nav-meta {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 5.5rem;
    overflow: hidden;
    isolation: isolate;
}

.hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(243, 240, 232, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 240, 232, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 0%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 32%, #000 0%, transparent 78%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.orb-a {
    top: -14%;
    right: -6%;
    width: min(520px, 70vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(47, 107, 255, 0.5), transparent 68%);
}
.orb-b {
    bottom: -18%;
    left: -10%;
    width: min(460px, 66vw);
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(26, 63, 191, 0.45), transparent 68%);
}

.hero-signal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: clamp(140px, 22vw, 220px);
    opacity: 0.6;
}
.signal-path {
    stroke-dasharray: 620;
    animation: current 9s linear infinite;
}
@keyframes current {
    from { stroke-dashoffset: 1240; }
    to { stroke-dashoffset: 0; }
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 50% 42%, transparent 42%, rgba(7, 8, 12, 0.72) 100%),
        linear-gradient(to bottom, transparent 55%, var(--ink-950) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1rem 0.45rem 0.85rem;
    border: 1px solid var(--accent-tint-strong);
    border-radius: 999px;
    background: var(--accent-tint);
    color: #b9ccff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
}
.status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-soft);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(0.6); opacity: 0.9; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1.5); opacity: 0; }
}

.hero-title {
    max-width: 22ch;
    margin: 1.7rem auto 0;
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .hero-title {
        background-image: linear-gradient(180deg, #fffdf8 0%, #e2ddd0 52%, #bab4a4 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}

.hero-rotator {
    display: grid;
    max-width: 44rem;
    margin: 1.5rem auto 0;
    font-family: var(--font-display);
    font-size: clamp(0.98rem, 2.4vw, 1.2rem);
    font-weight: 600;
}

.rotator-line {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--accent-soft);
    opacity: 0;
    transform: translateY(9px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
    will-change: opacity, transform;
}
.rotator-line::before {
    content: "";
    width: 2px;
    height: 1.05em;
    flex-shrink: 0;
    background: var(--accent);
    animation: caret 1.1s steps(2, start) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.rotator-line.is-active { opacity: 1; transform: none; }

.hero-lead {
    max-width: 44rem;
    margin: 1.6rem auto 0;
    font-size: clamp(1rem, 1.7vw, 1.14rem);
    line-height: 1.75;
    color: var(--text);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2.4rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.7rem 1.4rem;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--muted);
}
.hero-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-meta svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--accent);
    opacity: 0.85;
}

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dim);
    transition: color 0.3s ease;
}
.hero-scroll:hover { color: var(--accent-soft); }
.hero-scroll-line {
    width: 1px;
    height: 42px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: drift 3s ease-in-out infinite;
}
@keyframes drift {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(5px); opacity: 0.55; }
}

/* ------------------------------------------------------------
   7. SECTIONS & CARDS
   ------------------------------------------------------------ */
.section {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 8rem);
}

.section-work,
.section-contact {
    background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
    border-top: 1px solid var(--line);
}

.section-head {
    max-width: 46rem;
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-soft);
}
.eyebrow-mark {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-sub {
    margin-top: 1.1rem;
    max-width: 44rem;
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    color: var(--text);
}

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.012));
    transition: transform 0.45s var(--ease), border-color 0.45s ease, box-shadow 0.45s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(243, 240, 232, 0.22), transparent);
    pointer-events: none;
}

.card:hover,
.card:focus-within {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 1),
                0 0 0 1px rgba(47, 107, 255, 0.1);
}

.card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        440px circle at var(--mx, 50%) var(--my, 0%),
        rgba(47, 107, 255, 0.14),
        transparent 62%
    );
}
.card:hover .card-spotlight,
.card:focus-within .card-spotlight { opacity: 1; }

/* ------------------------------------------------------------
   8. SERVICES & PRICING
   ------------------------------------------------------------ */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem 1.75rem;
}

.service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--accent-tint-strong);
    border-radius: 13px;
    background: var(--accent-tint);
    color: var(--accent-soft);
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.card:hover .service-icon {
    background: rgba(47, 107, 255, 0.2);
    border-color: rgba(47, 107, 255, 0.45);
    color: #c3d3ff;
}

.service-index {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: rgba(243, 240, 232, 0.22);
}

.service-card h3 {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 600;
}

.service-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 1.2rem;
    font-size: 0.92rem;
    color: var(--text);
}
.service-list li {
    position: relative;
    padding-left: 1.35rem;
    line-height: 1.55;
}
.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent);
    opacity: 0.75;
}

.service-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.service-card .service-list { margin-bottom: 1.6rem; }

.price {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    font-family: var(--font-display);
}
.price-from {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cream);
}
.price-amount small {
    margin-left: 0.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--muted);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-soft);
    background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    padding-bottom: 2px;
    transition: background-size 0.35s var(--ease), color 0.25s ease;
}
.service-cta::after {
    content: "\2192";
    margin-left: 0.4rem;
    transition: transform 0.35s var(--ease);
}
.service-cta:hover { color: #c3d3ff; background-size: 100% 1px; }
.service-cta:hover::after { transform: translateX(3px); }

/* ------------------------------------------------------------
   9. RECENT PROJECTS
   ------------------------------------------------------------ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 10;
    border-bottom: 1px solid var(--line);
    background: var(--ink-850);
}

.preview-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
    height: 34px;
    padding-inline: 0.9rem;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.022);
}
.preview-dots {
    display: inline-flex;
    gap: 5px;
    flex-shrink: 0;
}
.preview-dots i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(243, 240, 232, 0.16);
}
.preview-url {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-canvas {
    position: relative;
    flex: 1;
    overflow: hidden;
}
.preview-canvas svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--ease);
}
.project-card:hover .preview-canvas svg { transform: scale(1.045); }

.project-view {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--cream);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.3s ease;
}
.project-view svg { width: 14px; height: 14px; }
.project-card:hover .project-view,
.project-preview:focus-visible .project-view {
    opacity: 1;
    transform: none;
    border-color: var(--accent-tint-strong);
}

.project-body {
    padding: 1.5rem 1.5rem 1.75rem;
}

.project-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.7rem;
}
.project-head h3 { font-size: clamp(1.2rem, 2vw, 1.35rem); }

.tag {
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

.project-body p {
    font-size: 0.94rem;
    line-height: 1.7;
    color: var(--text);
}

.project-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent-soft);
}
.project-metric svg { width: 14px; height: 14px; }
.project-metric p { color: inherit; }

/* ------------------------------------------------------------
   10. HOW IT WORKS
   ------------------------------------------------------------ */
.process-list {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.process-step {
    position: relative;
}

.process-num {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--ink-900);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--cream);
    transition: border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
.process-step:hover .process-num {
    border-color: var(--accent-tint-strong);
    color: var(--accent-soft);
    box-shadow: 0 0 0 6px rgba(47, 107, 255, 0.07);
}

.process-step h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.55rem;
}
.process-step p {
    font-size: 0.92rem;
    line-height: 1.72;
    color: var(--text);
    max-width: 34rem;
}

/* ------------------------------------------------------------
   11. CONTACT
   ------------------------------------------------------------ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.75rem;
}

.contact-intro {
    margin-top: 1.3rem;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.9vw, 1.25rem);
    line-height: 1.6;
    color: var(--cream);
}

.contact-support {
    margin-top: 1.3rem;
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 2.5rem;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--accent-soft);
}
.contact-icon svg { width: 19px; height: 19px; }

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.contact-label {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
.contact-detail a,
.contact-detail > span:last-child {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--cream);
    overflow-wrap: anywhere;
}
.contact-detail a:hover { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrap {
    position: relative;
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
    box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.contact-form-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.6), transparent);
}

.form-field { margin-bottom: 1.15rem; }

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: rgba(7, 8, 12, 0.55);
    color: var(--cream);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.form-field textarea {
    min-height: 132px;
    resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(243, 240, 232, 0.28);
}
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(7, 8, 12, 0.82);
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.18);
}
.form-field.has-error input,
.form-field.has-error textarea {
    border-color: rgba(255, 143, 143, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 143, 143, 0.12);
}

.field-error {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--danger);
}
.field-error:empty { display: none; }

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

.form-status {
    margin-top: 1rem;
    font-size: 0.87rem;
    line-height: 1.6;
}
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

.form-note {
    margin-top: 1.1rem;
    font-size: 0.8rem;
    text-align: center;
    color: var(--muted);
}
.form-note a { color: var(--accent-soft); }
.form-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

.contact-form .btn-block { margin-top: 0.5rem; }

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.site-footer {
    padding-top: clamp(3rem, 6vw, 4.5rem);
    border-top: 1px solid var(--line);
    background: var(--ink-950);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1.1rem;
    max-width: 32rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text);
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
}
.footer-status .status-dot { width: 6px; height: 6px; }

.footer-head {
    margin-bottom: 1.1rem;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-nav a,
.footer-contact a {
    display: block;
    padding: 0.3rem 0;
    font-size: 0.92rem;
    color: var(--text);
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--accent-soft); }

.footer-contact p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-block: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--muted);
}

/* ------------------------------------------------------------
   13. FLOATING UI
   ------------------------------------------------------------ */
.scroll-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 80;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: rgba(17, 20, 29, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--cream);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease),
                visibility 0.35s ease, border-color 0.3s ease, color 0.3s ease;
}
.scroll-top svg { width: 19px; height: 19px; }
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { border-color: var(--accent-tint-strong); color: var(--accent-soft); }

/* ------------------------------------------------------------
   14. MOTION
   ------------------------------------------------------------ */
.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ------------------------------------------------------------
   RESPONSIVE — mobile first, enhancing upwards
   ------------------------------------------------------------ */
@media (min-width: 480px) {
    :root { --gutter: 1.75rem; }
    .hero-meta { font-size: 0.83rem; }

    .service-card { padding: 1.85rem 1.75rem 2rem; }
    .project-body { padding: 1.7rem 1.7rem 1.9rem; }
    .contact-form-wrap { padding: 2rem; }
}

@media (min-width: 640px) {
    :root { --gutter: 2rem; }

    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
    .process-list { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 2rem; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .hero-meta li + li {
        padding-left: 1.5rem;
        border-left: 1px solid var(--line);
    }
}

@media (min-width: 768px) {
    .hero-scroll { display: flex; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .process-list { column-gap: 2.5rem; }
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    .footer-top { grid-template-columns: 1.7fr 1fr 1.3fr; gap: 3rem; }
}

@media (min-width: 1024px) {
    :root { --gutter: 2.5rem; --header-h: 78px; }

    .site-nav {
        display: flex;
        align-items: center;
        gap: 0.15rem;
    }
    .header-cta { display: inline-flex; }
    .nav-toggle { display: none; }

    .services-grid { gap: 1.5rem; }
    .service-card { padding: 2rem 1.9rem 2.15rem; }

    .process-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.75rem;
    }
    .process-list::before {
        content: "";
        position: absolute;
        top: 24px;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
    }
}

@media (min-width: 1200px) {
    :root { --gutter: 3rem; }
}

/* ------------------------------------------------------------
   PREFERS-REDUCED-MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .rotator-line {
        opacity: 0;
    }
    .rotator-line.is-active { opacity: 1; }

    .signal-path { stroke-dasharray: none; }
}
