/*
 * PXMSS public website: design system.
 * Direction "warm and electric": deep indigo night sections lit by glowing colour, warm cream pages, bold gradient headlines
 * built from the logo's orange, and soft pastel panels. Motion is gentle and switches off for people who ask for less motion.
 * Every colour pair used for text meets WCAG 2.2 AA. The reference page at /design-system shows every token and component.
 * No inline styles anywhere: the Content-Security-Policy blocks them (PublicSite.cs).
 */

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Night: the dark sections */
    --night: #0d0b26;
    --night-2: #17143a;
    --night-3: #2a2560;
    --on-dark: #ffffff;
    --on-dark-muted: #c9c5e8;   /* 11:1 on night */

    /* Day: the light pages */
    --bg: #fffaf5;              /* warm cream */
    --surface: #ffffff;
    --ink: #1b1534;             /* 16:1 on cream */
    --ink-muted: #565273;       /* 7.4:1 on cream */
    --line: #ece4dc;
    --line-strong: #cfc6bd;

    /* Pastel panels (ink and ink-muted pass on all of them) */
    --peach: #ffe8dc;
    --lilac: #ece8ff;
    --mint: #dff5ec;
    --sky: #e2edff;
    --butter: #fff2cf;

    /* Colour */
    --accent: #e94e1a;          /* the logo's orange: shapes and glows, not small text */
    --accent-strong: #c43e12;   /* links and text on light: 5.2:1 on white */
    --accent-hover: #a93510;
    --pink: #ff3d7f;
    --pink-strong: #b3245a;
    --violet: #7c5cff;
    --violet-strong: #5b3fd1;
    --sun: #ffb020;
    --teal: #12b5a0;
    --accent-on-dark: #ffb59c;  /* 10:1 on night */

    --grad-warm: linear-gradient(115deg, #ff6a2b 0%, #ff3d7f 50%, #8b5cff 100%);
    --grad-button: linear-gradient(115deg, #c43e12 0%, #b3245a 100%);
    --grad-button-hover: linear-gradient(115deg, #a93510 0%, #96204d 100%);
    --grad-text-dark: linear-gradient(100deg, #ffb59c 0%, #ff8fc0 50%, #bba8ff 100%);
    --grad-text-light: linear-gradient(100deg, #c43e12 0%, #b3245a 50%, #5b3fd1 100%);
    --grad-panel: linear-gradient(135deg, #fff1e8 0%, #fde8f1 50%, #ece8ff 100%);
    --grad-cta: linear-gradient(120deg, #c43e12 0%, #a3215e 50%, #5b3fd1 100%);

    --success: #1f7a4d;
    --success-tint: #e3f6ec;
    --error: #b42318;
    --error-tint: #fdecea;
    --info: #3b2fb8;
    --info-tint: #ece8ff;
    --focus: #2563eb;

    /* Type */
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1.125rem;
    --text-lg: 1.25rem;
    --text-h4: 1.25rem;
    --text-h3: 1.5rem;
    --text-h2: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
    --text-h1: clamp(2.75rem, 1.5rem + 5.2vw, 5.25rem);
    --text-display: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
    --leading-tight: 1.05;
    --leading-snug: 1.3;
    --leading-body: 1.65;

    /* Space (8px rhythm) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 112px;
    --section-y: var(--space-9);

    /* Shape and depth */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 28px;
    --container: 1240px;
    --measure: 64ch;
    --shadow-sm: 0 1px 2px rgba(27, 21, 52, 0.05), 0 6px 16px -6px rgba(27, 21, 52, 0.1);
    --shadow-lg: 0 30px 60px -20px rgba(27, 21, 52, 0.3), 0 8px 20px -8px rgba(27, 21, 52, 0.12);
    --glow: 0 12px 32px -10px rgba(196, 62, 18, 0.7);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
    :root { --section-y: var(--space-8); }
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: var(--leading-tight); font-weight: 800; letter-spacing: -0.035em; }
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--text-h3); line-height: var(--leading-snug); letter-spacing: -0.015em; font-weight: 750; }
h4 { font-size: var(--text-h4); line-height: var(--leading-snug); letter-spacing: -0.01em; font-weight: 750; }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .final-panel :focus-visible { outline-color: #ffd2c2; }

::selection { background: #ffd2c2; color: var(--ink); }

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

.skip-link {
    position: absolute; left: var(--space-4); top: -60px; z-index: 50;
    padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink); font-weight: 700;
}
.skip-link:focus { top: var(--space-2); }

main:focus { outline: none; }

/* Gradient words inside headings */
.grad { background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .grad { background-image: var(--grad-text-dark); }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
@media (min-width: 720px) { .container { padding: 0 var(--space-6); } }

.section { padding: var(--section-y) 0; position: relative; }
.section-alt { background: var(--surface); }
.section-dark, .on-dark { background-color: var(--night); color: var(--on-dark); }
.on-dark a:not(.button) { color: var(--accent-on-dark); }
.on-dark .lead, .on-dark .muted { color: var(--on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* Glowing colour behind dark sections */
.glow { position: relative; isolation: isolate; overflow: hidden; }
.glow::before, .glow::after {
    content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none;
}
.glow::before { width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, #ff5a2a 0%, rgba(255, 61, 127, 0.6) 45%, transparent 70%); animation: drift 18s ease-in-out infinite alternate; }
.glow::after { width: 560px; height: 560px; left: -200px; bottom: -260px; background: radial-gradient(circle, #7c5cff 0%, rgba(18, 181, 160, 0.35) 50%, transparent 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.dots { background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1.5px); background-size: 26px 26px; }

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(60px, 40px) scale(1.12); }
}

.section-head { max-width: 780px; margin-bottom: var(--space-7); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
    display: inline-flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4);
    padding: 6px 14px; border-radius: 999px;
    font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent-strong); background: var(--peach);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-warm); }
.on-dark .eyebrow { color: #ffd2c2; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }

.lead { font-size: var(--text-lg); color: var(--ink-muted); max-width: var(--measure); }
.muted { color: var(--ink-muted); }
.measure { max-width: var(--measure); }
.h3-size { font-size: var(--text-h3); line-height: var(--leading-snug); letter-spacing: -0.015em; }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); } }
.split-top { align-items: start; }

/* ---------- Buttons and links ---------- */

.button {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 52px; padding: var(--space-3) var(--space-6);
    border: 2px solid transparent; border-radius: 999px;
    font: inherit; font-size: var(--text-base); font-weight: 750; line-height: 1.2; text-decoration: none; letter-spacing: -0.01em;
    cursor: pointer; transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms ease, color 200ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--grad-button); color: #fff; box-shadow: var(--glow); }
.button-primary:hover { background: var(--grad-button-hover); color: #fff; box-shadow: 0 18px 40px -12px rgba(179, 36, 90, 0.75); }
.button-primary::after { content: "\2192"; transition: transform 200ms var(--ease); }
.button-primary:hover::after { transform: translateX(4px); }
.button-secondary { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: #fff; }
.on-dark .button-secondary, .site-header .button-secondary, .final-panel .button-secondary {
    background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); color: #fff; backdrop-filter: blur(8px);
}
.on-dark .button-secondary:hover, .final-panel .button-secondary:hover { background: #fff; color: var(--night); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 750; text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform 200ms var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Badges ---------- */

.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    font-size: var(--text-xs); font-weight: 800; line-height: 1.5;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-available { background: var(--success-tint); color: var(--success); }
.badge-development { background: var(--info-tint); color: var(--info); }
.badge-planned { background: var(--surface); color: var(--ink-muted); border: 1px solid var(--line-strong); }

/* ---------- Cards ---------- */

.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6);
    box-shadow: var(--shadow-sm); transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.ruled { border-top: 3px solid; border-image: var(--grad-warm) 1; padding-top: var(--space-4); }
.ruled h3, .ruled h4 { margin-bottom: var(--space-2); }
.ruled p { color: var(--ink-muted); }
.on-dark .ruled p { color: var(--on-dark-muted); }

/* ---------- Forms ---------- */

.field { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); }
.field label { font-weight: 750; }
.field .optional { font-weight: 500; color: var(--ink-muted); }
.field .hint { font-size: var(--text-sm); color: var(--ink-muted); margin: 0; }
.input, .select, .textarea {
    width: 100%; min-height: 52px; padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--line-strong); border-radius: 12px;
    font: inherit; color: var(--ink); background: var(--bg);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.textarea { min-height: 160px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
    outline: none; border-color: var(--violet-strong); background: var(--surface); box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.25);
}
.field-error .input, .field-error .select, .field-error .textarea { border-color: var(--error); border-width: 2px; background: #fffafa; }
.error-text { color: var(--error); font-size: var(--text-sm); font-weight: 650; margin: 0; }

.alert { border-radius: var(--radius); padding: var(--space-5); border-left: 5px solid; }
.alert-success { background: var(--success-tint); border-color: var(--success); }
.alert-error { background: var(--error-tint); border-color: var(--error); }
.alert-title { font-size: var(--text-lg); margin-bottom: var(--space-2); letter-spacing: -0.01em; }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(13, 11, 38, 0.82); color: var(--on-dark);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header-inner { display: flex; align-items: center; gap: var(--space-5); min-height: 76px; }
.site-brand { display: inline-flex; align-items: center; gap: var(--space-3); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.02em; }
.site-brand:hover { color: #fff; }
.site-brand img { width: 50px; height: auto; }

.site-nav { margin-left: auto; display: none; align-items: center; gap: var(--space-2); }
.site-nav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a:not(.button) {
    display: block; padding: var(--space-2) var(--space-3); border-radius: 999px;
    color: var(--on-dark-muted); font-size: var(--text-sm); font-weight: 700; text-decoration: none;
    transition: color 150ms ease, background-color 150ms ease;
}
.site-nav a:not(.button):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-nav .button { min-height: 44px; padding: var(--space-2) var(--space-5); font-size: var(--text-sm); margin-left: var(--space-3); }

.site-menu { margin-left: auto; }
.site-menu summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 44px; padding: var(--space-2) var(--space-4); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
    font-weight: 750; color: #fff;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary::before { content: ""; width: 16px; height: 10px; border-top: 2px solid; border-bottom: 2px solid; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.site-menu[open] summary { background: rgba(255, 255, 255, 0.12); }
.site-menu-panel {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid var(--night-3);
    padding: var(--space-4) var(--space-4) var(--space-6);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.6);
}
.site-menu-panel ul { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.site-menu-panel li a { display: block; padding: var(--space-3) 0; border-bottom: 1px solid var(--night-3); color: #fff; font-weight: 750; text-decoration: none; font-size: 1.375rem; letter-spacing: -0.02em; }
.site-menu-panel li a[aria-current="page"] { color: var(--accent-on-dark); }
.site-menu-panel .button { width: 100%; }

@media (min-width: 1060px) {
    .site-nav { display: flex; }
    .site-menu { display: none; }
}

/* ---------- Footer ---------- */

.site-footer { position: relative; background: var(--night); color: var(--on-dark-muted); padding: var(--space-8) 0 var(--space-6); font-size: var(--text-sm); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-warm); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1.4fr 1.2fr; } }
.footer-tagline { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-top: var(--space-4); color: #fff; }
.footer-tagline span { background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-base { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--night-3); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; }

/* ---------- Home: hero ---------- */

.hero { padding: var(--space-8) 0 var(--space-9); }

/*
   The band under the home hero: what we work on, on one still gradient bar. The phrases slide in once when it
   first appears (site.js) and then stay put, so nothing moves on its own afterwards (WCAG 2.2.2).
   White text on --grad-cta keeps at least 4.9:1 contrast.
*/
.band { background: var(--grad-cta); color: #fff; padding: var(--space-5) 0; }
.band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-5); }
.band li { display: inline-flex; align-items: center; gap: var(--space-4); font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1875rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.band-inner { padding: 0 var(--space-4); }
@media (min-width: 720px) { .band-inner { padding: 0 var(--space-6); } }
/* Separators only where all seven phrases fit on one line; a wrapped line would otherwise start with one. */
@media (min-width: 1560px) {
    .band ul { flex-wrap: nowrap; gap: var(--space-4); }
    .band li + li::before { content: "\2726"; font-size: 0.75em; opacity: 0.8; }
}
.js .band .reveal-stagger > * { transform: translateX(32px); }
.js .band .reveal-stagger.is-visible > * { transform: none; }
.hero h1 { max-width: 13ch; margin-bottom: var(--space-5); }
.hero .lead { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); margin-bottom: var(--space-6); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin: var(--space-6) 0 0; padding: 0; font-size: var(--text-sm); color: var(--on-dark-muted); font-weight: 650; }
.hero-points li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero-points li::before { content: "\2713"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(18, 181, 160, 0.2); color: #6ff0dc; font-size: 12px; font-weight: 800; }

/* The hero's picture: a dashboard with notifications floating round it. Decorative, built in HTML and CSS. */
.hero-visual { position: relative; padding: var(--space-6) 0; max-width: 560px; width: 100%; justify-self: center; }
.mock {
    position: relative; border-radius: 22px; padding: var(--space-4);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: var(--space-4); font-size: var(--text-xs); font-weight: 700; color: var(--on-dark-muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.mock-bar i:nth-child(1) { background: #ff6a5c; }
.mock-bar i:nth-child(2) { background: #ffc23d; }
.mock-bar i:nth-child(3) { background: #3fd68b; }
.mock-bar span { margin-left: var(--space-3); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-3); }
.mock-tile { border-radius: 12px; padding: var(--space-3); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.08); }
.mock-tile b { display: block; height: 8px; width: 55%; border-radius: 4px; background: rgba(255, 255, 255, 0.3); margin-bottom: 10px; }
.mock-tile em { display: block; height: 16px; width: 80%; border-radius: 5px; }
.mock-tile:nth-child(1) em { background: linear-gradient(90deg, #ff6a2b, #ff3d7f); }
.mock-tile:nth-child(2) em { background: linear-gradient(90deg, #8b5cff, #5bc6ff); }
.mock-tile:nth-child(3) em { background: linear-gradient(90deg, #12b5a0, #a8f06b); }
.mock-chart { display: block; width: 100%; height: auto; border-radius: 12px; background: rgba(255, 255, 255, 0.05); margin-bottom: var(--space-3); }
.mock-chart .chart-line { stroke: #ff8fc0; }
.mock-chart .chart-grid { stroke: rgba(255, 255, 255, 0.08); }
.mock-chart .chart-dot { fill: #fff; }
.mock-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-rows li { display: flex; align-items: center; gap: var(--space-3); padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.mock-rows i { width: 26px; height: 26px; border-radius: 8px; flex: none; }
.mock-rows li:nth-child(1) i { background: linear-gradient(135deg, #ff6a2b, #ff3d7f); }
.mock-rows li:nth-child(2) i { background: linear-gradient(135deg, #8b5cff, #5bc6ff); }
.mock-rows li:nth-child(3) i { background: linear-gradient(135deg, #12b5a0, #a8f06b); }
.mock-rows b { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); flex: 1; }
.mock-rows li:nth-child(2) b { flex: 0.7; }
.mock-rows li:nth-child(3) b { flex: 0.85; }
.mock-rows s { margin-left: auto; width: 44px; height: 18px; border-radius: 999px; background: rgba(63, 214, 139, 0.3); }

.float-chip {
    position: absolute; display: flex; align-items: center; gap: var(--space-3);
    padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; color: var(--ink);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.55); font-size: var(--text-sm); line-height: 1.25; white-space: nowrap;
    animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-weight: 800; }
.float-chip small { display: block; color: var(--ink-muted); font-size: var(--text-xs); font-weight: 600; }
.chip-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; flex: none; }
.chip-icon svg { width: 20px; height: 20px; }
.chip-a { left: -28px; top: 4px; }
.chip-a .chip-icon { background: linear-gradient(135deg, #ff6a2b, #ff3d7f); }
.chip-b { right: -24px; top: 42%; animation-delay: -2s; }
.chip-b .chip-icon { background: linear-gradient(135deg, #12b5a0, #3fd68b); }
.chip-c { left: 8%; bottom: -6px; animation-delay: -4s; }
.chip-c .chip-icon { background: linear-gradient(135deg, #8b5cff, #5b3fd1); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@media (max-width: 720px) {
    .chip-a { left: -6px; top: -4px; }
    .chip-b { right: -6px; }
    .chip-c { left: 4px; }
    .mock { transform: none; }
}


/* ---------- Home: problems ---------- */

.problem-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 720px) { .problem-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .problem-list { grid-template-columns: repeat(3, 1fr); } }
.problem-list li {
    position: relative; display: grid; gap: var(--space-3); align-content: start;
    padding: var(--space-6); border-radius: var(--radius-lg); background: var(--peach);
    transition: transform 250ms var(--ease);
}
.problem-list li:hover { transform: translateY(-4px) rotate(-0.4deg); }
.problem-list li:nth-child(2) { background: var(--lilac); }
.problem-list li:nth-child(3) { background: var(--mint); }
.problem-list li:nth-child(4) { background: var(--sky); }
.problem-list li:nth-child(5) { background: var(--butter); }
.problem-list li:nth-child(6) { background: #fde3ee; }
.problem-list li::before { content: "\201C"; font-size: 4.5rem; line-height: 0.6; font-weight: 800; height: 28px; color: var(--accent-strong); }
.problem-list li:nth-child(2)::before { color: var(--violet-strong); }
.problem-list li:nth-child(3)::before { color: var(--success); }
.problem-list li:nth-child(4)::before { color: #2756c5; }
.problem-list li:nth-child(5)::before { color: #9a5b00; }
.problem-list li:nth-child(6)::before { color: var(--pink-strong); }
.problem-list .quote { font-size: 1.375rem; font-weight: 800; color: var(--ink); line-height: 1.25; letter-spacing: -0.02em; }
.problem-list p { color: var(--ink-muted); margin: 0; }

/* ---------- Services: cards ---------- */

.service-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.service-card {
    position: relative; display: grid; gap: var(--space-3); align-content: start;
    padding: var(--space-6); border-radius: var(--radius-lg); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms ease;
}
.service-card::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: var(--grad-warm);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 300ms ease; pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-card h3 { margin: var(--space-2) 0 0; font-size: 1.375rem; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.service-card p { margin: 0; color: var(--ink-muted); }
.service-card .link-arrow { margin-top: var(--space-2); color: var(--accent-strong); }
.service-card:hover .link-arrow::after { transform: translateX(4px); }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-number { font-size: var(--text-sm); font-weight: 800; color: var(--ink-muted); letter-spacing: 0.04em; }

.service-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; box-shadow: 0 10px 24px -10px rgba(27, 21, 52, 0.5); }
.service-icon svg { width: 28px; height: 28px; }
.service-icon.icon-lg { width: 76px; height: 76px; border-radius: 24px; }
.service-icon.icon-lg svg { width: 38px; height: 38px; }
.icon-custom-software-development { background: linear-gradient(135deg, #ff6a2b, #ff3d7f); }
.icon-business-automation { background: linear-gradient(135deg, #8b5cff, #5bc6ff); }
.icon-ai-integration { background: linear-gradient(135deg, #ff3d7f, #8b5cff); }
.icon-website-design { background: linear-gradient(135deg, #ffb020, #ff6a2b); }
.icon-software-maintenance { background: linear-gradient(135deg, #12b5a0, #3fd68b); }
.icon-software-consulting { background: linear-gradient(135deg, #5b3fd1, #12b5a0); }

/* ---------- Home: complexity to clarity ---------- */

.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); } }
.stage {
    position: relative; padding: var(--space-5); border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.12); transition: transform 300ms var(--ease), border-color 300ms ease;
}
.stage:hover { transform: translateY(-6px); border-color: rgba(255, 181, 156, 0.5); }
@media (min-width: 900px) {
    .stage:not(:last-child)::after {
        content: "\2192"; position: absolute; right: -22px; top: 50%; z-index: 1; display: grid; place-items: center;
        width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--grad-warm); color: #fff; font-weight: 800; font-size: 14px;
    }
}
.stage svg { display: block; width: 100%; max-width: 220px; height: auto; margin-bottom: var(--space-4); }
.stage h3 { font-size: 1.375rem; color: #fff; margin-bottom: var(--space-2); }
.stage p { color: var(--on-dark-muted); font-size: var(--text-sm); }
.stage-step { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-on-dark); margin-bottom: var(--space-2); display: block; }
.stage-last { background: linear-gradient(160deg, rgba(255, 106, 43, 0.35), rgba(139, 92, 255, 0.3)); border-color: rgba(255, 181, 156, 0.6); box-shadow: 0 30px 60px -30px rgba(255, 61, 127, 0.7); }

/* Diagram colours, set by class because inline styles are blocked. */
.art-line { stroke: #4d4794; }
.art-dash { stroke: #6a63b5; stroke-dasharray: 5 6; }
.art-panel { fill: var(--night-2); stroke: #4d4794; }
.art-paper { fill: #fff; }
.art-ink { fill: #8f89c9; }
.art-ink-soft { fill: #3b3577; }
.art-accent { fill: #ff6a2b; }
.art-pink { fill: #ff3d7f; }
.art-violet { fill: #8b5cff; }
.art-teal { fill: #12b5a0; }
.art-accent-stroke { stroke: #ff6a2b; }
.art-node { fill: #fff; }
.flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Home: case study ---------- */

.case-panel { border-radius: 36px; padding: var(--space-7) var(--space-5); background: var(--grad-panel); }
@media (min-width: 720px) { .case-panel { padding: var(--space-8); } }
.case-figure { margin: 0; border-radius: var(--radius-lg); background: var(--night); padding: var(--space-5); box-shadow: var(--shadow-lg); transform: rotate(1.5deg); transition: transform 400ms var(--ease); }
.case-figure:hover { transform: rotate(0deg) scale(1.01); }
.case-figure figcaption { color: var(--on-dark-muted); font-size: var(--text-sm); margin-top: var(--space-3); }
/* A screenshot of a client's website, in a simple browser frame. */
.site-shot { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.site-shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.site-shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.site-shot-bar .site-shot-url { width: auto; height: auto; margin-left: var(--space-3); padding: 2px var(--space-3); border-radius: 999px; background: none; border: 1px solid var(--line); color: var(--ink-muted); font-size: var(--text-xs); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-shot img { display: block; width: 100%; height: auto; }
.site-shot figcaption { padding: var(--space-3) var(--space-4); color: var(--ink-muted); font-size: var(--text-sm); border-top: 1px solid var(--line); }
.case-list { display: grid; gap: var(--space-7); }
.capability-list { display: grid; gap: var(--space-2) var(--space-5); list-style: none; padding: 0; margin: var(--space-5) 0 var(--space-6); }
@media (min-width: 560px) { .capability-list { grid-template-columns: 1fr 1fr; } }
.capability-list li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); font-weight: 650; }
.capability-list li::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--surface); color: var(--accent-strong); font-size: 12px; font-weight: 800; box-shadow: var(--shadow-sm); }

/* ---------- Home: why ---------- */

.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-num { display: block; font-size: 3.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; margin-bottom: var(--space-3); background: var(--grad-text-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-list h3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.why-list p { color: var(--ink-muted); }

/* ---------- Home: products ---------- */

.product { display: grid; gap: var(--space-3); align-content: start; position: relative; overflow: hidden; padding-top: var(--space-7); }
.product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, #ff6a2b, #ff3d7f); }
.product:nth-child(2)::before { background: linear-gradient(90deg, #12b5a0, #3fd68b); }
.product:nth-child(3)::before { background: linear-gradient(90deg, #8b5cff, #5bc6ff); }
.product:nth-child(4)::before { background: linear-gradient(90deg, #ff3d7f, #8b5cff); }
.product h3 { margin: 0; }
.product .badge { justify-self: start; }

/* ---------- Home: approach ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); counter-reset: step; position: relative; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .steps::before { content: ""; position: absolute; left: 28px; right: 12%; top: 28px; height: 3px; border-radius: 2px; background: var(--grad-warm); opacity: 0.4; }
}
.steps li { counter-increment: step; position: relative; }
.steps li::before {
    content: counter(step); display: grid; place-items: center; position: relative;
    width: 58px; height: 58px; margin-bottom: var(--space-4); border-radius: 50%;
    background: var(--grad-button); color: #fff; font-size: 1.375rem; font-weight: 800; box-shadow: var(--glow);
}
.steps li:nth-child(2)::before { background: linear-gradient(135deg, #b3245a, #7a2fa8); }
.steps li:nth-child(3)::before { background: linear-gradient(135deg, #7a2fa8, #5b3fd1); }
.steps li:nth-child(4)::before { background: linear-gradient(135deg, #5b3fd1, #0f7d6f); }
.steps h3 { font-size: 1.375rem; margin-bottom: var(--space-2); }
.steps p { color: var(--ink-muted); }

/* ---------- Home: insights ---------- */

.article-card {
    position: relative; display: grid; gap: var(--space-2); align-content: start;
    border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card > :not(.article-cover):not(.article-photo) { margin-left: var(--space-5); margin-right: var(--space-5); }
.article-card > :last-child { margin-bottom: var(--space-5); }
.article-card > :first-child:not(.article-cover):not(.article-photo) { margin-top: var(--space-5); }
.article-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: var(--space-3); background: var(--lilac); }
.article-card .article-facts { margin-top: auto; }
.article-cover { height: 150px; margin-bottom: var(--space-3); position: relative; overflow: hidden; }
.article-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1.5px, transparent 2px); background-size: 18px 18px; }
.cover-1 { background: linear-gradient(135deg, #ff6a2b, #ff3d7f); }
.cover-2 { background: linear-gradient(135deg, #8b5cff, #ff3d7f); }
.cover-3 { background: linear-gradient(135deg, #12b5a0, #5b3fd1); }
.article-cover svg { position: absolute; right: 20px; bottom: -10px; width: 120px; height: 120px; color: rgba(255, 255, 255, 0.85); }
.article-card .category { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); }
.article-card h3 { font-size: 1.25rem; margin: 0; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card:hover h3 a { color: var(--accent-strong); }
.article-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.article-card h3 a:focus-visible { outline: none; }
.article-card p { color: var(--ink-muted); font-size: var(--text-sm); }

/* ---------- Home: local ---------- */

.place-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.place-list li { padding: 6px 16px; border-radius: 999px; font-size: var(--text-sm); font-weight: 700; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.call-card { border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6); background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.call-card::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -100px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 127, 0.7), transparent 70%); filter: blur(30px); }
.call-card h3 { color: #fff; font-size: 1.75rem; }
.call-card p { color: var(--on-dark-muted); }
.call-number { display: inline-block; margin: var(--space-3) 0; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; background: var(--grad-text-dark); -webkit-background-clip: text; background-clip: text; color: transparent; }
.call-card a.call-number:hover { text-decoration: underline; text-decoration-color: #ff8fc0; }

/* ---------- Final call ---------- */

.final-wrap { padding: 0 0 var(--section-y); }
.final-panel {
    position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff;
    border-radius: 40px; padding: var(--space-8) var(--space-5); background: var(--grad-cta);
}
@media (min-width: 720px) { .final-panel { padding: var(--space-9) var(--space-8); } }
.final-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 2px); background-size: 24px 24px; }
.final-panel::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; left: 50%; top: -280px; margin-left: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, 0.55), transparent 70%); filter: blur(30px); }
.final-panel h2 { max-width: 16ch; margin: 0 auto var(--space-4); color: #fff; font-size: var(--text-display); }
.final-panel .lead { color: #fff; margin: 0 auto var(--space-6); opacity: 0.95; }
.final-panel .button-row { justify-content: center; }
.final-panel .button-primary { background: #fff; color: var(--pink-strong); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5); }
.final-panel .button-primary:hover { background: var(--bg); color: var(--accent-hover); }
.final-panel a:not(.button) { color: #fff; }

/* ---------- Inner pages ---------- */

.page-hero { padding: var(--space-8) 0 var(--space-9); }
.page-hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem); }
.page-hero .lead { margin-bottom: var(--space-6); }
.page-hero .lead:last-child { margin-bottom: 0; }
.page-hero .service-icon { margin-bottom: var(--space-5); }

.breadcrumbs ol { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); font-weight: 650; }
.breadcrumbs li { color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--on-dark-muted); opacity: 0.6; }
.breadcrumbs [aria-current] { color: #fff; }

.sign-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.sign-list li {
    display: flex; gap: var(--space-4); align-items: flex-start;
    padding: var(--space-4) var(--space-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    font-size: var(--text-lg); font-weight: 650; line-height: 1.45; box-shadow: var(--shadow-sm);
}
.sign-list li::before { content: "!"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad-button); color: #fff; font-weight: 800; font-size: 15px; margin-top: 1px; }

.help-grid { display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
.help-item { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--peach); }
.help-item:nth-child(2) { background: var(--lilac); }
.help-item:nth-child(3) { background: var(--mint); }
.help-item:nth-child(4) { background: var(--sky); }
.help-item h3 { margin-bottom: var(--space-2); }
.help-item p { color: var(--ink-muted); margin: 0; }

.related-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contact ---------- */

.contact-layout { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1.6fr 1fr; } }
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); box-shadow: var(--shadow-lg); border: 1px solid var(--line); margin-top: calc(var(--space-9) * -1 + var(--space-5)); position: relative; z-index: 2; }
@media (min-width: 720px) { .contact-card { padding: var(--space-7); } }
.contact-layout form { margin-top: var(--space-5); }
.contact-aside { display: grid; gap: var(--space-4); align-content: start; }
.contact-aside .help-item h3 { font-size: 1.25rem; }
.field-pair { display: grid; gap: 0 var(--space-5); }
@media (min-width: 720px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.form-note { margin-top: var(--space-3); }
.error-summary { margin-top: var(--space-5); }
.error-summary ul { margin: 0; padding-left: var(--space-5); }
.error-summary a { color: var(--error); font-weight: 650; }

/* The field bots fill in and people never see. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Shared bits for inner pages ---------- */

.section-more { margin: var(--space-6) 0 0; }
.article-facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); align-items: center; font-size: var(--text-sm); font-weight: 650; color: var(--ink-muted); }
.on-dark .article-facts { color: var(--on-dark-muted); }
.tag-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-list li { padding: 4px 12px; border-radius: 999px; font-size: var(--text-sm); font-weight: 700; background: var(--lilac); color: var(--violet-strong); }
.tag-list li:nth-child(3n + 2) { background: var(--peach); color: var(--accent-strong); }
.tag-list li:nth-child(3n) { background: var(--mint); color: var(--success); }
.plain-list { margin: var(--space-3) 0 0; padding-left: var(--space-5); color: var(--ink-muted); }
.plain-list li + li { margin-top: var(--space-1); }
.better-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.better-list li {
    display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) var(--space-5);
    border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--text-lg); font-weight: 650; line-height: 1.45;
}
.better-list li::before { content: "\2713"; display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--grad-warm); color: #fff; font-weight: 800; font-size: 15px; }
.check-list li::before { content: "\2713"; background: linear-gradient(135deg, #12b5a0, #3fd68b); }
.monogram {
    display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%;
    background: var(--grad-warm); color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; box-shadow: var(--glow);
}
.monogram-lg { width: 132px; height: 132px; font-size: 2.75rem; margin-bottom: var(--space-4); }
.eyebrow-link { text-decoration: none; }
.on-dark .eyebrow-link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.hero-quote { font-size: var(--text-lg); font-weight: 750; color: var(--accent-on-dark); margin-bottom: var(--space-3); }

/* ---------- Insights ---------- */

.featured-article {
    position: relative; display: grid; overflow: hidden; border-radius: 36px; background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform 300ms var(--ease);
}
@media (min-width: 1000px) { .featured-article { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.featured-article:hover { transform: translateY(-4px); }
.featured-article:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; }
.featured-photo { width: 100%; height: 100%; min-height: 260px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--lilac); }
.featured-copy { padding: var(--space-6) var(--space-5); }
@media (min-width: 720px) { .featured-copy { padding: var(--space-7); } }
.featured-copy h3 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; }
.featured-copy h3 a { color: var(--ink); text-decoration: none; }
.featured-copy h3 a::after { content: ""; position: absolute; inset: 0; }
.featured-copy h3 a:focus-visible { outline: none; }
.featured-article:hover h3 a { color: var(--accent-strong); }
.featured-copy .link-arrow { margin-top: var(--space-4); color: var(--accent-strong); }

.filter-list { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filter-list a {
    display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 6px 14px; border-radius: 999px;
    font-size: var(--text-sm); font-weight: 700; color: var(--ink); text-decoration: none; background: var(--surface);
    border: 1px solid var(--line-strong); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.filter-list a span { font-size: var(--text-xs); color: var(--ink-muted); }
.filter-list a:hover { border-color: var(--ink); }
.filter-list a[aria-current] { background: var(--night); border-color: var(--night); color: #fff; }
.filter-list a[aria-current] span { color: var(--on-dark-muted); }

.article-hero h1 { max-width: 24ch; font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
.article-hero .article-facts a { color: #fff; }
.article-figure-wrap { margin-top: calc(var(--space-8) * -1); position: relative; z-index: 2; }
.article-figure { display: block; width: 100%; max-width: 1080px; height: auto; margin: 0 auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--lilac); }
.article-section { padding-top: var(--space-8); }
.article-layout { display: grid; gap: var(--space-7); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); justify-content: center; } }

.prose { max-width: 70ch; font-size: 1.1875rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-5); }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); line-height: 1.2; margin: var(--space-7) 0 var(--space-4); }
.prose h3 { font-size: 1.375rem; margin: var(--space-6) 0 var(--space-3); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose li::marker { color: var(--accent-strong); }
.prose strong { font-weight: 750; }
.prose a { word-break: break-word; }
.prose blockquote {
    margin: var(--space-6) 0; padding: var(--space-5) var(--space-6); border-radius: var(--radius-lg); background: var(--grad-panel);
    font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 750; line-height: 1.4; letter-spacing: -0.015em; position: relative;
}
.prose blockquote::before { content: "\201C"; position: absolute; top: -8px; left: 16px; font-size: 4rem; line-height: 1; color: var(--accent-strong); }
.prose blockquote p { margin: 0; padding-left: var(--space-4); }

.article-aside { display: grid; gap: var(--space-4); align-content: start; }
@media (min-width: 1000px) { .article-aside { position: sticky; top: 96px; } }
.author-card, .share-card { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.author-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.author-card p { font-size: var(--text-sm); margin-bottom: var(--space-2); }
.author-name { font-weight: 800; color: var(--ink); margin-bottom: var(--space-1); }
.author-card .author-name, .share-card .author-name { font-size: var(--text-base); }
.share-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.share-list a { display: inline-flex; min-height: 40px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--lilac); color: var(--violet-strong); font-size: var(--text-sm); font-weight: 750; text-decoration: none; }
.share-list a:hover { background: var(--violet-strong); color: #fff; }
.aside-service .author-name { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-strong); margin: var(--space-2) 0 0; }

/* ---------- Solutions ---------- */

.solution-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 720px) { .solution-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .solution-cards { grid-template-columns: repeat(3, 1fr); } }
.solution-card {
    position: relative; display: grid; gap: var(--space-3); align-content: start; padding: var(--space-6);
    border-radius: var(--radius-lg); background: var(--peach); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.solution-card:nth-child(7n + 2) { background: var(--lilac); }
.solution-card:nth-child(7n + 3) { background: var(--mint); }
.solution-card:nth-child(7n + 4) { background: var(--sky); }
.solution-card:nth-child(7n + 5) { background: var(--butter); }
.solution-card:nth-child(7n + 6) { background: #fde3ee; }
.solution-card:nth-child(7n) { background: var(--surface); border: 1px solid var(--line); }
.solution-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.solution-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.solution-card .quote { font-size: var(--text-sm); font-weight: 750; color: var(--ink-muted); font-style: italic; }
.solution-card .quote::before { content: "\201C"; }
.solution-card .quote::after { content: "\201D"; }
.solution-card h3 { margin: 0; font-size: 1.375rem; }
.solution-card h3 a { color: var(--ink); text-decoration: none; }
.solution-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.solution-card h3 a:focus-visible { outline: none; }
.solution-card p { margin: 0; color: var(--ink-muted); }
.solution-card .link-arrow { color: var(--accent-strong); }
.solution-card:hover .link-arrow::after { transform: translateX(4px); }

/* ---------- About ---------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-6); position: relative; display: grid; gap: var(--space-6); }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad-warm); }
.timeline li { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.timeline li::before { content: ""; position: absolute; left: calc(var(--space-6) * -1 + 2px); top: 26px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--pink); }
.timeline h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.timeline p { color: var(--ink-muted); margin: 0; }
.timeline-date { display: block; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: var(--space-2); }

.founder { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1000px) { .founder { grid-template-columns: 380px 1fr; gap: var(--space-8); } }
.founder-card {
    display: grid; justify-items: center; text-align: center; padding: var(--space-7) var(--space-5);
    border-radius: 36px; background: var(--grad-panel); position: relative; overflow: hidden;
}
.founder-card::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(124, 92, 255, 0.18) 1.5px, transparent 2px); background-size: 20px 20px; pointer-events: none; }
.founder-card > * { position: relative; z-index: 1; }
.founder-photo {
    display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 800 / 952; object-fit: cover;
    margin-bottom: var(--space-5); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    border: 6px solid #fff; transform: rotate(-2deg); transition: transform 400ms var(--ease);
}
.founder-card:hover .founder-photo { transform: rotate(0deg); }
.author-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--glow); }
.founder-name { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.founder-card .muted { margin-bottom: var(--space-5); }

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { padding: var(--space-6); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.principles h3 { color: #fff; font-size: 1.375rem; margin-bottom: var(--space-2); }
.principles p { color: var(--on-dark-muted); margin: 0; }

.purpose-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .purpose-grid { grid-template-columns: 1fr 1fr; } }
.purpose { padding: var(--space-7) var(--space-6); border-radius: 36px; }
.purpose p { margin: 0; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 750; line-height: 1.4; letter-spacing: -0.015em; }
.purpose-mission { background: var(--grad-cta); color: #fff; }
.purpose-mission .eyebrow { color: #fff; background: rgba(255, 255, 255, 0.14); }
.purpose-vision { background: var(--grad-panel); }

.value-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
@media (min-width: 600px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }
.value-grid li { padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); position: relative; overflow: hidden; }
.value-grid li::before { content: ""; display: block; width: 40px; height: 6px; border-radius: 6px; margin-bottom: var(--space-4); background: linear-gradient(90deg, #ff6a2b, #ff3d7f); }
.value-grid li:nth-child(4n + 2)::before { background: linear-gradient(90deg, #12b5a0, #3fd68b); }
.value-grid li:nth-child(4n + 3)::before { background: linear-gradient(90deg, #8b5cff, #5bc6ff); }
.value-grid li:nth-child(4n)::before { background: linear-gradient(90deg, #ff3d7f, #8b5cff); }
.value-grid h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.value-grid p { color: var(--ink-muted); margin: 0; font-size: var(--text-sm); }

/* ---------- Our work ---------- */

.product-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-detail { gap: var(--space-2); }
.product-detail h3 { font-size: 1.75rem; }
.product-line { font-weight: 750; font-size: var(--text-lg); line-height: 1.4; margin: 0; }
.product-detail .ds-label { margin: var(--space-3) 0 0; }
.product-detail .tag-list { margin: 0 0 var(--space-3); }
.product-detail .link-arrow { justify-self: start; }

.fact-list { display: grid; gap: var(--space-3); margin: var(--space-6) 0 0; padding: 0; }
@media (min-width: 720px) { .fact-list { grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--space-6); } }
.fact-list div { padding-left: var(--space-4); border-left: 3px solid; border-image: var(--grad-warm) 1; }
.fact-list dt { font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-muted); }
.fact-list dd { margin: 0; font-weight: 750; color: #fff; }
.case-art-wide { max-width: 760px; margin: var(--space-8) auto 0; }
.phone-art { display: grid; place-items: center; }
.phone-art svg { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45)); animation: float 6s ease-in-out infinite; }
.art-phone { fill: #2a2560; }
.art-card { fill: #f3f0ff; }
.art-line-fill { fill: #d6d1ef; }
.art-check { stroke: #fff; }

/* ---------- Legal pages ---------- */

.legal-hero h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); }
.legal { margin: 0 auto; }
.legal h2 { font-size: 1.625rem; margin-top: var(--space-7); }
.legal h2:first-child { margin-top: 0; }

.site-footer ul.social-list { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }

/* ---------- Not found ---------- */

.not-found { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .not-found { grid-template-columns: 1.3fr 1fr; } }
.not-found .button-row { margin-bottom: var(--space-5); }
.walter-wrap { max-width: 440px; width: 100%; justify-self: center; animation: rise 1100ms 150ms var(--ease) both; }
.walter-scene { display: block; width: 100%; height: auto; overflow: visible; }
.walter-bob { animation: walter-bob 3.2s ease-in-out infinite; transform-origin: 220px 250px; }
.walter-q { animation: float 4s ease-in-out infinite; }
.walter-q-2 { animation-delay: -1.5s; }
@keyframes walter-bob {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-3deg) translateY(-4px); }
}

/* ---------- Scroll-in motion (site.js adds .js; nothing is hidden without it) ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: 90ms; }
.js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: 180ms; }
.js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: 270ms; }
.js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: 360ms; }
.js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: 450ms; }
.js .reveal-stagger.is-visible > :nth-child(7) { transition-delay: 540ms; }

.hero-copy > * { animation: rise 900ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.hero-visual { animation: rise 1100ms 200ms var(--ease) both; }
@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Design system reference page ---------- */

.swatches { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; padding: 0; margin: 0; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: var(--text-sm); background: var(--surface); }
.swatch-chip { height: 72px; }
.swatch-body { padding: var(--space-3); }
.swatch-body code { display: block; color: var(--ink-muted); font-size: var(--text-xs); }
.chip-night { background: var(--night); }
.chip-night-2 { background: var(--night-2); }
.chip-bg { background: var(--bg); }
.chip-ink { background: var(--ink); }
.chip-ink-muted { background: var(--ink-muted); }
.chip-peach { background: var(--peach); }
.chip-lilac { background: var(--lilac); }
.chip-mint { background: var(--mint); }
.chip-sky { background: var(--sky); }
.chip-butter { background: var(--butter); }
.chip-accent { background: var(--accent); }
.chip-accent-strong { background: var(--accent-strong); }
.chip-pink { background: var(--pink); }
.chip-violet { background: var(--violet); }
.chip-teal { background: var(--teal); }
.chip-accent-on-dark { background: var(--accent-on-dark); }
.chip-grad-warm { background: var(--grad-warm); }
.chip-grad-cta { background: var(--grad-cta); }
.chip-success { background: var(--success); }
.chip-error { background: var(--error); }
.chip-focus { background: var(--focus); }
.ds-row { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--space-5); background: var(--surface); }
.ds-row.on-dark { border-color: var(--night); background: var(--night); }
.ds-type > * { margin-bottom: var(--space-3); }
.ds-label { display: block; font-size: var(--text-xs); font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.ds-section { padding: var(--space-7) 0; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal, .js .reveal-stagger > *, .js .band .reveal-stagger > * { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-menu, .glow::before, .glow::after { display: none; }
    .js .reveal, .js .reveal-stagger > *, .js .band .reveal-stagger > * { opacity: 1; transform: none; }
}
