/* =========================================================
   Ozedra Group: shared styles for every page
   ========================================================= */

/* ---------- Brand colours (logo orange + midnight navy) ---------- */
:root {
    --brand: #E8541E;          /* logo orange: the "zed" */
    --brand-dark: #C2410C;     /* button background: white text passes AA */
    --brand-deeper: #9A3412;   /* button hover */
    --brand-text: #B53D0C;     /* small orange text on light sections */
    --ink: #0F1E33;            /* midnight navy: logo and headings */
    --text: #34445C;
    --muted: #56657B;
    --bg: #FFFFFF;
    --bg-soft: #F3F6FA;
    --line: #E2E8F0;
    --hero-bg: #0B1628;
    --hero-text: #FFFFFF;
    --hero-muted: #B8C4D6;
    --footer-bg: #07101E;
    --footer-text: #A9B6C8;
    --footer-muted: #7C8AA0;

    --tech: #2F6FEB;
    --fin: #7C5CE0;
    --agri: #16975A;

    /* Darker accent shades for small text on light backgrounds (WCAG AA) */
    --tech-text: #2563D6;
    --fin-text: #6D4FD1;
    --agri-text: #117A48;
}

/* ---------- Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
}

h1, h2, h3, .wordmark {
    font-family: "Poppins", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

.section-soft {
    background-color: var(--bg-soft);
}

.eyebrow {
    color: var(--brand-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

/* On the dark hero and call-to-action bands the bright orange passes */
.hero .eyebrow,
.cta .eyebrow {
    color: var(--brand);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 44px;
}

.section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.section-heading p {
    color: var(--muted);
}

.two-col h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
}

/* ---------- Wordmark: o[zed]ra ---------- */
.wordmark {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

/* "zed" is marked with an orange underline (logo option C) */
.wordmark .zed {
    position: relative;
}

.wordmark .zed::after {
    content: "";
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 0.08em;
    height: 0.11em;
    border-radius: 2px;
    background-color: var(--brand);
}

.wordmark small {
    display: block;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1;
}

/* ---------- Header and navigation ---------- */
header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand-text);
    border-bottom-color: var(--brand);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--ink);
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-block;
    padding: 13px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}

.button-primary {
    background-color: var(--brand-dark);
    color: #FFFFFF;
}

.button-primary:hover {
    background-color: var(--brand-deeper);
}

.button-outline {
    border: 1px solid currentColor;
}

.button-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Hero ---------- */
.hero {
    background-color: var(--hero-bg);
    color: var(--hero-text);
    padding: 110px 0 100px;
}

.hero h1 {
    color: var(--hero-text);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    max-width: 940px;
    margin-bottom: 22px;
}

.hero h1 .accent {
    color: var(--brand);
}

.hero p {
    color: var(--hero-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 34px;
}

.page-hero {
    padding: 80px 0 70px;
}

/* Rotating word in the home page headline: it sits on its own line so the
   headline keeps the same height whichever word is showing */
.rotator {
    display: block;
    white-space: nowrap;
    color: var(--brand);
}

.rotator span {
    display: inline-block;
    transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.rotator span.out {
    opacity: 0;
    transform: translateY(-0.4em);
    filter: blur(6px);
}

.rotator span.in-start {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(6px);
}

/* Quick links to each business under the home page buttons */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hero-pills a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s;
}

.hero-pills a:hover {
    background-color: rgba(255, 255, 255, 0.16);
}

/* ---------- Animations ---------- */

/* Hero text rises in, one line after another */
.hero .container > * {
    opacity: 0;
    transform: translateY(18px);
    animation: rise 0.7s ease-out forwards;
}

.hero .container > *:nth-child(2) { animation-delay: 0.12s; }
.hero .container > *:nth-child(3) { animation-delay: 0.24s; }
.hero .container > *:nth-child(4) { animation-delay: 0.36s; }
.hero .container > *:nth-child(5) { animation-delay: 0.48s; }

@keyframes rise {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Sections fade up as they scroll into view (classes added by script.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Turn animations off for anyone who has asked their device to reduce motion */
@media (prefers-reduced-motion: reduce) {
    .hero .container > *,
    .reveal {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }

    .rotator span {
        transition: none;
    }
}

.page-hero h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
}

/* ---------- Business cards (the three subsidiaries) ---------- */
.business-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.business-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent, var(--brand));
    border-radius: 10px;
    background-color: var(--bg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.business-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.business-card h3 {
    font-size: 1.25rem;
    margin: 10px 0 6px;
}

.business-card .tagline {
    color: var(--accent-text, var(--accent));
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.business-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.business-card .card-link {
    margin-top: auto;
    padding-top: 20px;
    color: var(--accent-text, var(--accent));
    font-weight: 600;
}

.tech { --accent: var(--tech); --accent-text: var(--tech-text); }
.fin  { --accent: var(--fin); --accent-text: var(--fin-text); }
.agri { --accent: var(--agri); --accent-text: var(--agri-text); }

/* Status badges */
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    align-self: flex-start;
}

.status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: currentColor;
}

.status-active {
    color: #1E7A46;
    background-color: #E4F4EA;
}

.status-planned {
    color: #8A6116;
    background-color: #FBF1DC;
}

/* ---------- Generic grids and lists ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

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

.feature {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: var(--bg);
}

.feature h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature p,
.feature li {
    color: var(--muted);
    font-size: 0.95rem;
}

.feature ul {
    margin-top: 12px;
    padding-left: 18px;
}

.feature li {
    margin-bottom: 6px;
}

/* Three-column variant for service areas */
.feature-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature .status {
    margin-bottom: 12px;
}

/* Numbered service portfolio (Technologies page) */
.portfolio {
    display: grid;
    gap: 24px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 90px 1fr 1fr;
    gap: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: var(--bg);
}

.portfolio-item .num {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand);
}

.portfolio-item h3 {
    font-size: 1.25rem;
    margin: 10px 0;
}

.portfolio-item p {
    color: var(--muted);
}

.portfolio-item ul {
    list-style: none;
    align-self: center;
}

.portfolio-item li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.portfolio-item li:last-child {
    border-bottom: none;
}

.sign-off {
    margin-top: 40px;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink);
}

.sign-off .zed-accent {
    color: var(--brand-text);
}

.value-list {
    list-style: none;
}

.value-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.value-list strong {
    display: block;
    color: var(--ink);
    font-family: "Poppins", Arial, sans-serif;
    margin-bottom: 4px;
}

.value-list span {
    color: var(--muted);
}

/* Numbered steps ("How we work") */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

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

.step {
    padding: 24px;
    border-radius: 10px;
    background-color: var(--bg);
    border: 1px solid var(--line);
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand);
    margin-bottom: 8px;
}

.step h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* Statement blocks (purpose / vision / mission) */
.statement {
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}

.statement:last-child {
    border-bottom: none;
}

.statement h3 {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-text);
    margin-bottom: 8px;
}

.statement p {
    font-size: 1.15rem;
    color: var(--ink);
}

.personality {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.personality span {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background-color: var(--bg);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}

/* Notice box for "in development" pages */
.notice {
    padding: 22px 26px;
    border-left: 4px solid var(--accent, var(--brand));
    background-color: var(--bg-soft);
    border-radius: 0 8px 8px 0;
    color: var(--text);
}

/* ---------- Call to action band ---------- */
.cta {
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.cta p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 28px;
}

.cta .email-line {
    margin: 18px auto 0;
    font-size: 0.95rem;
}

.cta .email-line a {
    color: var(--brand);
    font-weight: 600;
}

/* ---------- Contact page ---------- */
.contact-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background-color: var(--bg);
}

.contact-card h3 {
    margin-bottom: 6px;
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.contact-card .big-link {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brand-text);
    word-break: break-word;
}

/* ---------- Small spacing and colour helpers (instead of inline styles) ---------- */
.text-muted {
    color: var(--muted);
}

.mt-14 {
    margin-top: 14px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal {
    max-width: 760px;
}

.legal .updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.35rem;
    margin: 40px 0 12px;
}

.legal p,
.legal li {
    margin-bottom: 12px;
}

.legal ul {
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal a {
    color: var(--brand-text);
    text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 56px 0 28px;
    font-size: 0.92rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

footer .wordmark {
    color: #FFFFFF;
}

footer .wordmark small {
    color: var(--footer-muted);
}

footer h2 {
    color: #FFFFFF;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 8px;
}

footer a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.85rem;
    color: var(--footer-muted);
}

.footer-bottom a {
    margin-left: 16px;
    color: var(--footer-text);
    text-decoration: underline;
}

/* =========================================================
   Motion and depth
   ========================================================= */

/* ---------- Live hero background ---------- */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Soft orange light drifting behind the hero */
.hero::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -2;
    background:
        radial-gradient(35% 40% at 18% 28%, rgba(232, 84, 30, 0.28), transparent 70%),
        radial-gradient(30% 35% at 82% 72%, rgba(232, 84, 30, 0.16), transparent 70%),
        radial-gradient(25% 30% at 65% 15%, rgba(255, 255, 255, 0.06), transparent 70%);
    animation: glow-drift 22s ease-in-out infinite alternate;
}

@keyframes glow-drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(4%, -3%) scale(1.08); }
    100% { transform: translate(-3%, 4%) scale(1); }
}

/* Connected-dots network drawn by script.js */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- Scroll progress bar under the header ---------- */
.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--brand), #F59E0B);
    transform-origin: left;
    transform: scaleX(0);
}

/* ---------- Buttons: shine and arrow nudge ---------- */
.button {
    position: relative;
    overflow: hidden;
}

.button-primary {
    box-shadow: 0 6px 20px rgba(232, 84, 30, 0.28);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 84, 30, 0.38);
}

.button-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.button-primary:hover::after {
    left: 140%;
}

.card-link,
.hero-pills a {
    transition: letter-spacing 0.2s, background-color 0.2s;
}

.business-card:hover .card-link {
    letter-spacing: 0.3px;
}

/* ---------- Business cards: icon, spotlight, lift ---------- */
.business-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(420px circle at var(--mx, -200px) var(--my, -200px),
            color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
        var(--bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.business-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.1);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

/* Icon tile (the shape comes from a mask, the colour from the accent) */
.business-card.tech::before,
.business-card.fin::before,
.business-card.agri::before {
    content: "";
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    border-radius: 14px;
    flex-shrink: 0;
    background-color: color-mix(in srgb, var(--accent) 12%, transparent);
}

.business-card.tech::after,
.business-card.fin::after,
.business-card.agri::after {
    content: "";
    position: absolute;
    top: 43px;
    left: 43px;
    width: 26px;
    height: 26px;
    background-color: var(--accent);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
    transition: transform 0.3s ease;
}

.business-card:hover::after {
    transform: scale(1.15) rotate(-6deg);
}

.business-card.tech {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

.business-card.fin {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='20' x2='4' y2='14'/%3E%3Cline x1='10' y1='20' x2='10' y2='8'/%3E%3Cline x1='16' y1='20' x2='16' y2='11'/%3E%3Cline x1='22' y1='20' x2='22' y2='4'/%3E%3C/svg%3E");
}

.business-card.agri {
    --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E");
}

/* ---------- Features, steps, portfolio: gentle hover lift ---------- */
.feature,
.step,
.portfolio-item,
.contact-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature:hover,
.step:hover,
.portfolio-item:hover,
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}

.feature h3 {
    position: relative;
    padding-left: 16px;
}

.feature h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 6px;
    height: 0.8em;
    border-radius: 3px;
    background: var(--accent, var(--brand));
}

/* ---------- Value cards (How we build) ---------- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.value-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 12px;
    background-color: var(--bg);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 0;
    background: var(--brand);
    transition: width 0.4s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.value-card:hover::before {
    width: 100%;
}

.value-card svg {
    width: 34px;
    height: 34px;
    color: var(--brand);
    margin-bottom: 18px;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

/* ---------- Call to action: dark band with moving light ---------- */
.cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--hero-bg);
}

.cta::before,
.cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}

.cta::before {
    left: -160px;
    top: -220px;
    background: radial-gradient(circle, rgba(232, 84, 30, 0.6), transparent 65%);
    animation: float-a 16s ease-in-out infinite alternate;
}

.cta::after {
    right: -180px;
    bottom: -260px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 65%);
    animation: float-b 19s ease-in-out infinite alternate;
}

@keyframes float-a {
    to { transform: translate(180px, 120px); }
}

@keyframes float-b {
    to { transform: translate(-200px, -100px); }
}

.cta h2 {
    color: #FFFFFF;
}

.cta p {
    color: var(--hero-muted);
}

.cta .email-line {
    color: var(--hero-muted);
}

/* ---------- Textured section backgrounds ---------- */
main section:not(.hero):not(.cta) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

/* White sections: fine navy dot grid with drifting orange and blue light */
main section:not(.hero):not(.cta):not(.section-soft) {
    background-color: #F5F8FD;
    background-image:
        radial-gradient(rgba(15, 30, 51, 0.13) 1.1px, transparent 1.6px),
        linear-gradient(180deg, #FFFFFF 0%, #F1F5FB 100%);
    background-size: 22px 22px, 100% 100%;
}

/* Glows are placed down the full height so tall sections stay colourful */
main section:not(.hero):not(.cta):not(.section-soft)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(520px circle at 92% 140px, rgba(232, 84, 30, 0.20), transparent 70%),
        radial-gradient(560px circle at 4% 520px, rgba(47, 111, 235, 0.16), transparent 70%),
        radial-gradient(500px circle at 88% 1050px, rgba(124, 92, 224, 0.12), transparent 70%),
        radial-gradient(540px circle at 10% 1600px, rgba(232, 84, 30, 0.14), transparent 70%),
        radial-gradient(520px circle at 90% 2150px, rgba(47, 111, 235, 0.12), transparent 70%);
    animation: section-drift 26s ease-in-out infinite alternate;
}

/* Grey sections: cool-to-warm gradient, faint grid and a floating orange glow */
main section.section-soft {
    background: linear-gradient(155deg, #DCE6F5 0%, #EEF3FA 45%, #FBE7DC 100%);
}

main section.section-soft::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 30, 51, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 30, 51, 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}

main section.section-soft::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 460px;
    right: -120px;
    bottom: -180px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(232, 84, 30, 0.28), transparent 65%);
    filter: blur(10px);
    animation: float-a 20s ease-in-out infinite alternate-reverse;
}

@keyframes section-drift {
    to { transform: translate(-40px, 30px); }
}

/* Respect reduced-motion settings for all of the above */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .cta::before,
    .cta::after,
    main section::before,
    main section::after {
        animation: none;
    }

    .button-primary::after {
        display: none;
    }
}

/* ---------- Mobile layout ---------- */
@media (max-width: 900px) {
    .business-grid,
    .steps,
    .steps.steps-five,
    .feature-grid.three,
    .value-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item {
        grid-template-columns: 60px 1fr;
    }

    .portfolio-item ul {
        grid-column: 2;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 5%;
        background-color: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-links a:hover,
    .nav-links a[aria-current="page"] {
        border-bottom-color: var(--line);
    }

    .hero {
        padding: 64px 0 70px;
    }

    .hero .eyebrow {
        letter-spacing: 1px;
        font-size: 0.75rem;
    }

    .business-grid,
    .feature-grid,
    .feature-grid.three,
    .two-col,
    .steps,
    .steps.steps-five,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item ul {
        grid-column: auto;
    }

    .two-col {
        gap: 32px;
    }
}
