/* === config/theme.css === */
/* Theme tokens: palette from raw_input/colors.txt, "modern luxury, creative intelligence, premium professionalism".
   This is the only place with raw colour values; web/css uses these variables. build_css.py puts it first in the bundle.
   Light theme: Whispy Blue carries the coloured backgrounds; Midnight Navy is reserved for text and highlights. */
:root {
    /* Brand palette */
    --color-navy: #17263D;          /* Midnight Navy: text, highlights only */
    --color-orange: #F07832;        /* Orange Tiger: calls to action */
    --color-blue: #A9CBE5;          /* Whispy Blue: coloured section backgrounds */
    --color-champagne: #D7C3A5;     /* Champagne: hairlines, warm accents */
    --color-white: #FFFFFF;         /* Bright White */

    /* Derived tones */
    --color-orange-light: #F59A5E;  /* hover for orange buttons (navy text stays readable) */
    --color-orange-deep: #B4501A;   /* small orange text on white (5:1) */
    --color-champagne-tint: #F7F2EA;/* warm light section background */

    /* Roles. Contrast rule: orange buttons carry navy text (5.4:1); white on orange is only 2.8:1. */
    --bg-color: var(--color-white);
    --bg-light: var(--color-champagne-tint);
    --bg-blue: var(--color-blue);
    --text-color: var(--color-navy);
    --text-light: #3B475A;          /* muted text: 5.5:1 on Whispy Blue, 9:1 on white */
    --text-on-dark: #F4F1EC;        /* only over the hero video */
    --text-on-dark-muted: rgba(244, 241, 236, 0.8);
    --accent-color: var(--color-orange);
    --accent-hover: var(--color-orange-light);
    --accent-text: var(--color-orange-deep);
    --on-accent: var(--color-navy);
    --border-color: #E3DCCF;
    --border-on-blue: rgba(23, 38, 61, 0.14);
    --border-on-dark: rgba(255, 255, 255, 0.18);

    /* Glass windows: frosted white over the blue sections */
    --glass-bg: rgba(255, 255, 255, 0.38);
    --glass-bg-strong: rgba(255, 255, 255, 0.58);
    --glass-border: rgba(255, 255, 255, 0.7);
    --glass-blur: 16px;
    --glass-shadow: 0 18px 45px rgba(23, 38, 61, 0.12);

    /* Typography (fonts are loaded from config/site.json → theme.fonts_url) */
    --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-primary: 'Manrope', 'Segoe UI', system-ui, sans-serif;

    /* Type scale: every font-size in the project uses one of these */
    --font-size-display: clamp(2.9rem, min(7.2vw, 11vh), 6.25rem); /* hero title only */
    --font-size-h1: clamp(2.2rem, min(4.5vw, 7vh), 3.5rem);        /* big numbers */
    --font-size-h2: clamp(1.9rem, min(3.4vw, 6vh), 3rem);          /* every section title */
    --font-size-h3: 1.45rem;                                       /* card headings */
    --font-size-h4: 1.15rem;                                       /* small headings, emphasised lines */
    --font-size-body: 1rem;
    --font-size-small: 0.9rem;
    --font-size-caption: 0.78rem;                                  /* labels, eyebrows, badges */

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Site gutter: header logo, hero text and every container share this left edge */
    --gutter: 4%;
    /* Vertical rhythm inside full-screen sections: shrinks on short screens */
    --slide-gap: clamp(1rem, 4.5vh, 3.25rem);
    --section-padding-y: var(--spacing-xl);

    /* Header height (logo + padding) for scroll offsets */
    --header-height: 84px;

    /* Effects */
    --shadow: 0 8px 30px rgba(23, 38, 61, 0.12);
    --border-radius: 14px;
    --border-radius-lg: 22px;
    --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (max-width: 768px) {
    :root {
        --header-height: 68px;
        --section-padding-y: var(--spacing-lg);
    }
}


/* === web/css/00-resets.css === */
/* Reset base elements to a consistent baseline */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

html {
    overflow-x: hidden;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    font-weight: inherit;
    font-size: inherit;
}


/* === web/css/02-base.css === */
html, body {
    background: var(--bg-color);
    color: var(--text-color);
    font: 400 var(--font-size-body)/1.65 var(--font-primary);
    /* Cormorant defaults to old-style figures ("1" looks like "I"); keep numbers lining everywhere */
    font-variant-numeric: lining-nums;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.01em;
}

a {
    color: inherit;
}

strong {
    font-weight: 600;
}

/* Buttons: primary (orange, navy text), glass (on dark), outline (on light) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-color);
    color: var(--on-accent);
    box-shadow: 0 10px 30px rgba(240, 120, 50, 0.28);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 14px 36px rgba(240, 120, 50, 0.38);
}

/* Dark glass: only over the hero video */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-on-dark);
    color: var(--text-on-dark);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--color-champagne);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn[disabled] {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}


/* === web/css/03-layout.css === */
/* Section shells shared by every landing "slide" */

main > section[id] {
    scroll-margin-top: var(--header-height);
}

/* One left edge for everything: header logo, hero text and every container sit on the site gutter */
.container {
    box-sizing: border-box;
    width: auto;
    margin: 0 var(--gutter);
}

.offer-section {
    position: relative;
    background: var(--bg-color);
    padding: var(--section-padding-y) 0;
}

.offer-section-alt {
    background: var(--bg-light);
}

/* Whispy Blue sections with a light aurora behind the content */
.section-blue {
    position: relative;
    overflow: hidden;
    background: var(--bg-blue);
    isolation: isolate;
}

.section-blue > .container {
    position: relative;
    z-index: 1;
}

/* Desktop: every section is one screen ("slide"). Anchors land on the section's top edge,
   the glass header overlays its top padding, and spacing scales with the viewport height. */
@media (min-width: 769px) and (min-height: 600px) {
    main > section.slide {
        scroll-margin-top: 0;
    }

    .slide {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: calc(var(--header-height) + var(--slide-gap) * 0.5) 0 var(--slide-gap);
    }
}

.section-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: clamp(0.4rem, 1.5vh, 1rem);
    color: var(--accent-text);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-blue .section-eyebrow {
    color: var(--color-navy);
}

.offer-section h2,
.contact-section h2 {
    text-align: center;
    font-size: var(--font-size-h2);
    color: var(--text-color);
    margin-bottom: clamp(0.4rem, 1.5vh, 1rem);
}

.offer-lead,
.offer-note {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light);
    line-height: 1.6;
}

.offer-note {
    margin-top: var(--slide-gap);
    font-size: var(--font-size-small);
}


/* === web/css/components/header.css === */
/* Glass header (as in the reference): translucent blur bar that hides on scroll down and slides back
   on scroll up (js/site.js). Light text over the hero video; .on-light (js/app.js) switches it to navy
   text on white-tinted glass once it floats over the light sections. */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    transform: translateY(0);
    transition: transform 0.5s ease, background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.header.on-light {
    background: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(23, 38, 61, 0.08);
    color: var(--color-navy);
}

/* Hide fast so it never covers the next section; showing keeps the slower 0.5s */
.header.hidden {
    transform: translateY(-100%);
    transition-duration: 0.2s;
    transition-timing-function: ease-in;
}

.header .container {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-md);
}

/* Logo: inline SVG (config brand.logo_mark); the letters follow the header colour, the crossbar stays orange */
.logo {
    justify-self: start;
    display: block;
    color: inherit;
    line-height: 0;
}

.logo svg {
    display: block;
    width: auto;
    height: 46px;
}

.logo .logo-ink {
    fill: currentColor;
}

.header-nav {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-self: center;
}

.nav-link {
    color: inherit;
    text-decoration: none;
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.header.on-light .nav-link:hover {
    background: rgba(23, 38, 61, 0.06);
    color: var(--accent-text);
}

.header-contacts {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    font-size: var(--font-size-small);
}

.header-contacts a {
    color: inherit;
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.header-contacts a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    top: 50%;
    right: var(--gutter);
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 7px;
    cursor: pointer;
    z-index: 102;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu: white glass panel sliding down from under the header */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 101;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(23, 38, 61, 0.08);
    box-shadow: 0 12px 30px rgba(23, 38, 61, 0.15);
    color: var(--color-navy);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease, visibility 0.35s;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    text-align: center;
}

.mobile-menu-content .nav-link {
    font-size: var(--font-size-body);
    padding: var(--spacing-xs);
}

.mobile-menu-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-on-blue);
    font-size: var(--font-size-small);
}

.mobile-menu-contacts a {
    color: var(--text-light);
    text-decoration: none;
}

@media (max-width: 1180px) {
    .header-contacts {
        display: none;
    }
    .header .container {
        grid-template-columns: auto 1fr;
    }
    .header-nav {
        justify-self: end;
    }
}

@media (max-width: 900px) {
    .header-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .logo svg {
        height: 34px;
    }
}


/* === web/css/components/aurora.css === */
/* Aurora gradient: soft white, champagne and orange fields drifting slowly over Whispy Blue.
   Glass windows: frosted panels over the blue sections (.glass) or over the hero video (.glass--dark),
   with an optional pointer tilt (data-tilt). */

.aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-blue);
    pointer-events: none;
}

.aurora span {
    position: absolute;
    width: 70vmax;
    height: 70vmax;
    border-radius: 50%;
    animation: aurora-drift 24s ease-in-out infinite alternate;
    will-change: transform;
}

.aurora span:nth-child(1) {
    top: -35vmax;
    left: -20vmax;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 62%);
}

.aurora span:nth-child(2) {
    bottom: -34vmax;
    right: -20vmax;
    /* warm champagne-white glow; plain champagne over the blue reads as grey */
    background: radial-gradient(circle at center, rgba(247, 242, 234, 0.75) 0%, rgba(247, 242, 234, 0.3) 35%, rgba(247, 242, 234, 0) 60%);
    animation-duration: 30s;
    animation-delay: -8s;
}

.aurora span:nth-child(3) {
    top: 10%;
    left: 35%;
    width: 50vmax;
    height: 50vmax;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
    animation-duration: 36s;
    animation-delay: -14s;
}

@keyframes aurora-drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(9vw, 7vh, 0) scale(1.12); }
    100% { transform: translate3d(-7vw, -5vh, 0) scale(0.94); }
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.glass--dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-on-dark);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
}

/* Pointer tilt: js/app.js sets --tilt-x / --tilt-y on desktop only */
[data-tilt] {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 0.45s var(--ease-out), box-shadow 0.3s ease;
}

[data-tilt].is-tilting {
    transition: transform 0.1s linear, box-shadow 0.3s ease;
}


/* === web/css/components/intro.css === */
/* HERO: poster + lazy video under a navy veil, kinetic headline, CTAs, glass feature chips.
   The content sits on the site gutter, so it lines up with the header logo. */
.intro-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: var(--text-on-dark);
    background: var(--color-navy); /* only visible until the poster paints */
}

.intro-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-poster,
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-video.loaded {
    opacity: 1;
}

/* Veil so the white headline always reads over the footage */
.intro-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 26, 43, 0.72) 0%, rgba(15, 26, 43, 0.4) 55%, rgba(15, 26, 43, 0.2) 100%),
                linear-gradient(180deg, rgba(15, 26, 43, 0.35) 0%, rgba(15, 26, 43, 0) 30%, rgba(15, 26, 43, 0.45) 100%);
}

.intro-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: calc(var(--header-height) + var(--slide-gap) * 0.5) 0 var(--slide-gap);
}

.intro-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(0.75rem, 3vh, 2rem);
    color: var(--color-champagne);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 0.1s forwards;
}

.intro-eyebrow::before {
    content: '';
    width: 2.5rem;
    height: 1px;
    background: var(--color-orange);
}

/* Kinetic headline: each word rises out of its own mask */
.kinetic {
    display: flex;
    flex-direction: column;
    margin-bottom: clamp(0.75rem, 3vh, 2rem);
    color: var(--color-white);
    font-size: var(--font-size-display);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.005em;
}

.kinetic-line {
    display: block;
    overflow: hidden;
    padding: 0.04em 0.08em 0.1em 0;
}

.kinetic-word {
    display: inline-block;
    transform: translateY(115%);
    animation: kinetic-rise 1s var(--ease-out) forwards;
    animation-delay: calc(0.3s + var(--i, 0) * 0.22s);
}

@keyframes kinetic-rise {
    to { transform: translateY(0); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.intro-lead {
    max-width: 560px;
    margin-bottom: clamp(1rem, 3.5vh, 2rem);
    color: var(--text-on-dark-muted);
    font-size: var(--font-size-h4);
    line-height: 1.6;
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 1s forwards;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 1.2s forwards;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-sm);
    width: 100%;
    margin-top: calc(var(--slide-gap) * 1.4);
    opacity: 0;
    animation: fade-up 0.8s var(--ease-out) 1.4s forwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    border-radius: var(--border-radius);
}

.hero-feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid var(--border-on-dark);
    border-radius: 50%;
    color: var(--color-orange);
}

/* Shared stroke style for all inline Lucide icons */
.hero-feature-icon svg,
.feature-icon svg,
.meeting-choice-visual svg,
.social-link svg,
.fab-whatsapp svg,
.viewer-footer-social svg {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-feature-text {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-small);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.hero-feature-text small {
    color: var(--text-on-dark-muted);
    font-size: var(--font-size-caption);
    font-weight: 400;
}

@media (max-width: 1024px) {
    .hero-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .intro-content {
        justify-content: flex-end;
    }
    .intro-background::after {
        background: linear-gradient(180deg, rgba(15, 26, 43, 0.45) 0%, rgba(15, 26, 43, 0.55) 45%, rgba(15, 26, 43, 0.8) 100%);
    }
    .intro-actions .btn {
        flex: 1 1 100%;
    }
    .hero-features {
        gap: var(--spacing-xs);
    }
    .hero-feature {
        padding: 0.7rem;
        gap: 0.6rem;
    }
    .hero-feature-icon {
        width: 2.1rem;
        height: 2.1rem;
    }
}


/* === web/css/components/services.css === */
/* "What we do": six plain columns in a 3 × 2 grid (icon, title, one line, "Read more") with thin dividers */

.services-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--slide-gap);
    margin-top: var(--slide-gap);
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.35rem, 1.2vh, 0.7rem);
    padding: 0 clamp(1rem, 3vw, 3rem);
    border-left: 1px solid var(--border-color);
}

.service-item:nth-child(3n + 1) {
    border-left: 0;
}

.service-item .feature-icon {
    display: grid;
    place-items: center;
    width: clamp(2.5rem, 6vh, 3.25rem);
    height: clamp(2.5rem, 6vh, 3.25rem);
    margin-bottom: clamp(0.1rem, 0.6vh, 0.4rem);
    border: 1px solid var(--color-champagne);
    border-radius: 50%;
    color: var(--accent-text);
}

.service-item h3 {
    font-size: var(--font-size-h3);
}

.service-item p {
    max-width: 320px;
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.service-cta {
    margin-top: auto;
    padding-top: 0.2rem;
    color: var(--accent-text);
    font-size: var(--font-size-small);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.service-cta span {
    display: inline-block;
    transition: transform 0.25s ease;
}

.service-cta:hover span {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .services-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-item:nth-child(3n + 1) {
        border-left: 1px solid var(--border-color);
    }
    .service-item:nth-child(2n + 1) {
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .services-list {
        grid-template-columns: 1fr;
        row-gap: 0;
    }
    .service-item,
    .service-item:nth-child(3n + 1) {
        padding: var(--spacing-md) 0;
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }
    .service-item:first-child {
        border-top: 0;
        padding-top: 0;
    }
}


/* === web/css/components/service-page.css === */
/* SERVICE PAGES (web/service.html): intro on Whispy Blue, offer grid, approach timeline, experience,
   other services, then the shared contact section. Reading pages: left-aligned on the site gutter. */

.service-hero {
    padding: calc(var(--header-height) + var(--slide-gap) * 1.5) 0 calc(var(--slide-gap) * 1.6);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.breadcrumbs a {
    color: var(--text-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.service-hero-icon {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(23, 38, 61, 0.3);
    border-radius: 50%;
    color: var(--color-navy);
}

.service-hero h1 {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-h1);
}

.service-hero-lead {
    max-width: 640px;
    color: var(--text-light);
    font-size: var(--font-size-h4);
    line-height: 1.6;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.service-block h2 {
    text-align: left;
}

/* What we do */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.offer-grid li {
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
}

.offer-grid h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-h3);
}

.offer-grid p {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

/* How we do it: dots on a line, no numbers (same language as the landing process timeline) */
.approach-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: var(--spacing-lg);
}

.approach-steps li {
    position: relative;
    padding: 2.25rem var(--spacing-md) 0 0;
}

.approach-steps li::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(23, 38, 61, 0.25);
}

.approach-steps li:last-child::before {
    right: auto;
    width: 15px;
}

.approach-dot {
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    border: 1px solid var(--color-navy);
    border-radius: 50%;
    background: var(--color-white);
}

.approach-steps li:first-child .approach-dot {
    border-color: var(--color-orange);
    background: var(--color-orange);
}

.approach-steps h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-h3);
}

.approach-steps p {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

/* Experience + tools */
.experience {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.experience-text h2 {
    margin-bottom: var(--spacing-md);
}

.experience-text p {
    color: var(--text-light);
    line-height: 1.75;
}

.experience-text p + p {
    margin-top: 0.8em;
}

.experience-tools h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tool-list li {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-color);
    font-size: var(--font-size-small);
}

/* Other services */
.other-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.other-services a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    height: 100%;
    padding: var(--spacing-sm) 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.other-services a:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.other-services .feature-icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-champagne);
    border-radius: 50%;
    color: var(--accent-text);
}

.other-arrow {
    margin-left: auto;
    color: var(--accent-text);
    line-height: 0;
}

.service-hero-icon svg,
.other-arrow svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-hero-icon svg {
    width: 52%;
    height: 52%;
}

.other-arrow svg {
    width: 1.1rem;
    height: 1.1rem;
}

@media (max-width: 1024px) {
    .offer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .approach-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: var(--spacing-md);
    }
    .experience {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .offer-grid,
    .approach-steps {
        grid-template-columns: 1fr;
    }
    .approach-steps li::before {
        display: none;
    }
}


/* === web/css/components/philosophy.css === */
/* PHILOSOPHY (structure as in the reference): divider with the small logo, title, text, pull-quote */
.philosophy-section {
    text-align: center;
}

.philosophy-section .container > * {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-section h2 {
    margin-bottom: clamp(0.75rem, 3vh, 2rem);
}

.philosophy-text {
    color: var(--text-light);
    line-height: 1.8;
}

.philosophy-text p + p {
    margin-top: 1em;
}

.philosophy-section .philosophy-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 520px;
    margin-bottom: var(--slide-gap);
}

.philosophy-line {
    flex: 1;
    height: 1px;
    background: var(--color-navy);
    opacity: 0.25;
}

.philosophy-mark {
    line-height: 0;
}

.philosophy-mark svg {
    width: auto;
    height: 30px;
}

.philosophy-section .philosophy-quote {
    max-width: 560px;
    margin-top: var(--slide-gap);
    padding-top: clamp(1rem, 3vh, 1.75rem);
    border-top: 1px solid rgba(23, 38, 61, 0.25);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-style: italic;
    font-weight: 500; /* the loaded italic weight */
    line-height: 1.4;
}


/* === web/css/components/work.css === */
/* WORK: service filter chips, case cards (web/templates/case-card.html), empty state */

.work-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: clamp(0.75rem, 3vh, 2rem);
}

.work-filters[hidden] {
    display: none;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--slide-gap);
}

.cases-grid:empty {
    display: none;
}

.case-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.case-card[hidden] {
    display: none;
}

/* Cover: image when there is one, otherwise a branded aurora tile with the client name */
.case-media {
    position: relative;
    height: clamp(150px, 27vh, 320px);
    overflow: hidden;
    background: var(--bg-blue);
    isolation: isolate;
}

.case-image {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-monogram {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: var(--spacing-md);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-style: italic;
    text-align: center;
}

.case-open {
    position: absolute;
    right: var(--spacing-sm);
    bottom: var(--spacing-sm);
    z-index: 3;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-navy);
    font-size: var(--font-size-caption);
    letter-spacing: 0.08em;
}

.case-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.5rem;
    padding: clamp(1rem, 2.5vh, 1.75rem) var(--spacing-md);
}

.case-client {
    color: var(--accent-text);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.case-card h3 {
    font-size: var(--font-size-h3);
    transition: color 0.2s ease;
}

.case-summary {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.case-tag {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-light);
    color: var(--text-color);
    font-size: var(--font-size-caption);
}

.case-labels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-xs);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.label-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.label-item dd {
    margin: 0;
}

.label-title {
    color: var(--text-light);
    font-size: var(--font-size-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.label-value {
    color: var(--text-color);
    font-size: var(--font-size-small);
    font-weight: 600;
}

/* Wide screens: image beside the text (as in the reference project cards), so a row fits one slide */
@media (min-width: 1024px) {
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr));
    }
    .case-card {
        flex-direction: row;
    }
    .case-media {
        flex: 0 0 42%;
        height: auto;
        min-height: clamp(220px, 34vh, 340px);
    }
}

@media (hover: hover) {
    .case-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }
    .case-card:hover .case-image {
        transform: scale(1.05);
    }
    .case-card:hover h3 {
        color: var(--accent-text);
    }
}

/* Chips: shared by the work filters and the brief builder */
.chip {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: var(--font-size-small);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip:hover {
    border-color: var(--accent-color);
}

.chip[aria-pressed="true"] {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--on-accent);
    font-weight: 600;
}

/* Empty portfolio */
.work-empty {
    position: relative;
    max-width: 720px;
    margin: var(--slide-gap) auto 0;
    padding: var(--slide-gap) var(--spacing-md);
    overflow: hidden;
    border: 1px dashed var(--color-champagne);
    border-radius: var(--border-radius-lg);
    background: var(--bg-light);
    text-align: center;
}

.work-empty[hidden] {
    display: none;
}

.work-empty-mark {
    position: absolute;
    inset: 12% 10%;
    display: grid;
    place-items: center;
    color: var(--color-champagne);
    opacity: 0.35;
    pointer-events: none;
}

.work-empty-mark svg {
    width: 100%;
    height: 100%;
}

.work-empty-mark .logo-ink {
    fill: currentColor;
}

.work-empty h3,
.work-empty p,
.work-empty .btn {
    position: relative;
}

.work-empty h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--spacing-xs);
}

.work-empty p {
    max-width: 480px;
    margin: 0 auto var(--spacing-md);
    color: var(--text-light);
}


/* === web/css/components/comparison.css === */
/* "Why LAB": comparison tables with info popovers. Spacing scales with the viewport height
   (as in the reference comparison slide) so the whole table fits one screen. */

.compare {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1100px;
    margin: var(--slide-gap) auto 0;
}

.compare-col {
    min-width: 0;
    padding: clamp(0.75rem, 2.4vh, 1.75rem) clamp(1rem, 2vw, 2rem);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    font-size: var(--font-size-small);
}

/* LAB column: the navy highlight of the page, with orange ticks */
.compare-col-ours {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--text-on-dark);
    box-shadow: 0 20px 50px rgba(23, 38, 61, 0.25);
}

.compare-col h3 {
    font-size: var(--font-size-h3);
    margin-bottom: clamp(0.15rem, 0.8vh, 0.5rem);
}

.compare-col-ours h3 {
    letter-spacing: 0.2em;
}

.compare-group {
    margin: clamp(0.4rem, 1.4vh, 1rem) 0 clamp(0.2rem, 0.6vh, 0.5rem);
    color: var(--accent-text);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.compare-col-ours .compare-group {
    color: var(--color-champagne);
}

.compare-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    gap: 0.35rem 1rem;
    align-items: start;
    /* steeper than plain vh: rows tighten on short screens, unchanged on tall ones */
    padding: clamp(0.15rem, calc(1.1vh - 0.3rem), 0.55rem) 0;
    border-top: 1px solid var(--border-color);
    line-height: 1.45;
}

.compare-col-ours .compare-row {
    border-top-color: var(--border-on-dark);
}

.compare-row > span {
    min-width: 0;
    overflow-wrap: break-word;
}

.compare-row > span:last-of-type {
    color: var(--text-light);
    text-align: right;
    white-space: nowrap;
}

.compare-col-ours .compare-row > span:last-of-type {
    color: var(--color-blue);
}

.compare-col-ours .compare-row > span.compare-yes {
    color: var(--color-orange);
    font-weight: 700;
}

/* CTA and its note on one line, to keep the table slide within one screen */
.why-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs) var(--spacing-sm);
    margin-top: clamp(0.75rem, 3vh, 2.25rem);
}

.why-action .offer-note {
    margin: 0;
}

.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.2rem;
    height: 1.2rem;
    margin-left: 0.25rem;
    border: 1px solid var(--color-champagne);
    border-radius: 50%;
    color: var(--color-champagne);
    font-size: var(--font-size-caption);
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.info-btn[aria-expanded="true"] {
    background: var(--color-champagne);
    color: var(--color-navy);
}

/* Info popover: floats over the table, never changes its height */
.info-tip {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0;
    right: 0;
    z-index: 5;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    box-shadow: 0 8px 24px rgba(23, 38, 61, 0.2);
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .compare {
        grid-template-columns: 1fr;
    }
    .compare-row {
        padding: 0.55rem 0;
    }
    .compare-row > span:last-of-type {
        max-width: 9.5rem;
        white-space: normal;
    }
}


/* === web/css/components/process.css === */
/* "How we work" on Whispy Blue: a simple timeline of step names (dot + title, no numbers),
   then the step panel: table on the left, picture on the right. Spacing scales with the viewport height. */

.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    margin-top: var(--slide-gap);
}

/* The line the dots sit on: one segment per step, so it scrolls with the steps on phones */
.process-step::before {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(23, 38, 61, 0.25);
}

.process-step:first-child::before {
    left: 50%;
}

.process-step:last-child::before {
    right: 50%;
}

.process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.35rem;
    color: var(--text-light);
    text-align: center;
    cursor: pointer;
    transition: color 0.25s ease;
}

.process-step-dot {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    border: 1px solid var(--color-navy);
    border-radius: 50%;
    background: var(--color-white);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step-title {
    font-size: var(--font-size-small);
    font-weight: 500;
    line-height: 1.3;
}

.process-step:hover {
    color: var(--text-color);
}

.process-step:hover .process-step-dot {
    transform: scale(1.15);
}

.process-step.is-done .process-step-dot {
    background: var(--color-navy);
}

.process-step.is-active {
    color: var(--text-color);
}

.process-step.is-active .process-step-title {
    font-weight: 700;
}

.process-step.is-active .process-step-dot {
    background: var(--color-orange);
    border-color: var(--color-orange);
    box-shadow: 0 0 0 5px rgba(240, 120, 50, 0.22);
}

/* Step panel: two halves */
.process-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: stretch;
    margin-top: clamp(0.75rem, calc(3.5vh - 0.5rem), 2rem);
    padding: clamp(0.9rem, calc(3vh - 0.5rem), 1.75rem);
}

.process-detail-text {
    align-self: center;
    padding: clamp(0rem, 1vh, 0.75rem) 0 clamp(0rem, 1vh, 0.75rem) clamp(0.25rem, 1vw, 1rem);
}

.process-detail h3 {
    margin-bottom: clamp(0.5rem, 2vh, 1.25rem);
    font-size: var(--font-size-h3);
}

.process-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-md);
    text-align: left;
}

.process-detail h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.process-detail p,
.process-detail li {
    color: var(--text-color);
    font-size: var(--font-size-small);
}

.process-detail li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.35rem;
}

.process-detail li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-text);
    font-weight: 700;
}

/* Picture half: the step image, or a quiet branded placeholder until one is supplied */
.process-media {
    height: clamp(170px, 30vh, 330px);
    overflow: hidden;
    border-radius: var(--border-radius);
}

.process-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-media.is-empty {
    display: grid;
    place-items: center;
    border: 1px dashed rgba(23, 38, 61, 0.2);
    background: rgba(255, 255, 255, 0.35);
}

.process-media-mark {
    color: var(--color-navy);
    opacity: 0.18;
    line-height: 0;
}

.process-media-mark svg {
    width: auto;
    height: clamp(36px, 7vh, 64px);
}

.process-media-mark .logo-ink,
.process-media-mark .logo-accent {
    fill: currentColor;
}

.process-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: clamp(0.5rem, 2.5vh, 1.5rem);
}

@media (max-width: 1024px) {
    .process-detail {
        grid-template-columns: 1fr;
    }
    .process-media {
        height: clamp(150px, 24vh, 260px);
    }
}

/* Phones: the timeline scrolls sideways; the panel stacks */
@media (max-width: 768px) {
    .process-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .process-track::-webkit-scrollbar {
        display: none;
    }
    .process-step {
        flex: 0 0 34%;
        scroll-snap-align: center;
    }
    .process-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    .process-nav {
        display: none;
    }
}


/* === web/css/components/reviews.css === */
/* Testimonials: quotes with expand / collapse */

.reviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: var(--spacing-md);
    margin-top: var(--slide-gap);
}

.reviews blockquote {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    overflow-wrap: break-word;
}

.reviews blockquote::before {
    content: '\201C';
    position: absolute;
    top: 0.2rem;
    right: 1.2rem;
    color: var(--color-champagne);
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    line-height: 1;
}

.reviews p {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-style: italic;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews blockquote.is-expanded p {
    display: block;
    overflow: visible;
}

.review-toggle {
    margin-top: 0.5rem;
    color: var(--accent-text);
    font-size: var(--font-size-small);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.reviews cite {
    display: block;
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: var(--font-size-small);
    font-style: normal;
    font-weight: 600;
}

@media (max-width: 900px) {
    .reviews {
        grid-template-columns: 1fr;
    }
}


/* === web/css/components/about.css === */
/* ABOUT: logo panel on the aurora + text and key facts. The panel starts on the site gutter. */
.about-container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.about-visual {
    position: relative;
    display: grid;
    place-items: center;
    /* as tall as the slide allows, never taller than a 4:5 portrait */
    height: min(calc(100svh - var(--header-height) - var(--slide-gap) * 2.5), 640px);
    max-height: 125vw;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    isolation: isolate;
}

.about-logo {
    position: relative;
    z-index: 1;
    width: 72%;
    line-height: 0;
}

.about-logo svg {
    width: 100%;
    height: auto;
}

.about-content h2 {
    font-size: var(--font-size-h2);
    text-align: left;
    margin-bottom: clamp(0.75rem, 3vh, 1.75rem);
}

.about-content p {
    color: var(--text-light);
    line-height: 1.75;
}

.about-content p + p {
    margin-top: 0.8em;
}

/* Key facts under a divider: icon + one line in the body size, the lead words in bold */
.about-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--slide-gap);
    padding-top: var(--slide-gap);
    border-top: 1px solid var(--color-champagne);
}

.about-facts li {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 clamp(0.75rem, 1.6vw, 1.5rem);
    border-left: 1px solid var(--color-champagne);
    color: var(--text-light);
    line-height: 1.5;
}

.about-facts li:first-child {
    padding-left: 0;
    border-left: 0;
}

.about-facts strong {
    color: var(--text-color);
    font-weight: 600;
}

.about-fact-icon {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-champagne);
    border-radius: 50%;
    color: var(--accent-text);
}

.about-fact-icon svg {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 640px) {
    .about-facts {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    .about-facts li {
        flex-direction: row;
        align-items: center;
        padding: 0;
        border-left: 0;
    }
    .about-fact-icon {
        flex-shrink: 0;
    }
}

@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    .about-visual {
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


/* === web/css/components/meeting.css === */
/* "Free strategy session": two choice cards that prefill the contact form */

.meeting-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: var(--slide-gap) auto 0;
}

/* Card content (icon panel, title, text, button) is centred in the card */
.meeting-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: clamp(0.5rem, 1.6vh, 1rem);
    padding: var(--spacing-sm) var(--spacing-sm) clamp(1rem, 3vh, 2rem);
}

.meeting-choice:hover {
    background: var(--glass-bg-strong);
}

.meeting-choice > :not(.meeting-choice-visual) {
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
}

.meeting-choice-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: clamp(64px, 11vh, 150px);
    overflow: hidden;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.55);
    color: var(--color-navy);
}

.meeting-choice-visual svg {
    position: relative;
    z-index: 1;
    width: clamp(2.25rem, 6vh, 3.5rem);
    height: clamp(2.25rem, 6vh, 3.5rem);
    stroke-width: 1;
}

.meeting-choice h3 {
    font-size: var(--font-size-h3);
}

.meeting-choice p {
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.meeting-choice .btn {
    margin-top: auto;
}

.meeting-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--spacing-md);
    max-width: 1000px;
    margin: var(--slide-gap) auto 0;
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.meeting-points li {
    padding-top: clamp(0.5rem, 1.5vh, 1rem);
    border-top: 1px solid var(--border-on-blue);
}

.meeting-points strong {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--text-color);
    font-weight: 600;
}

.meeting-section .offer-note {
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
}

@media (max-width: 768px) {
    .meeting-choices,
    .meeting-points {
        grid-template-columns: 1fr;
    }
}


/* === web/css/components/contact.css === */
/* CONTACT on Whispy Blue: one white glass panel (the form itself) with two columns:
   intro + brief builder on the left, fields on the right, so it fits one screen. */

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    padding: clamp(1.25rem, 4vh, 3rem) clamp(1.25rem, 4vw, 3.5rem);
}

.contact-intro .section-eyebrow {
    justify-content: flex-start;
}

.contact-intro .section-eyebrow::before {
    display: none;
}

.contact-section .contact-intro h2 {
    text-align: left;
}

.contact-subtitle {
    max-width: 480px;
    margin-bottom: clamp(0.75rem, 3vh, 1.75rem);
    color: var(--text-light);
}

.contact-fields {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.6rem, 1.6vh, 1rem);
}

/* Brief builder: service + budget chips */
.brief {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.brief + .brief {
    margin-top: clamp(0.6rem, 2vh, 1.25rem);
}

.brief legend {
    padding: 0;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.contact-section .chip {
    padding: 0.45rem 0.9rem;
    border-color: rgba(23, 38, 61, 0.16);
    background: rgba(255, 255, 255, 0.7);
}

.brief-summary {
    min-height: 1.6em;
    margin-top: clamp(0.5rem, 1.8vh, 1rem);
    color: var(--text-light);
    font-size: var(--font-size-small);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.6rem, 1.6vh, 1rem);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-panel input[type="text"],
.contact-panel input[type="email"],
.contact-panel input[type="tel"],
.contact-panel textarea {
    width: 100%;
    padding: clamp(0.65rem, 1.6vh, 0.9rem) 1rem;
    border: 1px solid rgba(23, 38, 61, 0.16);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    font-size: var(--font-size-body);
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-panel ::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.contact-panel input:focus,
.contact-panel textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(240, 120, 50, 0.2);
}

/* Fixed size: the message box is not resizable */
.contact-panel textarea {
    height: clamp(90px, 16vh, 150px);
    resize: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: var(--font-size-small);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--color-navy);
    cursor: pointer;
}

.checkbox-text {
    color: var(--text-light);
}

.checkbox-text a {
    color: var(--text-color);
    text-decoration: underline;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-sm);
}

.form-status {
    font-size: var(--font-size-small);
    font-weight: 600;
}

.form-status[data-state="success"] {
    color: var(--color-navy);
}

.form-status[data-state="error"] {
    color: var(--accent-text);
}

@media (max-width: 900px) {
    .contact-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-actions .btn {
        width: 100%;
    }
}


/* === web/css/components/modal.css === */
/* CASE VIEWER: split panel (gallery left, case info right), as in the reference project viewer */

.modal {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(23, 38, 61, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.modal.open {
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.viewer-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-rows: 1fr auto;
    max-width: 1140px;
    height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background: var(--bg-color);
    box-shadow: 0 30px 80px rgba(5, 10, 20, 0.5);
}

.viewer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-color);
    font-size: var(--font-size-h3);
    line-height: 1;
    cursor: pointer;
    transition: transform 0.2s;
}

.viewer-close:hover {
    transform: scale(1.1);
}

/* Left column: image + filmstrip */
.viewer-left {
    grid-row: 1;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.viewer-image-area {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-light);
}

.viewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.viewer-image[hidden] {
    display: none;
}

/* Branded tile for cases without images */
.viewer-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.viewer-placeholder[hidden] {
    display: none;
}

.viewer-placeholder-text {
    position: relative;
    z-index: 1;
    padding: var(--spacing-md);
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    font-style: italic;
    text-align: center;
}

.viewer-nav {
    position: absolute;
    bottom: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);
    font-size: var(--font-size-body);
    cursor: pointer;
    transition: transform 0.2s;
}

.viewer-nav:hover {
    transform: scale(1.1);
}

.viewer-prev { right: 60px; }
.viewer-next { right: 14px; }

.viewer-nav.hidden { display: none; }

.viewer-counter {
    position: absolute;
    bottom: 22px;
    left: 16px;
    z-index: 5;
    color: var(--text-light);
    font-size: var(--font-size-small);
    letter-spacing: 1px;
    pointer-events: none;
}

.viewer-counter:empty { display: none; }

.viewer-thumbnails {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    min-height: 76px;
    padding: 10px 14px;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
    scrollbar-width: thin;
}

.viewer-thumbnails:empty { display: none; }

.viewer-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--bg-light);
    opacity: 0.75;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}

.viewer-thumb:hover { opacity: 0.9; }

.viewer-thumb.active {
    opacity: 1;
    border-color: var(--accent-color);
}

/* Right column: scrollable case info */
.viewer-info {
    grid-row: 1;
    grid-column: 2;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 24px;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.viewer-category {
    margin-bottom: 8px;
    padding-right: 40px; /* clear of the close button */
    color: var(--accent-text);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.viewer-title {
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: var(--font-size-h3);
    line-height: 1.2;
}

.viewer-client {
    margin-bottom: 14px;
    color: var(--text-light);
    font-size: var(--font-size-small);
    font-weight: 600;
}

.viewer-intro {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.7;
}

.viewer-labels {
    display: flex;
    padding: 14px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.viewer-labels:empty { display: none; }

.viewer-label-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.viewer-label-item + .viewer-label-item {
    padding-left: 16px;
    border-left: 1px solid var(--border-color);
}

.viewer-label-title {
    color: var(--text-light);
    font-size: var(--font-size-caption);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.viewer-label-value {
    color: var(--text-color);
    font-size: var(--font-size-small);
    font-weight: 700;
}

/* KPI tiles */
.viewer-results {
    margin-bottom: 24px;
}

.viewer-results:empty { display: none; }

.viewer-results-title {
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: var(--font-size-caption);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.viewer-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.viewer-result {
    padding: 12px;
    border-radius: var(--border-radius);
    background: var(--color-navy);
    color: var(--text-on-dark);
}

.viewer-result strong {
    display: block;
    color: var(--color-orange);
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    font-weight: 600;
    line-height: 1.1;
}

.viewer-result span {
    color: var(--text-on-dark-muted);
    font-size: var(--font-size-caption);
}

.viewer-sections {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
}

.viewer-section-title {
    margin-bottom: 6px;
    color: var(--text-color);
    font-size: var(--font-size-body);
    font-weight: 700;
}

.viewer-section-text {
    color: var(--text-light);
    font-size: var(--font-size-small);
    line-height: 1.7;
}

.viewer-quote-block {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-color);
    background: var(--bg-light);
}

.viewer-quote-text {
    flex: 1;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-style: italic;
    line-height: 1.4;
}

.viewer-quote-label {
    color: var(--text-light);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.viewer-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 8px;
}

.viewer-cta-primary {
    width: 100%;
}

.viewer-cta-primary .cta-arrow {
    transition: transform 0.2s;
}

.viewer-cta-primary:hover .cta-arrow {
    transform: translateX(3px);
}

.viewer-cta-secondary {
    padding: 4px 0;
    color: var(--text-color);
    font-size: var(--font-size-small);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.viewer-cta-secondary:hover {
    color: var(--accent-text);
}

.viewer-footer {
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--bg-blue);
    color: var(--text-color);
    font-size: var(--font-size-caption);
}

.viewer-footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.viewer-footer-social a {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: var(--text-color);
    transition: color 0.2s;
}

.viewer-footer-social a:hover {
    color: var(--accent-text);
}

.viewer-footer-social svg {
    width: 100%;
    height: 100%;
}

@media (max-width: 1024px) {
    .viewer-panel {
        grid-template-columns: minmax(0, 1fr) 340px;
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    .viewer-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .viewer-left {
        max-height: 55vh;
        max-height: 55dvh;
    }

    .viewer-image-area {
        flex: none;
        height: 45vh;
        height: 45dvh;
    }

    .viewer-info {
        grid-column: 1;
        grid-row: auto;
        padding: 20px 16px 24px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .viewer-footer {
        grid-column: 1;
        padding: 10px 16px;
    }

    .viewer-footer-tagline {
        display: none;
    }
}


/* === web/css/components/footer.css === */
/* FOOTER: logo, contact, location, social icons; warm light background, aligned to the site gutter */
.footer {
    background: var(--bg-light);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-small);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--spacing-md);
}

.footer-logo {
    display: block;
    line-height: 0;
}

.footer-logo svg {
    width: auto;
    height: 88px;
}

.footer-tagline {
    margin-top: var(--spacing-sm);
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: var(--font-size-h4);
    font-style: italic;
    font-weight: 500; /* the loaded italic weight */
}

.footer-section h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-caption);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-section p + p {
    margin-top: 0.3rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-text);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.social-link {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(23, 38, 61, 0.2);
    border-radius: 50%;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.footer-section .social-link:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    font-size: var(--font-size-caption);
    letter-spacing: 0.04em;
    text-align: center;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo svg {
        margin: 0 auto;
    }
    .social-links {
        justify-content: center;
    }
}


/* === web/css/utilities.css === */
/* Generic helpers */

/* Hide visually but keep accessible for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    z-index: 200;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    background: var(--accent-color);
    color: var(--on-accent);
    font-size: var(--font-size-body);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible for keyboard users */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Floating WhatsApp button: shown after the hero, hidden near the contact section (js/app.js) */
.fab-whatsapp {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent-color);
    color: var(--on-accent);
    box-shadow: 0 10px 30px rgba(240, 120, 50, 0.4);
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.fab-whatsapp.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.fab-whatsapp.visible:hover {
    background: var(--accent-hover);
    transform: scale(1.08);
}

/* Soft pulse ring to draw the eye once it appears */
.fab-whatsapp.visible::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    animation: fab-pulse 2.4s ease-out 3;
}

@keyframes fab-pulse {
    from { transform: scale(1); opacity: 0.8; }
    to   { transform: scale(1.6); opacity: 0; }
}

.fab-whatsapp svg {
    stroke-width: 1.8;
}

@media (max-width: 480px) {
    .fab-whatsapp {
        right: 1.2rem;
        bottom: 1.2rem;
        width: 52px;
        height: 52px;
    }
}

/* Respect reduced motion preference: animations jump to their end state */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
