:root {
    color-scheme: light;
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --tint: #F3F6FC;
    --ink: #0F1B2D;
    --muted: #4A5A70;
    --accent: #1D4ED8;
    --accent-soft: #E6EDFF;
    --rule: #DCE4F2;
    --navy: #0B1F3A;
    --gold: #EDAA1F;
    --green: #15803D;
    --grad: linear-gradient(90deg, #1D4ED8, #0F766E);
    --wash:
        radial-gradient(circle at 88% 12%, #DCE8FF 0, rgba(220, 232, 255, 0) 46%),
        radial-gradient(circle at 6% 92%, #DDF6E8 0, rgba(221, 246, 232, 0) 42%),
        #F7F9FE;
    --shadow: 0 18px 40px -24px rgba(15, 27, 45, .28);
    --danger: #A12B1F;
    --danger-bg: #FBE9E6;
    --font-display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.icon { flex: none; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--accent); color: #FFFFFF; padding: .6rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 60; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}
.header-row {
    display: flex; flex-wrap: wrap; align-items: center;
    justify-content: space-between; gap: .5rem 1.5rem;
    padding-block: .8rem;
}
.brand {
    display: inline-flex; align-items: center; gap: .7rem;
    font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
    letter-spacing: -.015em; line-height: 1; text-decoration: none;
}
.logo-mark { flex: none; }
.brand-text { display: grid; gap: .3rem; }
.brand-labs { color: var(--green); }
.brand-tag {
    font-family: var(--font-body); font-size: .62rem; font-weight: 600;
    letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.nav-toggle, .nav-backdrop { display: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.75rem; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--muted); padding-block: .35rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.is-active {
    color: var(--ink);
    background: var(--grad) left bottom / 100% 2px no-repeat;
}
.site-nav .nav-cta, .site-nav .nav-cta.is-active {
    background: var(--grad); color: #FFFFFF; font-weight: 600;
    padding: .55rem 1.3rem; border-radius: 12px;
    box-shadow: 0 10px 20px -12px rgba(29, 78, 216, .7);
}
.site-nav .nav-cta:hover { color: #FFFFFF; filter: brightness(1.1); }

/* Buttons and links */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    text-decoration: none; font: inherit; font-weight: 600;
    padding: .8rem 1.4rem; border-radius: 12px; cursor: pointer;
    border: 1.5px solid transparent;
}
.btn-primary { background: var(--grad); color: #FFFFFF; box-shadow: 0 12px 24px -14px rgba(29, 78, 216, .75); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-quiet { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.btn-quiet:hover { border-color: var(--accent); }
.btn-block { width: 100%; padding-block: 1rem; }
.text-link {
    display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.25rem;
    color: var(--accent); font-weight: 600; text-underline-offset: 5px;
}

/* Hero */
.hero {
    position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--wash);
    display: grid; align-items: center; min-height: min(44rem, calc(100vh - 13rem));
}
.hero-deco { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
    position: relative; display: grid; gap: 3rem; align-items: center;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
}
.badge {
    display: inline-flex; align-items: center; gap: .55rem;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--rule); border-radius: 999px;
    padding: .35rem 1rem .35rem .7rem; font-weight: 600; font-size: .95rem;
    margin-bottom: 1.5rem;
}
.badge span { width: .7rem; height: .7rem; border-radius: 50%; background: var(--grad); }
.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.9rem);
    font-weight: 700; letter-spacing: -.025em; line-height: 1.05;
}
.hero h1 .grad {
    display: block;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-bottom: .08em;
}
.lead { margin-top: 1.5rem; font-size: 1.2rem; color: var(--muted); max-width: 46ch; }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.hero-chips a {
    display: block; text-decoration: none;
    background: rgba(255, 255, 255, .9); border: 1px solid var(--rule); border-radius: 999px;
    padding: .3rem .95rem; font-size: .92rem; font-weight: 600; color: var(--accent);
}
.hero-chips a:hover { border-color: var(--accent); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero visual: the vision in one picture. The SAP core at the base, BTP above it,
   and AI, apps and Fiori experiences on top, with signals travelling upward. */
.vision { width: 100%; max-width: 29rem; margin-left: auto; }
.v-cards, .v-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.v-card {
    display: grid; justify-items: center; gap: .6rem; text-align: center;
    background: var(--surface); border: 1.5px solid var(--rule); border-radius: 16px;
    padding: 1.1rem .5rem; font-weight: 600; font-size: .93rem; line-height: 1.25;
    box-shadow: var(--shadow);
}
.v-icon {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.v-links { height: 3.2rem; }
.v-links-one { grid-template-columns: minmax(0, 1fr); }
.v-link { position: relative; justify-self: center; width: 2px; height: 100%; background: #C3D2F0; }
.v-link::after {
    content: ""; position: absolute; left: 50%; bottom: 0; opacity: 0;
    width: .6rem; height: .6rem; margin-left: -.3rem; border-radius: 50%;
    background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .2);
}
.v-layer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem;
    border-radius: 16px; padding: 1.1rem 1.3rem; color: #FFFFFF;
}
.v-layer strong { font-family: var(--font-display); font-size: 1.25rem; }
.v-btp { background: var(--grad); box-shadow: 0 16px 30px -18px rgba(29, 78, 216, .8); }
.v-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.v-chips span {
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px; padding: .15rem .7rem; font-size: .82rem; font-weight: 600;
}
.v-core { background: var(--navy); }
.v-core span { color: #C5D3E8; font-size: .92rem; }

/* One 8-second loop: a signal rises from the core to BTP, then fans out to the three cards */
@media (prefers-reduced-motion: no-preference) {
    .v-links-one .v-link::after { animation: v-rise-core 8s linear infinite; }
    .v-btp { animation: v-btp 8s ease-out infinite; }
    .v-links:not(.v-links-one) .v-link::after { animation: v-rise 8s linear infinite; }
    .v-card { animation: v-card 8s ease-out infinite; }
    .v-links .v-link:nth-child(2)::after, .v-card:nth-child(2) { animation-delay: .5s; }
    .v-links .v-link:nth-child(3)::after, .v-card:nth-child(3) { animation-delay: 1s; }

    @keyframes v-rise-core { 0% { bottom: 0; opacity: 0; } 3% { opacity: 1; } 14% { bottom: 100%; opacity: 1; } 17%, 100% { bottom: 100%; opacity: 0; } }
    @keyframes v-btp { 0%, 13% { transform: none; filter: none; } 19% { transform: scale(1.025); filter: brightness(1.15); } 27%, 100% { transform: none; filter: none; } }
    @keyframes v-rise { 0%, 24% { bottom: 0; opacity: 0; } 27% { bottom: 0; opacity: 1; } 38% { bottom: 100%; opacity: 1; } 41%, 100% { bottom: 100%; opacity: 0; } }
    @keyframes v-card {
        0%, 37% { transform: none; border-color: var(--rule); background: var(--surface); }
        43%, 82% { transform: translateY(-6px); border-color: var(--accent); background: #F4F8FF; }
        92%, 100% { transform: none; border-color: var(--rule); background: var(--surface); }
    }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tint { background: var(--tint); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2, .stack-head h2, .stack-head h1, .page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; }
.section-head p { margin-top: .9rem; font-size: 1.15rem; color: var(--muted); }

/* Page header for inner pages */
.page-hero { background: var(--wash); text-align: center; padding-block: clamp(3rem, 6vw, 4.5rem); }
.page-hero p { margin: .9rem auto 0; font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.narrow { max-width: 46rem; }
.section-more { text-align: center; margin-top: 1.5rem; }

/* Home: the two things we offer */
.offers { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.offer {
    background: var(--surface); border: 1px solid var(--rule); border-top: 6px solid var(--accent);
    border-radius: 22px; padding: 2rem; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: flex-start;
}
.offer-green { border-top-color: #16A34A; }
.offer-icon {
    display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 14px;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 1.25rem;
}
.offer-green .offer-icon { background: #E3F6EA; color: #15803D; }
.offer h3 { font-size: 1.7rem; font-weight: 700; }
.offer > p { margin-top: .6rem; color: var(--muted); }
.offer ul { margin-top: 1.25rem; width: 100%; flex: 1; }
.offer li { padding: .8rem 0; border-top: 1px solid var(--rule); color: var(--muted); }
.offer li strong { display: block; color: var(--ink); }
.reasons-wide .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Closing band that leads to the contact page */
.cta { background: linear-gradient(115deg, #0B2A6B 0%, #1D4ED8 48%, #0F766E 100%); color: #FFFFFF; padding-block: clamp(2.75rem, 5vw, 4rem); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.cta p { margin-top: .6rem; color: #E3ECFB; max-width: 46ch; }
.btn-light { background: #FFFFFF; color: var(--accent); }
.btn-light:hover { background: #EEF3FF; }

/* Consultancy skills: a dark band with cards that overlap its lower edge */
.stack { background: var(--tint); padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.stack-head {
    background: linear-gradient(180deg, #0B1F3A, #14306B);
    color: #FFFFFF; text-align: center;
    padding: clamp(3.5rem, 7vw, 5rem) 0 9.5rem;
}
.stack-head p { margin-top: .9rem; font-size: 1.15rem; color: #C5D3E8; }
.stack-cards {
    width: min(1300px, 100% - 2.5rem);
    display: grid; gap: 1.25rem; margin-top: -6.5rem; align-items: start;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stack-card {
    background: var(--surface); border-radius: 22px; padding: 1.5rem 1.4rem;
    border-left: 6px solid var(--accent); box-shadow: var(--shadow);
}
.stack-green { border-left-color: #16A34A; }
.stack-gold { border-left-color: var(--gold); }
.stack-violet { border-left-color: #7C3AED; }
.stack-card h2 { font-size: 1.35rem; font-weight: 700; }
.stack-card > p { margin-top: .35rem; color: var(--muted); padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-top: 1.1rem; }
.tiles li:last-child:nth-child(odd) { grid-column: span 2; }
.tile {
    width: 100%; height: 100%; cursor: pointer;
    display: grid; justify-items: center; align-content: center; gap: .6rem; text-align: center;
    background: var(--surface); color: var(--ink);
    border: 1.5px solid var(--rule); border-radius: 14px; padding: 1rem .35rem; min-height: 6.4rem;
    font: inherit; font-weight: 600; font-size: .9rem; line-height: 1.25;
}
.tile:hover { border-color: var(--accent); }
.tile[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tiles .icon { width: 30px; height: 30px; color: var(--accent); }
.tile-brief {
    margin-top: 1.1rem; padding: .9rem 1rem; min-height: 9.6rem;
    background: var(--tint); border-radius: 14px; font-size: .95rem; color: var(--muted);
}
.tile-brief strong { display: block; color: var(--ink); margin-bottom: .15rem; }

/* Products */
.services { display: grid; gap: 3rem 4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service img { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.service h2 { margin-top: 1.75rem; font-size: 1.7rem; font-weight: 700; }
.service { scroll-margin-top: 6rem; }
.service p { margin-top: .6rem; color: var(--muted); max-width: 48ch; }
.service ul { margin-top: 1.25rem; }
.service li { padding: .7rem 0; border-top: 1px solid var(--rule); font-weight: 500; }

/* Why us: reasons on the left, how we work on the right */
.why-grid { display: grid; gap: 2rem; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.reasons { display: grid; gap: 1.25rem; }
.reasons li {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: 18px; padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.reason-icon {
    flex: none; display: grid; place-items: center;
    width: 3rem; height: 3rem; border-radius: 12px;
    background: var(--accent-soft); color: var(--accent);
}
.reasons h3 { font-size: 1.2rem; font-weight: 700; }
.reasons p { margin-top: .4rem; color: var(--muted); }

.how {
    background: var(--surface); border: 1px solid var(--rule);
    border-radius: 22px; padding: 1.75rem; box-shadow: var(--shadow);
}
.how > h2 { font-size: 1.4rem; font-weight: 700; }
.how { scroll-margin-top: 6rem; }
.how-sub { margin-top: .4rem; color: var(--muted); margin-bottom: 1.25rem; }
.how details { border: 1px solid var(--rule); border-radius: 14px; }
.how details + details { margin-top: .75rem; }
.how details[open] { border-color: var(--accent); }
.how summary {
    display: flex; align-items: center; gap: .85rem;
    padding: 1rem 1.1rem; cursor: pointer; list-style: none; font-weight: 600;
}
.how summary::-webkit-details-marker { display: none; }
.how-number {
    flex: none; display: grid; place-items: center;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--grad); color: #FFFFFF; font-family: var(--font-display); font-size: .95rem;
}
.how-title { flex: 1; }
.how summary .icon { color: var(--muted); transition: transform .2s; }
.how details[open] summary .icon { transform: rotate(180deg); }
.how details p { padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--rule); color: var(--muted); }

/* Contact: gradient band with details on the left and the form on the right */
.contact {
    background: linear-gradient(115deg, #0B2A6B 0%, #1D4ED8 48%, #0F766E 100%);
    color: #FFFFFF; padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.contact-grid { display: grid; gap: 2.5rem 4rem; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.eyebrow {
    display: flex; align-items: center; gap: .8rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: #4ADE80; }
.contact h1 { margin-top: 1rem; font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.02em; max-width: 14ch; }
.contact-lead { margin-top: 1.25rem; font-size: 1.1rem; max-width: 40ch; color: #E3ECFB; }
.contact-details { margin-top: 2rem; display: grid; gap: 1.25rem; }
.contact-details li { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.1rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-icon, .contact-social a {
    flex: none; display: grid; place-items: center;
    width: 3.2rem; height: 3.2rem; border-radius: 12px;
    background: #FFFFFF; color: var(--accent);
}
.detail-label {
    display: block; font-size: .75rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: #A7F3D0;
}
.contact-social { margin-top: 1.75rem; display: flex; gap: .75rem; }

.contact-form {
    background: var(--surface); color: var(--ink);
    border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.25rem);
    display: grid; gap: 1.1rem;
    box-shadow: 0 30px 60px -30px rgba(7, 21, 40, .6);
}
.contact-form h2 { font-size: 1.6rem; font-weight: 700; }
.contact-form { scroll-margin-top: 6rem; }
.form-sub { margin-top: .4rem; color: var(--muted); }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; color: var(--ink);
    background: var(--tint); border: 1.5px solid var(--rule);
    border-radius: 12px; padding: .75rem .9rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.form-note { font-size: .88rem; color: var(--muted); }
.form-note a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: .8rem 1rem; font-weight: 500; }
.notice-success { background: #166534; color: #FFFFFF; }
.notice-error { background: var(--danger-bg); color: var(--danger); border: 1px solid currentColor; }

/* Quick message button, bottom right on every page */
.chat { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; }
.chat > summary {
    list-style: none; cursor: pointer; margin-left: auto;
    display: grid; place-items: center;
    width: 3.75rem; height: 3.75rem; border-radius: 50%;
    background: #FFFFFF; color: var(--accent); border: 1.5px solid var(--accent);
    box-shadow: 0 16px 32px -14px rgba(15, 27, 45, .5);
}
.chat > summary::-webkit-details-marker { display: none; }
.chat > summary .icon { width: 28px; height: 28px; }
.chat-close, .chat[open] .chat-open { display: none; }
.chat[open] .chat-close { display: block; }
.chat[open] > summary { background: var(--accent); color: #FFFFFF; }
.chat-panel {
    position: absolute; right: 0; bottom: 4.6rem;
    width: min(21.5rem, 100vw - 2.5rem);
    max-height: calc(100vh - 7rem); overflow-y: auto;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 18px;
    padding: 1.25rem; box-shadow: 0 30px 60px -24px rgba(15, 27, 45, .55);
}
.chat-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.chat-sub { color: var(--muted); font-size: .95rem; margin: .2rem 0 1rem; }
.chat-panel form { display: grid; gap: .8rem; }
.chat-panel .field input, .chat-panel .field textarea { padding: .55rem .75rem; }
.chat-panel .field textarea { min-height: 5rem; }
.chat-panel .btn-block { padding-block: .8rem; }
.chat-alt { margin-top: .9rem; text-align: center; font-size: .92rem; }
.chat-alt a { color: var(--accent); }

/* Text pages, such as the privacy policy */
.prose { max-width: 44rem; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -.02em; }
.prose-meta { margin-top: .75rem; color: var(--muted); font-size: .95rem; }
.prose-page .prose h2 { margin-top: 2.5rem; font-size: 1.5rem; letter-spacing: -.01em; }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; padding-left: 1.3rem; list-style: disc; }
.prose li + li { margin-top: .4rem; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: #0B1F3A; color: #D3DDEC; padding-block: 3.5rem 2rem; font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.footer-brand .brand { color: #FFFFFF; margin-bottom: .9rem; font-size: 1.3rem; }
.site-footer .brand-labs { color: #4ADE80; }
.footer-brand p:last-child { max-width: 30ch; }
.footer-heading { font-family: var(--font-display); font-weight: 700; color: #FFFFFF; margin-bottom: .7rem; }
.site-footer li + li { margin-top: .45rem; }
.with-icon { display: inline-flex; align-items: center; gap: .45rem; }
.footer-base {
    margin-top: 3rem; padding-top: 1.5rem; padding-right: 4.5rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    display: grid; gap: .5rem; font-size: .82rem; color: #9FB0C8;
}
.footer-base p { max-width: 90ch; }

/* Skill cards: four across, then two, then one */
@media (max-width: 1120px) {
    .stack-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
    .tile-brief { min-height: 7rem; }
}
@media (max-width: 620px) {
    .stack-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Medium screens */
@media (max-width: 960px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Small screens */
@media (max-width: 820px) {
    html { scroll-padding-top: 4.5rem; }
    .brand-tag { display: none; }

    /* Phone menu: a three-line button on the left opens a small menu that floats over the page */
    .js .site-header { background: #FFFFFF; backdrop-filter: none; }
    .js .header-row { position: relative; flex-wrap: nowrap; justify-content: flex-start; gap: .8rem; }
    .menu-open .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 25;
        background: rgba(15, 27, 45, .18);
        -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
    }
    .js .nav-toggle {
        display: grid; align-content: center; gap: 5px; flex: none;
        width: 2.75rem; height: 2.75rem; padding: 0 .65rem; cursor: pointer;
        background: var(--surface); border: 1.5px solid var(--rule); border-radius: 12px;
    }
    .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .js .site-nav { display: none; }
    .js .site-nav.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: .1rem;
        position: absolute; left: 0; top: calc(100% + .35rem); z-index: 50;
        width: 14.5rem; padding: .45rem;
        background: rgba(255, 255, 255, .58);
        -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
        border: 1px solid rgba(255, 255, 255, .7); border-radius: 14px;
        box-shadow: 0 22px 44px -18px rgba(15, 27, 45, .5);
    }
    .js .site-nav.is-open a, .js .site-nav.is-open .nav-cta {
        padding: .7rem .9rem; border-radius: 10px;
        background: none; box-shadow: none; filter: none;
        color: var(--ink); font-weight: 600; font-size: 1.02rem;
    }
    .js .site-nav.is-open a:hover { background: rgba(29, 78, 216, .08); }
    .js .site-nav.is-open a[aria-current="page"] { background: rgba(29, 78, 216, .16); color: #0B2A6B; font-weight: 700; }
    .hero { min-height: 0; }
    .hero-grid, .services, .why-grid, .contact-grid, .offers, .reasons-wide .reasons { grid-template-columns: minmax(0, 1fr); }
    .vision { margin-left: 0; }
}
@media (max-width: 520px) {
    .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .v-card { font-size: .85rem; }
    .hero h1 { font-size: 2.05rem; }
}
