/* ==========================================================
   Swift Fox Digital — main stylesheet
   ----------------------------------------------------------
   BRANDING: change the values in :root below to restyle the
   whole site (colours, fonts, radius). Nothing else needs
   editing for a rebrand.

   Contents
   1. Brand tokens        9.  Services list
   2. Reset & base        10. Projects / cards
   3. Layout helpers      11. Process & stats
   4. Buttons & links     12. Pricing & packages
   5. Preloader & cursor  13. FAQ & CTA
   6. Header & menu       14. Blog & article
   7. Hero & page hero    15. Contact form
   8. Sections & text     16. Footer, 404, utilities
   17. Responsive
   ========================================================== */

/* ---------- 1. Brand tokens ---------- */
:root {
    /* Brand palette — keep lime rare (≈2% of the page): it's the signature, not a background */
    --bg: #090B09;            /* Midnight Black – main background */
    --bg-soft: #151A16;       /* Carbon Charcoal – cards & alternate sections */
    --bg-softer: #1C231D;     /* slightly lifted charcoal – hover states, inputs */
    --line: #2A332B;          /* Deep Olive Gray – borders & dividers */
    --text: #F2F4EF;          /* Soft Ivory White – headings & primary text */
    --text-muted: #A7B0A7;    /* Muted Sage Gray – descriptions & secondary text */
    --text-dim: #6F7A70;      /* darker sage – labels, meta, numbering */
    --accent: #B6FF00;        /* Electric Lime – primary CTAs & brand accents */
    --accent-2: #D6FF3D;      /* Secondary highlight – glows, gradients, decorative details */
    --accent-contrast: #090B09; /* text colour on top of lime */
    --body-copy: #D3D9D1;     /* long-form article text */

    --font-sans: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-serif: "Instrument Serif", Georgia, serif;

    --radius: 20px;
    --radius-sm: 12px;
    --container: 1320px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-space: clamp(80px, 11vw, 160px);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: var(--accent-contrast); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 1000;
    background: var(--accent); color: var(--accent-contrast);
    padding: 10px 16px; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-space); }
.section-tight { padding-block: calc(var(--section-space) * 0.6); }
.border-top { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }

/* ---------- 4. Buttons & links ---------- */
/* Glass buttons
   .btn          = frosted LIME glass (primary CTAs): translucent lime, blur, inner highlight, soft glow
   .btn-outline  = clear frosted glass (secondary): see-through tint, blur, light edge
   Both get a top "reflection" (::after) and a light sheen that sweeps across on hover (::before). */
.btn {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 28px; border-radius: 100px;
    font-weight: 600; font-size: 16px; line-height: 1;
    color: var(--accent-contrast);
    background: linear-gradient(180deg, rgba(214, 255, 61, .92) 0%, rgba(182, 255, 0, .78) 100%);
    border: 1px solid rgba(214, 255, 61, .75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        inset 0 -1px 0 rgba(9, 11, 9, .18),
        0 10px 30px -10px rgba(182, 255, 0, .55);
    backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, border-color .3s;
}
.btn::after { /* glass reflection on the upper half */
    content: ""; position: absolute; inset: 1px 1px 50% 1px; z-index: -1; border-radius: 100px 100px 40px 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0));
    pointer-events: none;
}
.btn::before { /* sheen sweep */
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
    transform: translateX(-100%) skewX(-12deg); transition: transform .9s var(--ease); pointer-events: none;
}
.btn:hover::before { transform: translateX(420%) skewX(-12deg); }
.btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .65),
        inset 0 -1px 0 rgba(9, 11, 9, .18),
        0 16px 40px -10px rgba(182, 255, 0, .7);
}
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.btn-outline {
    color: var(--text);
    background: linear-gradient(180deg, rgba(242, 244, 239, .10), rgba(242, 244, 239, .03));
    border-color: rgba(242, 244, 239, .16);
    box-shadow:
        inset 0 1px 0 rgba(242, 244, 239, .16),
        0 10px 30px -14px rgba(0, 0, 0, .8);
}
.btn-outline::after { background: linear-gradient(180deg, rgba(242, 244, 239, .10), rgba(242, 244, 239, 0)); }
.btn-outline::before { background: linear-gradient(105deg, transparent 0%, rgba(242, 244, 239, .16) 50%, transparent 100%); }
.btn-outline:hover {
    color: var(--text);
    background: linear-gradient(180deg, rgba(242, 244, 239, .16), rgba(242, 244, 239, .05));
    border-color: rgba(242, 244, 239, .32);
    box-shadow:
        inset 0 1px 0 rgba(242, 244, 239, .22),
        0 14px 36px -14px rgba(0, 0, 0, .9);
}
.link-line { position: relative; display: inline-block; }
.link-line::after {
    content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
    background: currentColor; transform: scaleX(0); transform-origin: right;
    transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 5. Preloader & cursor ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
    background: var(--bg); transition: opacity .8s var(--ease), visibility .8s;
}
.preloader img { width: min(160px, 40vw); height: auto; animation: glow 1.8s ease-in-out infinite; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(214, 255, 61, .25)); transform: scale(.97); }
    50%      { filter: drop-shadow(0 0 36px rgba(214, 255, 61, .55)); transform: scale(1); }
}

/* Cursor ball (AIXOR style): a 26px ball that trails the mouse and inverts what's under it.
   It fades out over links/buttons and hides over cards, where the "View" bubble takes over. */
.cursor {
    position: fixed; top: 0; left: 0; z-index: 998; pointer-events: none;
    width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    background: var(--text); mix-blend-mode: difference; opacity: 0;
    transition: opacity .3s ease, scale .3s var(--ease);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover { opacity: 0; scale: .4; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 6. Header & menu ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    padding-block: 22px; transition: padding .4s var(--ease), background .4s, border-color .4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    padding-block: 14px; background: rgba(9, 11, 9, 0.82);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Logo = fox emblem + live-text wordmark */
.logo { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(182, 255, 0, .25)); transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-8deg) scale(1.06); }
.logo-text { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--text); white-space: nowrap; }
.logo-text span { font-weight: 500; color: var(--text-muted); }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a { font-weight: 500; color: var(--text-muted); transition: color .3s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { padding: 13px 22px; font-size: 15px; }

.menu-toggle {
    display: none; width: 44px; height: 44px; border-radius: 50%; position: relative;
    border: 1px solid rgba(242, 244, 239, .16);
    background: linear-gradient(180deg, rgba(242, 244, 239, .10), rgba(242, 244, 239, .03));
    box-shadow: inset 0 1px 0 rgba(242, 244, 239, .16);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.menu-open .site-header { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 90; background: var(--bg);
    display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
    clip-path: circle(0% at calc(100% - 44px) 44px); transition: clip-path .8s var(--ease);
    visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.mobile-menu ul li a { display: block; font-size: clamp(36px, 10vw, 64px); font-weight: 600; letter-spacing: -0.03em; padding-block: 4px; }
.mobile-menu .mobile-menu-foot { margin-top: 40px; color: var(--text-muted); display: grid; gap: 6px; }

/* ---------- 7. Hero & page hero ---------- */
.hero { padding-top: clamp(140px, 18vw, 220px); padding-bottom: clamp(60px, 8vw, 110px); position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 255, 61, .07), transparent 62%); pointer-events: none;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase;
    letter-spacing: .14em; font-size: 13px; font-weight: 600; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title { font-size: clamp(52px, 10.5vw, 168px); line-height: .92; letter-spacing: -0.045em; margin-block: 28px 40px; }
.hero-title.is-long { font-size: clamp(44px, 8.2vw, 132px); }
.hero-title em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-bottom p { max-width: 460px; color: var(--text-muted); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { padding-top: clamp(150px, 16vw, 210px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(48px, 8.5vw, 128px); line-height: .95; letter-spacing: -0.045em; margin-top: 24px; }
.page-hero .lead { margin-top: 28px; max-width: 620px; color: var(--text-muted); font-size: 19px; }
.breadcrumb { display: flex; gap: 8px; color: var(--text-dim); font-size: 14px; }
.breadcrumb a:hover { color: var(--text); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; user-select: none; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(28px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; font-size: .5em; color: var(--text-dim); }
.marquee-track span:nth-child(even) { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text-muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Sections & text ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.section-title { font-size: clamp(38px, 5.6vw, 84px); letter-spacing: -0.04em; max-width: 900px; margin-top: 18px; }
.section-head p { max-width: 420px; color: var(--text-muted); }
.big-text { font-size: clamp(26px, 3.4vw, 48px); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.muted { color: var(--text-muted); }
.prose p + p { margin-top: 1.1em; }

/* Text that lights up word by word on scroll */
.reveal-text .word { opacity: .18; transition: opacity .25s linear; }
.reveal-text .word.is-on { opacity: 1; }

/* Fade-up on scroll */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 9. Services list ---------- */
.service-list { border-top: 1px solid var(--line); }
.service-row {
    display: grid; grid-template-columns: 80px 1.2fr 1.5fr 56px; gap: 24px; align-items: center;
    padding-block: 36px; border-bottom: 1px solid var(--line); position: relative; transition: padding .5s var(--ease);
}
.service-row::before {
    content: ""; position: absolute; inset: 0; background: var(--bg-soft); z-index: -1;
    transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.service-row:hover::before { transform: scaleY(1); }
.service-row:hover { padding-inline: 20px; }
.service-row .num { color: var(--text-dim); font-weight: 600; }
.service-row h3 { font-size: clamp(26px, 3vw, 42px); }
.service-row p { color: var(--text-muted); }
.service-row .go {
    width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line);
    display: grid; place-items: center; transition: background .3s, color .3s, transform .5s var(--ease);
}
.service-row:hover .go { background: var(--accent); color: var(--accent-contrast); transform: rotate(-45deg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--text-muted); }

/* ---------- 10. Projects / cards ---------- */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.project-grid .card:nth-child(even) { margin-top: 80px; }
.project-grid.is-even .card:nth-child(even) { margin-top: 0; }
.card { position: relative; display: block; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.project-grid .card-media { aspect-ratio: 3 / 2; } /* portfolio images are 3:2 */
.card-info { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; align-items: baseline; }
.card-info h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; }
.card-info span { color: var(--text-muted); font-size: 15px; white-space: nowrap; }
/* "View" bubble (AIXOR style): 120px frosted-glass circle that glides after the mouse.
   `translate` (set by JS) eases toward the pointer; `scale` pops it in and out. */
.view-bubble {
    position: absolute; top: 0; left: 0; z-index: 2; pointer-events: none;
    width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
    display: grid; place-items: center; font-weight: 500; font-size: 16px; letter-spacing: .02em;
    color: var(--text);
    background: linear-gradient(0deg, rgba(21, 26, 22, .92), rgba(21, 26, 22, .25));
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(242, 244, 239, .08);
    scale: 0;
    transition: translate .5s ease-out, scale .5s var(--ease);
}
.card-media.is-hover .view-bubble { scale: 1; }
.card.is-filtered { display: none; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filters button {
    padding: 10px 20px; border-radius: 100px; color: var(--text-muted); transition: all .3s;
    border: 1px solid rgba(242, 244, 239, .14);
    background: linear-gradient(180deg, rgba(242, 244, 239, .08), rgba(242, 244, 239, .02));
    box-shadow: inset 0 1px 0 rgba(242, 244, 239, .12);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.filters button:hover { color: var(--text); border-color: rgba(242, 244, 239, .3); }
.filters button.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- 11. Process & stats ---------- */
.process-step { padding: 36px 32px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s; }
.process-step:hover { transform: translateY(-6px); border-color: var(--text-dim); }
.process-step .num { font-family: var(--font-serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--text-dim); }
.process-step h3 { font-size: 24px; margin-block: 28px 12px; }
.process-step p { color: var(--text-muted); font-size: 16px; }
.grid-5 .process-step { padding: 30px 24px; }
.grid-5 .process-step h3 { font-size: 22px; margin-top: 22px; }
.process-step.is-active { border-color: rgba(182, 255, 0, .55); background: linear-gradient(180deg, rgba(182, 255, 0, .07), var(--bg-soft)); }
.process-step.is-active .num { color: var(--accent); }
.scope-note { margin-top: 28px; color: var(--text-dim); font-size: 14px; line-height: 1.6; max-width: 900px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(44px, 6vw, 88px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat span { display: block; margin-top: 14px; color: var(--text-muted); }

.team-card .card-media { aspect-ratio: 3 / 4; }
.team-card h3 { font-size: 22px; margin-top: 18px; }
.team-card span { color: var(--text-muted); font-size: 15px; }

.value { padding-top: 28px; border-top: 1px solid var(--line); }
.value h3 { font-size: 26px; margin-bottom: 12px; }
.value p { color: var(--text-muted); }

/* ---------- 12. Pricing ---------- */
.price-card { padding: 40px 36px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--accent); position: relative; }
.price-card .badge { position: absolute; top: 20px; right: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 6px 12px; border-radius: 100px; background: var(--accent); color: var(--accent-contrast); }
.price-card h3 { font-size: 24px; }
.price-card .price-desc { color: var(--text-muted); margin-top: 8px; font-size: 16px; }
.price { font-size: 60px; font-weight: 600; letter-spacing: -0.04em; margin-block: 28px; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-card ul { display: grid; gap: 12px; margin-bottom: 36px; flex: 1; }
.price-card li { display: flex; gap: 12px; color: var(--text-muted); font-size: 16px; }
.price-card li::before { content: "✓"; color: var(--text); }
.price-card .btn { justify-content: center; }
.price-card .pkg-more { margin-bottom: 10px; }
.price-card ul.price-rows { margin-bottom: 28px; }
.pkg-num { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 10px; }

/* Pricing page: full package details */
.pkg-price { display: block; font-size: .5em; color: var(--accent); letter-spacing: -0.03em; margin-top: 12px; }
.pkg-price small { font-size: .4em; color: var(--text-muted); letter-spacing: 0; }
.pkg-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pkg-section { padding: 30px 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.pkg-section h3 { font-size: 20px; display: flex; gap: 12px; align-items: baseline; margin-bottom: 20px; }
.pkg-section h3 span { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--text-dim); font-size: 26px; }
.pkg-section .check-list { gap: 10px; }
.pkg-section .check-list li { font-size: 15px; color: var(--text-muted); padding-bottom: 10px; }
.pkg-excluded { margin-top: 28px; color: var(--text-muted); font-size: 15px; }
.pkg-excluded strong { color: var(--text); }
.section-head p strong { color: var(--text); }

/* Pricing page: comparison table (scrolls sideways on small screens) */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 600; background: var(--bg-softer); }
.compare-table tbody th { font-weight: 500; color: var(--text-muted); }
.compare-table td { font-weight: 600; }
.compare-table .is-featured { background: rgba(182, 255, 0, .04); }
.compare-table thead th.is-featured { color: var(--accent); }
.compare-table .price-row td { font-size: 22px; letter-spacing: -0.02em; }
.compare-table .is-no { color: var(--text-dim); font-weight: 500; }
.compare-table .is-addon { color: var(--text-muted); font-weight: 500; font-style: italic; }

/* Pricing page: service conditions */
.conditions { display: grid; gap: 0; border-top: 1px solid var(--line); }
.condition { padding-block: 24px; border-bottom: 1px solid var(--line); }
.condition h3 { font-size: 20px; margin-bottom: 8px; }
.condition p { color: var(--text-muted); font-size: 16px; }
/* Package feature rows: label left, level right */
.price-card ul.price-rows { gap: 0; }
.price-rows li { justify-content: space-between; align-items: baseline; padding-block: 11px; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-rows li::before { content: none; }
.price-rows strong { color: var(--text); font-weight: 600; text-align: right; }
.price-rows strong.is-no { color: var(--text-dim); font-weight: 500; }
.price-rows strong.is-addon { color: var(--text-muted); font-weight: 500; font-style: italic; }

/* Service page: how each package covers this service */
.pkg-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 8px 28px; }
.pkg-row { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 12px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: baseline; }
.pkg-row:last-child { border-bottom: 0; }
.pkg-row > span:first-child { color: var(--text-muted); }
.pkg-head span { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); font-weight: 600; }
.pkg-row strong { font-weight: 600; }
.pkg-row strong.is-no { color: var(--text-dim); font-weight: 500; }
.pkg-row strong.is-addon { color: var(--text-muted); font-weight: 500; font-style: italic; }

/* ---------- 13. FAQ & CTA ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
    padding-block: 28px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 30px; font-weight: 300; transition: transform .4s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 28px; color: var(--text-muted); max-width: 760px; }

.cta { text-align: center; }
.cta h2 { font-size: clamp(48px, 9vw, 140px); letter-spacing: -0.05em; line-height: .95; margin-block: 24px 44px; }

/* ---------- 14. Blog & article ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
.post-card .card-media { aspect-ratio: 16 / 11; }
.post-meta { display: flex; gap: 14px; color: var(--text-dim); font-size: 14px; margin-top: 20px; }
.post-card h3 { font-size: 24px; line-height: 1.2; margin-top: 10px; }

.article { max-width: 780px; margin-inline: auto; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 56px; }
.article-body { font-size: 19px; color: var(--body-copy); }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { font-size: clamp(28px, 3vw, 38px); color: var(--text); margin-top: 1.8em; }
.article-body h3 { font-size: 24px; color: var(--text); margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 1.2em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .5em; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 2px solid var(--accent); padding-left: 24px; font-family: var(--font-serif); font-style: italic; font-size: 28px; line-height: 1.35; color: var(--text); }
.article-footer { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }

/* Project / service detail */
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 32px; border-block: 1px solid var(--line); }
.meta-grid span { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.wide-media { border-radius: var(--radius); overflow: hidden; }
.wide-media img { width: 100%; }
.check-list { display: grid; gap: 16px; }
.check-list li { display: flex; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "↗"; color: var(--text-muted); }

/* ---------- 15. Contact form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.contact-details { display: grid; gap: 32px; align-content: start; }
.contact-details span { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 6px; }
.contact-details a, .contact-details p { font-size: 22px; font-weight: 500; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 16px 18px; border-radius: var(--radius-sm);
    background: var(--bg-soft); border: 1px solid var(--line); transition: border-color .3s, background .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-soft); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text-muted); background: var(--bg-softer); }
/* Validation messages (set by script.js) */
.field-error { min-height: 0; margin-top: 6px; font-size: 14px; color: #f87171; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #f87171; }
.field.has-error label { color: #fca5a5; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-size: 16px; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #f87171; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- 16. Footer, 404, utilities ---------- */
.site-footer { padding-top: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-top h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-dim); margin-bottom: 20px; font-weight: 600; }
.footer-top ul { display: grid; gap: 10px; }
.footer-top a { color: var(--text-muted); transition: color .3s; }
.footer-top a:hover { color: var(--text); }
.footer-intro p { color: var(--text-muted); max-width: 340px; margin-block: 20px 28px; }
.footer-word {
    font-size: clamp(64px, 15vw, 240px); font-weight: 700; letter-spacing: -0.06em; line-height: .8;
    margin-top: clamp(60px, 8vw, 110px); white-space: nowrap; text-align: center;
    background: linear-gradient(180deg, var(--text) 10%, transparent 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; margin-top: 24px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 14px; }
.footer-bottom nav { display: flex; gap: 20px; }

.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.not-found h1 { font-size: clamp(120px, 26vw, 340px); letter-spacing: -0.06em; line-height: .85; }
.not-found p { color: var(--text-muted); margin-block: 20px 36px; font-size: 19px; }

.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 56px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 17. Responsive ---------- */
@media (max-width: 1100px) {
    .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .service-row { grid-template-columns: 56px 1fr 56px; }
    .service-row p { grid-column: 2 / 3; }
    .service-row .go { grid-row: 1; grid-column: 3; }
    .pkg-sections { grid-template-columns: repeat(2, 1fr); }
    /* 7 menu items no longer fit next to the logo: switch to the hamburger menu */
    .main-nav, .header-actions .btn { display: none; }
    .menu-toggle { display: block; }
}
@media (max-width: 900px) {
    .grid-3, .grid-2, .split, .contact-wrap { grid-template-columns: 1fr; }
    .meta-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    body { font-size: 16px; }
    .project-grid, .blog-grid, .grid-4, .grid-5, .pkg-sections { grid-template-columns: 1fr; }
    .compare-table th, .compare-table td { padding: 12px 14px; }
    .pkg-panel { padding: 4px 16px; }
    .pkg-row { grid-template-columns: 1fr 1fr 1fr; font-size: 14px; }
    .pkg-row > span:first-child { grid-column: 1 / -1; color: var(--text); font-weight: 600; }
    .pkg-head > span:first-child { display: none; }
    .project-grid .card:nth-child(even) { margin-top: 0; }
    .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { padding: 28px 12px 0 0; }
    .stat + .stat { padding-left: 12px; }
    .footer-top { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr 48px; gap: 12px; padding-block: 28px; }
    .service-row .num { display: none; }
    .service-row p { grid-column: 1 / -1; }
    .service-row .go { grid-column: 2; width: 48px; height: 48px; }
    .card-info { flex-direction: column; gap: 4px; }
    .hero-bottom p { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .reveal-text .word { opacity: 1; }
}
