/* ============================================================
   THEME TOKENS
   ------------------------------------------------------------
   Two palettes, one glass system.

     "Natural Voltage"  - day   ->  :root
     "Quantum Circuit"  - dark  ->  body.dark

   Every colour on the site resolves through these tokens, so a
   theme is defined here and nowhere else. The *-rgb tokens hold
   bare channel triplets so any rule can mix its own alpha with
   rgb(var(--x-rgb) / .12) instead of hard-coding a colour.
   ============================================================ */

/* ------------------------------------------------------------
   NATURAL VOLTAGE  -  day
   Daylight paper, living green, voltage amber.
   ------------------------------------------------------------ */

:root {
    color-scheme: light;

    /* channel triplets */
    --accent-rgb: 31 168 92;        /* living green  #1fa85c */
    --accent-2-rgb: 224 164 0;      /* voltage amber #e0a400 */
    --glass-rgb: 255 255 255;       /* glass fill tint          */
    --glass-line-rgb: 20 45 30;     /* glass edge tint          */
    --ink-rgb: 18 42 28;            /* shadow / scrim ink       */
    --bg-rgb: 244 247 240;          /* page ground              */
    --danger-rgb: 196 68 58;

    /* ground */
    --bg: #f4f7f0;
    --surface: rgb(255 255 255 / .70);
    --surface-2: rgb(var(--accent-rgb) / .10);
    --surface-solid: #ffffff;

    /* ink */
    --text: #14231a;
    --muted: #5a6b5f;
    --on-accent: #062012;          /* ink for filled accent buttons: white on
                                      the green/amber gradient is only 3.1:1 */
    --line: rgb(20 45 30 / .12);

    /* charge */
    --accent: #1fa85c;
    --accent-2: #e0a400;
    --accent-dark: #14713e;         /* accent that stays legible as text */

    /* glass */
    --glass-bg: rgb(var(--glass-rgb) / .55);
    --glass-bg-hover: rgb(var(--glass-rgb) / .75);
    --glass-bg-strong: rgb(var(--glass-rgb) / .80);
    --glass-border: rgb(var(--glass-line-rgb) / .10);
    --glass-border-hover: rgb(var(--accent-rgb) / .38);
    --glass-highlight: rgb(var(--glass-rgb) / .85);
    --glass-blur: blur(18px);

    /* chrome */
    --header-bg: rgb(var(--bg-rgb) / .72);
    --dropdown-bg: rgb(255 255 255 / .96);
    --dropdown-bg-nested: rgb(238 244 234 / .92);

    /* slider */
    --slide-veil: rgb(255 255 255 / .92);
    --slide-veil-0: rgb(255 255 255 / 0);
    --slide-image-bg: rgb(20 45 30 / .05);
    --dot-idle: rgb(20 45 30 / .20);

    /* state */
    --success: #0b8a57;
    --danger: #c4443a;

    --shadow: 0 18px 60px rgb(18 42 28 / .12);
    --radius: 18px;

    /* Vertical space the floating header occupies (its top margin plus
       its own height). Full-screen sections subtract it so the page is
       exactly one screen tall and nothing scrolls. main.js replaces this
       with the measured value. */
    --header-block: 80px;

    /* Horizontal breathing room between text and the screen edge.
       Every page wrapper resolves its side gap through this, so the
       gutter is one number here instead of a per-page guess. Wrappers
       that cap their width (min(1240px, ...)) only feel it once the
       viewport is narrower than the cap, which is where it was tight. */
    --page-gutter: clamp(28px, 5vw, 72px);
}


/* ------------------------------------------------------------
   QUANTUM CIRCUIT  -  dark
   Deep substrate, trace cyan, qubit violet.
   ------------------------------------------------------------ */

body.dark {
    color-scheme: dark;

    --accent-rgb: 53 232 255;       /* trace cyan   #35e8ff */
    --accent-2-rgb: 168 123 255;    /* qubit violet #a87bff */
    --glass-rgb: 168 205 245;
    --glass-line-rgb: 214 232 255;
    --ink-rgb: 0 0 0;
    --bg-rgb: 6 11 20;
    --danger-rgb: 255 107 122;

    --bg: #060b14;
    --surface: rgb(18 28 48 / .62);
    --surface-2: rgb(var(--accent-rgb) / .12);
    --surface-solid: #0c1424;

    --text: #e6f1ff;
    --muted: #93a6c4;
    --on-accent: #04121a;
    --line: rgb(214 232 255 / .14);

    --accent: #35e8ff;
    --accent-2: #a87bff;
    --accent-dark: #7ff2ff;

    --glass-bg: rgb(var(--glass-rgb) / .05);
    --glass-bg-hover: rgb(var(--glass-rgb) / .09);
    --glass-bg-strong: rgb(var(--bg-rgb) / .62);
    --glass-border: rgb(var(--glass-line-rgb) / .14);
    --glass-border-hover: rgb(var(--accent-rgb) / .34);
    --glass-highlight: rgb(255 255 255 / .10);
    --glass-blur: blur(18px);

    --header-bg: rgb(var(--bg-rgb) / .72);
    --dropdown-bg: rgb(10 18 32 / .97);
    --dropdown-bg-nested: rgb(4 9 18 / .80);

    --slide-veil: rgb(var(--bg-rgb) / .92);
    --slide-veil-0: rgb(var(--bg-rgb) / 0);
    --slide-image-bg: rgb(0 0 0 / .28);
    --dot-idle: rgb(214 232 255 / .22);

    --success: #3ddc97;
    --danger: #ff6b7a;

    --shadow: 0 18px 60px rgb(0 0 0 / .50);
}

* {
     box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;

    /* No overflow-x guard here on purpose. Measured at 360-1280px, with
       and without JS, nothing on the site overflows sideways - the
       dropdown panels are kept in-viewport by alignPanels() in main.js.
       A clip/hidden here would only add a clip boundary at the exact
       viewport edge, which can rasterise as a hairline seam. */
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    
    background:
        radial-gradient(circle at 10% 15%, rgb(var(--accent-rgb) / 0.10), transparent 30%),
        radial-gradient(circle at 90% 70%, rgb(var(--accent-2-rgb) / 0.10), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    transition: background .35s ease, color .35s ease;

}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

#d3-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

#d3-ambient canvas {
    display: block;
    /* Soft focus: keeps the network as an atmosphere behind the
       content rather than something that competes with it. */
    filter: blur(1.6px);
    opacity: .75;
}

.site-header,
main {
    position: relative;
    z-index: 2;
}

/* Fill the screen below the header. Without this a short page (About,
   Contact) ends partway down and the strip beneath it falls back to the
   canvas, where body's radial gradients tile again and show a seam. */
main {
    min-height: calc(100vh - var(--header-block));
    min-height: calc(100dvh - var(--header-block));
}

.site-header {
    position: relative;
    z-index: 1000;
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 18px auto 0;
    padding: 10px 12px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--header-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 35px rgb(var(--ink-rgb) / .06);
    backdrop-filter: blur(18px);
    overflow: visible;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-orb {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 22px rgb(var(--accent-rgb) / .7);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-link,
.nav-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    padding: 10px 11px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-trigger:hover,
.nav-link.active,
.nav-trigger.active {
    color: var(--text);
    background: rgb(var(--accent-rgb) / .08);
}

.nav-dropdown {
    position: relative;
}

/* Invisible hover bridge between the trigger and dropdown panel. */
.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    background: transparent;
}

.chevron {
    margin-left: 3px;
    opacity: .65;
}

.dropdown-panel {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 9px);
    left: 0;
    min-width: 235px;
    padding: 7px;
    background: var(--dropdown-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: var(--glass-blur);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav-dropdown:hover > .dropdown-panel,
.nav-dropdown:focus-within > .dropdown-panel,
.nav-dropdown.open > .dropdown-panel,
.nav-dropdown.dropdown-active > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item-wrap:hover > .nested-panel,
.dropdown-item-wrap:focus-within > .nested-panel,
.dropdown-item-wrap.open > .nested-panel,
.dropdown-item-wrap.dropdown-active > .nested-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    min-height: 42px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    transition: background .18s ease, color .18s ease, padding-left .18s ease;
}

.dropdown-link:hover {
    color: var(--text);
    background: rgb(var(--accent-rgb) / .09);
    padding-left: 15px;
}

.dropdown-item-wrap {
    position: relative;
}

/* Invisible horizontal hover bridge for nested menus. */
.dropdown-item-wrap.has-children::after {
    content: "";
    position: absolute;
    top: 0;
    right: -9px;
    width: 12px;
    height: 100%;
    background: transparent;
}

.nested-panel {
    top: -7px;
    left: calc(100% + 8px);
    min-width: 165px;
    z-index: 1200;
}

/* Closed panels keep their box in the layout (they hide with
   `visibility`, not `display`), so a panel that overhangs the right edge
   widens the document even when nobody has opened it. main.js measures
   each panel and adds .flip-left to the ones that need to open inward. */
.dropdown-panel.flip-left {
    left: auto;
    right: 0;
}

.nested-panel.flip-left {
    left: auto;
    right: calc(100% + 8px);
}

.dropdown-item-wrap.has-children.flip-left::after {
    right: auto;
    left: -9px;
}

.side-arrow {
    font-size: 18px;
    line-height: 1;
    opacity: .65;
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: transform .25s ease, border-color .25s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.05);
    border-color: rgb(var(--accent-rgb) / .5);
}

.mobile-menu {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 10px;
}

.mobile-menu span {
    display: block;
    height: 1px;
    margin: 5px 0;
    background: var(--text);
}

/* Home */
.hero {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 50px;
}

.hero-copy {
    padding: 80px 0 55px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero h1,
.page-content h1 {
    margin: 20px 0 22px;
    font-size: clamp(51px, 6vw, 101px);
    line-height: .91;
    letter-spacing: -.075em;
}

.hero h1 em,
.page-content h1 em {
    color: var(--accent-dark);
    font-style: normal;
}

.hero-copy p {
    max-width: 560px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 11px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: var(--on-accent);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgb(var(--accent-rgb) / .30);
}

.text-link {
    color: var(--muted);
    font-size: 13px;
    transition: color .2s ease;
}

.text-link:hover {
    color: var(--text);
}

.hero-visual {
    min-height: 430px;
    position: relative;
    display: grid;
    place-items: center;
}

.core {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    position: relative;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, var(--glass-highlight), transparent 9%),
        radial-gradient(circle, rgb(var(--accent-rgb) / .22), rgb(var(--accent-2-rgb) / .06) 48%, transparent 70%);
    border: 1px solid rgb(var(--accent-rgb) / .4);
    box-shadow:
        0 0 70px rgb(var(--accent-rgb) / .2),
        inset 0 0 50px rgb(var(--accent-2-rgb) / .12);
    animation: float 5s ease-in-out infinite;
}

.core::before,
.core::after {
    content: "";
    position: absolute;
    inset: 18%;
    border: 1px solid rgb(var(--accent-rgb) / .24);
    border-radius: 50%;
}

.core::after {
    inset: 33%;
    border-color: rgb(var(--accent-2-rgb) / .35);
}

.core span {
    width: 7px;
    height: 7px;
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

.core span:nth-child(1) { transform: translate(88px, -22px); }
.core span:nth-child(2) { transform: translate(-74px, 47px); background: var(--accent-2); }
.core span:nth-child(3) { transform: translate(15px, 88px); }

.orbit {
    position: absolute;
    width: 410px;
    height: 230px;
    border: 1px solid rgb(var(--accent-rgb) / .18);
    border-radius: 50%;
    transform: rotate(-28deg);
}

.orbit-one {
    animation: orbit 10s linear infinite;
}

.orbit-two {
    width: 290px;
    height: 440px;
    transform: rotate(38deg);
    border-color: rgb(var(--accent-2-rgb) / .15);
    animation: orbit-reverse 14s linear infinite;
}

/* Common page.

   This rule used to be wrapped in a second copy of its own selector
   (.page-shell { .page-shell { ... } }), so it only matched a shell
   nested inside a shell - i.e. nothing at all - and every .page-shell
   page rendered its text hard against the viewport edge.

   Only the box is restored here. The block also carried min-height,
   a photo background and flex centring, written for a shell with one
   child; these templates stack .page-content above .solution-grid, so
   turning those on lays the grid out beside the heading instead. */
.page-shell {
    width: 100%;

    margin: 0;
    padding: 0 var(--page-gutter);

    box-sizing: border-box;
}

.page-content {
    max-width: 760px;
}

.page-lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.solution-grid {
    margin-top: 55px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.solution-card {
    min-height: 190px;
    position: relative;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 40px rgb(var(--ink-rgb) / .05);
    backdrop-filter: blur(14px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgb(var(--accent-rgb) / .4);
    box-shadow: var(--shadow);
}

.card-index {
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.solution-card h2 {
    max-width: 230px;
    margin: 35px 0 0;
    font-size: 21px;
    letter-spacing: -.04em;
}

.card-arrow {
    position: absolute;
    right: 22px;
    bottom: 20px;
    font-size: 22px;
    color: var(--muted);
}

/* Blank pages sit directly on the live energy network (#d3-ambient). */
.blank-page {
    min-height: calc(100vh - var(--header-block));
    min-height: calc(100dvh - var(--header-block));

    width: 100%;
    max-width: 100%;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 var(--page-gutter);
}

.blank-card {
    width: min(1300px, 85%);
    min-height: 70vh;
    min-height: 70dvh;
    padding: 55px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 25px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.blank-card h1 {
    margin: 18px 0;
    overflow-wrap: break-word;
    font-size: clamp(30px, 6vw, 70px);
    letter-spacing: -.065em;
}

.blank-card p {
    margin: 0 auto 25px;
    color: var(--muted);
    line-height: 1.7;
}

.blank-card .eyebrow {
    font-size: 11px;
    gap: 10px;
}

.blank-card .eyebrow > span {
    width: 26px;
}

/* Solution pages split the card into an image side and a text side. */
.solution-blank .blank-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
    text-align: left;
}

.solution-blank .blank-card .eyebrow {
    justify-content: flex-start;
}

.solution-blank .blank-card p {
    margin: 0 0 25px;
}

.blank-card-media {
    height: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    overflow: hidden;
    background: rgb(var(--ink-rgb) / .03);
    border: 1px solid var(--line);
}

.blank-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: contain;
}

/* Contact */
.contact-page {
    width: min(760px, calc(100% - var(--page-gutter) * 2));
    min-height: calc(100vh - 105px);
    margin: 0 auto;
    display: grid;
    place-items: center;
}

.contact-form {
    width: 100%;
    padding: 40px;
    display: grid;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    background: var(--glass-bg-strong);
    border-radius: 10px;
    padding: 13px 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

/* Form heading sits inside the grid, so it stretches the full column
   width and would otherwise read flush left against the fields. */
.contact-form .form-title {
    margin: 0;
    text-align: center;
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
    background: rgb(var(--ink-rgb) / .35);
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgb(var(--accent-rgb) / .7);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .08);
}

.contact-form ::placeholder {
    color: var(--muted);
}

.form-hero-image {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px 16px 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.form-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(var(--accent-rgb) / .12), rgb(var(--accent-2-rgb) / .10));
    pointer-events: none;
}

.send-button {
    justify-self: start;
    margin-top: 5px;
}

.form-status {
    padding-top: 7px;
    font-size: 12px;
}

.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

.feature-strip {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 0 auto 60px;
    padding: 22px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-strip > div {
    padding: 12px 30px;
    border-right: 1px solid var(--line);
}

.feature-strip > div:last-child {
    border-right: 0;
}

.feature-number {
    display: block;
    margin-bottom: 18px;
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 700;
}

.feature-strip strong {
    font-size: 14px;
}

.feature-strip p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes orbit {
    from { transform: rotate(-28deg); }
    to { transform: rotate(332deg); }
}

@keyframes orbit-reverse {
    from { transform: rotate(38deg); }
    to { transform: rotate(-322deg); }
}

@media (max-width: 1050px) {
    .main-nav { gap: 0; }
    .nav-link, .nav-trigger { padding-inline: 7px; }
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .site-header {
        width: calc(100% - 24px);
        margin-top: 12px;
    }

    .mobile-menu {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        background: var(--dropdown-bg);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);
    }

    .main-nav.mobile-open {
        display: flex;
    }

    .nav-link,
    .nav-trigger {
        width: 100%;
        text-align: left;
        padding: 12px;
    }

    .nav-dropdown::after,
    .dropdown-item-wrap.has-children::after {
        display: none;
    }

    .nav-dropdown > .dropdown-panel,
    .nested-panel {
        position: static;
        width: 100%;
        max-width: none;
        margin: 3px 0;
        box-shadow: none;
        border-radius: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.open > .dropdown-panel {
        display: block;
    }

    .dropdown-item-wrap {
        width: 100%;
    }

    .dropdown-item-wrap > .nested-panel {
        display: none;
    }

    .dropdown-item-wrap.open > .nested-panel,
    .dropdown-item-wrap.dropdown-active > .nested-panel {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nested-panel {
        padding-left: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 0;
        min-height: auto;
    }

    .hero-copy {
        padding: 80px 0 20px;
    }

    .hero-visual {
        min-height: 330px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .feature-strip > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 20px 0;
    }

    .feature-strip > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding-left: 14px;
    }

    /* .hero, .page-shell, .feature-strip and .blank-page all resolve
       their side gap through --page-gutter, which already tightens to
       28px here. A narrower override would undo that. */

    .hero h1,
    .page-content h1 {
        font-size: 50px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .blank-card {
        width: 100%;
        min-height: auto;
        padding: 35px 22px;
    }

    .solution-blank .blank-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .solution-blank .blank-card .eyebrow {
        justify-content: center;
    }

    .blank-card-media {
        min-height: 220px;
    }

    .blank-card-media img {
        min-height: 220px;
    }


    .contact-form {
        padding: 22px;
    }

    .form-hero-image {
        height: 220px;
        margin-bottom: 15px;
    }

    .orbit {
        width: 290px;
        height: 170px;
    }

    .orbit-two {
        width: 210px;
        height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   BRANDS PAGE
   ============================================================ */

.brands-page {
    min-height: calc(100vh - 90px);
    padding: 100px max(var(--page-gutter), 6vw) 120px;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgb(var(--accent-rgb) / 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgb(var(--accent-2-rgb) / 0.08),
            transparent 30%
        );
}


/* ============================================================
   HERO
   ============================================================ */

.brands-hero {
    width: min(850px, 100%);
    margin: 0 auto 80px;
    text-align: center;
}

.brands-hero h1 {
    margin: 20px 0 18px;

    font-size: clamp(2.1rem, 5vw, 4.1rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.brands-hero p {
    max-width: 700px;
    margin: 0 auto;

    font-size: 1rem;
    line-height: 1.8;

    opacity: 0.65;
}


/* ============================================================
   CONTAINER
   ============================================================ */

.brands-container {
    width: min(1250px, 100%);
    margin: 0 auto;

    display: flex;
    flex-direction: column;

    gap: 35px;
}


/* ============================================================
   CATEGORY CARD
   ============================================================ */

.brand-category-card {
    position: relative;

    padding: 38px;

    border-radius: 24px;

    border: 1px solid var(--glass-border);

    background:
        linear-gradient(
            145deg,
            var(--glass-bg),
            var(--glass-bg-hover)
        );

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    box-shadow:
        0 15px 50px rgb(var(--ink-rgb) / 0.08);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

.brand-category-card:hover {
    transform: translateY(-4px);

    border-color: rgb(var(--accent-rgb) / 0.28);

    box-shadow:
        0 25px 70px rgb(var(--ink-rgb) / 0.12),
        0 0 40px rgb(var(--accent-rgb) / 0.04);
}


/* ============================================================
   CATEGORY HEADER
   ============================================================ */

.category-header {
    display: flex;
    align-items: center;

    gap: 22px;

    margin-bottom: 32px;

    padding-bottom: 25px;

    border-bottom: 1px solid var(--glass-border);
}

.category-index {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    border: 1px solid rgb(var(--accent-rgb) / 0.25);

    background: rgb(var(--accent-rgb) / 0.06);

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.08em;

    opacity: 0.75;
}

.category-heading {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.category-label {
    font-size: 0.7rem;
    font-weight: 600;

    letter-spacing: 0.14em;

    opacity: 0.45;
}

.category-heading h2 {
    margin: 0;

    font-size: 1.45rem;
    font-weight: 600;

    letter-spacing: -0.025em;
}


/* ============================================================
   BRAND GRID
   ============================================================ */

.brand-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* ============================================================
   INDIVIDUAL BRAND CARD
   ============================================================ */

.brand-card {
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 16px 18px;

    text-align: center;

    border-radius: 14px;

    border: 1px solid var(--glass-border);

    background: var(--glass-bg);

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    transition:
        transform 0.3s cubic-bezier(.2,.8,.2,1),
        border-color 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-card span {
    font-size: 0.92rem;
    font-weight: 500;

    opacity: 0.72;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* ============================================================
   BRAND HOVER
   ============================================================ */

.brand-card:hover {
    transform: translateY(-5px);

    border-color:
        rgb(var(--accent-rgb) / 0.4);

    background:
        linear-gradient(
            145deg,
            rgb(var(--accent-rgb) / 0.10),
            var(--glass-bg-hover)
        );

    box-shadow:
        0 12px 30px rgb(var(--ink-rgb) / 0.12),
        0 0 25px rgb(var(--accent-rgb) / 0.05);

    cursor: pointer;
}

.brand-card:hover span {
    opacity: 1;

    transform: translateY(-1px);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {

    .brand-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 720px) {

    .brands-page {
        padding: 75px var(--page-gutter) 90px;
    }

    .brands-hero {
        margin-bottom: 55px;
    }

    .brand-category-card {
        padding: 25px;
    }

    .brand-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

}


@media (max-width: 480px) {

    .brands-page {
        padding: 60px var(--page-gutter) 75px;
    }

    .brand-category-card {
        padding: 20px;
        border-radius: 18px;
    }

    .category-header {
        gap: 15px;
        margin-bottom: 22px;
    }

    .category-index {
        width: 42px;
        height: 42px;
    }

    .category-heading h2 {
        font-size: 1.15rem;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-card {
        min-height: 62px;
    }

}

/* ============================================================
   CAREER PAGE
   ============================================================ */

.career-page {
    min-height: calc(100vh - 90px);

    padding: 90px 24px 110px;

    display: flex;
    justify-content: center;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgb(var(--accent-rgb) / 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgb(var(--accent-2-rgb) / 0.08),
            transparent 35%
        );
}


/* ============================================================
   CONTAINER
   ============================================================ */

.career-container {
    width: min(700px, 100%);
}


/* ============================================================
   HEADER
   ============================================================ */

.career-header {
    text-align: center;

    margin-bottom: 45px;
}

.career-header h1 {
    margin: 18px 0 14px;

    font-size: clamp(2.1rem, 5vw, 4.1rem);

    line-height: 1.05;

    letter-spacing: -0.045em;
}

.career-header p {
    margin: 0;

    opacity: 0.62;

    font-size: 1rem;
}


/* ============================================================
   FORM
   ============================================================ */

.career-form {

    padding: 35px;

    border-radius: 24px;

    border: 1px solid var(--glass-border);

    background:
        linear-gradient(
            145deg,
            var(--glass-bg),
            var(--glass-bg-hover)
        );

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    box-shadow:
        0 20px 70px rgb(var(--ink-rgb) / 0.10);
}


/* ============================================================
   FORM GROUP
   ============================================================ */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;

    margin-bottom: 9px;

    font-size: 0.82rem;

    font-weight: 500;

    letter-spacing: 0.02em;

    opacity: 0.75;
}


/* ============================================================
   INPUTS
   ============================================================ */

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 15px 17px;

    border-radius: 12px;

    border: 1px solid var(--glass-border);

    outline: none;

    background: var(--glass-bg);

    color: inherit;

    font-family: inherit;

    font-size: 0.92rem;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


.form-group textarea {

    resize: vertical;

    min-height: 180px;

    line-height: 1.65;
}


.form-group input::placeholder,
.form-group textarea::placeholder {

    opacity: 0.38;

    color: inherit;
}


.form-group input:focus,
.form-group textarea:focus {

    border-color:
        rgb(var(--accent-rgb) / 0.55);

    background:
        rgb(var(--accent-rgb) / 0.035);

    box-shadow:
        0 0 0 3px rgb(var(--accent-rgb) / 0.06);
}


/* ============================================================
   FILE INPUT
   ============================================================ */

.file-input-wrapper {
    position: relative;
}


.file-input-wrapper input[type="file"] {

    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}


.file-label {

    width: 100%;

    box-sizing: border-box;

    min-height: 90px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 6px;

    border-radius: 14px;

    border: 1px dashed rgb(var(--glass-line-rgb) / 0.25);

    background: var(--glass-bg);

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}


.file-label span {

    font-size: 0.9rem;

    font-weight: 500;
}


.file-label small {

    font-size: 0.72rem;

    opacity: 0.45;
}


.file-label:hover {

    border-color:
        rgb(var(--accent-rgb) / 0.55);

    background:
        rgb(var(--accent-rgb) / 0.045);

    transform: translateY(-2px);
}


.file-input-wrapper input[type="file"]:focus
+ .file-label {

    border-color:
        rgb(var(--accent-rgb) / 0.6);

    box-shadow:
        0 0 0 3px rgb(var(--accent-rgb) / 0.06);
}


/* ============================================================
   FILE NAME
   ============================================================ */

.file-name {

    margin-top: 8px;

    font-size: 0.75rem;

    opacity: 0.45;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.career-submit {

    width: 100%;

    min-height: 52px;

    margin-top: 8px;

    border: 0;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgb(var(--accent-rgb) / 0.95),
            rgb(var(--accent-2-rgb) / 0.95)
        );

    color: var(--on-accent);

    font-family: inherit;

    font-size: 0.9rem;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}


.career-submit:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 30px rgb(var(--accent-rgb) / 0.18);
}


.career-submit:active {

    transform: translateY(0);
}


.career-submit:disabled {

    cursor: not-allowed;

    opacity: 0.6;

    transform: none;

    box-shadow: none;
}


/* ============================================================
   LOADING STATE
   ============================================================ */

.submit-loading {
    display: none;
}


.career-submit.sending .submit-text {
    display: none;
}


.career-submit.sending .submit-loading {
    display: inline;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .career-page {
        padding: 65px 16px 80px;
    }

    .career-form {
        padding: 22px;

        border-radius: 18px;
    }

    .career-header {
        margin-bottom: 35px;
    }

}

/* ========================================
   PDF UPLOAD
   ======================================== */

.pdf-upload {
    width: 100%;
}


/* ----------------------------------------
   Drop zone
   ---------------------------------------- */

.pdf-drop-zone {

    position: relative;

    min-height: 125px;

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 22px 24px;

    border: 1px dashed
        rgb(var(--accent-rgb) / 0.45);

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgb(var(--accent-rgb) / 0.07),
            rgb(var(--accent-2-rgb) / 0.06)
        );

    cursor: pointer;

    overflow: hidden;

    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);

    transition:
        border-color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* Animated glow */

.pdf-drop-zone::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    top: -110px;
    right: -70px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgb(var(--accent-rgb) / 0.18),
            transparent 70%
        );

    transition:
        transform 0.5s ease;
}


.pdf-drop-zone:hover {

    border-color:
        rgb(var(--accent-rgb) / 0.9);

    background:
        linear-gradient(
            135deg,
            rgb(var(--accent-rgb) / 0.12),
            rgb(var(--accent-2-rgb) / 0.10)
        );

    transform: translateY(-2px);

    box-shadow:
        0 12px 35px
        rgb(var(--ink-rgb) / 0.12);
}


.pdf-drop-zone:hover::before {

    transform: scale(1.5);
}


/* ----------------------------------------
   PDF icon
   ---------------------------------------- */

.pdf-icon {

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color: var(--accent-dark);

    background:
        rgb(var(--accent-rgb) / 0.10);

    border:
        1px solid
        rgb(var(--accent-rgb) / 0.18);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}


.pdf-icon svg {

    width: 30px;
    height: 30px;
}


.pdf-drop-zone:hover .pdf-icon {

    transform:
        translateY(-3px)
        scale(1.05);

    background:
        rgb(var(--accent-rgb) / 0.16);
}


/* ----------------------------------------
   Text
   ---------------------------------------- */

.pdf-upload-text {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


.pdf-upload-text strong {

    color: var(--text);

    font-size: 15px;

    font-weight: 600;
}


.pdf-upload-text span {

    color: var(--muted);

    font-size: 13px;
}


/* ----------------------------------------
   PDF badge
   ---------------------------------------- */

.pdf-badge {

    margin-left: auto;

    padding: 6px 9px;

    border-radius: 7px;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: var(--accent-dark);

    background:
        rgb(var(--accent-rgb) / 0.09);

    border:
        1px solid
        rgb(var(--accent-rgb) / 0.18);
}


/* ----------------------------------------
   Selected file
   ---------------------------------------- */

.pdf-selected {

    display: none;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 10px;

    padding: 10px 13px;

    border-radius: 10px;

    background:
        rgb(var(--accent-rgb) / 0.07);

    border:
        1px solid
        rgb(var(--accent-rgb) / 0.16);
}


.pdf-selected.active {

    display: flex;
}


[data-file-name] {

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: var(--text);

    font-size: 13px;
}


[data-file-remove] {

    width: 27px;
    height: 27px;

    flex-shrink: 0;

    border: none;

    border-radius: 50%;

    background:
        var(--glass-bg);

    color: var(--text);

    cursor: pointer;

    font-size: 18px;

    line-height: 1;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


[data-file-remove]:hover {

    background:
        rgb(var(--danger-rgb) / 0.18);

    transform: rotate(90deg);
}


/* ----------------------------------------
   Dragging
   ---------------------------------------- */

.pdf-drop-zone.dragging {

    border-color:
        var(--accent);

    background:
        rgb(var(--accent-rgb) / 0.14);

    transform: scale(1.01);

    box-shadow:
        0 0 35px
        rgb(var(--accent-rgb) / 0.12);
}

/* =========================================================
   CHANGE #1
   DESKTOP DROPDOWN = HOVER
   ---------------------------------------------------------
   On desktop, keep the original hover behavior.

   The important part is pointer-events:none while hidden
   and pointer-events:auto when visible. This prevents the
   invisible dropdown from interfering with the header.
   ========================================================= */

@media (min-width: 769px) {

  .nav-dropdown:hover > .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .dropdown-item-wrap {
    position: relative;
  }

  /* Second-level dropdown opens by hovering its parent */
  .dropdown-item-wrap:hover > .nested-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nested-panel {
    top: -7px;
    left: calc(100% + 5px);
    min-width: 220px;
    transform: translateX(-7px);
  }
}


/* =========================================================
   DROPDOWN ITEMS
   ========================================================= */

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 44px;

  padding: 10px 14px;

  border: 0;
  border-radius: 5px;

  background: transparent;
  color: var(--text);

  text-decoration: none;
  text-align: left;

  cursor: pointer;

  transition:
    background .18s ease,
    color .18s ease;
}

.dropdown-link:hover,
.dropdown-parent:hover {
  background: var(--surface-2);
  color: var(--accent-dark);
}

.dropdown-parent {
  appearance: none;
}

.side-arrow {
  transition: transform .2s ease;
}

.compact-panel {
  min-width: 230px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu {
  display: none;

  width: 44px;
  height: 44px;

  margin-left: auto;

  border: 1px solid var(--glass-border);
  border-radius: 9px;

  background: var(--glass-bg);

  cursor: pointer;
}

.mobile-menu span {
  display: block;

  width: 20px;
  height: 2px;

  margin: 4px auto;

  background: var(--text);
  border-radius: 2px;
}


/* =========================================================
   THEME BUTTON
   ========================================================= */

.theme-toggle {
  width: 38px;
  height: 38px;

  margin-left: 4px;

  border: 1px solid var(--glass-border);
  border-radius: 50%;

  background: var(--glass-bg);
  color: var(--text);

  cursor: pointer;
}


/* =========================================================
   CHANGE #2
   MOBILE DROPDOWN = CLICK / TAP
   ---------------------------------------------------------
   There is no hover dependency here.

   main.js adds:
       .mobile-open

   when the user taps:
       Solutions
       Services
       Automobile Solutions
       ICT Solutions
       etc.

   CSS then displays the appropriate dropdown.

   This means:
       PC    -> hover
       Mobile -> tap/click
   ========================================================= */

@media (max-width: 768px) {

  .site-header {
    min-height: 64px;

    padding: 8px 16px;

    flex-wrap: wrap;
  }

  .mobile-menu {
    display: block;
  }

  .main-nav {
    display: none;

    width: 100%;

    flex-direction: column;
    align-items: stretch;

    gap: 3px;

    padding: 10px 0 14px;
  }

  /* Hamburger opens the navigation */
  .main-nav.mobile-open {
    display: flex;
  }

  .nav-link,
  .nav-trigger {
    width: 100%;

    min-height: 48px;

    justify-content: space-between;

    padding: 11px 14px;
  }

  .nav-dropdown {
    width: 100%;
  }


  /* -------------------------------------------------------
     Mobile dropdown starts closed
     ------------------------------------------------------- */

  .dropdown-panel {
    position: static;

    display: none;

    width: 100%;
    min-width: 0;

    margin: 3px 0 5px;
    padding: 5px;

    background: var(--dropdown-bg);

    border: 1px solid var(--line);
    border-radius: 14px;

    box-shadow: none;

    /* Override desktop animation */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
  }


  /* -------------------------------------------------------
     CHANGE #3
     .mobile-open displays the first-level dropdown
     ------------------------------------------------------- */

  .nav-dropdown.mobile-open > .dropdown-panel {
    display: block;
  }


  /* -------------------------------------------------------
     Second-level dropdown
     ------------------------------------------------------- */

  .nested-panel {
    position: static;

    display: none;

    min-width: 0;

    margin: 3px 0;

    background: var(--dropdown-bg-nested);

    border: 0;

    box-shadow: none;

    transform: none;
  }


  /* -------------------------------------------------------
     CHANGE #4
     .mobile-open on a solution category displays
     its children.
     ------------------------------------------------------- */

  .dropdown-item-wrap.mobile-open > .nested-panel {
    display: block;
  }


  /* -------------------------------------------------------
     Mobile dropdown item appearance
     ------------------------------------------------------- */

  .dropdown-link {
    min-height: 48px;

    padding: 11px 14px;

    color: var(--muted);

    border-radius: 9px;
  }

  .dropdown-link:hover,
  .dropdown-parent:hover {
    background: rgb(var(--accent-rgb) / .10);
    color: var(--text);
  }


  /* -------------------------------------------------------
     Arrow rotates when second-level menu is open
     ------------------------------------------------------- */

  .dropdown-item-wrap.mobile-open
  > .dropdown-parent
  .side-arrow {
    transform: rotate(90deg);
  }


  .theme-toggle {
    margin: 5px 0 0;

    align-self: flex-start;
  }
}


/* =========================================================
   SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 430px) {

  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand-mark {
    font-size: 1.05rem;
  }

  .dropdown-panel {
    border-radius: 12px;
  }

  .dropdown-link {
    font-size: .94rem;
  }
}



/* ----------------------------------------
   Mobile
   ---------------------------------------- */

@media (max-width: 600px) {

    .pdf-drop-zone {

        padding: 18px;

    }

    .pdf-icon {

        width: 45px;
        height: 45px;

    }

    .pdf-upload-text span {

        font-size: 12px;

    }

    .pdf-badge {

        display: none;

    }

}


/* ============================================================
   FINAL RESPONSIVE NAVIGATION FIX
   ------------------------------------------------------------
   This block intentionally comes LAST so it overrides the older
   duplicated navigation media queries in this stylesheet.

   Fixes:
   1. Mobile hamburger has a reliable touch target.
   2. Mobile nav opens only with .mobile-open.
   3. Desktop dropdowns use hover/click.
   4. Mobile dropdowns use tap/click.
   5. Hidden dropdowns cannot block taps.
   6. Touch devices do not depend on :hover.
   ============================================================ */

/* Keep the header above all page content. */
.site-header {
    position: relative;
    z-index: 10000;
    isolation: isolate;
}

.mobile-menu {
    position: relative;
    z-index: 10003;
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 8px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-solid);
    color: var(--text);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-menu span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 3px auto;
    border-radius: 2px;
    background: currentColor;
    pointer-events: none;
}

/* Desktop */
@media (min-width: 769px) {
    .mobile-menu {
        display: none !important;
    }

    .main-nav {
        display: flex !important;
        position: relative;
        z-index: 10001;
    }

    .dropdown-panel {
        pointer-events: none;
    }

    .nav-dropdown:hover > .dropdown-panel,
    .nav-dropdown:focus-within > .dropdown-panel,
    .nav-dropdown.open > .dropdown-panel,
    .nav-dropdown.dropdown-active > .dropdown-panel {
        pointer-events: auto;
    }

    .dropdown-item-wrap:hover > .nested-panel,
    .dropdown-item-wrap:focus-within > .nested-panel,
    .dropdown-item-wrap.open > .nested-panel,
    .dropdown-item-wrap.dropdown-active > .nested-panel {
        pointer-events: auto;
    }
}

/* Floating panels (above the JS MOBILE_BREAKPOINT). A closed panel that
   only hides with `visibility` still has a box, and on a short screen a
   long one reaches below the fold and makes the page scroll. Take closed
   panels out of layout; allow-discrete keeps the fade in both directions,
   and alignPanels() adds .is-measuring to read their natural position. */
@media (min-width: 861px) {
    .dropdown-panel {
        display: none;
        transition:
            opacity .18s ease,
            transform .18s ease,
            visibility .18s,
            display .18s allow-discrete;
    }

    .nav-dropdown:hover > .dropdown-panel,
    .nav-dropdown:focus-within > .dropdown-panel,
    .nav-dropdown.open > .dropdown-panel,
    .nav-dropdown.dropdown-active > .dropdown-panel,
    .dropdown-item-wrap:hover > .nested-panel,
    .dropdown-item-wrap:focus-within > .nested-panel,
    .dropdown-item-wrap.open > .nested-panel,
    .dropdown-item-wrap.dropdown-active > .nested-panel,
    .site-header.is-measuring .dropdown-panel {
        display: block;
    }

    @starting-style {
        .nav-dropdown:hover > .dropdown-panel,
        .nav-dropdown:focus-within > .dropdown-panel,
        .nav-dropdown.open > .dropdown-panel,
        .nav-dropdown.dropdown-active > .dropdown-panel {
            opacity: 0;
            transform: translateY(-6px);
        }

        .dropdown-item-wrap:hover > .nested-panel,
        .dropdown-item-wrap:focus-within > .nested-panel,
        .dropdown-item-wrap.open > .nested-panel,
        .dropdown-item-wrap.dropdown-active > .nested-panel {
            opacity: 0;
            transform: translateX(-7px);
        }
    }
}

/* Mobile / tablet */
@media (max-width: 768px) {
    .site-header {
        width: calc(100% - 24px);
        min-height: 64px;
        padding: 8px 12px;
        margin-top: 12px;
        flex-wrap: wrap;
        overflow: visible;
    }

    .mobile-menu {
        display: inline-flex !important;
    }

    .main-nav {
        display: none !important;
        position: absolute;
        z-index: 10002;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 95px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        flex-direction: column;
        align-items: stretch;
        gap: 3px;

        padding: 10px;
        margin: 0;

        background: var(--dropdown-bg);
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        backdrop-filter: blur(18px);

        pointer-events: none;
        visibility: hidden;
        opacity: 0;
    }

    .main-nav.mobile-open {
        display: flex !important;
        pointer-events: auto;
        visibility: visible;
        opacity: 1;
    }

    .nav-link,
    .nav-trigger {
        position: relative;
        z-index: 1;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        text-align: left;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-dropdown {
        width: 100%;
    }

    /* Mobile dropdowns are in normal document flow. */
    .main-nav .dropdown-panel,
    .main-nav .nested-panel {
        position: static !important;
        width: 100%;
        min-width: 0;
        max-width: none;

        margin: 3px 0 5px;
        padding: 5px;

        display: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;

        box-shadow: none;
    }

    .main-nav .nav-dropdown.mobile-open > .dropdown-panel {
        display: block !important;
    }

    .main-nav .dropdown-item-wrap {
        width: 100%;
    }

    .main-nav .dropdown-item-wrap.mobile-open > .nested-panel {
        display: block !important;
    }

    .dropdown-link,
    .dropdown-parent {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Do not let invisible desktop hover bridges interfere with taps. */
    .nav-dropdown::after,
    .dropdown-item-wrap.has-children::after {
        display: none !important;
        pointer-events: none !important;
    }

    .theme-toggle {
        position: relative;
        z-index: 10003;
    }
}

/* Small phones */
@media (max-width: 430px) {
    .site-header {
        width: calc(100% - 16px);
        padding-left: 10px;
        padding-right: 10px;
    }

    .mobile-menu {
        width: 46px;
        min-width: 46px;
        height: 46px;
        min-height: 46px;
    }

    .main-nav {
        max-height: calc(100vh - 85px);
    }
}

/* Remove hover transforms/behavior from touch devices. */
@media (hover: none) and (pointer: coarse) {
    .mobile-menu:hover {
        transform: none;
    }

    .nav-link:hover,
    .nav-trigger:hover,
    .dropdown-link:hover,
    .dropdown-parent:hover {
        transform: none;
    }
}


/* ============================================================
   THEME ICON FIX
   ------------------------------------------------------------
   The previous JS used Unicode characters ("☼" / "◐"), which
   can render extremely faint or incorrectly on some mobile
   fonts. This version draws the icon with CSS instead.
   ============================================================ */

.theme-toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    overflow: visible;
}

.theme-toggle .theme-icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    font-size: 0;
    line-height: 0;
    pointer-events: none;
}

/* Light mode: clear crescent/moon */
.theme-toggle .theme-icon::before {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: var(--text);
    box-shadow: 0 0 8px rgb(var(--accent-rgb) / .18);
}

.theme-toggle .theme-icon::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    left: 6px;
    top: -1px;
    border-radius: 50%;
    background: var(--header-bg);
}

/* Dark mode: clear sun */
.theme-toggle.is-dark .theme-icon::before {
    width: 9px;
    height: 9px;
    left: 4px;
    top: 4px;
    background: var(--text);
    box-shadow:
        0 -7px 0 -2px var(--text),
        0 7px 0 -2px var(--text),
        7px 0 0 -2px var(--text),
        -7px 0 0 -2px var(--text),
        5px 5px 0 -2px var(--text),
        -5px 5px 0 -2px var(--text),
        5px -5px 0 -2px var(--text),
        -5px -5px 0 -2px var(--text);
}

.theme-toggle.is-dark .theme-icon::after {
    display: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Make the icon visible and easy to tap on phones. */
@media (max-width: 768px) {
    .theme-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 5px 0 0;
    }

    .theme-toggle .theme-icon {
        width: 20px;
        height: 20px;
    }
}

.hero {
  min-height: clamp(520px, 78vh, 820px);
}

.hero-copy {
  max-width: 680px;
}

.hero-copy h1 {
  font-size: clamp(3.0rem, 8vw, 7.1rem);
  line-height: .92;
}

.hero-copy p {
  max-width: 620px;
  font-size: clamp(.95rem, 1.5vw, 1.2rem);
}


/* ----------------------------------------------------------
   HOME SCREEN
   The slider and the feature strip share exactly one screen:
   the strip keeps its natural height and the slider takes
   whatever is left, so nothing on the home page scrolls.
   ---------------------------------------------------------- */

.home-screen {
  height: calc(100vh - var(--header-block));
  height: calc(100dvh - var(--header-block));
  display: flex;
  flex-direction: column;
}


/* ----------------------------------------------------------
   FEATURE STRIP
   ---------------------------------------------------------- */

.feature-strip {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.2vh, 12px);
  width: min(1420px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  padding: 0 0 clamp(10px, 2.5vh, 28px);
}

.feature-strip > div {
  display: flex;
  align-items: center;
  padding: clamp(8px, 1.6vh, 15px) 18px;

  border: 1px solid var(--glass-border);
  border-radius: 15px;

  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 10px 30px rgb(var(--ink-rgb) / .08);

  transition:
    transform .25s ease,
    background .25s ease,
    border-color .25s ease;
}

.feature-strip > div:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
}

.feature-strip strong {
  color: var(--text);
  font-size: clamp(.74rem, 1vw, .9rem);
  line-height: 1.4;
}


/* ----------------------------------------------------------
   HOME GLASS SLIDER
   ---------------------------------------------------------- */

.home-slider-section {
  position: relative;
  width: 100%;
  /* Takes whatever height the feature strip leaves on screen. */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(10px, 2.5vh, 32px) 0;
  isolation: isolate;
}

.home-slider-section::before {
  content: "";
  position: absolute;
  width: min(850px, 90vw);
  height: 500px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgb(var(--accent-rgb) / .13),
    transparent 68%
  );

  filter: blur(30px);
  pointer-events: none;
  z-index: -1;
}

.home-slider-glass {
  position: relative;
  width: min(1420px, calc(100% - var(--page-gutter) * 2));
  padding: clamp(10px, 3vh, 34px) 18px clamp(10px, 2.5vh, 26px);

  /* Sized by its content, but never taller than the section: when
     space runs out the viewport shrinks and heading and dots stay. */
  max-height: 100%;
  display: flex;
  flex-direction: column;

  border: 1px solid var(--glass-border);
  border-radius: 32px;

  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 30px 90px rgb(var(--ink-rgb) / .22),
    inset 0 1px 0 var(--glass-highlight);
}

.home-slider-heading {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 15px;
  margin-bottom: clamp(4px, 1.5vh, 18px);
}

.home-slider-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 10px;

  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgb(var(--accent-rgb) / .8);
}

.home-slider-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.home-slider-heading p {
  max-width: 620px;
  margin: 13px auto 0;

  color: var(--muted);
  font-size: .94rem;
  line-height: 1.6;
}


/* ----------------------------------------------------------
   VIEWPORT
   ---------------------------------------------------------- */

.home-slider-viewport {
  position: relative;
  width: 100%;
  flex: 0 1 auto;
  min-height: 0;
  padding: clamp(8px, 2.5vh, 30px) 0;

  display: flex;
  flex-direction: column;

  /* Clips at the padding box, so the vertical padding above stays inside the
     cut and only the neighbouring cards are trimmed. */
  overflow: clip;
}


/* ----------------------------------------------------------
   TRACK
   ---------------------------------------------------------- */

.home-slider-track {
  position: relative;
  /* Full card height when the screen has room, shrinks when not. */
  flex: 0 1 440px;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 22px;

  will-change: transform;
  transition: transform .75s cubic-bezier(.22,.61,.36,1);
}


/* ----------------------------------------------------------
   CARDS
   ---------------------------------------------------------- */

.home-slide {
  position: relative;
  flex: 0 0 360px;
  height: 90%;

  display: flex;
  flex-direction: column;

  overflow: hidden;
  border-radius: 24px;

  border: 1px solid var(--glass-border);

  background: var(--glass-bg);

  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);

  text-decoration: none;

  opacity: .40;

  filter: saturate(.65);

  box-shadow:
    0 16px 40px rgb(var(--ink-rgb) / .22),
    inset 0 1px 0 var(--glass-highlight);

  transition:
    opacity .75s ease,
    filter .75s ease,
    box-shadow .75s ease;
}

.home-slider-track.is-snapping .home-slide {
  transition: none;
}

.home-slide:hover {
  opacity: .80;
  filter: saturate(.9);
}

.home-slide.is-active {
  opacity: 1;
  filter: saturate(1);
  z-index: 3;

  border-color: var(--glass-border-hover);

  box-shadow:
    0 30px 75px rgb(var(--ink-rgb) / .36),
    0 0 45px rgb(var(--accent-rgb) / .08),
    inset 0 1px 0 var(--glass-highlight);
}

.home-slide-image {
  flex: 1 1 auto;
  min-height: 0;

  width: 100%;

  /* Show the whole image: no cropping, no zoom */
  object-fit: contain;
  object-position: center;

  padding: 10px 10px 0;
  background: var(--slide-image-bg);
}

.home-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;

  background:
    linear-gradient(
      to top,
      var(--slide-veil) 55%,
      var(--slide-veil-0) 100%
    );

  pointer-events: none;
}

.home-slide-content {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 22px 19px;
  z-index: 2;
}

.home-slide-number {
  display: block;
  margin-bottom: 6px;

  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
}

.home-slide-title {
  display: block;

  color: var(--text);
  font-size: 1.03rem;
  font-weight: 600;
  line-height: 1.25;
}

.home-slide-hint {
  display: block;
  margin-top: 7px;

  color: var(--muted);
  font-size: .72rem;
}


/* ----------------------------------------------------------
   CONTROLS
   ---------------------------------------------------------- */

.home-slider-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;

  z-index: 8;

  display: flex;
  justify-content: space-between;

  transform: translateY(-50%);
  pointer-events: none;
}

.home-slider-arrow {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--glass-border);
  border-radius: 50%;

  background: var(--glass-bg-strong);
  color: var(--text);

  font-size: 1.8rem;
  line-height: 1;

  cursor: pointer;
  pointer-events: auto;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.home-slider-arrow:hover {
  transform: scale(1.08);
  background: rgb(var(--accent-rgb) / .18);
  border-color: var(--glass-border-hover);
}


/* ----------------------------------------------------------
   DOTS
   ---------------------------------------------------------- */

.home-slider-dots {
  position: relative;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: wrap;
  gap: 7px;

  max-width: 100%;
  padding: 0 20px;
}

.home-slider-dot {
  width: 7px;
  height: 7px;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: var(--dot-idle);

  cursor: pointer;

  transition:
    width .25s ease,
    background .25s ease,
    border-radius .25s ease;
}

.home-slider-dot.is-active {
  width: 24px;
  border-radius: 10px;
  background: var(--accent);
}


/* ----------------------------------------------------------
   LARGE TABLET / SMALL LAPTOP
   ---------------------------------------------------------- */

@media (max-width: 1100px) {

  .hero {
    min-height: 600px;
  }

  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .home-slider-track {
    gap: 16px;
  }

  .home-slide {
    flex-basis: 330px;
  }
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 768px) {

  .hero {
    min-height: 570px;
  }

  .hero-copy {
    padding: 0 25px;
  }

  .feature-strip {
    gap: 8px;
  }

  .feature-strip > div {
    padding: 8px 12px;
  }


  .home-slider-heading {
    margin-bottom: 4px;
  }

  .home-slider-heading p {
    font-size: .82rem;
  }

  .home-slider-track {
    gap: 12px;
  }

  .home-slide {
    flex-basis: 300px;
    border-radius: 20px;
  }

  .home-slider-controls {
    left: 8px;
    right: 8px;
  }

  .home-slider-arrow {
    width: 39px;
    height: 39px;
    font-size: 1.5rem;
  }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 520px) {

  .hero {
    min-height: 520px;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 4.1rem);
  }

  .hero-copy p {
    font-size: .88rem;
    line-height: 1.55;
  }

  .feature-strip strong {
    font-size: .76rem;
  }

  .feature-strip {
    width: 96%;
    gap: 6px;
  }

  .feature-strip > div {
    padding: 7px 10px;
    border-radius: 12px;
  }

  .home-slider-glass {
    width: 96%;
    padding: clamp(10px, 3vh, 25px) 5px clamp(8px, 2.5vh, 22px);
    border-radius: 21px;
    overflow: hidden;
  }

  .home-slider-heading h2 {
    font-size: 1.7rem;
  }

  .home-slider-heading p {
    display: none;
  }

  .home-slider-track {
    gap: 10px;
  }

  .home-slide {
    flex-basis: 265px;
    border-radius: 18px;
  }

  .home-slide-content {
    padding: 10px 17px 16px;
  }

  .home-slide-title {
    font-size: .92rem;
  }

  .home-slider-controls {
    display: none;
  }

  .home-slider-dots {
    gap: 5px;
  }

  .home-slider-dot {
    width: 5px;
    height: 5px;
  }

  .home-slider-dot.is-active {
    width: 18px;
  }
}


/* ----------------------------------------------------------
   VERY SMALL PHONES
   ---------------------------------------------------------- */

@media (max-width: 360px) {

  .home-slide {
    flex-basis: 235px;
  }

  .home-slider-heading h2 {
    font-size: 1.5rem;
  }
}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .home-slider-track,
  .home-slide,
  .home-slide-image,
  .home-slider-dot,
  .home-slider-arrow {
    transition: none !important;
  }
}
 


/* ============================================================
   CONCERNS
   One full-width glass bar per sister company; the whole bar
   is the link.
   ============================================================ */

.concerns-page {
    padding: 100px max(var(--page-gutter), 6vw) 120px;
}

.concerns-hero {
    width: min(850px, 100%);
    margin: 0 auto 60px;
    text-align: center;
}

.concerns-hero h1 {
    margin: 20px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.concerns-hero p {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
    line-height: 1.8;
}

.concerns-list {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.concern-bar {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 26px;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, var(--glass-bg), var(--glass-bg-hover));
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 10px 35px rgb(var(--ink-rgb) / .06);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.concern-bar:hover,
.concern-bar:focus-visible {
    transform: translateX(6px);
    border-color: var(--glass-border-hover);
    box-shadow:
        0 16px 45px rgb(var(--ink-rgb) / .10),
        0 0 30px rgb(var(--accent-rgb) / .08);
    outline: none;
}

.concern-index {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgb(var(--accent-rgb) / .10);
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 700;
}

.concern-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.concern-name {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.concern-sector {
    color: var(--muted);
    font-size: 13px;
}

.concern-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 500;
}

.concern-url {
    text-decoration: underline;
    text-decoration-color: rgb(var(--accent-rgb) / .35);
    text-underline-offset: 3px;
}

.concern-arrow {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    transition: background .3s ease, color .3s ease;
}

.concern-bar:hover .concern-arrow,
.concern-bar:focus-visible .concern-arrow {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    border-color: transparent;
}

@media (max-width: 720px) {
    .concerns-page {
        padding: 60px var(--page-gutter) 80px;
    }

    .concern-bar {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .concern-info {
        flex-basis: calc(100% - 60px);
    }

    /* Link drops to its own line under the name. */
    .concern-link {
        width: 100%;
        justify-content: space-between;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .concern-url {
        min-width: 0;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    .concern-bar {
        transition: none;
    }

    .concern-bar:hover,
    .concern-bar:focus-visible {
        transform: none;
    }
}

/* ============================================================
   FEATURE IMAGES SECTION
   ============================================================ */

.feature-images-section {
    width: 100%;
    padding: 60px var(--page-gutter) 80px;
    background:
        radial-gradient(circle at 10% 10%, rgb(var(--accent-rgb) / 0.06), transparent 30%),
        radial-gradient(circle at 90% 90%, rgb(var(--accent-2-rgb) / 0.06), transparent 30%);
    position: relative;
    z-index: 1;
}

.feature-divider {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 0 auto 40px;
    border: 0;
    height: 1px;
    background: var(--line);
}

.feature-divider:last-of-type {
    margin-top: 40px;
    margin-bottom: 0;
}

.feature-images-container {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image {
    width: min(950px, 100%);
    height: 500px;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    box-shadow: 0 16px 50px rgb(var(--ink-rgb) / .08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.feature-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgb(var(--ink-rgb) / .12);
}

@media (max-width: 768px) {
    .feature-images-section {
        padding: 45px var(--page-gutter);
    }

    .feature-divider {
        margin: 0 auto 30px;
    }

    .feature-divider:last-of-type {
        margin-top: 30px;
    }

    .feature-images-container {
        margin-bottom: 30px;
    }

    .feature-image {
        height: 320px;
    }
}

@media (max-width: 560px) {
    .feature-images-section {
        padding: 35px var(--page-gutter);
    }

    .feature-divider {
        margin: 0 auto 25px;
    }

    .feature-divider:last-of-type {
        margin-top: 25px;
    }

    .feature-images-container {
        margin-bottom: 25px;
    }

    .feature-image {
        height: 240px;
        border-radius: 14px;
    }
}

/* ============================================================
   FEATURE CARDS SECTION
   ============================================================ */

.feature-cards-section {
    width: 100%;
    padding: 80px var(--page-gutter);
    background:
        radial-gradient(circle at 10% 10%, rgb(var(--accent-rgb) / 0.06), transparent 30%),
        radial-gradient(circle at 90% 90%, rgb(var(--accent-2-rgb) / 0.06), transparent 30%);
    position: relative;
    z-index: 0;
}

.feature-cards-grid {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.feature-card-cell {
    display: flex;
    flex-direction: column;
}

.feature-card-cell .feature-divider {
    width: 100%;
    margin-bottom: 40px;
}

.feature-divider--closing {
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 40px auto 0;
}

.feature-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 12px 40px rgb(var(--ink-rgb) / .05);
    backdrop-filter: blur(14px);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgb(var(--accent-rgb) / .4);
    box-shadow: 0 20px 60px rgb(var(--ink-rgb) / .12);
}

.feature-card-image {
    width: 100%;
    height: 280px;
    background: var(--slide-image-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 20px;
    display: block;
}

.feature-card-content {
    flex: 1;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.3;
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 1000px) {
    .feature-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .feature-cards-section {
        padding: 60px var(--page-gutter);
    }

    .feature-cards-grid {
        gap: 25px;
    }

    .feature-card-image {
        height: 240px;
    }

    .feature-card-content {
        padding: 24px 22px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 560px) {
    .feature-cards-section {
        padding: 45px var(--page-gutter);
    }

    .feature-cards-grid {
        gap: 20px;
    }

    .feature-card {
        border-radius: 16px;
    }

    .feature-card-image {
        height: 200px;
    }

    .feature-card-content {
        padding: 20px 18px;
        gap: 10px;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .feature-card p {
        font-size: 0.85rem;
    }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - var(--page-gutter) * 2));
    margin: 0 auto 18px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--header-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 35px rgb(var(--ink-rgb) / .06);
    backdrop-filter: blur(18px);
    font-size: 13px;
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-weight: 500;
    transition: color .2s ease;
}

.footer-contact:hover {
    color: var(--accent-dark);
}

.footer-mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--accent-dark);
    background: rgb(var(--accent-rgb) / .10);
    border: 1px solid rgb(var(--accent-rgb) / .28);
    transition: background .2s ease, box-shadow .2s ease;
}

.footer-contact:hover .footer-mail-icon {
    background: rgb(var(--accent-rgb) / .18);
    box-shadow: 0 0 16px rgb(var(--accent-rgb) / .35);
}

.footer-copy {
    margin: 0;
    color: var(--muted);
    text-align: right;
}

@media (max-width: 560px) {
    .site-footer {
        padding: 16px 18px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
        font-size: 12.5px;
    }

    .footer-copy {
        text-align: center;
    }
}
