:root {
    --yellow: #f5c518;
    --pale: #fdf3cc;
    --dark: #1d1d1d;
    --text: #2a2a2a;
    --muted: #666;
    --bg: #fff;
    --heading: #1d1d1d;
    --accent-text: #b38f00;
    --contrast: #1d1d1d;
    --band: #1d1d1d;
}

/* dark theme: follows the system unless data-theme on <html> forces light or dark; yellow blocks keep dark text */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --pale: #2a2410;
        --text: #d6d6d6;
        --muted: #a3a3a3;
        --bg: #161616;
        --heading: #f2f2f2;
        --accent-text: var(--yellow);
        --contrast: #3a3a3a;
        --band: #0c0c0c;
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --pale: #2a2410;
    --text: #d6d6d6;
    --muted: #a3a3a3;
    --bg: #161616;
    --heading: #f2f2f2;
    --accent-text: var(--yellow);
    --contrast: #3a3a3a;
    --band: #0c0c0c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    overflow-x: hidden;
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
}

h1, h2, h3 {
    color: var(--heading);
    line-height: 1.15;
}

h1 em,
h2 em {
    color: var(--yellow);
    font-style: normal;
}

.wrap {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent-text);
    font-size: 14px;
    font-weight: 600;
}

.button {
    display: inline-block;
    padding: 12px 24px;
    background: var(--yellow);
    color: var(--dark);
    border: 0;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button-dark {
    background: var(--contrast);
    color: #fff;
}

.strip {
    background: var(--yellow);
    color: var(--dark);
    font-size: 14px;
}

.strip-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.strip a {
    text-decoration: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 70px;
}

.logo {
    color: var(--heading);
    white-space: nowrap;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
}

.logo b {
    color: var(--yellow);
}

.menu {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.menu a {
    font-weight: 500;
    text-decoration: none;
}

.menu a:hover {
    color: var(--accent-text);
}

.theme-toggle {
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    background: none;
    border: 2px solid var(--yellow);
    border-radius: 50%;
    color: var(--heading);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* pale lightning bolts behind the content, like on the Electrician pattern */
.bolt {
    position: absolute;
    z-index: -1;
    background: var(--pale);
    clip-path: polygon(55% 0, 12% 56%, 44% 56%, 28% 100%, 88% 38%, 56% 38%, 76% 0);
}

.hero {
    position: relative;
    z-index: 0;
    padding: 56px 0 72px;
}

.bolt-hero {
    left: -60px;
    top: 20px;
    width: 300px;
    height: 460px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(40px, 5.4vw, 64px);
    font-weight: 800;
}

.lead {
    max-width: 480px;
    margin: 0 0 28px;
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.hero-figure {
    position: relative;
    margin: 0;
}

.hero-photo {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
    box-shadow: 18px 18px 0 var(--yellow);
}

/* AI Act art. 50(4): generated photo of a real person must be labelled, visible but quiet */
.ai-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.6;
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0;
    padding: 28px 32px;
    list-style: none;
    background: var(--yellow);
    color: var(--dark);
}

.facts li {
    padding-left: 16px;
    border-left: 2px solid var(--dark);
}

.facts b {
    display: block;
    color: var(--dark);
    font-size: 24px;
}

.section {
    padding-top: 80px;
    padding-bottom: 24px;
}

.section h2 {
    margin: 0 0 40px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 800;
}

.bolt-side {
    right: -140px;
    top: 260px;
    width: 220px;
    height: 340px;
}

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: svc;
}

.services li {
    position: relative;
    counter-increment: svc;
}

/* number next to the image, like 01-04 on the pattern */
.services li::before {
    content: counter(svc, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 148px;
    color: var(--yellow);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.services img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 8px 8px 0 var(--yellow);
}

.services h3 {
    margin: 22px 0 6px;
    font-size: 18px;
}

.services p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* photo | yellow with dark box | photo, like the INDUSTRIES band */
.split {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 380px;
    margin-top: 80px;
}

.split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.split-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--yellow);
}

.split-box {
    padding: 36px 28px;
    background: rgba(29, 29, 29, 0.92);
    color: #fff;
    text-align: center;
}

.split-box h2 {
    margin: 0 0 8px;
    color: var(--yellow);
    font-size: 28px;
}

.split-box p {
    margin: 0 0 20px;
}

.about {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
    gap: 40px;
}

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

.badge {
    margin: 0 0 1em;
    padding: 28px 32px;
    background: var(--yellow);
    box-shadow: -18px 18px 0 var(--contrast);
    color: var(--dark) !important;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.contact-band {
    margin-top: 80px;
    padding: 64px 0;
    background: var(--band);
}

.contact {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 0;
}

.contact-list {
    margin: 0;
    padding: 32px;
    background: var(--yellow);
    color: var(--dark);
    border-left: 6px solid #111;
}

.contact-list dt {
    font-size: 14px;
}

.contact-list dd {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: 21px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-list dd:last-child {
    margin-bottom: 0;
}

.map {
    min-height: 360px;
    overflow: hidden;
    background: #2a2a2a;
    color: #ddd;
}

.map p {
    margin: 0;
    padding: 110px 16px 0;
    text-align: center;
}

.map .button {
    margin: 12px 0;
    padding: 8px 18px;
}

.footer {
    padding: 20px 0;
    background: var(--yellow);
    color: var(--dark);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.link-button {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.cookie {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 12px 16px;
    background: var(--bg);
    border-top: 4px solid var(--yellow);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 15px;
}

.cookie p {
    max-width: 960px;
    margin: 0 auto;
}

.cookie .button {
    margin: 10px 4px 0;
    padding: 6px 18px;
}

@media (max-width: 900px) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 760px) {
    .menu {
        display: none;
    }

    .topbar-inner {
        gap: 12px;
    }

    .topbar .button {
        margin-left: auto;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-inner,
    .about,
    .contact {
        grid-template-columns: 1fr;
    }

    .hero-photo {
        max-height: 360px;
        width: calc(100% - 18px);
    }

    .split {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .split img {
        display: none;
    }

    .contact-list {
        border-left: 0;
    }

    .map {
        min-height: 300px;
    }

    .map p {
        padding-top: 70px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 19px;
    }

    .topbar .button {
        padding: 10px 14px;
    }

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

    .facts {
        padding: 20px;
    }

    .facts b {
        font-size: 19px;
    }
}
