/* ===========================================================================
   NovaWorks design system
   Warm and human: cream canvas, terracotta and olive accents, serif headlines,
   soft organic shapes. Mobile first.
   =========================================================================== */

:root {
    --bg:           #f6efe1;
    --bg-soft:      #fbf6ea;
    --bg-warm:      #ecdfc7;
    --bg-card:      #fffaf0;

    --ink:          #251f17;
    --ink-soft:     #5a4f42;
    --ink-mute:     #8c7e6c;

    --terra:        #c45a3a;
    --terra-deep:   #9c4128;
    --terra-soft:   #f0d3c4;
    --olive:        #6e7b3b;
    --olive-soft:   #d8dcb6;
    --mustard:      #d39c47;
    --rose:         #d68b6a;
    --sky:          #8fa9b3;

    --line:         rgba(37,31,23,0.12);
    --line-strong:  rgba(37,31,23,0.22);
    --shadow:       0 28px 50px -32px rgba(74,52,32,0.30);
    --shadow-soft:  0 14px 30px -20px rgba(74,52,32,0.22);

    --radius-sm:    10px;
    --radius:       18px;
    --radius-lg:    26px;
    --radius-xl:    40px;
    --container:    1180px;
    --header-h:     76px;
    --easing:       cubic-bezier(.2,.7,.2,1);

    --font-serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(900px 500px at 110% -10%, rgba(196,90,58,0.10), transparent 60%),
        radial-gradient(700px 500px at -10% 20%, rgba(110,123,59,0.10), transparent 60%);
    background-attachment: fixed;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
}

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

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 32px 0;
}

/* Typography */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.6em;
    color: var(--ink);
}

h1 {
    font-size: clamp(2.4rem, 5.2vw + 1rem, 5.2rem);
    font-weight: 400;
    line-height: 1.02;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.9rem, 2.6vw + 1rem, 3.4rem);
    overflow-wrap: break-word;
}

h3 {
    font-size: clamp(1.3rem, 1vw + 1rem, 1.75rem);
    overflow-wrap: break-word;
}

h4 {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: -0.01em;
}

em, .italic {
    font-style: italic;
    color: var(--terra);
}

p {
    margin: 0 0 1em;
    color: var(--ink-soft);
}

strong {
    color: var(--ink);
    font-weight: 600;
}

/* Layout helpers */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra-deep);
    margin-bottom: 22px;
    max-width: 100%;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

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

.lead {
    font-size: clamp(1.05rem, 0.4vw + 1rem, 1.2rem);
    color: var(--ink-soft);
    max-width: 720px;
    line-height: 1.6;
    overflow-wrap: break-word;
}

.section-head {
    max-width: 740px;
    margin-bottom: 56px;
}

@media (max-width: 700px) {
    .section {
        padding: 64px 0;
    }
}

@media (max-width: 600px) {
    .section-head {
        margin-bottom: 36px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 48px 0;
    }
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(246, 239, 225, 0.85);
    border-bottom: 1px solid var(--line);
    height: var(--header-h);
    display: flex;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    line-height: 1;
    min-width: 0;
    flex: 0 1 auto;
}

.brand .logo {
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    color: var(--terra);
}

.brand .logo svg {
    width: 38px;
    height: 38px;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.brand-name em,
.brand-name .accent {
    font-style: italic;
    color: var(--terra);
}

.brand-slogan {
    font-family: var(--font-sans);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-mute);
    white-space: nowrap;
}

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

.nav a {
    padding: 8px 16px;
    font-size: 0.95rem;
    color: var(--ink-soft);
    border-radius: 999px;
    transition: color .2s, background .2s;
}

.nav a:hover {
    color: var(--ink);
    background: rgba(37,31,23,0.05);
}

.nav a.active {
    color: var(--terra-deep);
    background: var(--terra-soft);
}

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

.lang-switch {
    position: relative;
}

.lang-switch summary {
    list-style: none;
    cursor: pointer;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--bg-soft);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lang-switch summary::-webkit-details-marker {
    display: none;
}

.lang-switch summary:hover {
    color: var(--ink);
    border-color: var(--ink-mute);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 6px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 2px;
}

.lang-menu a {
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.lang-menu a:hover {
    background: var(--bg-warm);
    color: var(--ink);
}

.lang-menu a.active {
    background: var(--terra-soft);
    color: var(--terra-deep);
}

.menu-toggle {
    background: var(--bg-soft);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.menu-toggle svg {
    width: 20px;
    height: 20px;
}

.menu-toggle:hover {
    background: var(--bg-warm);
}

.header-cta {
    display: none !important;
}

@media (min-width: 920px) {
    .nav {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .header-cta {
        display: inline-flex !important;
    }
}

@media (min-width: 920px) and (max-width: 1100px) {
    .site-header .container {
        gap: 10px;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-slogan {
        font-size: 0.58rem;
        letter-spacing: 0.12em;
    }

    .header-tools {
        gap: 8px;
    }

    .lang-switch summary {
        padding: 8px 11px;
    }

    .header-cta {
        padding: 10px 13px;
        font-size: 0.8rem;
    }
}

@media (max-width: 919px) {
    .site-header .lang-switch {
        display: none;
    }
}

@media (max-width: 760px) {

    .site-header .brand .logo,
    .mobile-menu .brand .logo {
        width: 40px;
        height: 40px;
    }

    .site-header .brand .logo svg,
    .mobile-menu .brand .logo svg {
        width: 40px;
        height: 40px;
    }

    .site-header .brand-name,
    .mobile-menu .brand-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .site-header .container {
        gap: 10px;
    }

    .lang-switch summary {
        padding: 9px 12px;
    }

    .lang-menu {
        right: -4px;
    }

    .lang-menu a {
        padding: 11px 14px;
    }
}

/* Mobile menu drawer */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg);
    transform: translateY(-100%);
    transition: transform .35s var(--easing);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu.open {
    transform: translateY(0);
}

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

.mobile-menu nav {
    display: grid;
    gap: 2px;
    margin-top: 16px;
}

.mobile-menu nav a {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    padding: 16px 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.mobile-menu nav a.active {
    color: var(--terra);
}

.mm-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mm-langs a {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    font-size: 0.85rem;
    color: var(--ink-soft);
    background: var(--bg-soft);
}

.mm-langs a.active {
    background: var(--terra);
    color: var(--bg-soft);
    border-color: var(--terra);
}

@media (max-width: 380px) {
    .mobile-menu nav a {
        font-size: 1.55rem;
        padding: 14px 0;
    }

    .mobile-menu {
        padding: 18px;
    }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.005em;
    border: 1.5px solid transparent;
    transition: transform .15s var(--easing), background .2s, border-color .2s, box-shadow .2s, color .2s;
    line-height: 1;
    white-space: nowrap;
    font-family: var(--font-sans);
    max-width: 100%;
}

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

.btn-primary {
    background: var(--terra);
    color: var(--bg-soft);
    border-color: var(--terra);
}

.btn-primary:hover {
    background: var(--terra-deep);
    border-color: var(--terra-deep);
    transform: translateY(-1px);
    box-shadow: 0 14px 24px -16px rgba(156,65,40,0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--bg-soft);
}

.btn-link {
    color: var(--terra);
    padding: 0;
    background: none;
    border: none;
    font-weight: 500;
}

.btn-link:hover {
    color: var(--terra-deep);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.85rem;
}

/* Hero */

.hero {
    padding: 88px 0 56px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.hero h1 .accent {
    color: var(--terra);
    font-style: italic;
    font-weight: 400;
}

.hero h1 .underline {
    position: relative;
    white-space: nowrap;
}

.hero h1 .underline::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.05em;
    height: 0.32em;
    background: var(--mustard);
    opacity: 0.45;
    z-index: -1;
    border-radius: 4px;
    transform: rotate(-0.5deg);
}

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

.hero-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px dashed var(--line-strong);
    flex-wrap: wrap;
}

.hero-meta .who {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.hero-meta .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--olive);
    color: var(--bg-soft);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.05rem;
    overflow: hidden;
    flex: none;
    border: 2px solid var(--bg-soft);
    box-shadow: 0 6px 14px -8px rgba(74,52,32,0.4);
}

.hero-meta .avatar-photo {
    background: var(--bg-warm);
}

.hero-meta .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.hero-meta .who strong {
    color: var(--ink);
    display: block;
    font-size: 0.95rem;
}

.hero-meta .who span {
    color: var(--ink-mute);
    font-size: 0.82rem;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    padding: 30px 10px;
}

.hv-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.hv-pipeline {
    top: 0;
    left: 4%;
    width: 78%;
    max-width: 360px;
    transform: rotate(-2.5deg);
    background: var(--bg-card);
}

.hv-followup {
    bottom: 0;
    right: 0;
    width: 70%;
    max-width: 320px;
    transform: rotate(1.8deg);
    background: var(--olive-soft);
}

.hv-chat {
    bottom: 22%;
    left: 14%;
    width: 64%;
    max-width: 290px;
    transform: rotate(-0.8deg);
    background: var(--terra-soft);
    border-color: rgba(196,90,58,0.25);
}

.hv-tape {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 70px;
    height: 22px;
    background: rgba(212,156,71,0.45);
    transform: translateX(-50%) rotate(-3deg);
    border-radius: 1px;
}

.hv-pipeline .hv-tape {
    background: rgba(143,169,179,0.45);
    transform: translateX(-50%) rotate(2deg);
}

.hv-followup .hv-tape {
    background: rgba(196,90,58,0.40);
    transform: translateX(-50%) rotate(-1deg);
}

.hv-title {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hv-title .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terra);
}

.pipeline-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-top: 1px dashed var(--line);
    font-size: 0.92rem;
}

.pipeline-row:first-of-type {
    border-top: none;
}

.pipeline-row .stage {
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pipeline-row .stage::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sky);
}

.pipeline-row.qualified .stage::before {
    background: var(--mustard);
}

.pipeline-row.proposal .stage::before {
    background: var(--rose);
}

.pipeline-row.won .stage::before {
    background: var(--olive);
}

.pipeline-row .count {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
}

.followup-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-top: 1px dashed rgba(110,123,59,0.35);
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.45;
}

.followup-item:first-of-type {
    border-top: none;
}

.followup-item .check {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    border: 1.5px solid var(--olive);
    border-radius: 4px;
    display: grid;
    place-items: center;
}

.followup-item .check svg {
    color: var(--olive);
    width: 12px;
    height: 12px;
}

.hv-chat .bubble {
    padding: 12px 14px;
    border-radius: 16px 16px 16px 4px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.45;
    border: 1px solid rgba(196,90,58,0.20);
}

.hv-chat .meta {
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--terra-deep);
    letter-spacing: 0.04em;
    font-weight: 500;
}

@media (min-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1.05fr 1fr;
        gap: 80px;
    }
}

@media (max-width: 999px) {
    .hero {
        padding: 56px 0 24px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-visual {
        min-height: 0;
        max-width: 480px;
        margin: 0 auto;
        padding: 6px 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .hv-card {
        position: static;
        width: 100%;
        max-width: 100%;
    }

    .hv-pipeline {
        transform: rotate(-1deg);
    }

    .hv-followup {
        transform: rotate(1deg);
    }

    .hv-chat {
        transform: rotate(-0.5deg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 16px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn {
        flex: 1 1 auto;
    }

    .hero-meta {
        margin-top: 28px;
        padding-top: 22px;
    }

    .hv-card {
        padding: 16px;
    }
}

/* Capability strip */

.cap-strip {
    padding: 64px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
    margin-top: 32px;
}

.cap-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--ink);
    font-size: 0.95rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.cap-item svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--olive);
    background: var(--olive-soft);
    padding: 6px;
    box-sizing: content-box;
    border-radius: 50%;
}

.cap-item .accent svg {
    color: var(--terra);
    background: var(--terra-soft);
}

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

@media (min-width: 1000px) {
    .cap-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .cap-strip {
        padding: 44px 0;
    }

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

/* Service cards */

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.svc-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: transform .25s var(--easing), border-color .25s, box-shadow .25s, background .25s;
    display: flex;
    flex-direction: column;
}

.svc-card:hover {
    transform: translateY(-3px);
    border-color: var(--terra);
    box-shadow: var(--shadow-soft);
}

.svc-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--terra-soft);
    color: var(--terra-deep);
    display: grid;
    place-items: center;
    margin-bottom: 22px;
}

.svc-icon svg {
    width: 24px;
    height: 24px;
}

.svc-card:nth-child(2n) .svc-icon {
    background: var(--olive-soft);
    color: var(--olive);
}

.svc-card:nth-child(3n) .svc-icon {
    background: rgba(212,156,71,0.25);
    color: #9c7733;
}

.svc-card h3 {
    color: var(--ink);
    margin-bottom: 12px;
    font-weight: 500;
}

.svc-lead {
    color: var(--ink-soft);
    font-size: 0.96rem;
    line-height: 1.6;
}

.svc-meta {
    display: grid;
    gap: 14px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--line-strong);
    font-size: 0.92rem;
}

.svc-meta-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
}

.svc-meta-row dt {
    color: var(--ink-mute);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding-top: 3px;
    font-weight: 500;
}

.svc-meta-row dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

@media (min-width: 720px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (max-width: 480px) {
    .svc-card {
        padding: 24px;
    }

    .svc-meta-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Work cards */

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.work-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--easing), border-color .25s, box-shadow .25s;
}

.work-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink-mute);
    box-shadow: var(--shadow);
}

.work-preview {
    aspect-ratio: 16 / 11;
    background: var(--bg-warm);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.work-kind {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
}

.work-kind.real {
    color: var(--olive);
    background: var(--olive-soft);
}

.work-kind.concept {
    color: var(--terra-deep);
    background: var(--terra-soft);
}

.work-card h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 500;
}

.work-meta {
    font-size: 0.88rem;
    color: var(--ink-mute);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.work-tags span {
    font-size: 0.74rem;
    padding: 4px 11px;
    border-radius: 999px;
    background: var(--bg-warm);
    color: var(--ink-soft);
}

.work-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

@media (min-width: 920px) {
    .work-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .work-body {
        padding: 22px;
    }

    .preview-window,
    .preview-flow {
        inset: 14px;
    }

    .work-grid {
        gap: 22px;
    }
}

/* Work screenshots — zelfde 16/11 kader op elk schermformaat */

.work-screenshot {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    background: var(--bg-warm);
}

/* Mini website preview */

.preview-window {
    position: absolute;
    inset: 22px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.preview-window .pw-bar {
    height: 22px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
}

.preview-window .pw-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(37,31,23,0.18);
}

.preview-window .pw-body {
    flex: 1;
    padding: 16px;
    display: grid;
    gap: 9px;
    align-content: start;
}

.preview-window .pw-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(37,31,23,0.10);
}

.preview-window .pw-line.short {
    width: 38%;
}

.preview-window .pw-line.med {
    width: 65%;
}

.preview-window .pw-line.long {
    width: 100%;
}

.preview-window .pw-card {
    height: 56px;
    border-radius: 8px;
    background: var(--terra-soft);
    margin-top: 8px;
}

.preview-window.warm .pw-card {
    background: rgba(212,156,71,0.35);
}

.preview-window.mint .pw-card {
    background: var(--olive-soft);
}

.preview-window.violet .pw-card {
    background: rgba(143,169,179,0.45);
}

/* Flow preview */

.preview-flow {
    position: absolute;
    inset: 22px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    overflow: hidden;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
}

.preview-flow .flow-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.flow-node {
    max-width: 100%;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--ink);
    display: inline-flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    white-space: normal;
}

.flow-node .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terra);
    flex: 0 0 6px;
}

.flow-line {
    align-self: center;
    width: 2px;
    height: 16px;
    flex: 0 0 16px;
    background: linear-gradient(180deg, var(--terra), transparent);
}

@media (min-width: 920px) and (max-width: 1100px) {
    .work-preview {
        aspect-ratio: 16 / 11;
    }

    .preview-flow {
        inset: 16px;
        padding: 14px;
        gap: 8px;
    }

    .flow-node {
        font-size: 0.66rem;
        padding: 5px 8px;
    }

    .flow-line {
        height: 12px;
        flex-basis: 12px;
    }
}

@media (max-width: 700px) {
    .work-preview {
        aspect-ratio: 16 / 11;
    }

    .preview-flow {
        inset: 14px;
        padding: 14px;
        gap: 8px;
    }

    .flow-node {
        font-size: 0.66rem;
        padding: 6px 9px;
    }

    .flow-line {
        height: 12px;
        flex-basis: 12px;
    }
}

@media (max-width: 520px) {
    .work-preview {
        aspect-ratio: 16 / 11;
    }

    .preview-flow {
        inset: 10px;
        padding: 10px;
        gap: 6px;
    }

    .preview-flow .flow-row {
        gap: 6px;
    }

    .flow-node {
        font-size: 0.62rem;
        line-height: 1.2;
        padding: 5px 8px;
    }

    .flow-node .dot {
        width: 5px;
        height: 5px;
        flex: 0 0 5px;
    }

    .flow-line {
        height: 9px;
        flex: 0 0 9px;
    }
}

/* About */

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

.about-portrait {
    border-radius: var(--radius-lg);
    background: var(--terra-soft);
    border: 1px solid rgba(196,90,58,0.25);
    padding: 44px;
    position: relative;
    overflow: hidden;
}

.about-portrait .glyph {
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--terra);
    opacity: 0.18;
}

.about-portrait .label {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terra-deep);
    font-weight: 600;
}

.about-portrait .name {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--ink);
    margin: 10px 0 4px;
    letter-spacing: -0.02em;
}

.about-portrait .where {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.about-portrait .stack {
    margin-top: 28px;
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.about-portrait .stack span {
    font-size: 0.95rem;
    color: var(--ink);
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.about-portrait .stack span::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terra-deep);
    flex: none;
}

.about-photo-card {
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
}

.about-photo {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
    object-position: center 44%;
    border-bottom: 1px solid var(--line);
    filter: saturate(0.92) contrast(0.96);
}
.about-photo-content {
    padding: 32px;
    position: relative;
    z-index: 1;
}

.family-note {
    margin: 34px 0 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.family-note img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 16%;
    filter: saturate(0.9) contrast(0.96);
}

.family-note figcaption {
    margin: 0;
    padding: 18px 22px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.values-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 44px;
}

.value-card {
    padding: 26px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 22px;
    left: -1px;
    width: 4px;
    height: 32px;
    background: var(--terra);
    border-radius: 0 4px 4px 0;
}

.value-card:nth-child(2n)::before {
    background: var(--olive);
}

.value-card:nth-child(3n)::before {
    background: var(--mustard);
}

.value-card:nth-child(4n)::before {
    background: var(--sky);
}

.value-card h4 {
    color: var(--ink);
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.15rem;
}

.value-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

@media (min-width: 600px) {
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 80px;
    }
}

@media (min-width: 700px) and (max-width: 899px) {
    .about-grid {
        max-width: 760px;
        margin: 0 auto;
    }

    .about-photo {
        aspect-ratio: 16 / 10;
        object-position: center 25%;
    }

    .family-note img {
        aspect-ratio: 4 / 3;
        object-position: center 16%;
    }
}

@media (max-width: 600px) {
    .about-portrait {
        padding: 32px 26px;
    }

    .about-portrait .name {
        font-size: 2rem;
    }

    .about-portrait .glyph {
        width: 180px;
        height: 180px;
        right: -70px;
        bottom: -70px;
    }

    .about-photo-content {
        padding: 26px;
    }
}

/* Contact */

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

.contact-info {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.info-row {
    display: grid;
    gap: 4px;
}

.info-row .lbl {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    font-weight: 600;
}

.info-row .val {
    color: var(--ink);
    font-weight: 500;
    word-break: break-word;
    font-size: 1.05rem;
}

.info-row a.val {
    color: var(--terra);
}

.info-row a.val:hover {
    color: var(--terra-deep);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    gap: 20px;
}

#contact-form {
    scroll-margin-top: 110px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field label {
    font-size: 0.86rem;
    color: var(--ink);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field label .req {
    color: var(--terra);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.field label .opt {
    color: var(--ink-mute);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    background: var(--bg);
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    padding: 13px 16px;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .15s, background .15s, box-shadow .15s;
    outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--terra);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(196,90,58,0.15);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.5;
}

.field select option {
    background: var(--bg-card);
}

.form-msg {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1.5px solid;
}

.form-msg.success {
    background: var(--olive-soft);
    border-color: var(--olive);
    color: #4d5728;
}

.form-msg.error {
    background: var(--terra-soft);
    border-color: var(--terra);
    color: var(--terra-deep);
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 56px;
    }
}

@media (max-width: 600px) {
    .contact-info,
    .contact-form {
        padding: 26px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

/* Pricing */

.pricing-section {
    padding-top: 72px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pricing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card.featured {
    border-color: var(--terra);
    background:
        linear-gradient(180deg, rgba(196,90,58,0.08), transparent 42%),
        var(--bg-card);
}

.pricing-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--terra-soft);
    color: var(--terra-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-badge-placeholder {
    visibility: hidden;
}

.pricing-card h3 {
    margin-bottom: 10px;
    font-weight: 500;
}

.pricing-price {
    font-family: var(--font-serif);
    font-size: clamp(2.05rem, 3vw, 3.15rem);
    line-height: 1;
    color: var(--terra);
    margin: 8px 0 18px;
}

.pricing-card p {
    font-size: 0.95rem;
}

.pricing-list {
    list-style: none;
    padding: 20px 0 0;
    margin: auto 0 0;
    display: grid;
    gap: 12px;
    border-top: 1px dashed var(--line-strong);
}

.pricing-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.pricing-list svg {
    flex: 0 0 auto;
    color: var(--olive);
    margin-top: 3px;
}

.pricing-note {
    max-width: 760px;
    margin: 28px auto 0;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.96rem;
}

.pricing-disclaimer {
    margin-top: 10px;
    font-size: 0.86rem;
    color: var(--ink-mute);
}

@media (min-width: 1050px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

@media (min-width: 700px) and (max-width: 1049px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
    }
}

@media (max-width: 520px) {
    .pricing-section {
        padding-top: 56px;
    }

    .pricing-card {
        padding: 24px;
    }

    .pricing-price {
        font-size: 2.1rem;
    }
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 72px 0 32px;
    margin-top: 88px;
    background: var(--bg-warm);
}

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

.footer-brand p {
    max-width: 380px;
    font-size: 0.96rem;
    color: var(--ink-soft);
}

.footer-col h5 {
    color: var(--ink);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 16px;
    font-weight: 600;
    font-family: var(--font-sans);
}

.footer-col a {
    display: block;
    color: var(--ink-soft);
    padding: 6px 0;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--terra);
}

.footer-bottom {
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    color: var(--ink-mute);
    font-size: 0.86rem;
}

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

@media (max-width: 600px) {
    .site-footer {
        padding: 56px 0 28px;
        margin-top: 56px;
    }

    .footer-grid {
        gap: 32px;
    }

    .footer-bottom {
        margin-top: 36px;
        flex-direction: column;
        gap: 6px;
    }
}

/* CTA banner */

.cta-banner {
    margin-top: 64px;
    background: var(--ink);
    color: var(--bg-soft);
    border-radius: var(--radius-xl);
    padding: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: var(--terra);
    border-radius: 50%;
    opacity: 0.55;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -10px;
    width: 140px;
    height: 140px;
    background: var(--mustard);
    border-radius: 50%;
    opacity: 0.45;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h3 {
    margin: 0;
    max-width: 540px;
    font-size: clamp(1.6rem, 1.5vw + 1rem, 2.1rem);
    color: var(--bg-soft);
    font-family: var(--font-serif);
    font-weight: 500;
    overflow-wrap: break-word;
}

.cta-banner p {
    color: rgba(251, 246, 234, 0.75);
    margin-top: 10px;
}

.cta-banner .btn-primary {
    background: var(--bg-soft);
    color: var(--ink);
    border-color: var(--bg-soft);
}

.cta-banner .btn-primary:hover {
    background: var(--terra-soft);
    border-color: var(--terra-soft);
    color: var(--terra-deep);
}

@media (max-width: 700px) {
    .cta-banner {
        padding: 36px 28px;
        gap: 20px;
        border-radius: 28px;
    }
}

@media (max-width: 600px) {
    .cta-banner::before {
        display: none;
    }

    .cta-banner::after {
        display: none;
    }

    .cta-banner .btn {
        width: 100%;
        white-space: normal;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .cta-banner {
        padding: 28px 22px;
    }

    .cta-banner h3 {
        font-size: 1.4rem;
    }
}

/* Chat widget */

.chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--terra);
    border: none;
    color: var(--bg-soft);
    box-shadow: 0 16px 32px -10px rgba(196,90,58,0.5);
    display: grid;
    place-items: center;
    transition: transform .2s var(--easing), background .2s;
}

@supports (bottom: env(safe-area-inset-bottom)) {
    .chat-launcher {
        bottom: max(18px, env(safe-area-inset-bottom));
    }
}

.chat-launcher:hover {
    transform: scale(1.05);
    background: var(--terra-deep);
}

.chat-launcher svg {
    width: 26px;
    height: 26px;
}

.chat-window {
    position: fixed;
    right: 18px;
    bottom: 92px;
    z-index: 70;
    width: min(380px, calc(100vw - 24px));
    height: min(560px, calc(100vh - 130px));
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--shadow);
}

@supports (bottom: env(safe-area-inset-bottom)) {
    .chat-window {
        bottom: calc(92px + env(safe-area-inset-bottom));
    }
}

.chat-window.open {
    display: flex;
    animation: chatIn .25s var(--easing);
}

@keyframes chatIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--terra-soft);
}

.chat-head .avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--terra);
    display: grid;
    place-items: center;
    color: var(--bg-soft);
}

.chat-head .avatar svg {
    width: 18px;
    height: 18px;
}

.chat-head .meta {
    flex: 1;
}

.chat-head .meta .ttl {
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.chat-head .meta .sub {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.chat-head .close-btn {
    background: none;
    border: none;
    color: var(--ink-soft);
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.chat-head .close-btn:hover {
    background: rgba(37,31,23,0.08);
    color: var(--ink);
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-soft);
}

.chat-msg {
    max-width: 85%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: 0.93rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-msg.assistant {
    background: var(--bg-card);
    color: var(--ink);
    border: 1px solid var(--line);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--terra);
    color: var(--bg-soft);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.error {
    background: var(--terra-soft);
    border: 1px solid var(--terra);
    color: var(--terra-deep);
    align-self: stretch;
    max-width: 100%;
}

.chat-typing {
    align-self: flex-start;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: inline-flex;
    gap: 4px;
}

.chat-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-mute);
    animation: typing 1.2s infinite ease-in-out;
}

.chat-typing i:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing i:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.chat-foot {
    border-top: 1px solid var(--line);
    padding: 14px;
    display: flex;
    gap: 8px;
    background: var(--bg-card);
}

.chat-foot input {
    flex: 1;
    background: var(--bg);
    border: 1.5px solid var(--line-strong);
    border-radius: 12px;
    padding: 11px 14px;
    color: var(--ink);
    outline: none;
    font-size: 0.95rem;
}

.chat-foot input:focus {
    border-color: var(--terra);
}

.chat-foot button {
    border: none;
    background: var(--terra);
    color: var(--bg-soft);
    width: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}

.chat-foot button:hover {
    background: var(--terra-deep);
}

.chat-foot button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin styles */

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr;
}

.admin-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-bar nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.admin-bar nav a {
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}

.admin-bar nav a:hover {
    background: var(--bg-warm);
    color: var(--ink);
}

.admin-bar nav a.active {
    background: var(--terra-soft);
    color: var(--terra-deep);
}

.admin-content {
    padding: 48px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
}

.admin-card h2 {
    font-size: 1.3rem;
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-weight: 500;
}

.admin-card p.note {
    color: var(--ink-mute);
    font-size: 0.92rem;
    margin: 0 0 22px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow);
}

.login-card .brand {
    justify-content: center;
    margin-bottom: 28px;
}

.login-card h1 {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-weight: 500;
}

.login-card .lead {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 28px;
    color: var(--ink-soft);
}

.lead-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -8px;
    padding: 0 8px;
}

.lead-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 640px;
}

.lead-table th {
    text-align: left;
    color: var(--ink-mute);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    font-weight: 600;
}

.lead-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: top;
}

.lead-table tr:hover td {
    background: var(--bg);
}

.lead-table .muted {
    color: var(--ink-mute);
}

.lead-table .stack {
    display: grid;
    gap: 4px;
}

.lead-table .pill {
    display: inline-block;
    padding: 3px 11px;
    background: var(--terra-soft);
    border-radius: 999px;
    font-size: 0.72rem;
    color: var(--terra-deep);
    font-weight: 600;
}

.empty-state {
    padding: 36px;
    text-align: center;
    color: var(--ink-mute);
}

@media (max-width: 700px) {
    .admin-bar {
        padding: 14px 18px;
    }

    .admin-bar nav a {
        padding: 7px 12px;
        font-size: 0.88rem;
    }

    .admin-content {
        padding: 32px 18px 64px;
    }

    .admin-card {
        padding: 22px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

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

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .login-shell {
        padding: 18px;
    }

    .login-card {
        padding: 30px 24px;
        border-radius: 22px;
    }
}

/* Tablet layout polish */

@media (min-width: 700px) and (max-width: 1049px) {
    .section {
        padding: 76px 0;
    }

    .section-head {
        margin-bottom: 42px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .svc-card {
        padding: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
        margin: 0 auto;
    }

    .contact-form,
    .contact-info {
        padding: 34px;
    }
}

/* Reveal animations */

[data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--easing), transform .6s var(--easing);
}

[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */

.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;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition: none !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
.chat-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.chat-lead-modal.open {
    display: block;
}

.chat-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37,31,23,0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.chat-lead-dialog {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow);
}

.chat-lead-dialog h2 {
    margin-right: 40px;
}

.chat-lead-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}

.chat-lead-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.chat-lead-offer {
    align-self: flex-start;
    max-width: 92%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.chat-lead-offer p {
    margin: 0;
    font-size: 0.9rem;
}

.chat-lead-offer .btn {
    width: fit-content;
}

@media (max-width: 600px) {
    .chat-lead-dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 26px 20px;
    }

    .chat-lead-dialog h2 {
        font-size: 1.8rem;
    }

    .chat-lead-offer {
        max-width: 100%;
    }

    .chat-lead-offer .btn {
        width: 100%;
    }
}
.chat-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.chat-lead-modal.open {
    display: block;
}

.chat-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(37,31,23,0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.chat-lead-dialog {
    position: relative;
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    margin: 24px auto;
    background: var(--bg-card);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow);
}

.chat-lead-dialog h2 {
    margin-right: 40px;
}

.chat-lead-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}

.chat-lead-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.chat-lead-offer {
    align-self: flex-start;
    max-width: 92%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.chat-lead-offer p {
    margin: 0;
    font-size: 0.9rem;
}

.chat-lead-offer .btn {
    width: fit-content;
}

@media (max-width: 600px) {
    .chat-lead-dialog {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 26px 20px;
    }

    .chat-lead-dialog h2 {
        font-size: 1.8rem;
    }

    .chat-lead-offer {
        max-width: 100%;
    }

    .chat-lead-offer .btn {
        width: 100%;
    }
}
.hero h1 {
    hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(2.15rem, 9vw, 3.2rem);
        line-height: 1.03;
    }

    .hero .lead {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero .eyebrow {
        display: flex;
        align-items: flex-start;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
        line-height: 1.35;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 100%;
        min-width: 0;
        white-space: normal;
        line-height: 1.25;
        padding-inline: 18px;
    }
}
@media (max-width: 600px) {
    .chat-launcher {
        width: 54px;
        height: 54px;
        right: 18px;
        bottom: 18px;
    }
}
.family-note {
    margin: 30px 0 0;
    max-width: 680px;
}

.family-note figcaption {
    font-size: 0.9rem;
}
@media (min-width: 700px) and (max-width: 899px) {
    .about-photo {
        aspect-ratio: 16 / 10;
        object-position: center 42%;
    }
}
@media (min-width: 900px) {
    .about-photo-card {
        position: sticky;
        top: 110px;
    }
}
.work-preview.has-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(196,90,58,0.08), rgba(110,123,59,0.08)),
        var(--bg-warm);
}

.work-preview.has-screenshot .work-screenshot {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    background: #ffffff;
}
/* Fix work card text visibility */
.work-card .work-body,
.work-card .work-body h3,
.work-card .work-body p,
.work-card .work-body .work-meta,
.work-card .work-body .work-tags,
.work-card .work-body .work-tags span {
    opacity: 1 !important;
}

.work-card .work-body h3 {
    color: var(--ink) !important;
}

.work-card .work-body p {
    color: var(--ink-soft) !important;
}

.work-card .work-body .work-meta {
    color: var(--ink-mute) !important;
}

.work-card .work-body .work-tags span {
    color: var(--ink-soft) !important;
    background: var(--bg-warm) !important;
}

.work-card .work-body {
    background: var(--bg-card);
}
/* AI explanation block inside dark CTA banner */

.cta-banner .pricing-list {
    border-top-color: rgba(251, 246, 234, 0.22);
}

.cta-banner .pricing-list li {
    color: rgba(251, 246, 234, 0.86);
}

.cta-banner .pricing-list svg {
    color: var(--olive-soft);
}

.cta-banner .eyebrow {
    color: var(--terra-soft);
}

.cta-banner .eyebrow .dot {
    background: var(--mustard);
}

.cta-banner p {
    color: rgba(251, 246, 234, 0.78);
}
