:root {
    --orange: #F99E23;
    --slate-blue: #3A506B;
    --charcoal: #212529;
    --text-muted: #5c6570;
    --light-grey: #F4F7F9;
    --white: #FFFFFF;
    --border-color: #e6eaef;
    --page-max: 1260px;
    color-scheme: light;
}

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

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

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffffff;
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.page {
    width: 95vw;
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 16px 48px;
    box-sizing: border-box;
}

/* Horizontal rules wider than .page column (95vw of viewport, centered) */
.site-header::after,
.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 95vw;
    margin-left: -47.5vw;
    pointer-events: none;
}

/* Header — Stripe-style: logo | nav | social */
.site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
    transition: padding 0.2s ease, box-shadow 0.2s ease;
}

.site-header::after {
    bottom: 0;
    border-bottom: 1px solid var(--border-color);
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    text-decoration: none;
    color: var(--charcoal);
}

.brand:visited {
    color: #000000;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    justify-self: end;
    grid-column: 3;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px 0;
    background-color: #000000;
    border-radius: 1px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.brand-logo {
    height: 32px;
    width: auto;
    display: block;
    transition: height 0.2s ease;
    filter: brightness(0);
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), var(--slate-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-word {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
}

.logo-tagline {
    font-size: 11px;
    color: #6c757d;
}

.main-nav {
    display: flex;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    justify-self: center;
    grid-column: 2;
}

.main-nav a {
    text-decoration: none;
    color: var(--charcoal);
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--charcoal);
    background-color: var(--light-grey);
}

.main-nav a[aria-current="page"] {
    font-weight: 600;
    color: var(--charcoal);
    position: relative;
}

.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: 1.15em;
    max-width: 42%;
    height: 2px;
    border-radius: 1px;
    background: rgba(58, 80, 107, 0.55);
}

.header-social {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    grid-column: 3;
}

.header-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    padding: 0;
    background: transparent;
    color: var(--charcoal);
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header-social-link:hover,
.header-social-link:focus-visible {
    background-color: var(--light-grey);
    color: var(--slate-blue);
}

.header-social-icon {
    display: block;
}

.site-header.is-shrunk {
    padding: 12px 0;
    box-shadow: 0 1px 0 var(--border-color), 0 8px 24px rgba(33, 37, 41, 0.06);
}

.site-header.is-shrunk .brand-logo {
    height: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--charcoal);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(33, 37, 41, 0.08), 0 8px 20px rgba(249, 158, 35, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 37, 41, 0.1), 0 12px 28px rgba(249, 158, 35, 0.4);
}

.btn-ghost {
    background-color: rgba(255, 255, 255, 0.6);
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

/* Top services strip */
.top-services {
    margin-top: 8px;
    margin-bottom: 24px;
}

.top-services-heading {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 400;
    color: #000000;
    letter-spacing: -0.01em;
    text-align: center;
}

.top-services-tagline {
    margin: 0 0 20px;
    font-size: clamp(15px, 2.2vw, 18px);
    font-weight: 500;
    color: rgba(0, 0, 0, 0.88);
    text-align: center;
    line-height: 1.35;
}

.pre-services-cta {
    margin: 0 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.pre-services-cta p {
    margin: 0;
    font-size: 15px;
    color: #000000;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Founder photo — LinkedIn-style circle; re-used in Contact */
.contact-profile-photo-wrap {
    margin: 0;
}

.profile-photo {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.profile-photo--contact {
    width: 124px;
    height: 124px;
}

.tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.service-tile {
    position: relative;
    min-height: 360px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.tile-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tile-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.tile-plus {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    color: #000000;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.service-tile:hover .tile-plus,
.service-tile:focus-within .tile-plus {
    opacity: 1;
    transform: translateY(0);
}

.tile-label {
    position: absolute;
    left: 14px;
    bottom: 14px;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 8px 10px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.tile-label:hover,
.tile-label:focus-visible {
    text-decoration: underline;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.lightbox[aria-hidden="false"] {
    display: block;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.lightbox-dialog {
    position: relative;
    max-width: min(1000px, 95vw);
    max-height: calc(100vh - 32px);
    margin: 16px auto;
    border-radius: 16px;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}

.lightbox-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    flex: 1 1 auto;
    object-fit: contain;
    background: #FFFFFF;
}

.lightbox-caption {
    margin: 0;
    padding: 12px 16px 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.lightbox-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #000000;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
    background: #FFFFFF;
}

/* Prevent anchor targets from sitting under the sticky header */
#services,
#approach,
#contact {
    scroll-margin-top: 5.5rem;
}

.section-alt {
    background-color: var(--light-grey);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
}

.section-visual {
    margin: 0 0 18px;
}

.section-visual img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.section-visual-workflow img {
    max-height: none;
}

.section-visual-workflow {
    margin-top: 16px;
}

.section-header {
    margin-bottom: 22px;
}

.section-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    color: #000000;
}

.section-header p {
    margin: 0;
    font-size: 14px;
    color: #000000;
    max-width: 40rem;
}

/* Why Immenso — intro + photo */
.why-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.why-profile-photo-wrap {
    margin: 0;
    flex-shrink: 0;
}

.profile-photo--why {
    width: 112px;
    height: 112px;
}

.why-intro-body {
    min-width: 0;
}

.why-intro-body h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.01em;
    color: #000000;
}

.why-intro-body p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.55;
    color: #000000;
}

.why-intro-body p:last-child {
    margin-bottom: 0;
}

.why-big-three-heading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.72);
}

/* Cards / grids */
.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.card p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #000000;
}

.card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #000000;
}

.card li + li {
    margin-top: 4px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.benefit {
    border-radius: 14px;
    padding: 14px 14px 12px;
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.benefit h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.benefit p {
    margin: 0;
    font-size: 13px;
    color: #000000;
}

/* Steps */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.steps li {
    background-color: #FFFFFF;
    border-radius: 14px;
    padding: 14px 14px 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
}

.steps h3 {
    margin: 0 0 4px;
    font-size: 15px;
}

.steps p {
    margin: 0;
    font-size: 13px;
    color: #000000;
}

.section-cta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.section-cta p {
    margin: 0;
    font-size: 13px;
    color: #000000;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr);
    gap: 18px;
    margin-top: 6px;
}

.about-grid p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #000000;
}

.about-highlights h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.about-highlights ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #000000;
}

.about-highlights li + li {
    margin-top: 4px;
}

.services-simple {
    margin-top: 20px;
}

/* Contact */
.contact-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    text-align: center;
}

.contact-panel-main {
    min-width: 0;
}

.contact-email-label {
    margin: 0 0 2px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000000;
}

.contact-email {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 500;
}

.contact-panel .contact-actions {
    margin: 8px 0 10px;
    justify-content: center;
}

.contact-email a {
    color: #000000;
    text-decoration: none;
}

.contact-email a:hover,
.contact-email a:focus-visible {
    text-decoration: underline;
    color: var(--orange);
}

.contact-location {
    margin: 0;
    font-size: 13px;
    color: #000000;
}

/* Footer */
.site-footer {
    --footer-rule-gap: 12px;
    position: relative;
    margin-top: 56px;
    padding-top: var(--footer-rule-gap);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.site-footer::before {
    top: 0;
    border-top: 1px solid var(--border-color);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.footer-nav a {
    color: var(--charcoal);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--slate-blue);
}

.footer-contact {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.5;
}

.footer-contact-link {
    color: var(--charcoal);
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-size: inherit;
    cursor: pointer;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
    color: var(--slate-blue);
    text-decoration: underline;
}

.footer-contact-sep {
    margin: 0 0.35em;
    color: var(--text-muted);
}

.footer-location {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--charcoal);
    font-weight: 500;
}

.site-footer > p:not([class]) {
    margin: 0;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--charcoal);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1001;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.footer-legal {
    margin: var(--footer-rule-gap) 0 0;
    padding-top: var(--footer-rule-gap);
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--charcoal);
    text-decoration: underline;
}

/* Hero — Stripe-inspired split layout */
.hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--light-grey);
    margin: 22px 0 18px;
}

.hero-media {
    min-height: 450px;
    background-image: url("img/immenso_hero.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-media .hero-visual-placeholder {
    display: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 30px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.8) 100%);
}

/* Preview: hero image without the white gradient wash */
.hero--overlay-off .hero-overlay {
    background: none;
}

.hero-overlay-inner {
    max-width: 42rem;
}

.hero-eyebrow {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--slate-blue);
}

.hero-heading {
    margin: 0 0 16px;
    font-size: clamp(29px, 4.5vw, 43px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--charcoal);
    max-width: 22ch;
}

.hero-caption {
    margin: 0 0 14px;
    color: var(--slate-blue);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.hero-lead {
    margin: 0;
    max-width: 36rem;
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.65;
    color: var(--text-muted);
    font-weight: 400;
}

.hero-visual-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 280px;
    border-radius: 16px;
    border: 1px dashed #c5cdd6;
    background:
        linear-gradient(135deg, rgba(58, 80, 107, 0.06), rgba(249, 158, 35, 0.08)),
        var(--light-grey);
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

.hero-visual-hint {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
}

/* Services page jump list */
.services-jumplist {
    margin: 0 0 32px;
}

.services-jumplist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.services-jumplink {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    text-decoration: none;
    color: var(--charcoal);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.services-jumplink:hover,
.services-jumplink:focus-visible {
    border-color: #c5cdd6;
    background: var(--light-grey);
    box-shadow: 0 6px 18px rgba(33, 37, 41, 0.06);
}

.services-jumplink-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.services-jumplink-label {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

/* Services page accordion (replaces jump list links) */
.services-accordion {
    margin: 0 0 32px;
    display: grid;
    gap: 10px;
}

.services-accordion-item {
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    overflow: clip;
}

.services-accordion-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.services-accordion-summary:hover,
.services-accordion-summary:focus-visible {
    background: var(--light-grey);
    box-shadow: 0 6px 18px rgba(33, 37, 41, 0.06);
}

.services-accordion-summary::-webkit-details-marker {
    display: none;
}

.services-accordion-item > summary {
    list-style: none;
}

.services-accordion-item[open] .services-accordion-summary {
    background: var(--light-grey);
}

.service-block--accordion {
    padding: 24px 16px 28px;
    border-bottom: none;
}

/* Capability cards — home */
.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header--center p {
    margin-left: auto;
    margin-right: auto;
}

.capability-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.capability-card {
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.capability-card:hover {
    border-color: #c5cdd6;
    box-shadow: 0 8px 24px rgba(33, 37, 41, 0.06);
}

.capability-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
}

.capability-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 12px auto 12px;
    opacity: 0.92;
}

.capability-card h3 a {
    color: var(--charcoal);
    text-decoration: none;
}

.capability-card h3 a:hover,
.capability-card h3 a:focus-visible {
    color: var(--slate-blue);
}

.capability-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}

.section-link-row {
    margin: 24px 0 0;
    text-align: center;
}

.text-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--slate-blue);
    text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
    text-decoration: underline;
}

/* Services page blocks */
.page-intro {
    padding: 32px 0 16px;
}

.page-intro h1 {
    margin: 0 0 10px;
    font-size: clamp(25px, 3.6vw, 36px);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.service-block {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 5.5rem;
}

.service-block--alt {
    background: linear-gradient(180deg, transparent, rgba(244, 247, 249, 0.6) 20%, rgba(244, 247, 249, 0.6) 80%, transparent);
}

.service-block-visual {
    margin: 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    overflow: hidden;
}

.service-block-visual img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.service-block-body h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-block-body p {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 15px;
}

.service-block-body ul {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--charcoal);
}

.service-block-body li + li {
    margin-top: 6px;
}

.page-placeholder-main {
    padding: 64px 0;
    text-align: center;
}

.page-placeholder-main h1 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 600;
}

.legal-prose p {
    font-size: 15px;
    color: var(--text-muted);
}

.contact-location-emphasis {
    margin: 0 0 16px;
}

.path-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.path-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 18px;
    padding: 20px 18px 18px;
}

.path-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.path-card p {
    margin: 0 0 12px;
    font-size: 14px;
}

.path-list {
    margin: 0 0 16px;
    padding-left: 18px;
    font-size: 13px;
}

.path-list li + li {
    margin-top: 4px;
}

.page-lead {
    margin: 0;
    font-size: 15px;
    max-width: 42rem;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.badge--soon {
    background: rgba(249, 158, 35, 0.25);
    border-color: rgba(249, 158, 35, 0.5);
}

.placeholder-note {
    margin: 12px 0 0;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 12px;
    border: 1px dashed rgba(0, 0, 0, 0.25);
    background: rgba(244, 247, 249, 0.8);
}

.placeholder-note code {
    font-size: 12px;
}

.breadcrumb {
    margin-bottom: 12px;
    font-size: 13px;
}

.breadcrumb a {
    color: #000000;
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
}

.feature-list li + li {
    margin-top: 6px;
}

.product-grid,
.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.product-card {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 16px;
    padding: 18px;
    background: #FFFFFF;
}

.product-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

/* Products listing grid */
.products-list {
    padding: 32px 0 8px;
}

.product-group {
    margin-top: 8px;
}

.product-group-heading {
    margin: 0 0 18px;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--charcoal);
    max-width: 42rem;
}

.product-grid--three {
    margin-top: 0;
    gap: 18px;
    align-items: stretch;
}

.product-card--framed {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    height: 100%;
    overflow: visible;
}

.product-card-media {
    position: relative;
    flex-shrink: 0;
    margin-top: 10px;
    overflow: visible;
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--light-grey);
    object-fit: cover;
    display: block;
}

.product-card-image-caption {
    position: absolute;
    top: 0;
    left: 12px;
    z-index: 1;
    transform: translateY(-55%);
    margin: 0;
    max-width: calc(100% - 20px);
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    color: var(--charcoal);
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid rgba(58, 80, 107, 0.35);
    border-radius: 8px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 2px 10px rgba(33, 37, 41, 0.2),
        0 1px 3px rgba(33, 37, 41, 0.14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

@media (min-width: 1024px) {
    .product-card-image-caption {
        font-size: 12px;
        padding: 6px 12px;
        max-width: min(100%, 18rem);
    }
}

.product-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: var(--charcoal);
    flex-shrink: 0;
}

.product-card-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.product-card-title-link:hover,
.product-card-title-link:focus-visible {
    color: var(--slate-blue);
}

.product-card-image,
.product-gallery-slide img {
    cursor: zoom-in;
}

.product-card-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
    flex-shrink: 0;
}

.product-card-desc p {
    margin: 0 0 8px;
}

.product-card-desc p:last-of-type {
    margin-bottom: 6px;
}

.product-card-features,
.product-feature-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.product-card-features li + li,
.product-feature-list li + li {
    margin-top: 4px;
}

.product-feature-list {
    font-size: 14px;
    color: var(--charcoal);
}

.product-section-body + .product-section-body {
    margin-top: 10px;
}

.product-card-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-shrink: 0;
}

.product-card-details {
    flex-shrink: 0;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
}

.product-detail-sections {
    margin-top: 42px;
    display: grid;
    gap: 20px;
}

.product-detail-block {
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: #ffffff;
    padding: 22px 22px 20px;
}

.product-detail-block-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}

.product-detail-block-body {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

.product-detail-block-body p {
    margin: 0;
}

.product-detail-block-body .spec-dl {
    margin: 0;
}

/* Product detail page */
.product-page {
    padding: 32px 0 8px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.product-gallery {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 14px 14px 12px;
}

.product-gallery-viewport {
    border-radius: 14px;
    overflow: hidden;
    outline: none;
}

.product-gallery-viewport:focus-visible {
    box-shadow: 0 0 0 4px rgba(58, 80, 107, 0.18);
}

.product-gallery-track {
    display: flex;
    transition: transform 280ms ease;
    will-change: transform;
    touch-action: pan-y;
}

.product-gallery-slide {
    flex: 0 0 100%;
    margin: 0;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    background: var(--light-grey);
}

.product-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: var(--charcoal);
    font-size: 24px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.product-gallery-nav:hover,
.product-gallery-nav:focus-visible {
    background: #ffffff;
}

.product-gallery-nav--prev {
    left: 14px;
}

.product-gallery-nav--next {
    right: 14px;
}

.product-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 12px;
}

.product-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.product-gallery-dot[aria-current="true"] {
    background: var(--slate-blue);
    border-color: var(--slate-blue);
}

.product-info {
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    padding: 18px 18px 20px;
}

.product-info-header {
    margin: 0 0 8px;
}

.product-name {
    margin: 0;
    font-size: clamp(17px, 2.1vw, 23px);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--charcoal);
}

.product-tagline {
    margin: 8px 0 0;
    font-size: clamp(15px, 1.85vw, 18px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.45;
    color: var(--slate-blue);
    text-align: justify;
}

.product-meta {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.product-section-title {
    margin: 18px 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--charcoal);
}

.product-section-body {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.product-buy-row {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--charcoal);
}

.spec-dl {
    margin: 0 0 14px;
    font-size: 13px;
}

.spec-dl div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

.spec-dl dt {
    font-weight: 700;
    margin: 0;
}

.spec-dl dd {
    margin: 0;
}

.section-cta-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contact-note {
    margin: 12px 0 0;
    font-size: 13px;
    text-align: left;
}

.cards-grid--four {
    grid-template-columns: minmax(0, 1fr);
}

/* Responsive tweaks */
@media (min-width: 640px) {
    .why-intro {
        flex-direction: row;
        align-items: flex-start;
        gap: 22px;
    }

    .contact-panel {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 22px;
    }

    .contact-profile-photo-wrap {
        flex-shrink: 0;
    }

    .contact-panel .contact-actions {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .page {
        padding-inline: 32px;
    }

    .hero-media {
        min-height: 550px;
    }

    .hero-overlay {
        padding: 52px 56px;
    }

    .capability-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .service-block {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        padding: 48px 0;
    }

    .service-block:nth-child(even) .service-block-visual {
        order: 2;
    }

    .tiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

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

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

    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1.3fr 1fr;
    }

    .path-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid,
    .support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        align-items: start;
    }

    .product-info {
        padding: 24px 26px 26px;
    }

    .cards-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .product-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    .product-card--framed {
        padding: 20px 20px 18px;
        gap: 14px;
    }

    .product-card-title {
        font-size: 17px;
    }

    .product-card-desc {
        font-size: 15px;
        line-height: 1.65;
    }

    .product-card-features {
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .pre-services-cta {
        justify-content: center;
        text-align: center;
    }

    .pre-services-cta .contact-actions {
        justify-content: center;
        width: 100%;
    }

    .why-intro-body h3 {
        font-size: 22px;
    }
}

/* Mobile navigation */
@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        padding: 14px 0;
    }

    .nav-toggle {
        display: block;
        grid-column: 2;
        justify-self: end;
    }

    .header-social {
        grid-column: 3;
        gap: 2px;
    }

    .header-social-link {
        width: 32px;
        height: 32px;
    }

    .main-nav {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        padding: 8px 0 4px;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
    }

    .main-nav a {
        padding: 10px 12px;
    }

    .main-nav a[aria-current="page"]::after {
        left: 12px;
        bottom: 8px;
        transform: none;
        max-width: none;
    }

    .site-header.nav-open .main-nav {
        display: flex;
    }

    .hero-heading {
        max-width: none;
    }

    .pre-services-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Product image lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(33, 37, 41, 0.72);
    cursor: pointer;
}

.image-lightbox-panel {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    animation: image-lightbox-in 0.22s ease;
}

@keyframes image-lightbox-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-lightbox-img {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 88vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    background: #ffffff;
}

.image-lightbox-close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--charcoal);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 16px rgba(33, 37, 41, 0.18);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
    background: var(--light-grey);
    transform: scale(1.04);
}

body.image-lightbox-open {
    overflow: hidden;
}

