:root {
    --bg: #eef1f2;
    --bg-soft: #f7f8f8;
    --ink: #141c22;
    --muted: #5a6772;
    --line: rgba(20, 28, 34, 0.1);
    --accent: #1f4a40;
    --accent-deep: #16362f;
    --accent-soft: #d5e4de;
    --warm: #7d6242;
    --warm-soft: #efe6d8;
    --shadow: 0 28px 70px rgba(20, 28, 34, 0.1);
    --radius: 22px;
    --container: 1180px;
    --font-sans: "Manrope", sans-serif;
    --font-display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(1000px 520px at 0% -5%, rgba(213, 228, 222, 0.9) 0%, transparent 55%),
        radial-gradient(900px 480px at 100% 8%, rgba(239, 230, 216, 0.75) 0%, transparent 50%),
        linear-gradient(180deg, #f8f9f9 0%, var(--bg) 45%, #e8ecee 100%);
    min-height: 100vh;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

main { flex: 1; }

.container {
    width: min(var(--container), calc(100% - 2.75rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(247, 248, 248, 0.78);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(247, 248, 248, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), transparent),
        linear-gradient(145deg, #2a5d51, #16362f);
    color: #f3f7f5;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.78rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav a {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }

.nav a.is-active::after,
.nav a:hover::after { transform: scaleX(1); }

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

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
}

.lang-switch a {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}

.lang-switch a.is-active {
    background: var(--ink);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--accent);
    color: #f7faf8;
}

.btn-primary:hover { background: var(--accent-deep); }

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

.btn-ghost:hover {
    border-color: rgba(20, 28, 34, 0.28);
    background: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    padding: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    display: block;
}

.hero {
    position: relative;
    min-height: calc(100vh - 78px);
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    color: #f5f7f8;
}

.hero-media {
    position: absolute;
    inset: 0;
    background:
        url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
    transform: scale(1.05);
    animation: heroDrift 20s ease-in-out infinite alternate;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(12, 18, 22, 0.82) 8%, rgba(12, 18, 22, 0.5) 48%, rgba(12, 18, 22, 0.28) 100%),
        linear-gradient(0deg, rgba(12, 18, 22, 0.55), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(640px, calc(100% - 2.75rem));
    margin: 0 auto;
    padding: 5rem 1.5rem;
    text-align: center;
    display: grid;
    justify-items: center;
}

.hero h1 {
    margin: 0 0 1.1rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 500;
    max-width: 18ch;
    line-height: 1.2;
    letter-spacing: -0.02em;
    animation: riseIn 0.9s ease both;
}

.hero-lead {
    margin: 0 0 1.8rem;
    max-width: 42ch;
    color: rgba(245, 247, 248, 0.88);
    font-size: 1.08rem;
    line-height: 1.55;
    animation: riseIn 0.9s ease 0.08s both;
}

.hero-note {
    margin: 0 0 1.8rem;
    color: rgba(239, 230, 216, 0.95);
    font-size: 0.98rem;
    animation: riseIn 0.9s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    animation: riseIn 0.9s ease 0.16s both;
}

.hero .btn-primary {
    background: #f5f7f8;
    color: var(--ink);
}

.hero .btn-primary:hover { background: #fff; }

.hero .btn-ghost {
    border-color: rgba(245, 247, 248, 0.35);
    color: #f5f7f8;
}

.ribbon {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
    width: 100%;
    max-width: 100%;
}

.ribbon-track {
    display: flex;
    width: max-content;
    max-width: none;
    animation: ribbon 28s linear infinite;
    will-change: transform;
}

.ribbon-group {
    display: flex;
    gap: 2.2rem;
    padding: 0.95rem 2.2rem;
    white-space: nowrap;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ribbon-group span::after {
    content: "·";
    margin-left: 2.2rem;
    color: var(--warm);
}

.section { padding: 5.8rem 0; }

.section-head {
    max-width: 640px;
    margin-bottom: 2.6rem;
}

.section:has(.case-feature) .section-head {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--warm);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-head h2,
.page-hero h1,
.cta-band h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.35rem, 4.4vw, 3.7rem);
    line-height: 1.02;
    margin: 0 0 0.85rem;
    letter-spacing: -0.025em;
}

.section-head p,
.page-hero p,
.cta-band p {
    margin: 0;
    color: var(--muted);
    font-size: 1.06rem;
}

.page-hero {
    padding: 4.4rem 0 1.2rem;
    text-align: center;
}

.page-hero .container {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 2rem;
}

.promise-item {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}

.promise-index {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--warm);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.promise-item h3,
.service-item h3,
.legal-block h3,
.contact-block h3,
.process-step h3,
.case-body h3 {
    margin: 0 0 0.55rem;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}

.promise-item p,
.service-item p,
.legal-block p,
.contact-block p,
.process-step p,
.case-body p,
.review blockquote,
.faq-item p {
    margin: 0;
    color: var(--muted);
}

.metrics-section { padding-top: 0; }

.metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.6rem 0;
    border-block: 1px solid var(--line);
}

.metric {
    display: grid;
    gap: 0.35rem;
}

.metric strong {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.metric span {
    color: var(--muted);
    font-size: 0.92rem;
}

.band {
    background:
        linear-gradient(135deg, rgba(31, 74, 64, 0.07), rgba(125, 98, 66, 0.07)),
        rgba(255, 255, 255, 0.28);
    border-block: 1px solid var(--line);
}

.split-audience {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
    align-items: stretch;
}

.audience-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.audience-list li {
    padding: 0.95rem 0 0.95rem 1.1rem;
    border-left: 2px solid var(--accent-soft);
    color: var(--ink);
    font-weight: 600;
}

.audience-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.8rem;
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(31, 74, 64, 0.9), rgba(22, 54, 47, 0.95)),
        url("https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?auto=format&fit=crop&w=1200&q=80") center/cover;
    color: #f5f7f8;
    min-height: 280px;
    box-shadow: var(--shadow);
}

.audience-quote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    line-height: 1.15;
}

.audience-panel .btn-primary {
    background: #f5f7f8;
    color: var(--ink);
    align-self: flex-start;
}

.case-feature {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.case-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 1.05rem;
    text-align: center;
    justify-items: center;
    align-content: start;
    align-items: start;
}

.case-item.is-large {
    grid-column: auto;
    grid-row: auto;
}

.case-media {
    margin: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(180deg, #eef1f3, #e2e7eb);
    border: 1px solid rgba(20, 28, 34, 0.08);
    box-shadow: 0 16px 36px rgba(20, 28, 34, 0.08);
}

.case-item.is-large .case-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.9s ease;
}

.case-item:hover .case-media img { transform: scale(1.03); }

.case-meta,
.work-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.case-body {
    max-width: 38ch;
    display: grid;
    gap: 0.45rem;
    justify-items: center;
}

.case-body .work-task,
.case-body .case-result {
    max-width: 36ch;
}

.case-body h3,
.work-item h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    margin: 0;
}

.case-body p {
    margin: 0;
}

.case-result {
    margin-top: 0.35rem !important;
    color: var(--ink) !important;
}

.section-actions {
    margin-top: 2.4rem;
    display: flex;
    justify-content: center;
}

.process-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
}

.process-line,
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.process-step {
    padding: 1.35rem 0 0;
    border-top: 1px solid var(--line);
}

.process-step span {
    display: block;
    color: var(--warm);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.7rem;
}

.review-spotlight,
.review-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.review-list { grid-template-columns: repeat(2, 1fr); }

.review {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}

.review blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 1rem;
}

.review cite {
    font-style: normal;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.faq-list { display: grid; gap: 0.7rem; }

.faq-item {
    border-top: 1px solid var(--line);
    padding: 0.95rem 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    color: var(--warm);
    font-weight: 500;
    font-size: 1.2rem;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item p {
    margin-top: 0.75rem;
    max-width: 60ch;
}

.cta-band {
    margin: 1rem 0 0;
    padding: 4.5rem 0;
    background:
        linear-gradient(120deg, rgba(22, 54, 47, 0.94), rgba(31, 74, 64, 0.88)),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #f5f7f8;
}

.cta-band-inner {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
}

.cta-band p { color: rgba(245, 247, 248, 0.84); }

.cta-band .btn-primary {
    background: #f5f7f8;
    color: var(--ink);
}

.cta-band .btn-ghost {
    border-color: rgba(245, 247, 248, 0.35);
    color: #f5f7f8;
}

.service-list,
.work-list,
.legal-grid,
.contact-grid {
    display: grid;
    gap: 1.25rem;
}

.service-list { grid-template-columns: repeat(2, 1fr); }

.service-item {
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.service-out {
    margin-top: 0.85rem !important;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.92rem;
}

.work-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.6rem;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.work-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 1.05rem;
    text-align: center;
    justify-items: center;
    align-content: start;
    align-items: start;
}

.work-item figure {
    margin: 0;
    overflow: hidden;
    width: 100%;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #eef1f3, #e2e7eb);
    border: 1px solid rgba(20, 28, 34, 0.08);
    box-shadow: 0 16px 36px rgba(20, 28, 34, 0.08);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.8s ease;
}

.work-item:hover img { transform: scale(1.03); }

.work-item > div {
    max-width: 42ch;
    display: grid;
    gap: 0.4rem;
    justify-items: center;
}

.work-item > div p {
    margin: 0;
}

.work-task {
    margin: 0 !important;
    color: var(--ink) !important;
    font-weight: 600;
}

.legal-grid,
.contact-grid { grid-template-columns: repeat(2, 1fr); }

.legal-block,
.contact-block {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.15rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    font-weight: 700;
}

.contact-link:hover {
    border-color: rgba(31, 74, 64, 0.35);
    background: var(--accent-soft);
}

.checklist {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.checklist li {
    position: relative;
    padding-left: 1.2rem;
    color: var(--muted);
    font-weight: 600;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
}

.site-footer {
    padding: 3.2rem 0 1.8rem;
    border-top: 1px solid var(--line);
    margin-top: 0;
    background: rgba(255, 255, 255, 0.35);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 0.4rem;
}

.footer-copy,
.footer-bottom { color: var(--muted); }

.footer-links,
.footer-contacts { display: grid; gap: 0.45rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.chat-widget {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 9999;
    display: grid;
    justify-items: end;
    gap: 0.75rem;
}

.chat-panel[hidden],
.chat-messages[hidden],
.chat-badge[hidden],
.chat-tool[hidden],
.chat-start-fields[hidden] {
    display: none !important;
}

.chat-launcher {
    border: 0;
    border-radius: 999px;
    min-height: 54px;
    padding: 0.85rem 1.2rem;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: var(--shadow);
    position: relative;
}

.chat-launcher.has-unread {
    background: var(--accent);
}

.chat-launcher-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9dcfb8;
    animation: pulse 2.2s infinite;
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #c45b4a;
    color: #fff;
    font-size: 0.72rem;
    display: grid;
    place-items: center;
    padding: 0 5px;
}

.chat-panel {
    width: min(380px, calc(100% - 1.5rem));
    max-width: calc(100% - 1.5rem);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: panelIn 0.28s ease;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(72vh, 640px);
}

.chat-panel.has-messages {
    height: min(72vh, 560px);
}

.chat-panel:not(.has-messages) {
    grid-template-rows: auto auto;
    height: auto;
}

.chat-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem 1rem 0.85rem;
    background: linear-gradient(180deg, #e7f1ed, #fff);
    border-bottom: 1px solid var(--line);
}

.chat-panel-title {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
}

.chat-online {
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: #3f9d76;
    box-shadow: 0 0 0 0 rgba(63, 157, 118, 0.5);
    animation: pulse 2s infinite;
}

.chat-panel-head h2 { margin: 0; font-size: 1.1rem; }
.chat-panel-head p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.84rem; }

.chat-panel-tools {
    display: flex;
    gap: 0.35rem;
    align-items: flex-start;
}

.chat-close,
.chat-tool {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 700;
    color: var(--ink);
}

.chat-tool { width: auto; padding: 0 0.75rem; border-radius: 999px; }

.chat-messages {
    display: grid;
    gap: 0.55rem;
    overflow: auto;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, #f7f8f8, #fff);
    min-height: 0;
    align-content: start;
    align-items: start;
}

.chat-bubble {
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    max-width: 92%;
    width: fit-content;
    height: fit-content;
    align-self: start;
}

.chat-bubble.is-admin {
    background: var(--accent-soft);
    justify-self: start;
}

.chat-bubble.is-client {
    background: #ece7de;
    justify-self: end;
}

.chat-bubble header {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.chat-bubble p {
    margin: 0;
    font-size: 0.94rem;
    white-space: pre-wrap;
    line-height: 1.4;
}

.chat-form {
    display: grid;
    gap: 0.7rem;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chat-start-fields {
    display: grid;
    gap: 0.65rem;
}

.chat-form label { display: grid; gap: 0.3rem; }
.chat-form span { font-size: 0.78rem; color: var(--muted); font-weight: 700; }

.chat-form input,
.chat-composer textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    background: #fff;
    color: var(--ink);
    resize: none;
}

.chat-form input:focus,
.chat-composer textarea:focus {
    outline: 2px solid rgba(31, 74, 64, 0.25);
    border-color: rgba(31, 74, 64, 0.4);
}

.chat-composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.55rem;
    align-items: end;
}

.chat-send {
    border: 0;
    border-radius: 14px;
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
}

.chat-send-icon {
    display: block;
    transform: translateX(1px);
}

.chat-send:hover {
    background: var(--accent-deep);
}

.chat-send:disabled { opacity: 0.6; cursor: wait; }

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.chat-status {
    margin: 0;
    min-height: 1.1em;
    font-size: 0.84rem;
    color: var(--accent);
}

.chat-status.is-error { color: #8a3b32; }

.reveal,
.promise-item,
.case-item,
.work-item,
.metric {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible,
.promise-item.is-visible,
.case-item.is-visible,
.work-item.is-visible,
.metric.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroDrift {
    from { transform: scale(1.05) translate3d(0, 0, 0); }
    to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes ribbon {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(157, 207, 184, 0.65); }
    70% { box-shadow: 0 0 0 10px rgba(157, 207, 184, 0); }
    100% { box-shadow: 0 0 0 0 rgba(157, 207, 184, 0); }
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        inset: 78px 1rem auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding: 0.8rem;
        background: rgba(255, 255, 255, 0.97);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .nav.is-open { display: flex; }
    .nav a { padding: 0.75rem 0.7rem; }
    .nav a::after { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }

    .promise-grid,
    .metrics-row,
    .split-audience,
    .case-feature,
    .process-line,
    .process,
    .review-spotlight,
    .review-list,
    .faq-layout,
    .service-list,
    .work-list,
    .legal-grid,
    .contact-grid,
    .footer-grid,
    .cta-band-inner {
        grid-template-columns: 1fr;
    }

    .case-item.is-large { grid-row: auto; }
    .hero-content { padding: 4.5rem 0 3.2rem; }
    .cta-band-inner { align-items: start; }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 1.5rem));
    }

    .hero-content {
        width: min(640px, calc(100% - 1.5rem));
        padding: 4rem 1rem;
    }

    .brand-text small { display: none; }
    .section { padding: 4rem 0; }
    .chat-widget {
        right: 0.75rem;
        bottom: 0.75rem;
        left: auto;
        max-width: calc(100% - 1.5rem);
    }
    .chat-panel {
        width: min(380px, 100%);
        max-width: 100%;
    }
    .metrics-row { grid-template-columns: 1fr 1fr; }
    .footer-bottom { font-size: 0.8rem; }
}

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