/* ==========================================================================
   Techvocado: main stylesheet
   1. Tokens   2. Base   3. Layout   4. Components   5. Header   6. Sections
   7. Pages    8. Footer 9. Motion
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */

:root {
    /* Brand palette */
    --brand-green: #5B8C3A;
    --brand-lime: #A8D65B;
    --brand-dark: #0F1A14;
    --brand-light: #F7F9F4;
    --brand-text: #1C2420;

    /* Theme (light) */
    --bg: var(--brand-light);
    --surface: #FFFFFF;
    --surface-2: #EEF3E7;
    --surface-3: #E3ECD8;
    --text: var(--brand-text);
    --text-muted: #4D5A52;
    --border: #DCE5D2;
    --border-strong: #C5D3B8;
    /* Deeper than the brand green so small text and white button labels pass WCAG AA */
    --primary: #4A7A2E;
    --primary-hover: #3D6625;
    --on-primary: #FFFFFF;
    --primary-soft: #E4F0D4;
    --link: #3F6B27;
    --wordmark-accent: var(--brand-green);
    --focus: #2E5A1A;
    --error: #B42318;
    --error-soft: #FEF0EE;
    --success: #2F6A1E;
    --success-soft: #EAF5DD;
    --header-bg: rgba(247, 249, 244, 0.8);
    --grid-dot: rgba(91, 140, 58, 0.22);
    --blob-1: rgba(168, 214, 91, 0.45);
    --blob-2: rgba(91, 140, 58, 0.22);

    --shadow-sm: 0 1px 2px rgba(15, 26, 20, 0.05), 0 2px 8px rgba(15, 26, 20, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 26, 20, 0.06), 0 16px 40px rgba(15, 26, 20, 0.08);
    --shadow-lg: 0 24px 64px rgba(15, 26, 20, 0.16);

    /* Type */
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --fs-h1: clamp(2.4rem, 1.6rem + 3.6vw, 4.25rem);
    --fs-h2: clamp(1.85rem, 1.4rem + 1.9vw, 2.85rem);
    --fs-h3: 1.25rem;
    --fs-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);

    /* Space and shape */
    --gutter: clamp(1rem, 4vw, 2rem);
    --container: 1200px;
    --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --header-h: 72px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    color-scheme: light;
}

/* Dark theme: applied by the toggle, and by the system preference when no choice is saved */
:root[data-theme="dark"] {
    --bg: #0F1A14;
    --surface: #15231B;
    --surface-2: #1A2B21;
    --surface-3: #213528;
    --text: #E9F0E4;
    --text-muted: #A9B8AD;
    --border: #253A2D;
    --border-strong: #33503E;
    --primary: var(--brand-lime);
    --primary-hover: #BEE57E;
    --on-primary: #0F1A14;
    --primary-soft: rgba(168, 214, 91, 0.12);
    --link: var(--brand-lime);
    --wordmark-accent: #7DB04F;
    --focus: var(--brand-lime);
    --error: #F97066;
    --error-soft: rgba(249, 112, 102, 0.12);
    --success: #BEE57E;
    --success-soft: rgba(168, 214, 91, 0.12);
    --header-bg: rgba(15, 26, 20, 0.78);
    --grid-dot: rgba(168, 214, 91, 0.12);
    --blob-1: rgba(91, 140, 58, 0.35);
    --blob-2: rgba(168, 214, 91, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* Fallback when JavaScript is off: follow the system preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg: #0F1A14;
        --surface: #15231B;
        --surface-2: #1A2B21;
        --surface-3: #213528;
        --text: #E9F0E4;
        --text-muted: #A9B8AD;
        --border: #253A2D;
        --border-strong: #33503E;
        --primary: var(--brand-lime);
        --primary-hover: #BEE57E;
        --on-primary: #0F1A14;
        --primary-soft: rgba(168, 214, 91, 0.12);
        --link: var(--brand-lime);
        --wordmark-accent: #7DB04F;
        --focus: var(--brand-lime);
        --error: #F97066;
        --error-soft: rgba(249, 112, 102, 0.12);
        --success: #BEE57E;
        --success-soft: rgba(168, 214, 91, 0.12);
        --header-bg: rgba(15, 26, 20, 0.78);
        --grid-dot: rgba(168, 214, 91, 0.12);
        --blob-1: rgba(91, 140, 58, 0.35);
        --blob-2: rgba(168, 214, 91, 0.12);
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

/* 2. Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }

p { margin: 0 0 1em; }

a {
    color: var(--link);
    text-underline-offset: 0.2em;
}

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

address { font-style: normal; }

ul[role="list"], ol { list-style: none; margin: 0; padding: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

main:focus { outline: none; }

::selection { background: var(--brand-lime); color: var(--brand-dark); }

.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: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    border-radius: var(--radius-sm);
    transform: translateY(-200%);
    transition: transform 0.2s;
}

.skip-link:focus { transform: none; }

/* 3. Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
}

.section-tight { padding-top: clamp(2rem, 4vw, 3rem); }

.section-tint {
    background: var(--surface-2);
}

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

.section-head-center {
    margin-inline: auto;
    text-align: center;
}

.section-head-split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}

.section-head-split > div { max-width: 640px; }
.section-head-split .lead { margin-bottom: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--link);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.lead {
    color: var(--text-muted);
    font-size: var(--fs-lead);
    line-height: 1.7;
}

.card-grid {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 4. Components
   ========================================================================== */

.icon {
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.975rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn .icon { width: 1.1em; height: 1.1em; }

@media (max-width: 480px) {
    .btn { white-space: normal; text-align: center; }
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 6px 18px rgba(74, 122, 46, 0.25);
}

.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }

.btn-secondary {
    background: var(--surface);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-secondary:hover { border-color: var(--primary); color: var(--text); }

.btn-accent {
    background: var(--brand-lime);
    color: var(--brand-dark);
}

.btn-accent:hover { background: #BEE57E; color: var(--brand-dark); }

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
}

.btn-outline-light:hover { border-color: var(--brand-lime); color: #FFFFFF; }

.btn-sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0.95rem 1.7rem; font-size: 1rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-row-center { justify-content: center; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, background-color 0.2s;
}

.icon-btn:hover { border-color: var(--primary); }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--link);
    font-weight: 700;
    text-decoration: none;
}

.text-link .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* Icon badge */
.icon-badge {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--primary-soft), transparent 120%);
    border: 1px solid var(--border);
    color: var(--brand-green);
}

.icon-badge .icon { width: 26px; height: 26px; }

.icon-badge-sm { width: 44px; height: 44px; border-radius: 12px; }
.icon-badge-sm .icon { width: 20px; height: 20px; }

:root[data-theme="dark"] .icon-badge { color: var(--brand-lime); }

/* Pills and tags */
.pill,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pill { background: var(--primary-soft); color: var(--link); }

.badge-sample {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    z-index: 1;
    background: rgba(15, 26, 20, 0.75);
    color: #FFFFFF;
    backdrop-filter: blur(6px);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Check list */
.check-list {
    display: grid;
    gap: 0.7rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
}

.check-list .icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--brand-lime);
    color: var(--brand-dark);
    stroke-width: 3;
}

/* Cards: whole card clickable via a stretched link or button */
.stretched-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

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

.stretched-link:focus-visible { outline: none; }

.stretched-link:focus-visible::after {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* 5. Header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: var(--header-bg);
    border-bottom-color: var(--border);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
    color: var(--text);
    text-decoration: none;
}

.logo-mark { width: 38px; height: 38px; }

.wordmark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.wordmark-tech { color: var(--text); }
.wordmark-vocado { color: var(--wordmark-accent); }

.nav-list {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.95rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-link.is-active {
    color: var(--text);
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px var(--border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-cta { display: none; }

@media (min-width: 1024px) {
    .primary-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle { display: none; }
}

@media (max-width: 1023.98px) {
    .header-cta { display: none; }

    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 1rem var(--gutter) 1.5rem;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .js .primary-nav.is-open { display: block; animation: menu-in 0.25s var(--ease); }

    /* Without JavaScript the menu is always shown */
    html:not(.js) .primary-nav { position: static; display: block; box-shadow: none; }

    .nav-list { flex-direction: column; gap: 0.25rem; }

    .nav-link { padding: 0.85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }

    .nav-cta { display: flex; width: 100%; margin-top: 1rem; }
}

@media (max-width: 380px) {
    .wordmark { font-size: 1.15rem; }
    .logo-mark { width: 32px; height: 32px; }
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-8px); }
}

/* 6. Sections
   ========================================================================== */

/* Shared abstract background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 60% 30%, #000 30%, transparent 75%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.blob-1 {
    top: -12%;
    right: -8%;
    width: min(620px, 80vw);
    aspect-ratio: 1;
    background: var(--blob-1);
}

.blob-2 {
    bottom: -20%;
    left: -12%;
    width: min(520px, 70vw);
    aspect-ratio: 1;
    background: var(--blob-2);
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 7rem);
}

.hero-inner {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

@media (min-width: 960px) {
    .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}

.hero h1 { max-width: 14ch; margin-bottom: 1.5rem; }

.hero h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 1.5rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-lime));
}

.hero .lead { max-width: 36rem; margin-bottom: 2.25rem; }

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}

.hero-art { width: 100%; height: auto; overflow: visible; }

.hero-ring {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1.5;
    stroke-dasharray: 4 8;
}

.hero-traces path {
    fill: none;
    stroke: var(--brand-green);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 10;
    animation: trace 2.4s linear infinite;
}

.hero-traces-inner path { stroke: #0F1A14; stroke-dasharray: none; animation: none; }

.hero-nodes circle {
    fill: var(--surface);
    stroke: var(--brand-green);
    stroke-width: 6;
}

.hero-nodes circle:first-child { fill: #0F1A14; stroke: #0F1A14; }

@keyframes trace {
    to { stroke-dashoffset: -48; }
}

.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.875rem);
    font-weight: 700;
    white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}

.chip .icon { width: 1.1em; height: 1.1em; color: var(--brand-green); }
:root[data-theme="dark"] .chip .icon { color: var(--brand-lime); }

.chip-1 { top: 8%; left: 0; }
.chip-2 { top: 26%; right: 0; animation-delay: -1.5s; }
.chip-3 { bottom: 10%; left: 4%; animation-delay: -3s; }
.chip-4 { bottom: 2%; right: 6%; animation-delay: -4.5s; }

@keyframes float {
    50% { transform: translateY(-8px); }
}

/* What we do */
.section-feature {
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, var(--primary-soft), transparent 70%),
        var(--surface-2);
    border-block: 1px solid var(--border);
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-lime));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.service-card:hover::before,
.service-card:focus-within::before { transform: scaleX(1); }

.service-card h3 { margin: 1.5rem 0 0.5rem; font-size: 1.35rem; }
.service-card p { color: var(--text-muted); flex-grow: 1; margin-bottom: 1.5rem; }

/* How we work */
.process-list {
    position: relative;
    display: grid;
    gap: 2rem;
    counter-reset: step;
}

@media (min-width: 640px) {
    .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .process-list { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

    .process-list::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 28px;
        right: 12%;
        height: 2px;
        background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
    }
}

.process-step { position: relative; }

.process-marker {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.process-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 0 0 8px var(--bg);
}

.process-icon .icon { width: 24px; height: 24px; }

.process-num {
    position: relative;
    padding: 0 0.5rem;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.process-step p { color: var(--text-muted); }

/* Why Techvocado */
.why-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 960px) {
    .why-layout { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
    .why-layout .section-head { margin-bottom: 0; }
}

.why-layout .lead { margin-bottom: 2rem; }

.why-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 560px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

.why-item {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.why-item h3 { margin: 1.1rem 0 0.4rem; font-size: 1.1rem; }
.why-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Project cards */
.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project-card[hidden] { display: none; }

.project-media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--g1), var(--g2));
}

/* Geometric pattern over the gradient */
.project-media::before,
.project-media::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
}

.project-media::before { width: 70%; aspect-ratio: 1; right: -20%; top: -30%; }
.project-media::after { width: 45%; aspect-ratio: 1; left: -12%; bottom: -25%; background: rgba(255, 255, 255, 0.08); }

.project-media-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(15, 26, 20, 0.2);
    transition: transform 0.4s var(--ease);
}

.project-media-icon .icon { width: 34px; height: 34px; }

.project-card:hover .project-media-icon { transform: scale(1.06) rotate(-3deg); }

.project-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.project-body h2,
.project-body h3 { margin: 0.9rem 0 0.5rem; font-size: 1.25rem; }

.project-body p { color: var(--text-muted); font-size: 0.95rem; }

.project-body .tag-list { margin-top: auto; }
.project-body .text-link { margin-top: 1.25rem; }

.project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* CTA band */
.section-cta { padding-top: 0; }

.cta-band {
    position: relative;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 8px);
    background:
        radial-gradient(circle at 100% 0%, rgba(168, 214, 91, 0.35), transparent 45%),
        radial-gradient(circle at 0% 100%, rgba(91, 140, 58, 0.45), transparent 50%),
        var(--brand-dark);
    color: #FFFFFF;
    isolation: isolate;
}

:root[data-theme="dark"] .cta-band { border: 1px solid var(--border); }

.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000);
    mask-image: linear-gradient(90deg, transparent, #000);
}

.cta-band h2 { color: #FFFFFF; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: var(--fs-lead); max-width: 34rem; }

.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (min-width: 960px) {
    .cta-band { grid-template-columns: 1.2fr auto; }
}

@media (max-width: 480px) {
    .cta-band-actions .btn { width: 100%; }
}

/* 7. Pages
   ========================================================================== */

/* Inner page hero */
.page-hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(var(--header-h) * -1);
    padding: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}

.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 40rem; }

/* Services */
.jump-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.jump-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s var(--ease);
}

.jump-nav a:hover { border-color: var(--primary); transform: translateY(-1px); }
.jump-nav .icon { width: 1.05em; height: 1.05em; color: var(--brand-green); }
:root[data-theme="dark"] .jump-nav .icon { color: var(--brand-lime); }

.service-detail {
    padding-block: clamp(3rem, 6vw, 5.5rem);
    border-top: 1px solid var(--border);
}

.service-detail:nth-child(even) { background: var(--surface-2); }

.service-detail-inner {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.service-detail-inner > *,
.hero-inner > *,
.contact-layout > *,
.why-layout > * { min-width: 0; }

@media (min-width: 900px) {
    .service-detail-inner { grid-template-columns: 1fr 1.15fr; }
    .service-detail.is-reversed .service-visual { order: 2; }
}

.service-visual {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    border-radius: calc(var(--radius-lg) + 8px);
    background:
        radial-gradient(circle at 30% 20%, rgba(168, 214, 91, 0.55), transparent 55%),
        linear-gradient(150deg, #5B8C3A, #0F1A14);
    isolation: isolate;
}

.service-visual::before,
.service-visual::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.service-visual::before { width: 75%; aspect-ratio: 1; }
.service-visual::after { width: 48%; aspect-ratio: 1; border-style: solid; border-color: rgba(168, 214, 91, 0.35); }

.service-visual-icon {
    display: grid;
    place-items: center;
    width: clamp(96px, 16vw, 132px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.service-visual-icon .icon { width: 46%; height: 46%; stroke-width: 1.6; }

.service-visual-num {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.service-content h2 { margin-top: 1.25rem; }
.service-content .lead { margin-bottom: 1.75rem; }

/* Projects filter */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--text);
    font-size: 0.925rem;
    font-weight: 600;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover { border-color: var(--primary); }

.filter-btn[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--on-primary);
}

.project-card.is-filtered-in { animation: card-in 0.4s var(--ease); }

@keyframes card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
}

/* Project modal */
.modal {
    width: min(760px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    padding: 0;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-lg);
    overscroll-behavior: contain;
}

.modal[open] { animation: modal-in 0.3s var(--ease); }

.modal::backdrop {
    background: rgba(15, 26, 20, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

.modal-close {
    position: sticky;
    top: 1rem;
    z-index: 3;
    float: right;
    margin: 1rem 1rem -60px 0;
    background: var(--surface);
}

.modal-media { aspect-ratio: 21 / 8; }

.modal-content { padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal-content h2 { margin: 1rem 0 0.5rem; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }

.case-study {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.case-study > div {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.case-study dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-weight: 800;
}

.case-study dt .icon { color: var(--brand-green); }
:root[data-theme="dark"] .case-study dt .icon { color: var(--brand-lime); }

.case-study dd { margin: 0; color: var(--text-muted); }

.modal-content .tag-list { margin-bottom: 1.75rem; }

html.modal-open { overflow: hidden; }

/* Contact */
.page-hero-compact { padding-bottom: 1.5rem; }

.contact-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 960px) {
    .contact-layout { grid-template-columns: 1.5fr 1fr; gap: 2rem; }
}

.form-card,
.info-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-card .h3 { margin-bottom: 0.25rem; font-size: 1.5rem; }

.form-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-card > .form-note { margin-bottom: 1.75rem; }

.form-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .field-full { grid-column: 1 / -1; }
}

.field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.925rem;
    font-weight: 700;
}

.req { color: var(--error); }
.optional { color: var(--text-muted); font-weight: 500; }

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field select {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B8C3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
}

.field textarea { min-height: 150px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.8; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--primary); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.field [aria-invalid="true"] {
    border-color: var(--error);
    background: var(--error-soft);
}

.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--error-soft); }

.field-error {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    color: var(--error);
    font-size: 0.875rem;
    font-weight: 600;
}

.field-error[hidden] { display: none; }

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

.form-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid;
    border-radius: var(--radius);
    font-weight: 600;
}

.form-status[hidden] { display: none; }
.form-status .icon { margin-top: 0.15rem; }
.form-status.is-success { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.form-status.is-error { border-color: var(--error); background: var(--error-soft); color: var(--error); }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
}

.form-actions .form-note .icon { color: var(--brand-green); }

.spinner {
    display: none;
    width: 1.1em;
    height: 1.1em;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.is-loading .spinner { display: inline-block; }
[data-submit][disabled] { cursor: progress; opacity: 0.85; }

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

.contact-aside { display: grid; gap: 1.5rem; }

.info-card .h3 { margin-bottom: 1.25rem; }

.contact-methods {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-methods li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-methods a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-methods a:hover { color: var(--link); text-decoration: underline; }

.contact-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.info-card-dark {
    border-color: transparent;
    background:
        radial-gradient(circle at 100% 0%, rgba(168, 214, 91, 0.3), transparent 55%),
        var(--brand-dark);
    color: #FFFFFF;
}

:root[data-theme="dark"] .info-card-dark { border-color: var(--border); }

.info-card-dark .h3 { margin-bottom: 0.5rem; color: #FFFFFF; }
.info-card-dark p { color: rgba(255, 255, 255, 0.78); }

/* 404 */
.not-found { text-align: center; padding-bottom: var(--section-y); }

.not-found-inner { display: flex; flex-direction: column; align-items: center; }
.not-found h1 { margin-inline: auto; }
.not-found .lead { margin-inline: auto; margin-bottom: 2rem; }

.not-found-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

.not-found-logo { width: 0.9em; height: 0.9em; }

/* 8. Footer
   ========================================================================== */

.site-footer {
    padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

:root[data-theme="dark"] .site-footer { background: #0A120D; border-top: 1px solid var(--border); }

.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--brand-lime); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--brand-lime); }

.site-footer .wordmark-tech { color: #FFFFFF; }
.site-footer .wordmark-vocado { color: #7DB04F; }

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .footer-grid { grid-template-columns: 1.6fr 0.8fr 1fr 1.3fr; }
}

.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { max-width: 22rem; }

.footer-heading {
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-contact .icon { margin-top: 0.2rem; color: var(--brand-lime); }
.footer-contact a { word-break: break-word; }

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.social-link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    color: #FFFFFF !important;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.social-link .icon { width: 19px; height: 19px; }

.social-link:hover {
    border-color: var(--brand-lime);
    background: var(--brand-lime);
    color: var(--brand-dark) !important;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
}

.footer-bottom p { margin: 0; }

/* 9. Motion
   ========================================================================== */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
    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: 0ms !important;
    }

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

@media print {
    .site-header, .site-footer, .hero-bg, .cta-band, .hero-visual { display: none; }
    body { background: #FFFFFF; color: #000000; }
}
