:root {
    --bg: #ece7de;
    --bg-soft: #f4efe7;
    --surface: #faf8f3;
    --surface-strong: #e4d9ca;
    --ink: #121a21;
    --ink-soft: #4e5965;
    --line: rgba(18, 26, 33, 0.08);
    --line-strong: rgba(18, 26, 33, 0.15);
    --brand: #1a2a3a;
    --brand-2: #24384d;
    --header-brand: #1a2a3a;
    --accent: #b58a4f;
    --accent-soft: #d4b27f;
    --white: #FFFFFF;
    --success: #2E533F;
    --radius-sm: 8px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --shadow-soft: 0 18px 40px rgba(15, 26, 38, 0.06);
    --shadow-card: 0 24px 56px rgba(15, 26, 38, 0.08);
    --shadow-hover: 0 28px 70px rgba(15, 26, 38, 0.12);
    --container: 1240px;
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(181, 138, 79, 0.08), transparent 34%),
        linear-gradient(180deg, #e7e1d7 0%, #f1ece4 22%, #ece7de 100%);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 200;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: var(--brand);
    color: var(--white);
    font-weight: 700;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 1rem;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:focus-visible,
button:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(181, 138, 79, 0.75);
    outline-offset: 3px;
}

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

h1,
h2,
h3,
h4 {
    margin: 0 0 0.8em;
    font-family: "Cormorant Garamond", serif;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--brand);
}

p,
ul {
    margin: 0;
}

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

.section {
    padding: 88px 0;
}

.surface-light {
    background: linear-gradient(180deg, rgba(244, 239, 231, 0.98) 0%, rgba(237, 231, 222, 0.96) 100%);
    position: relative;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* --- HEADER --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(26, 42, 58, 0.94);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(10, 18, 28, 0.18);
}

.funding-banner {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(18, 26, 33, 0.08);
}

.funding-banner-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 0.9rem 0;
}

.funding-copy {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.funding-logos {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.funding-logos img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 90px;
}

.brand-mark img {
    width: 172px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.main-nav a {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}

.main-nav a:hover,
.main-nav a.is-active {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* --- BUTTONS --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #c89b61 100%);
    color: #1b2430;
    box-shadow: 0 12px 26px rgba(181, 138, 79, 0.22);
}

.button-primary:hover {
    background: linear-gradient(135deg, #bf9256 0%, #d3a468 100%);
    box-shadow: 0 16px 30px rgba(181, 138, 79, 0.28);
}

.button-secondary {
    border-color: var(--line-strong);
    background: rgba(250, 248, 243, 0.82);
    color: var(--brand);
}

.button-secondary:hover {
    border-color: var(--brand);
    background: var(--bg-soft);
}

.button-accent {
    background: var(--accent);
    color: var(--white);
}

.button-accent:hover {
    background: #a37c46;
}

/* --- TYPOGRAPHY UTILS --- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
}

.eyebrow-light {
    color: var(--accent-soft);
}

/* --- LAYOUTS --- */
.hero {
    padding: 64px 0 84px;
}

.hero-grid,
.split-layout,
.contact-layout,
.story-grid,
.card-grid,
.trust-grid,
.team-grid,
.price-preview-grid,
.document-grid,
.page-grid,
.info-slab,
.category-grid {
    display: grid;
    gap: 2rem;
}

.hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-copy h1 {
    font-size: clamp(2.85rem, 5.6vw, 4.75rem);
    max-width: 13ch;
    margin-bottom: 0.4em;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.85rem);
    max-width: 14ch;
    margin-bottom: 0.45em;
}

.hero-copy p,
.section-heading p,
.content-column p,
.page-lead {
    max-width: 60ch;
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
}

.hero-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 2.5rem;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
}

.hero-points li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-points li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(185, 143, 83, 0.15);
}

/* --- VISUALS --- */
.hero-visual {
    position: relative;
    padding-right: 1.5rem;
    padding-bottom: 1.5rem;
}

.hero-visual::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 0;
    bottom: 0;
    left: 1.5rem;
    border: 1px solid rgba(181, 138, 79, 0.42);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.feature-frame {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    background: var(--surface);
    position: relative;
    z-index: 1;
}

.feature-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.feature-frame:hover img {
    transform: scale(1.03);
}

.large-frame {
    height: 540px;
}

.hero-badge {
    position: absolute;
    bottom: 0rem;
    left: -1.2rem;
    z-index: 2;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-hover);
    max-width: 220px;
    padding: 1.2rem 1.3rem;
    border-radius: var(--radius-md);
}

.hero-badge strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 2.2rem;
    color: var(--brand);
    font-family: "Cormorant Garamond", serif;
    line-height: 1;
}

.hero-badge span {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.4;
    display: block;
}

/* --- SECTIONS --- */
.section-heading {
    margin-bottom: 2.8rem;
}

.section-heading h2,
.content-column h2,
.contact-section h2,
.page-section h2 {
    font-size: clamp(2rem, 3.8vw, 3.15rem);
    max-width: 18ch;
}

.section-intro {
    max-width: 78ch;
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.72;
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--brand-2);
    font-weight: 700;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.text-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- CARDS & GRIDS --- */
.story-grid,
.trust-grid,
.services-grid,
.price-preview-grid,
.document-grid,
.category-grid {
    grid-template-columns: repeat(3, 1fr);
}

.story-card,
.trust-card,
.service-card,
.price-preview-card,
.document-card,
.category-card,
.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 2rem 1.7rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.story-card:hover,
.trust-card:hover,
.service-card:hover,
.price-preview-card:hover,
.category-card:hover,
.document-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--line-strong);
}

.story-card h3,
.trust-card h3,
.service-card h3,
.price-preview-card h3,
.document-card h3,
.category-card h3,
.feature-card h3 {
    font-size: 1.62rem;
}

.story-card p,
.trust-card p,
.price-preview-card p,
.category-card p {
    color: var(--ink-soft);
}

.trust-grid {
    margin-top: 2rem;
}

.trust-card {
    position: relative;
    overflow: hidden;
}

.trust-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.trust-value {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--brand);
    font-family: "Cormorant Garamond", serif;
    font-size: 2.55rem;
    line-height: 1;
}

.service-card {
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.service-card p {
    color: var(--ink-soft);
    margin-top: auto;
}

.service-index {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.15rem;
    color: var(--accent-soft);
    opacity: 0.24;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

/* --- BRAND PANELS --- */
.accent-band {
    background:
        linear-gradient(135deg, rgba(20, 33, 47, 0.98) 0%, rgba(28, 44, 61, 0.98) 100%);
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.accent-band::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(185, 143, 83, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.accent-band h2 {
    color: var(--white);
}

.accent-band .content-column p {
    color: rgba(255, 255, 255, 0.7);
}

.accent-band .content-column .button {
    margin-top: 1.6rem;
}

.split-layout {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

/* --- TEAM CARDS --- */
.team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mini-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.team-card,
.mini-team-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(18, 26, 33, 0.08);
    color: var(--ink);
    transition: transform var(--transition);
}

.team-card:hover,
.mini-team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.accent-band .mini-team-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.accent-band .mini-team-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.team-card-image,
.mini-team-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    filter: saturate(0.96) contrast(1.02);
    transition: transform 0.6s ease, filter 0.5s ease;
}

.team-card:hover .team-card-image,
.mini-team-card:hover img {
    transform: scale(1.03);
    filter: saturate(1) contrast(1);
}

.team-card-body,
.mini-team-card div {
    padding: 1.5rem;
}

.team-card h3,
.mini-team-card h3 {
    font-size: 1.28rem;
    margin-bottom: 0.2rem;
    color: inherit;
}

.accent-band .mini-team-card h3 {
    color: var(--white);
}

.team-role {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.team-meta {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* --- FILES/CATEGORIES --- */
.document-card span,
.category-card span {
    display: inline-flex;
    margin-top: 1.5rem;
    color: var(--brand-2);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    align-items: center;
    background: var(--bg-soft);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: all var(--transition);
}

.document-card:hover span,
.category-card:hover span {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
}

/* --- CONTACT SEC --- */
.contact-section {
    background: var(--brand);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section h2 {
    color: var(--white);
}

.contact-section::before {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(185, 143, 83, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.contact-layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-stack {
    display: grid;
    gap: 1.25rem;
    font-style: normal;
    font-size: 1.1rem;
}

.contact-stack strong {
    font-size: 1.2rem;
    color: var(--white);
}

.contact-stack p {
    color: rgba(255, 255, 255, 0.7);
}

.contact-stack a {
    color: var(--accent-soft);
    transition: color var(--transition);
}

.contact-stack a:hover {
    color: var(--white);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.4rem;
    font-weight: 700;
}

.hours-card {
    padding: 2.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.hours-card h3 {
    font-size: 1.85rem;
    color: var(--white);
}

.hours-card ul {
    display: grid;
    gap: 1.5rem;
    padding: 0;
    list-style: none;
    margin-top: 2rem;
}

.hours-card li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.05rem;
}

.hours-note {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- FOOTER --- */
.site-footer {
    padding: 2.4rem 0;
    background: #111c28;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: start;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand strong,
.footer-title {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--white);
    font-size: 1rem;
}

.footer-brand p,
.footer-meta,
.footer-nav {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

.footer-right {
    display: grid;
    gap: 1.2rem;
    justify-items: start;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
}

.footer-meta {
    font-size: 0.86rem;
}

.footer-links a {
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* --- SUBPAGES --- */
.page-hero {
    padding: 52px 0 28px;
}

.page-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.page-hero-panel {
    padding: 2rem;
    border-radius: var(--radius-md);
    background: var(--brand);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-hero-panel::before {
    content: "";
    position: absolute;
    top: 0; right: 0; width: 150px; height: 150px;
    background: radial-gradient(circle at top right, rgba(185, 143, 83, 0.3), transparent 70%);
}

.page-hero-panel h2 {
    color: var(--white);
    font-size: 1.72rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    color: var(--ink-soft);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: var(--brand);
    transition: color var(--transition);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

.page-hero-panel ul,
.content-block ul,
.feature-card ul,
.service-detail-card ul,
.table-notes ul {
    display: grid;
    gap: 1rem;
    padding-left: 1.2rem;
}

.page-hero-panel li,
.service-detail-card li {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    list-style-type: none;
}

.service-detail-card li {
    color: var(--ink-soft);
}

.page-hero-panel li::before,
.service-detail-card li::before {
    content: "—";
    position: absolute;
    left: -1.2rem;
    color: var(--accent);
}

.content-block,
.note-card,
.cta-panel {
    border-radius: var(--radius-md);
    padding: 2rem;
}

.table-shell {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    padding: 2.2rem;
    box-shadow: var(--shadow-soft);
}

.content-block h3,
.note-card h3,
.table-shell h2,
.cta-panel h2,
.service-detail-card h3 {
    font-size: 1.95rem;
}

.page-section {
    padding: 32px 0 84px;
}

/* --- TABLES (Pricing) --- */
.table-wrap {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}

thead th {
    font-family: "Manrope", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.84);
    background: var(--brand);
    border-bottom: 0;
    padding: 1rem 1.5rem;
    font-weight: 700;
}

td {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    vertical-align: middle;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: rgba(228, 217, 202, 0.28);
}

tbody tr:last-child td {
    border-bottom: none;
}

td:last-child, th:last-child {
    text-align: right;
}

.price {
    white-space: nowrap;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand);
}

.muted {
    display: block;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.table-notes {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* --- CTA PANEL --- */
.cta-panel {
    display: grid;
    gap: 1.5rem;
    margin-top: 4rem;
    background: var(--brand);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(185, 143, 83, 0.15) 0%, transparent 70%);
    transform: translateY(-50%);
}

.cta-panel h2 {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 60ch;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
    margin-top: 1rem;
}

/* --- SERVICE DETAIL CARDS --- */
.service-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-detail-card {
    border-radius: var(--radius-md);
    padding: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-detail-card p {
    margin-bottom: 2rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.nav-cta {
    white-space: nowrap;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .split-layout,
    .contact-layout,
    .hero-grid,
    .page-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .hero-visual::after {
        top: 1rem; left: 1rem; right: -1rem; bottom: 0;
    }

    .story-grid,
    .services-grid,
    .price-preview-grid,
    .document-grid,
    .team-grid,
    .category-grid,
    .service-detail-grid,
    .mini-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    .brand-mark {
        justify-self: center;
    }

    .site-header {
        position: static;
    }

    .split-heading,
    .footer-shell {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.9rem 0.75rem;
        min-height: auto;
        padding: 0.85rem 0;
    }

    .footer-shell {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .footer-right {
        justify-items: start;
    }

    .main-nav {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0.45rem;
        padding: 0;
        background: transparent;
        border: 0;
        backdrop-filter: none;
    }

    .main-nav a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0.7rem 0.8rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .funding-banner-shell {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .funding-logos {
        justify-content: center;
        gap: 0.85rem 1rem;
    }

    .nav-cta {
        width: auto;
        min-width: 132px;
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .story-grid,
    .services-grid,
    .price-preview-grid,
    .document-grid,
    .team-grid,
    .category-grid,
    .service-detail-grid,
    .mini-team-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .page-section {
        padding: 60px 0;
    }

    .large-frame {
        height: 400px;
    }
}

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

    .hero {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    
    .hero-copy h1,
    .page-hero h1 {
        font-size: 2.35rem;
        max-width: none;
    }

    .section-heading h2,
    .content-column h2,
    .contact-section h2,
    .page-section h2 {
        font-size: 2rem;
    }

    .section-intro,
    .hero-copy p,
    .section-heading p,
    .content-column p,
    .page-lead,
    .cta-panel p {
        font-size: 0.98rem;
    }

    .story-card,
    .trust-card,
    .service-card,
    .price-preview-card,
    .document-card,
    .category-card,
    .feature-card,
    .table-shell,
    .note-card,
    .content-block,
    .hours-card,
    .cta-panel,
    .service-detail-card,
    .page-hero-panel {
        padding: 1.5rem;
    }

    .button,
    .hero-actions,
    .cta-actions {
        width: 100%;
    }

    .nav-cta {
        width: auto;
    }

    .main-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero-badge {
        position: relative;
        left: 0;
        bottom: 0;
        margin-top: 1rem;
        max-width: 100%;
    }

    th,
    td {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

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

    .nav-shell {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 0.8rem 0;
    }

    .brand-mark img {
        width: 150px;
    }

    .main-nav {
        grid-template-columns: 1fr;
    }

    .main-nav a {
        padding: 0.7rem 0.9rem;
        font-size: 0.88rem;
    }

    .nav-cta {
        width: 100%;
    }

    .funding-banner {
        border-bottom-color: rgba(18, 26, 33, 0.06);
    }

    .funding-banner-shell {
        padding: 0.75rem 0;
    }

    .funding-copy {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .funding-logos {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
        gap: 0.65rem;
    }

    .funding-logos img {
        height: 32px;
    }

    .hero {
        padding-top: 28px;
        padding-bottom: 52px;
    }

    .section,
    .page-section {
        padding: 52px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
