/* ==========================================================================
   iTechs — public site design system ("Fiber Light")
   --------------------------------------------------------------------------
   Hand-crafted, dependency-free stylesheet for the visitor-facing pages.
   Structure:
     1. Design tokens          7. Hero (home)          13. Forms
     2. Base & reset           8. Page hero (subpages) 14. Footer
     3. Typography             9. Stats & counters     15. Floating actions
     4. Layout primitives     10. Cards                16. Cookie / dialogs
     5. Buttons & links       11. Process & why        17. Prose (CMS html)
     6. Navigation            12. Marquee & CTA        18. Motion & utilities
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */
:root {
    /* Brand — teal drawn from the iTechs logo (#007888) */
    --teal-700: #00636f;
    --teal-600: #007888;
    --teal-500: #0e93a4;
    --teal-400: #2fb5c5;
    --cyan-300: #5fd6e2;
    --cyan-200: #9ce8ef;

    /* Ink — deep blue-green darks (hero, footer, process) */
    --ink-950: #04181d;
    --ink-900: #072229;
    --ink-800: #0b2f38;
    --ink-700: #12414d;

    /* Light surfaces */
    --paper: #f5f9fa;
    --surface: #ffffff;
    --surface-tint: #eef5f6;

    /* Text */
    --text: #10333c;
    --text-muted: #4f6b73;
    --text-soft: #6c848b;
    --text-on-dark: #eaf6f8;
    --text-muted-dark: #9fc0c7;

    /* Lines & effects */
    --line: rgba(7, 34, 42, 0.10);
    --line-strong: rgba(7, 34, 42, 0.16);
    --line-dark: rgba(255, 255, 255, 0.10);
    --glow: rgba(47, 181, 197, 0.35);
    --gradient-light: linear-gradient(120deg, var(--teal-500), var(--cyan-300));
    --gradient-brand: linear-gradient(120deg, var(--teal-600) 0%, var(--teal-400) 55%, var(--cyan-300) 100%);

    /* Elevation */
    --shadow-sm: 0 1px 2px rgba(7, 34, 42, 0.05), 0 2px 8px rgba(7, 34, 42, 0.05);
    --shadow-md: 0 2px 6px rgba(7, 34, 42, 0.06), 0 12px 32px rgba(7, 34, 42, 0.10);
    --shadow-lg: 0 4px 12px rgba(7, 34, 42, 0.08), 0 24px 64px rgba(7, 34, 42, 0.16);
    --shadow-glow: 0 8px 32px var(--glow);

    /* Shape & rhythm */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;
    --container: 76rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 9vw, 7.5rem);
    --nav-h: 4.75rem;

    /* Type */
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
    --dur: 0.55s;
}

/* 2. Base & reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

::selection { background: rgba(14, 147, 164, 0.28); color: var(--ink-900); }

:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 3px;
    border-radius: 4px;
}

a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); }

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

.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 300;
    padding: 0.75rem 1.25rem;
    background: var(--ink-900);
    color: #fff;
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 600;
    transition: top 0.2s var(--ease-out);
}
.skip-link:focus-visible { top: 0; color: #fff; }

/* 3. Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink-900);
    margin: 0 0 1rem;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }

.lead {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-muted);
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 1.1rem;
}
.kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-light);
}

.section-head { max-width: 44rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .kicker { justify-content: center; }
.section-head--split {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.section-head--split > div { max-width: 44rem; }

.text-gradient {
    background: var(--gradient-light);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 4. Layout primitives
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tint { background: var(--surface-tint); }
.section--dark {
    background:
        radial-gradient(52rem 30rem at 85% -10%, rgba(14, 147, 164, 0.16), transparent 60%),
        radial-gradient(40rem 26rem at 0% 110%, rgba(0, 120, 136, 0.14), transparent 60%),
        var(--ink-900);
    color: var(--text-on-dark);
}
/* Photo wash for a dark section. The image sits behind the content, screened
   into the ink so only its highlights survive, and masked to fade out before it
   reaches the body copy — the fibre bloom is near-white and would eat contrast. */
.section--media { position: relative; overflow: clip; }
.section__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
    opacity: 0.22;
    mix-blend-mode: screen;
    mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
    -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.35) 55%, transparent 85%);
    pointer-events: none;
    user-select: none;
}
.section--media .container { position: relative; }
@media (max-width: 60rem) {
    /* Stacked single column makes the section tall, so a full-height cover blows
       the photo up behind the body copy. Pin it to the heading zone instead. */
    .section__media {
        height: 22rem;
        opacity: 0.16;
        mask-image: linear-gradient(180deg, #000, transparent 80%);
        -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
    }
}

.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead, .section--dark p { color: var(--text-muted-dark); }
.section--dark .kicker { color: var(--cyan-300); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 60rem) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 40rem) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* 5. Buttons & links
   ========================================================================== */
.btn {
    --btn-bg: var(--teal-600);
    --btn-fg: #ffffff;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.7rem;
    border: 1px solid transparent;
    border-radius: var(--r-md);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.25s var(--ease-spring), box-shadow 0.3s var(--ease-out),
                background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
                color 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform 0.3s var(--ease-out); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary {
    background: linear-gradient(120deg, var(--teal-600), var(--teal-500) 60%, var(--teal-400));
    box-shadow: 0 4px 16px rgba(0, 120, 136, 0.28);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(14, 147, 164, 0.42); }

.btn--light {
    --btn-bg: #ffffff;
    --btn-fg: var(--ink-900);
    box-shadow: 0 4px 18px rgba(2, 12, 15, 0.25);
}
.btn--light:hover { box-shadow: 0 10px 30px rgba(2, 12, 15, 0.35); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink-900);
    border-color: var(--line-strong);
    background: transparent;
}
.btn--ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }

.btn--ghost-dark {
    --btn-bg: rgba(255, 255, 255, 0.04);
    --btn-fg: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(6px);
}
.btn--ghost-dark:hover { border-color: var(--cyan-300); color: var(--cyan-200); background: rgba(255, 255, 255, 0.07); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }

.btn[disabled], .btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn .btn__spinner { display: none; }
.btn.is-loading .btn__spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--teal-600);
}
.link-arrow .icon { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-on-dark);
    font-size: 0.86rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}
.chip .icon { color: var(--cyan-300); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(14, 147, 164, 0.10);
    color: var(--teal-600);
}
.badge--on-dark { background: rgba(95, 214, 226, 0.14); color: var(--cyan-200); }

/* 6. Navigation
   ========================================================================== */
.nav {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 120;
    transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
                border-color 0.35s var(--ease-out);
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(4, 24, 29, 0.55), rgba(4, 24, 29, 0));
}
.nav.is-scrolled {
    background: rgba(4, 24, 29, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--nav-h);
}

.nav__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: 2.6rem; width: auto; transition: height 0.3s var(--ease-out); }
.nav.is-scrolled .nav__brand img { height: 2.2rem; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
}
.nav__links .menu-link {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: var(--r-sm);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s, background-color 0.25s;
}
.nav__links .menu-link:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__links .menu-link.is-current { color: var(--cyan-300); }

.nav__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav__links + .nav__actions { margin-left: 0; }

.nav__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: border-color 0.25s, color 0.25s, background-color 0.25s;
}
.nav__phone:hover { border-color: var(--cyan-300); color: var(--cyan-300); background: rgba(255, 255, 255, 0.05); }

.nav__burger {
    display: none;
    position: relative;
    z-index: 140;
    width: 2.7rem;
    height: 2.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.25s;
}
.nav__burger span {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform 0.35s var(--ease-spring), opacity 0.2s;
}
.nav__burger:hover { border-color: var(--cyan-300); }
body.nav-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav__burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen mobile menu */
.nav__overlay {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 1rem) var(--gutter) 3rem;
    background:
        radial-gradient(48rem 30rem at 90% 0%, rgba(14, 147, 164, 0.22), transparent 60%),
        var(--ink-950);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
body.nav-open .nav__overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}
.nav__overlay-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.nav__overlay-links .menu-link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.88);
    padding: 0.35rem 0;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), color 0.25s;
}
.nav__overlay-links .menu-link:hover,
.nav__overlay-links .menu-link.is-current { color: var(--cyan-300); }
body.nav-open .nav__overlay-links .menu-link {
    transform: translateY(0);
    opacity: 1;
    transition-delay: calc(0.06s * var(--i, 0) + 0.1s);
}
.nav__overlay-foot {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--text-muted-dark);
    font-size: 0.95rem;
}
.nav__overlay-foot a { color: var(--cyan-200); font-weight: 500; }

@media (max-width: 64rem) {
    .nav__links { display: none; }
    .nav__burger { display: inline-flex; }
    .nav__cta { display: none; }
}
@media (min-width: 64.0625rem) {
    .nav__overlay { display: none; }
}

/* 7. Hero (home)
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(38rem, 96svh, 58rem);
    padding: calc(var(--nav-h) + 3rem) 0 7rem;
    overflow: clip;
    background:
        radial-gradient(60rem 36rem at 110% -20%, rgba(14, 147, 164, 0.25), transparent 62%),
        radial-gradient(50rem 32rem at -15% 115%, rgba(0, 99, 111, 0.35), transparent 60%),
        linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 78%, var(--ink-900) 100%);
    color: var(--text-on-dark);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.9;
}

.hero__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 3.4rem 3.4rem;
    mask-image: radial-gradient(70% 70% at 50% 38%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(70% 70% at 50% 38%, #000 0%, transparent 100%);
}

.hero__content { position: relative; max-width: 50rem; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(95, 214, 226, 0.25);
    background: rgba(95, 214, 226, 0.08);
    color: var(--cyan-200);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
}
.hero__kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cyan-300);
    box-shadow: 0 0 12px 2px var(--glow);
    animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.72); opacity: 0.65; }
}

.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero__lead { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-muted-dark); margin-bottom: 2.2rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted-dark);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero__scroll::after {
    content: "";
    width: 1px;
    height: 2.4rem;
    background: linear-gradient(180deg, var(--cyan-300), transparent);
    animation: scroll-hint 2s var(--ease-out) infinite;
}
@keyframes scroll-hint {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 8. Page hero (subpages)
   ========================================================================== */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.75rem, 6vw, 4.5rem);
    overflow: clip;
    background:
        radial-gradient(46rem 26rem at 100% -30%, rgba(14, 147, 164, 0.22), transparent 60%),
        radial-gradient(30rem 20rem at -10% 130%, rgba(0, 99, 111, 0.25), transparent 60%),
        linear-gradient(180deg, var(--ink-950), var(--ink-900));
    color: var(--text-on-dark);
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 3.4rem 3.4rem;
    mask-image: radial-gradient(80% 90% at 50% 0%, #000 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 0%, transparent 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; max-width: 46rem; margin-bottom: 0.9rem; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.page-hero .lead { color: var(--text-muted-dark); max-width: 40rem; margin-bottom: 0; }
.page-hero .kicker { color: var(--cyan-300); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    list-style: none;
    margin: 0 0 1.4rem;
    padding: 0;
    font-size: 0.86rem;
    color: var(--text-muted-dark);
}
.breadcrumbs a { color: var(--text-muted-dark); }
.breadcrumbs a:hover { color: var(--cyan-200); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.55rem; opacity: 0.45; }
.breadcrumbs [aria-current] { color: var(--cyan-300); font-weight: 500; }

.page-hero__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

/* 9. Stats & counters
   ========================================================================== */
.stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3rem, 6vw, 4.5rem)); }
.stats__panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.stat {
    padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 2.5vw, 2rem);
    border-inline-start: 1px solid var(--line);
}
.stat:first-child { border-inline-start: 0; }
.stat__value {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink-900);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}
.stat__value .stat__suffix { color: var(--teal-500); font-size: 0.72em; font-weight: 600; }
.stat__label { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 60rem) {
    .stats__panel { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(odd) { border-inline-start: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 10. Cards
   ========================================================================== */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 147, 164, 0.35);
}

/* Service / project media (with graceful no-image fallback) */
.card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(24rem 14rem at 80% -20%, rgba(95, 214, 226, 0.25), transparent 62%),
        linear-gradient(140deg, var(--ink-800), var(--ink-950));
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__media--icon { display: flex; align-items: center; justify-content: center; }
.card__media--icon .icon { width: 3.2rem; height: 3.2rem; color: var(--cyan-300); opacity: 0.9; }
.card__media--contain { display: flex; align-items: center; justify-content: center; padding: 2rem; }
.card__media--contain img { width: auto; max-height: 100%; object-fit: contain; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.card__body h3 { margin-bottom: 0.5rem; }
.card__excerpt {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__foot { margin-top: auto; }
.card__tags { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.4rem; z-index: 2; }
.card__link-cover { position: absolute; inset: 0; z-index: 1; }
.card__link-cover:focus-visible { outline-offset: -3px; border-radius: var(--r-lg); }
.card--linked .card__foot .link-arrow { position: relative; z-index: 2; }

/* Icon feature card (services fallback, jobs perks) */
.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: var(--r-md);
    background: rgba(14, 147, 164, 0.10);
    color: var(--teal-600);
    margin-bottom: 1.1rem;
    flex-shrink: 0;
}
.icon-tile .icon { width: 1.5rem; height: 1.5rem; }

/* Info card (contact page) */
.info-card { padding: clamp(1.4rem, 2.5vw, 1.9rem); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.info-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 0.2rem; }
.info-card a.info-card__value { font-size: 1.02rem; font-weight: 600; color: var(--ink-900); }
.info-card a.info-card__value:hover { color: var(--teal-600); }

/* 11. "Why us" & process
   ========================================================================== */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.why__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 60rem) {
    .why { grid-template-columns: 1fr; }
    .why__intro { position: static; }
}

.feature-row {
    display: flex;
    gap: 1.4rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }
.feature-row__num {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--teal-500);
    padding-top: 0.2rem;
    min-width: 2.2rem;
    font-variant-numeric: tabular-nums;
}
.feature-row h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.feature-row p { color: var(--text-muted); font-size: 0.97rem; margin: 0; }

/* Process steps (dark section) */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.step { position: relative; padding-top: 1.9rem; }
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--cyan-300);
}
.step::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 2.6rem;
    right: 0.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(95, 214, 226, 0.5), rgba(95, 214, 226, 0.06));
}
.step:last-child::after { display: none; }
.step__dot {
    position: absolute;
    top: 0.2rem;
    left: 1.85rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--cyan-300);
    box-shadow: 0 0 10px 1px var(--glow);
}
.step h3 { color: #fff; font-size: 1.12rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted-dark); font-size: 0.95rem; margin: 0; }

@media (max-width: 60rem) {
    .process { grid-template-columns: 1fr 1fr; }
    .step:nth-child(2)::after { display: none; }
}
@media (max-width: 40rem) {
    .process { grid-template-columns: 1fr; }
    .step::after { display: none; }
}

/* 12. Marquee & CTA band
   ========================================================================== */
.marquee {
    --marquee-duration: 32s;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-block: 1.4rem;
    border-block: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}
.marquee__label {
    flex-shrink: 0;
    padding-inline: var(--gutter) 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    white-space: nowrap;
}
.marquee__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 3.2rem;
    white-space: nowrap;
    will-change: transform;
    animation: marquee var(--marquee-duration) linear infinite;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-right: 3.2rem;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.cta-band { position: relative; overflow: clip; }
.cta-band__panel {
    position: relative;
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(40rem 22rem at 90% -30%, rgba(95, 214, 226, 0.28), transparent 62%),
        radial-gradient(30rem 18rem at 5% 130%, rgba(0, 120, 136, 0.5), transparent 60%),
        linear-gradient(130deg, var(--ink-900), var(--ink-800));
    border: 1px solid rgba(95, 214, 226, 0.18);
    color: var(--text-on-dark);
    overflow: hidden;
}
.cta-band__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: radial-gradient(60% 100% at 80% 0%, #000, transparent);
    -webkit-mask-image: radial-gradient(60% 100% at 80% 0%, #000, transparent);
    pointer-events: none;
}
/* Decorative fiber photo bleeding out of the panel's right edge. Feathered on
   two axes so it dissolves into the gradient instead of ending on a hard line. */
.cta-band__media {
    position: absolute;
    top: 0;
    right: 0;
    width: 52%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    mix-blend-mode: screen;
    mask-image: linear-gradient(90deg, transparent, #000 60%), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%), linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    pointer-events: none;
    user-select: none;
}
@media (max-width: 60rem) {
    /* Below the two-column threshold the text would sit on top of the photo. */
    .cta-band__media { display: none; }
}
.cta-band__panel h2 { position: relative; color: #fff; max-width: 30rem; }
.cta-band__panel .lead { position: relative; color: var(--text-muted-dark); max-width: 34rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 2rem; position: relative; }
.cta-band__call { color: var(--text-muted-dark); font-size: 0.95rem; }
.cta-band__call a { color: var(--cyan-200); font-weight: 600; white-space: nowrap; }
.cta-band__call a:hover { color: #fff; }

/* 13. Forms
   ========================================================================== */
.form-card {
    border-radius: var(--r-xl);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
/* Self-contained dark panel (e.g. the callback card on the contact page).
   Carries its own ink background so it never depends on a dark parent. */
.form-card--dark {
    background:
        radial-gradient(30rem 18rem at 100% -20%, rgba(14, 147, 164, 0.28), transparent 62%),
        radial-gradient(22rem 14rem at -10% 120%, rgba(0, 99, 111, 0.30), transparent 60%),
        linear-gradient(140deg, var(--ink-900), var(--ink-800));
    border-color: rgba(95, 214, 226, 0.18);
    box-shadow: var(--shadow-lg);
    color: var(--text-on-dark);
}
.form-card--dark h2, .form-card--dark h3 { color: #fff; }
.form-card--dark p { color: var(--text-muted-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field__label { font-size: 0.9rem; font-weight: 600; color: var(--ink-900); }
.field__label small { font-weight: 400; color: var(--text-soft); }
.field__control {
    width: 100%;
    padding: 0.85rem 1.05rem;
    font: inherit;
    font-size: 0.98rem;
    color: var(--text);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
    appearance: none;
}
textarea.field__control { resize: vertical; min-height: 8.5rem; }
select.field__control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234f6b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.6rem;
}
.field__control:hover { border-color: rgba(14, 147, 164, 0.45); }
.field__control:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(14, 147, 164, 0.14); background: #fff; }
.field__control::placeholder { color: var(--text-soft); opacity: 0.8; }

.field.has-error .field__control { border-color: #cc4b4b; box-shadow: 0 0 0 4px rgba(204, 75, 75, 0.10); }
.field__error { display: none; font-size: 0.84rem; color: #b23838; }
.field.has-error .field__error { display: block; }

/* Dark form variant */
.form-card--dark .field__label { color: #fff; }
.form-card--dark .field__control {
    background: rgba(4, 24, 29, 0.5);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.form-card--dark .field__control:focus { background: rgba(4, 24, 29, 0.72); border-color: var(--cyan-300); box-shadow: 0 0 0 4px rgba(95, 214, 226, 0.14); }
.form-card--dark .field__control::placeholder { color: rgba(255, 255, 255, 0.45); }

/* Checkbox */
.check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.92rem; color: var(--text-muted); cursor: pointer; }
.check input {
    appearance: none;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.check input::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    transform: scale(0);
    transition: transform 0.2s var(--ease-spring);
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--teal-500); border-color: var(--teal-500); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 2px; }
.check.has-error input { border-color: #cc4b4b; }
.check a { font-weight: 600; }

/* File dropzone */
.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.9rem 1.25rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    background: var(--paper);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.92rem;
    cursor: pointer;
    transition: border-color 0.25s, background-color 0.25s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--teal-500); background: rgba(14, 147, 164, 0.05); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { color: var(--teal-500); width: 1.7rem; height: 1.7rem; }
.dropzone__file { display: none; font-weight: 600; color: var(--ink-900); word-break: break-all; }
.dropzone.has-file .dropzone__file { display: block; }
.dropzone.has-file .dropzone__hint { display: none; }

/* Form async states */
.form-note { font-size: 0.85rem; color: var(--text-soft); margin: 1rem 0 0; }
.form-alert {
    display: none;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.2rem;
    padding: 0.9rem 1.1rem;
    border-radius: var(--r-sm);
    background: rgba(204, 75, 75, 0.08);
    border: 1px solid rgba(204, 75, 75, 0.25);
    color: #a33232;
    font-size: 0.93rem;
}
.form-alert.is-visible { display: flex; }

.form-success { display: none; text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.form-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(14, 147, 164, 0.12);
    color: var(--teal-500);
    margin-bottom: 1.2rem;
    animation: pop-in 0.5s var(--ease-spring);
}
.form-success__icon .icon { width: 2rem; height: 2rem; }
@keyframes pop-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
form.is-success .form-success { display: block; }
form.is-success .form-body { display: none; }
.form-card--dark .form-success h3 { color: #fff; }
.form-card--dark .form-success p { color: var(--text-muted-dark); }

/* 14. Footer
   ========================================================================== */
.footer {
    background:
        radial-gradient(50rem 26rem at 100% 0%, rgba(14, 147, 164, 0.12), transparent 60%),
        var(--ink-950);
    color: var(--text-muted-dark);
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
    font-size: 0.95rem;
}
.footer a { color: var(--text-muted-dark); transition: color 0.2s; }
.footer a:hover { color: var(--cyan-200); }

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 3fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (max-width: 64rem) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 2.4rem; width: auto; margin-bottom: 1.2rem; }
.footer__tagline { max-width: 22rem; line-height: 1.7; }

.footer__title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.2rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer__list .icon { width: 1.05rem; height: 1.05rem; color: var(--teal-400); flex-shrink: 0; margin-top: 0.22rem; }
.footer__list li { display: flex; gap: 0.65rem; align-items: flex-start; }

.footer__socials { display: flex; gap: 0.6rem; margin-top: 1.4rem; }
.footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted-dark);
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
}
.footer__socials a:hover { border-color: var(--cyan-300); color: var(--cyan-200); transform: translateY(-2px); }

/* Opening hours rows */
.hours { display: grid; gap: 0.5rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.5rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.hours__row:last-child { border-bottom: 0; }
.hours__row strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours__status { margin-bottom: 1rem; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
}
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer__credit { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__credit img { height: 1.05rem; width: auto; opacity: 0.75; transition: opacity 0.2s; }
.footer__credit a:hover img { opacity: 1; }

/* 15. Floating actions
   ========================================================================== */
.floats {
    position: fixed;
    right: clamp(0.9rem, 2.5vw, 1.6rem);
    bottom: clamp(0.9rem, 2.5vw, 1.6rem);
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.float-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, opacity 0.35s, visibility 0.35s;
}
.float-btn:hover { transform: translateY(-3px) scale(1.04); color: #fff; }
.float-btn--whatsapp { background: #1faa53; }
.float-btn--whatsapp:hover { box-shadow: 0 10px 26px rgba(31, 170, 83, 0.45); }
.float-btn--top { background: var(--ink-800); opacity: 0; visibility: hidden; transform: translateY(8px); }
.float-btn--top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.float-btn--top:hover { background: var(--teal-600); }

/* 16. Cookie card & dialogs
   ========================================================================== */
.cookie-card {
    position: fixed;
    left: clamp(0.9rem, 2.5vw, 1.6rem);
    right: clamp(0.9rem, 2.5vw, 1.6rem);
    bottom: clamp(0.9rem, 2.5vw, 1.6rem);
    z-index: 150;
    max-width: 23rem;
    padding: 1.5rem;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(1.5rem);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.cookie-card.is-visible { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie-card h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.cookie-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.cookie-card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

dialog.site-dialog {
    max-width: min(92vw, 30rem);
    border: none;
    border-radius: var(--r-lg);
    padding: 0;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
dialog.site-dialog::backdrop { background: rgba(4, 24, 29, 0.6); backdrop-filter: blur(4px); }
.site-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 0; }
.site-dialog__head h3 { margin: 0; font-size: 1.15rem; }
.site-dialog__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}
.site-dialog__close:hover { color: var(--ink-900); border-color: var(--line-strong); }
.site-dialog__body { padding: 1rem 1.5rem 1.5rem; }
.site-dialog__body img { border-radius: var(--r-sm); width: 100%; }
.site-dialog__actions { display: flex; justify-content: center; padding: 0 1.5rem 1.5rem; }

/* 17. Prose (CMS html pages)
   ========================================================================== */
.prose { max-width: 46rem; font-size: 1.02rem; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }

/* CMS content is admin-pasted HTML: cap heading scale (the page already has
   its own h1 in the hero) and neutralise pasted inline indents/alignment
   that would fight the column grid. */
.prose h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.prose h3, .prose h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
.prose [style*="padding-left"] { padding-left: 0 !important; }
.prose [style*="padding-right"] { padding-right: 0 !important; }
.prose [style*="text-align: center"], .prose [style*="text-align:center"] { text-align: left !important; }
.prose p { margin-bottom: 1.15em; color: var(--text); }
.prose li { margin-bottom: 0.45em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 1.3em; }
.prose ul li::marker { color: var(--teal-500); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(14, 147, 164, 0.4); }
.prose a:hover { text-decoration-color: var(--teal-500); }
.prose img { border-radius: var(--r-md); margin-block: 1.5em; }
.prose blockquote {
    margin: 1.8em 0;
    padding: 0.4em 0 0.4em 1.4em;
    border-left: 3px solid var(--teal-400);
    color: var(--text-muted);
    font-style: italic;
}
.prose table { width: 100%; border-collapse: collapse; margin-block: 1.5em; font-size: 0.95rem; }
.prose th, .prose td { padding: 0.7rem 0.9rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-tint); font-weight: 600; }
.prose strong { color: var(--ink-900); }

/* 18. Motion, empty states & utilities
   ========================================================================== */
[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

.empty-state {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-lg);
}
.empty-state .icon-tile { margin-inline: auto; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-muted); margin: 0; }

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

.icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* Split layouts (offer/contact) */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 60rem) { .split { grid-template-columns: 1fr; } }

/* Detail pages: wide content column + slim sticky aside, so long CMS prose
   never leaves a large empty right-hand gap while scrolling. */
.split--content { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
@media (min-width: 60.0625rem) {
    .split--content > aside > :first-child {
        position: sticky;
        top: calc(var(--nav-h) + 2rem);
    }
}

.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist .icon-tile { width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); margin: 0; }
.checklist .icon-tile .icon { width: 1.2rem; height: 1.2rem; }
.checklist h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.checklist p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* Gallery (project detail) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery a {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--surface-tint);
    border: 1px solid var(--line);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
@media (max-width: 60rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Job rows */
.job-card { padding: clamp(1.4rem, 3vw, 2rem); flex-direction: row; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.job-card__body { flex: 1; min-width: 16rem; }
.job-card__body h3 { margin-bottom: 0.4rem; }
.job-card__meta { font-size: 0.86rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.job-card__excerpt { color: var(--text-muted); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--r-sm);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch[open] summary { border-color: var(--cyan-300); }
.lang-switch__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    min-width: 10rem;
    padding: 0.4rem;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 0.15rem;
}
.lang-switch__menu a {
    padding: 0.5rem 0.8rem;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: 0.92rem;
}
.lang-switch__menu a:hover { background: var(--surface-tint); }
.lang-switch__menu a.is-active { color: var(--teal-600); font-weight: 600; }

/* Reduced motion — keep the site calm and accessible */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] { opacity: 1; transform: none; }
    .marquee__track { animation: none; }
    .hero__scroll::after { animation: none; }
}
