/* ==========================================================================
   Orospor — Enterprise design system
   Dark, restrained, credible. One accent, consistent surfaces, calm motion.
   ========================================================================== */

:root {
    /* Surfaces */
    --bg: #0a0e16;
    --bg-raised: #0d1320;
    --surface: #101727;
    --surface-2: #151d30;
    --line: rgba(148, 163, 184, 0.16);
    --line-soft: rgba(148, 163, 184, 0.09);
    /* Subtle elevation tint (flips per theme) */
    --tint: var(--tint);

    /* Text */
    --text: #e8edf5;
    --text-soft: #c3cbd9;
    --muted: #8b97ab;
    /* Strongest text / headings (flips per theme) */
    --text-strong: #ffffff;

    /* Brand */
    --accent: #2dd4bf;
    --accent-strong: #14b8a6;
    --accent-soft: rgba(45, 212, 191, 0.1);
    --accent-line: rgba(45, 212, 191, 0.38);
    --accent-ink: #04211e;
    --accent-2: #34d399;

    /* Semantic */
    --info: #38bdf8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    /* Type */
    --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    /* Legacy alias kept for older page-level styles */
    --font-tech: var(--font-display);

    /* Shape & depth */
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-1: 0 1px 2px rgba(2, 6, 12, 0.45), 0 10px 30px rgba(2, 6, 12, 0.3);
    --shadow-2: 0 22px 60px rgba(2, 6, 12, 0.5);

    --container: 1180px;
    --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

::selection { background: rgba(45, 212, 191, 0.28); color: var(--text-strong); }

.site-shell {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-main {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding-top: var(--header-h);
    flex: 1;
}

/* Full-bleed pages (home, services) manage their own containers */
.page-main--full {
    width: 100%;
    padding-top: 0;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

.container--narrow { width: min(860px, calc(100% - 48px)); }

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent-line);
}

.eyebrow--center::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--accent-line);
}

.display-title {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.6vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--text-strong);
}

.section {
    padding: clamp(64px, 8vw, 104px) 0;
}

.section--tight { padding: clamp(44px, 6vw, 72px) 0; }

.section--alt {
    background: var(--bg-raised);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

.section-title {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text-strong);
}

.lead {
    margin: 0;
    font-size: 1.07rem;
    line-height: 1.75;
    color: var(--muted);
}

/* ==========================================================================
   Buttons, badges, chips
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button:hover { border-color: rgba(203, 213, 225, 0.4); color: var(--text-strong); }

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.button.primary:hover {
    background: #46e0cd;
    border-color: #46e0cd;
    color: var(--accent-ink);
    transform: translateY(-1px);
}

.button.ghost {
    background: var(--tint);
}

.button.secondary {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.button.secondary:hover {
    border-color: var(--accent);
    background: rgba(45, 212, 191, 0.16);
    color: #8ff4e7;
}

.button.small { padding: 8px 14px; font-size: 0.84rem; }
.button.block { width: 100%; }
.button:disabled { cursor: wait; opacity: 0.58; transform: none; }

.button.danger { border-color: rgba(248, 113, 113, 0.45); color: #fca5a5; }
.button.danger:hover { background: rgba(248, 113, 113, 0.12); border-color: var(--danger); }
.button.warning { border-color: rgba(251, 191, 36, 0.45); color: #fcd34d; }
.button.warning:hover { background: rgba(251, 191, 36, 0.1); border-color: var(--warning); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge--accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.badge--success { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); color: var(--success); }
.badge--warning { border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); color: var(--warning); }
.badge--danger { border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); color: var(--danger); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
}

.chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================================
   Cards & tiles
   ========================================================================== */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 26px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover,
.card--hover:hover {
    border-color: var(--accent-line);
    transform: translateY(-3px);
    box-shadow: var(--shadow-1);
}

.card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-strong);
}

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

.icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
    margin-bottom: 16px;
}

.icon-tile svg { width: 21px; height: 21px; }

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

/* Stats */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line-soft);
}

.stat-cell {
    background: var(--surface);
    padding: 22px 20px;
}

.stat-cell strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.15;
    margin-bottom: 5px;
}

.stat-cell span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid { display: grid; gap: 16px; }

.form-grid label,
.field-label {
    display: grid;
    gap: 7px;
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    color: var(--text);
    padding: 11px 14px;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-grid textarea { min-height: 120px; resize: vertical; }

.form-grid select option { background: var(--surface-2); color: var(--text); }

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
}

.form-note { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.55; }
.form-note a { color: var(--accent); }
.form-note a:hover { text-decoration: underline; }

.password-policy {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.alert {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.alert--warning { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); color: #fde68a; }
.alert--danger { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.07); color: #fecaca; }
.alert--success { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.07); color: #a7f3d0; }

/* Flash messages (layout-level) */
.flash {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    z-index: 8000;
    width: min(var(--container), calc(100% - 48px));
    margin: 12px auto 0;
    padding: 13px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.92rem;
    box-shadow: var(--shadow-1);
}

.flash--error { border-color: rgba(248, 113, 113, 0.5); background: #2a1215; color: #fecaca; }
.flash--success { border-color: rgba(52, 211, 153, 0.5); background: #0a231c; color: #a7f3d0; }
.flash--info { border-color: rgba(56, 189, 248, 0.5); background: #0b1f2d; color: #bae6fd; }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 0.9rem;
}

.table th,
.table td {
    border-bottom: 1px solid var(--line-soft);
    padding: 11px 14px;
    text-align: left;
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--tint);
}

.table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    padding: 0 clamp(18px, 3.4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(10, 14, 22, 0.78);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--line-soft);
    z-index: 9000;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.topbar.is-scrolled {
    background: rgba(9, 12, 19, 0.94);
    border-bottom-color: var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.brand-lockup {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

/* Dot burst pulses in waves when the brand is hovered */
@keyframes oroSignal {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.brand:hover .d1 { animation: oroSignal 1.1s ease-in-out infinite; }
.brand:hover .d2 { animation: oroSignal 1.1s ease-in-out 0.18s infinite; }
.brand:hover .d3 { animation: oroSignal 1.1s ease-in-out 0.36s infinite; }

/* Desktop nav */
.oro-nav { display: flex; align-items: stretch; height: 100%; gap: 2px; }
.oro-nav-item { display: flex; align-items: center; }

.oro-nav-link {
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 clamp(10px, 1.05vw, 16px);
    color: var(--text-soft);
    font-family: var(--font-sans);
    font-size: clamp(0.84rem, 0.86vw, 0.94rem);
    font-weight: 550;
    letter-spacing: 0.005em;
    position: relative;
    transition: color 0.2s ease;
}

.oro-nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.oro-nav-item:hover .oro-nav-link,
.oro-nav-item:focus-within .oro-nav-link { color: var(--text-strong); }

.oro-nav-item:hover .oro-nav-link::after,
.oro-nav-item:focus-within .oro-nav-link::after { transform: scaleX(1); }

.oro-chev { transition: transform 0.25s ease; opacity: 0.55; }

.oro-nav-item:hover .oro-nav-link .oro-chev,
.oro-nav-item:focus-within .oro-nav-link .oro-chev { transform: rotate(180deg); opacity: 1; }

.oro-nav-link--accent { color: var(--accent); font-weight: 600; }
.oro-nav-item:hover .oro-nav-link--accent { color: #5eead4; }

/* Mega panel */
.oro-mega {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    padding: 34px clamp(18px, 3.4vw, 40px) 38px;
    background: rgba(13, 18, 30, 0.98);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    backdrop-filter: blur(24px);
    z-index: 8990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.oro-nav-item:hover .oro-mega,
.oro-nav-item:focus-within .oro-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.oro-mega-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 38px;
    align-items: start;
}

.oro-mega-head { padding-right: 26px; border-right: 1px solid var(--line-soft); }

.oro-mega-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.oro-mega-head h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--text-strong);
    margin: 0 0 10px;
    line-height: 1.2;
}

.oro-mega-head p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin: 0; }

.oro-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 1180px) { .oro-mega-grid { grid-template-columns: repeat(2, 1fr); } }

.oro-mega-card {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.oro-mega-card:hover { border-color: var(--line); background: var(--tint); }
.oro-mega-card.is-active { border-color: var(--accent-line); background: var(--accent-soft); }

.oro-ic {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
}

.oro-ic svg { width: 18px; height: 18px; }

.oro-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oro-tx strong { font-size: 0.92rem; color: #f1f5f9; font-weight: 600; }
.oro-mega-card:hover .oro-tx strong { color: var(--text-strong); }
.oro-tx span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.oro-arrow {
    flex-shrink: 0;
    margin-left: auto;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: all 0.2s ease;
    align-self: center;
}

.oro-mega-card:hover .oro-arrow { opacity: 1; transform: translateX(0); }

/* Topbar actions */
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-actions .button { padding: 10px 18px; font-size: 0.86rem; }
.oro-logout-form { margin: 0; display: inline-flex; }

/* Hamburger */
.oro-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    cursor: pointer;
    align-items: center;
    transition: border-color 0.2s ease;
    z-index: 9500;
}

.oro-burger:hover { border-color: var(--accent-line); }
.oro-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s ease, opacity 0.2s ease; }
.oro-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.oro-burger.is-open span:nth-child(2) { opacity: 0; }
.oro-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.oro-scrim {
    position: fixed;
    inset: 0;
    z-index: 9600;
    background: rgba(4, 6, 10, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.oro-scrim.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }

.oro-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(390px, 88vw);
    z-index: 9700;
    display: flex;
    flex-direction: column;
    background: var(--bg-raised);
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.6);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.2, 1), visibility 0s linear 0.34s;
    will-change: transform;
}

.oro-drawer.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }

.oro-drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line-soft);
    flex-shrink: 0;
}

.oro-drawer-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.oro-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    display: grid;
    place-items: center;
    color: var(--text);
    background: var(--tint);
    border: 1px solid var(--line);
    transition: all 0.2s ease;
}

.oro-drawer-close:hover { border-color: var(--danger); color: var(--danger); }

.oro-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
}

/* Drawer accordion */
.oro-acc { border-bottom: 1px solid var(--line-soft); }

.oro-acc-head {
    width: 100%;
    appearance: none;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.oro-acc-head:hover { background: var(--tint); }
.oro-acc-head--direct { color: var(--accent); border-bottom: 1px solid var(--line-soft); }

.oro-acc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.oro-acc.is-open .oro-acc-head { color: var(--accent); }
.oro-acc.is-open .oro-acc-dot { background: var(--accent); }
.oro-acc-head .oro-chev { margin-left: auto; opacity: 0.55; transition: transform 0.3s ease; }
.oro-acc.is-open .oro-acc-head .oro-chev { transform: rotate(180deg); opacity: 1; }

.oro-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.oro-acc.is-open .oro-acc-panel { grid-template-rows: 1fr; }
.oro-acc-panel-inner { overflow: hidden; min-height: 0; }
.oro-acc-links { display: flex; flex-direction: column; gap: 4px; padding: 2px 14px 16px; }

.oro-acc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.oro-acc-link:hover { background: var(--tint); border-color: var(--line-soft); }
.oro-acc-link.is-active { background: var(--accent-soft); border-color: var(--accent-line); }
.oro-acc-link .oro-ic { width: 34px; height: 34px; border-radius: 9px; }
.oro-acc-link .oro-ic svg { width: 16px; height: 16px; }
.oro-acc-link .oro-tx strong { font-size: 0.88rem; }
.oro-acc-link .oro-tx span { font-size: 0.74rem; }

.oro-drawer-cta {
    flex-shrink: 0;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-soft);
    display: grid;
    gap: 10px;
    background: rgba(0, 0, 0, 0.22);
}

.oro-drawer-cta .button { width: 100%; padding: 12px; }
.oro-drawer-cta .oro-logout-form { display: block; }
.oro-drawer-cta .oro-logout-form .button { width: 100%; }

/* Compact desktop tier */
@media (min-width: 1025px) and (max-width: 1320px) {
    .topbar { padding: 0 16px; gap: 10px; }
    .brand-lockup { height: 34px; }
    .oro-nav-link { padding: 0 8px; font-size: 0.8rem; gap: 4px; }
    .oro-nav-link::after { left: 8px; right: 8px; }
    .topbar-actions { gap: 7px; }
    .topbar-actions .button { padding: 8px 12px; font-size: 0.78rem; }
}

@media (max-width: 1024px) {
    :root { --header-h: 64px; }
    .brand-lockup { height: 36px; }
    .oro-nav, .topbar-actions { display: none; }
    .oro-burger { display: flex; }
    .oro-drawer-top { padding-top: max(18px, env(safe-area-inset-top)); }
}

@media (min-width: 1025px) { .oro-scrim, .oro-drawer { display: none; } }

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
    padding: calc(var(--header-h) + clamp(44px, 7vw, 84px)) 0 clamp(40px, 6vw, 64px);
    text-align: center;
    position: relative;
}

.page-hero .display-title { margin-inline: auto; max-width: 840px; }
.page-hero .lead { margin-inline: auto; max-width: 680px; }
.page-hero .eyebrow { justify-content: center; }

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 22px;
}

.breadcrumb a { color: var(--muted); transition: color 0.15s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(148, 163, 184, 0.4); }
.breadcrumb .current { color: var(--text-soft); }

/* CTA band */
.cta-band {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(580px 220px at 12% 0%, rgba(45, 212, 191, 0.1), transparent 70%),
        var(--surface);
    padding: clamp(36px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-band h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    color: var(--text-strong);
    letter-spacing: -0.01em;
}

.cta-band p { margin: 0; color: var(--muted); max-width: 560px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Home hero
   ========================================================================== */

.home-hero {
    position: relative;
    min-height: min(92vh, 860px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 56px) 0 72px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
}

.home-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.home-hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(0.7) brightness(0.7);
}

.home-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 14, 22, 0.92) 0%, rgba(10, 14, 22, 0.55) 55%, rgba(10, 14, 22, 0.85) 100%),
        linear-gradient(to bottom, rgba(10, 14, 22, 0.35), rgba(10, 14, 22, 0.97) 92%);
}

.home-hero-inner { position: relative; z-index: 1; }

.home-hero .display-title { max-width: 760px; }

.home-hero-sub {
    margin: 0 0 34px;
    max-width: 620px;
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-soft);
}

.home-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 54px; }

.home-hero .stat-row { max-width: 640px; background: rgba(148, 163, 184, 0.12); }
.home-hero .stat-cell { background: rgba(13, 19, 32, 0.82); backdrop-filter: blur(8px); }

/* Hero layout: text column + slider aside. Single column by default; two
   columns from the desktop breakpoint up. The aside is top-aligned and
   stretched so it lines up with the left text block. */
.home-hero-aside { position: relative; display: flex; margin-top: clamp(30px, 5vw, 44px); }

@media (min-width: 1025px) {
    .home-hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
        gap: clamp(36px, 4vw, 72px);
        align-items: stretch;
    }
    .home-hero-aside { margin-top: 0; }
    .home-hero-content { min-width: 0; align-self: center; }
}

/* ==========================================================================
   Hero slider — borderless, vertical scroll, technical transitions
   ========================================================================== */

.hero-slider {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
}

.hero-slider__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: clamp(440px, 66vh, 560px);
    overflow: hidden;
    border-radius: var(--radius);
    isolation: isolate;
}

/* The track stacks every slide vertically and slides up one slide-height per
   step — the vertical scroll. Mechanical easing for a deliberate, technical feel. */
.hero-slider__track {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}

.hero-slide.is-active .hero-slide__img { transform: scale(1); }

/* Legibility wash. */
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 14, 22, 0.28) 0%, rgba(10, 14, 22, 0.34) 42%, rgba(10, 14, 22, 0.95) 100%);
}

/* Faint technical grid that fades toward the top. */
.hero-slide__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 65%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 65%);
}

/* One-shot accent scanline that sweeps down as a slide becomes active. */
.hero-slide__scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    z-index: 4;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
    box-shadow: 0 0 14px 1px rgba(45, 212, 191, 0.65);
}

.hero-slide.is-active .hero-slide__scan { animation: heroScan 0.9s cubic-bezier(0.76, 0, 0.24, 1); }

@keyframes heroScan {
    0%   { opacity: 0; top: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { opacity: 0; top: 100%; }
}

.hero-slide__inner {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(18px, 2.2vw, 26px);
    padding-right: clamp(46px, 4vw, 58px);
}

.hero-slide__top { display: flex; align-items: center; gap: 12px; }

.hero-slide__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 11px;
    border: 1px solid var(--accent-line);
    background: rgba(4, 33, 30, 0.72);
    color: var(--accent);
    backdrop-filter: blur(6px);
}

.hero-slide__icon svg { width: 23px; height: 23px; }

.hero-slide__tag {
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text);
}

.hero-slide.is-active .hero-slide__tag { animation: heroGlitch 0.5s steps(3, end); }

@keyframes heroGlitch {
    0%   { text-shadow: none; transform: translateX(0); }
    25%  { text-shadow: -2px 0 var(--accent), 2px 0 rgba(56, 189, 248, 0.9); transform: translateX(1px); }
    50%  { text-shadow: 2px 0 var(--accent), -2px 0 rgba(56, 189, 248, 0.9); transform: translateX(-1px); }
    75%  { text-shadow: -1px 0 var(--accent); transform: translateX(1px); }
    100% { text-shadow: none; transform: translateX(0); }
}

.hero-slide__content { display: flex; flex-direction: column; gap: 14px; }

/* Staggered reveal of the active slide's copy. */
.hero-slide__content > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active .hero-slide__content > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__content > *:nth-child(1) { transition-delay: 0.18s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(2) { transition-delay: 0.28s; }
.hero-slide.is-active .hero-slide__content > *:nth-child(3) { transition-delay: 0.38s; }

.hero-slide__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
    line-height: 1.4;
    color: var(--text);
}

.hero-slide__chips { display: flex; flex-wrap: wrap; gap: 7px; }

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(10, 14, 22, 0.55);
    backdrop-filter: blur(4px);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 500;
    white-space: nowrap;
}

.hero-slide__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-slide__link:hover { gap: 11px; }

/* Technical HUD: monospace slide counter. */
.hero-slider__count {
    position: absolute;
    top: clamp(16px, 2vw, 22px);
    right: clamp(14px, 1.6vw, 18px);
    z-index: 5;
    font-family: var(--font-tech);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    color: var(--text-soft);
}

.hero-slider__count b { color: var(--accent); font-weight: 700; }

/* Vertical control rail (up / ticks / down) on the right edge. */
.hero-slider__rail {
    position: absolute;
    top: 50%;
    right: clamp(12px, 1.4vw, 16px);
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-slider__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(13, 19, 32, 0.55);
    backdrop-filter: blur(6px);
    color: var(--text-soft);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-slider__nav:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.hero-slider__ticks { display: flex; flex-direction: column; align-items: center; gap: 9px; }

.hero-tick {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.4);
    cursor: pointer;
    transition: height 0.3s ease, background 0.3s ease;
}

.hero-tick.is-active { height: 24px; background: var(--accent); }

/* ==========================================================================
   Service detail page
   ========================================================================== */

.svc-hero {
    position: relative;
    padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(44px, 6vw, 72px);
    border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(720px 320px at 85% -10%, rgba(45, 212, 191, 0.09), transparent 70%),
        radial-gradient(520px 280px at 0% 10%, rgba(56, 189, 248, 0.06), transparent 70%);
}

.svc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}

.svc-hero h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--text-strong);
}

.svc-headline {
    margin: 0 0 14px;
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-soft);
    line-height: 1.55;
}

.svc-overview { margin: 0 0 20px; color: var(--text-soft); line-height: 1.8; max-width: 640px; font-size: 1.02rem; }

.svc-intro { margin: 0 0 24px; color: var(--muted); line-height: 1.8; max-width: 640px; }

.svc-hero-label {
    display: block;
    margin: 0 0 14px;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.svc-hero-points {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: grid;
    gap: 11px;
    max-width: 600px;
}

.svc-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--text-soft);
    font-size: 0.97rem;
    line-height: 1.55;
}

.svc-hero-points svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.svc-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 24px;
    box-shadow: var(--shadow-1);
}

.svc-side-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.svc-side-list { list-style: none; margin: 0; padding: 0; display: grid; }

.svc-side-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 0;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
    border-top: 1px solid var(--line-soft);
}

.svc-side-list li:first-child { border-top: 0; padding-top: 0; }
.svc-side-list li:last-child { padding-bottom: 0; }

.svc-side-list svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

/* Numbered implementation steps */
.counter-scope { counter-reset: step; }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }

.step-item {
    position: relative;
    display: flex;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
}

.step-item:first-child { border-top: 0; padding-top: 0; }

.step-num {
    counter-increment: step;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
}

.step-num::before { content: counter(step, decimal-leading-zero); }

.step-body { color: var(--text-soft); line-height: 1.6; padding-top: 5px; }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.check-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--text-soft);
    line-height: 1.6;
}

.check-list svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }

/* Delivery flow strip */
.flow-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.flow-node {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 16px 14px;
    text-align: center;
}

.flow-node strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-strong);
    margin-bottom: 3px;
}

.flow-node span { color: var(--muted); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; }

.flow-node::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--accent);
    border-right: 1.5px solid var(--accent);
    transform: translateY(-50%) rotate(45deg);
}

.flow-node:last-child::after { display: none; }

/* Stack chips */
.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   News / articles
   ========================================================================== */

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

.news-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-1); }

.news-card-media { aspect-ratio: 16 / 8; overflow: hidden; background: var(--surface-2); }
.news-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card-body { padding: 22px 24px 24px; display: grid; gap: 10px; }
.news-card-body .badge { justify-self: start; }
.news-card-body h3 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-strong); }
.news-card-body p { margin: 0; color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
}

/* Article page */
.article-body { color: var(--text-soft); font-size: 1.05rem; line-height: 1.85; }
.article-body p { margin: 1.1em 0; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: var(--radius-sm); border: 1px solid var(--line); }

/* ==========================================================================
   Auth pages
   ========================================================================== */

.auth-shell {
    min-height: calc(100dvh - 320px);
    display: grid;
    place-items: center;
    padding: clamp(36px, 6vw, 72px) 0;
}

.auth-panel {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}

.auth-info {
    padding: clamp(28px, 4vw, 42px);
    border-right: 1px solid var(--line-soft);
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(45, 212, 191, 0.08), transparent 70%),
        var(--bg-raised);
}

.auth-info h1 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.3vw, 1.95rem);
    line-height: 1.2;
    color: var(--text-strong);
}

.auth-info p { margin: 0 0 14px; color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

.auth-form-wrap { padding: clamp(28px, 4vw, 42px); }

.auth-links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: var(--line-soft);
}

.auth-points {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
    display: grid;
    gap: 9px;
}

.auth-points li {
    position: relative;
    padding-left: 22px;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Social provider buttons */
.social-stack { display: grid; gap: 10px; }

.social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.social-btn:hover { border-color: rgba(203, 213, 225, 0.45); background: var(--tint); transform: translateY(-1px); }
.social-btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.social-btn.is-busy { opacity: 0.7; }

.last-used {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Signup progress steps */
.auth-steps {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line-soft);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.auth-steps .step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.35);
    transition: background 0.25s ease;
}

.auth-steps li.is-active { color: var(--accent); border-color: var(--accent); }
.auth-steps li.is-active .step-dot { background: var(--accent); }
.auth-steps li.is-done { color: var(--text-soft); border-color: var(--accent-line); }
.auth-steps li.is-done .step-dot { background: var(--accent-2); }

/* Resume / verification step card */
.auth-resume {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid var(--accent-line);
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
}

.auth-resume[hidden] { display: none; }
.auth-resume .resume-icon { font-size: 1.4rem; line-height: 1; margin-top: 2px; }
.auth-resume strong { display: block; color: var(--text-strong); margin-bottom: 4px; }
.auth-resume p { margin: 0 0 12px; color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; }
.auth-resume b { color: var(--text); }
.resume-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.resume-phone {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.resume-phone select,
.resume-phone input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    color: var(--text);
    padding: 9px 10px;
    font: inherit;
    font-size: 0.88rem;
}

.resume-phone select option { background: var(--surface-2); }

/* Phone field with country picker */
.phone-row {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
}

.phone-row select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    color: var(--text);
    padding: 11px 10px;
    font: inherit;
    font-size: 0.9rem;
}

.phone-row select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14); }
.phone-row select option { background: var(--surface-2); color: var(--text); }

.field-hint { color: var(--muted); font-size: 0.78rem; font-weight: 400; }

/* Password show/hide + caps lock */
.field-with-eye { position: relative; }

.field-eye {
    position: absolute;
    right: 10px;
    bottom: 9px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.field-eye:hover { color: var(--text); background: var(--tint); }
.field-eye.is-on { color: var(--accent); }
.field-eye svg { width: 17px; height: 17px; }

.caps-hint { color: var(--warning); font-size: 0.76rem; font-weight: 600; }

/* Password strength meter */
.pw-meter { display: none; }
.pw-meter.is-visible { display: grid; gap: 10px; margin-top: -6px; }

.pw-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.pw-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--danger); transition: width 0.25s ease, background-color 0.25s ease; }
.pw-bar[data-level="medium"] span { background: var(--warning); }
.pw-bar[data-level="strong"] span { background: var(--success); }

.pw-rules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 14px;
}

.pw-rules li { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 0.78rem; }
.pw-rules .pw-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(148, 163, 184, 0.4); flex-shrink: 0; transition: background 0.2s ease; }
.pw-rules li.is-ok { color: var(--text-soft); }
.pw-rules li.is-ok .pw-dot { background: var(--success); }

.auth-row-between { display: flex; align-items: center; justify-content: space-between; }
.auth-minor-link { color: var(--muted); font-size: 0.84rem; }
.auth-minor-link:hover { color: var(--accent); }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal-card {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-2);
    padding: 28px;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal.is-open .modal-overlay { opacity: 1; }
.modal.is-open .modal-card { opacity: 1; transform: translateY(0) scale(1); }

.modal-card h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.2rem; color: var(--text-strong); }
.modal-sub { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }
.modal-sub b { color: var(--text); }
.modal-foot { margin: 16px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.modal-actions { display: flex; justify-content: center; margin-top: 16px; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.modal-close:hover { color: var(--danger); border-color: rgba(248, 113, 113, 0.5); }

/* OTP boxes */
.otp-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }

.otp-boxes input {
    width: 100%;
    aspect-ratio: 0.86;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
}

.otp-boxes input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

/* Toasts */
.toast-host {
    position: fixed;
    top: calc(var(--header-h) + 14px);
    right: 18px;
    z-index: 9900;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.5;
    box-shadow: var(--shadow-1);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-in { opacity: 1; transform: translateX(0); }
.toast--success { border-color: rgba(52, 211, 153, 0.5); background: #0a231c; color: #a7f3d0; }
.toast--error { border-color: rgba(248, 113, 113, 0.5); background: #2a1215; color: #fecaca; }

@media (max-width: 900px) {
    .auth-panel { grid-template-columns: 1fr; }
    .auth-info { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 560px) {
    .phone-row, .resume-phone { grid-template-columns: 1fr; }
    .otp-boxes { gap: 6px; }
    .auth-steps li { font-size: 0.68rem; gap: 5px; }
}

/* ==========================================================================
   App pages (dashboard / admin)
   ========================================================================== */

.app-shell {
    padding: clamp(28px, 4vw, 48px) 0 56px;
    display: grid;
    gap: 20px;
}

.app-header {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(520px 200px at 95% -20%, rgba(45, 212, 191, 0.08), transparent 70%),
        var(--surface);
    padding: clamp(22px, 3vw, 32px);
}

.app-header h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    color: var(--text-strong);
}

.app-header p { margin: 0; color: var(--muted); max-width: 760px; }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    padding: 16px;
}

.metric strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-strong);
    margin-bottom: 3px;
}

.metric span {
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-grid--wide { grid-template-columns: 1.25fr 1fr; }

.panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 22px;
}

.panel h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-strong);
}

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.inline-form input,
.inline-form select {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--tint);
    color: var(--text);
    padding: 7px 10px;
    font: inherit;
    font-size: 0.86rem;
}

.inline-form input:focus,
.inline-form select:focus { outline: none; border-color: var(--accent); }

.inline-form select option { background: var(--surface-2); }

.notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    max-height: 380px;
    overflow: auto;
}

.notification-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--tint);
    padding: 13px 15px;
    display: grid;
    gap: 7px;
}

.notification-item.unread { border-left: 3px solid var(--accent); }

.notification-title { margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--text-strong); }
.notification-msg { margin: 0; color: var(--text-soft); font-size: 0.9rem; line-height: 1.55; }
.notification-meta, .notification-item time { color: var(--muted); font-size: 0.76rem; }

.ai-output {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: #070b13;
    white-space: pre-wrap;
    max-height: 280px;
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-soft);
}

.ai-output.success { border-color: rgba(52, 211, 153, 0.5); }
.ai-output.error { border-color: rgba(248, 113, 113, 0.55); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: auto;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-raised);
}

.footer-grid {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: clamp(48px, 6vw, 72px) 0 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 48px);
}

.footer-brand .brand { height: auto; margin-bottom: 18px; }
.footer-brand .brand-lockup { height: 40px; }

.footer-brand p { color: var(--muted); line-height: 1.7; margin: 0 0 18px; font-size: 0.93rem; max-width: 320px; }

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact-line svg { color: var(--accent); flex-shrink: 0; }
.footer-contact-line a:hover { color: var(--accent); }

.footer h4 {
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 18px;
}

.footer-links a {
    display: block;
    color: var(--muted);
    margin-bottom: 11px;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-address {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.footer-address strong { color: var(--text-soft); }

.footer-map {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    height: 150px;
}

.footer-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(0.92) contrast(1.1) hue-rotate(180deg);
}

.footer-bottom {
    border-top: 1px solid var(--line-soft);
}

.footer-bottom-inner {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 500;
}

.footer-status .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
}

/* ==========================================================================
   Misc / motion
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .page-main { width: calc(100% - 32px); }
    .container { width: calc(100% - 32px); }
    .container--narrow { width: calc(100% - 32px); }

    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .svc-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .flow-strip { grid-template-columns: repeat(2, 1fr); }
    .flow-node:nth-child(2)::after { display: none; }

    .app-grid, .app-grid--wide { grid-template-columns: 1fr; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

@media (max-width: 680px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .flow-strip { grid-template-columns: 1fr; }
    .flow-node::after { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Technology ticker (scrolling marquee)
   Rendered before the footer on content/service pages via tech_ticker.php.
   The item list is duplicated in markup; the track scrolls by exactly half
   its width (-50%) for a seamless loop. Per-pill margin (not flex gap) keeps
   the two halves tiling perfectly so there is no jump at the seam.
   ========================================================================== */

.tech-ticker {
    padding: clamp(26px, 4vw, 42px) 0;
    background: var(--bg-raised);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    overflow: hidden;
}

.tech-ticker__head { margin-bottom: 18px; }

.tech-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-tech);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.tech-ticker__label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent-line);
}

.tech-ticker__viewport {
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.tech-ticker__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: tech-marquee 46s linear infinite;
    will-change: transform;
}

.tech-ticker:hover .tech-ticker__track,
.tech-ticker:focus-within .tech-ticker__track {
    animation-play-state: paused;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-right: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
}

.tech-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

@keyframes tech-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    /* No scroll: wrap the pills into a static, fully-readable cluster. */
    .tech-ticker__track { flex-wrap: wrap; width: auto; row-gap: 12px; }
    .tech-ticker__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ==========================================================================
   Service detail — hero image, showcase slider, feature, FAQ
   ========================================================================== */

/* Hero side-panel image */
.svc-side-media {
    position: relative;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.svc-side-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-side-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 14, 22, 0.88), transparent 62%);
}

.svc-side-badge {
    position: absolute;
    left: 12px;
    bottom: 10px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Showcase slider (horizontal crossfade) */
.svc-slider { position: relative; }

.svc-slider__viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    min-height: 320px;
}

.svc-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}

.svc-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.svc-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.svc-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 14, 22, 0.94) 0%, rgba(10, 14, 22, 0.62) 48%, rgba(10, 14, 22, 0.22) 100%);
}

.svc-slide__caption {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    max-width: 580px;
    padding: clamp(24px, 4vw, 56px);
}

.svc-slide__num {
    font-family: var(--font-tech);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    color: var(--accent);
}

.svc-slide__caption h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
    line-height: 1.25;
    color: var(--text);
}

.svc-slide__caption p {
    margin: 0;
    max-width: 480px;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.svc-slider__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

.svc-slider__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.svc-slider__nav:hover {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent);
}

.svc-slider__dots { display: flex; align-items: center; gap: 8px; }

.svc-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.svc-dot.is-active { width: 22px; background: var(--accent); }

/* Feature band (image + copy) */
.svc-feature { align-items: center; gap: clamp(28px, 4vw, 54px); }

/* Alternating layout: image on the right (media is first in source order). */
@media (min-width: 681px) {
    .svc-feature--reverse .svc-feature__media { order: 2; }
}

.svc-feature__media {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.svc-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.svc-feature__body .check-list { margin: 18px 0 24px; }

/* FAQ accordion (native <details>) */
.svc-faq { display: flex; flex-direction: column; gap: 12px; }

.svc-faq__item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.svc-faq__item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    font-weight: 600;
    color: var(--text);
}

.svc-faq__item summary::-webkit-details-marker { display: none; }

.svc-faq__chev { color: var(--text-soft); flex: 0 0 auto; transition: transform 0.25s ease; }

.svc-faq__item[open] .svc-faq__chev { transform: rotate(180deg); color: var(--accent); }

.svc-faq__a { padding: 0 20px 20px; color: var(--text-soft); line-height: 1.7; }

.svc-faq__a p { margin: 0; }

@media (max-width: 680px) {
    .svc-slider__viewport { aspect-ratio: 4 / 5; }
    .svc-slide::after {
        background: linear-gradient(to top, rgba(10, 14, 22, 0.95) 0%, rgba(10, 14, 22, 0.55) 58%, rgba(10, 14, 22, 0.3) 100%);
    }
    .svc-slide__caption { justify-content: flex-end; }
}

/* Home "How we work" banner image */
.hw-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-bottom: clamp(28px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 24 / 7;
    min-height: 200px;
}

.hw-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hw-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 22, 0.55), transparent 55%);
}

.hw-banner__tag {
    position: absolute;
    left: clamp(18px, 3vw, 30px);
    bottom: clamp(16px, 2.5vw, 24px);
    z-index: 1;
    font-family: var(--font-tech);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* Contact page: form/info side by side on desktop, stacked below tablet.
   (Was an inline grid-template-columns, which the responsive rule could not
   override, leaving the columns side by side and overflowing on mobile.) */
.contact-grid { grid-template-columns: 1.25fr 1fr; align-items: start; }

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Light theme — token swap + targeted overrides.
   Toggled by data-theme="light" on <html>. Contrast tuned for AA on light.
   Components that sit over dark imagery (home hero, sliders, media badges)
   stay dark with light text in BOTH themes.
   ========================================================================== */
:root[data-theme="light"] {
    --bg: #f4f6fa;
    --bg-raised: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef2f7;
    --line: rgba(15, 23, 42, 0.12);
    --line-soft: rgba(15, 23, 42, 0.07);
    --tint: rgba(15, 23, 42, 0.04);

    --text: #1e293b;
    --text-soft: #475569;
    --muted: #5b677a;
    --text-strong: #0f172a;

    --accent: #0f766e;
    --accent-strong: #115e59;
    --accent-soft: rgba(15, 118, 110, 0.1);
    --accent-line: rgba(15, 118, 110, 0.34);
    --accent-ink: #ffffff;
    --accent-2: #0d9488;

    --info: #0369a1;
    --success: #047857;
    --warning: #b45309;
    --danger: #b91c1c;

    --shadow-1: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-2: 0 22px 60px rgba(15, 23, 42, 0.14);
}

/* Sticky header: translucent light */
:root[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.82); }
:root[data-theme="light"] .topbar.is-scrolled { background: rgba(255, 255, 255, 0.92); }

/* Home hero is a dark video in both themes — keep its text light */
:root[data-theme="light"] .home-hero .display-title,
:root[data-theme="light"] .home-hero .stat-cell strong { color: #f8fafc; }
:root[data-theme="light"] .home-hero-sub,
:root[data-theme="light"] .home-hero .stat-cell span { color: #cbd5e1; }
:root[data-theme="light"] .home-hero .eyebrow { color: #5eead4; }

/* Slider captions / media badges sit over dark images — keep light text */
:root[data-theme="light"] .hero-slide__title,
:root[data-theme="light"] .svc-slide__caption h3 { color: #f8fafc; }
:root[data-theme="light"] .hero-slide__tag { color: #f1f5f9; }
:root[data-theme="light"] .hero-chip { color: #e2e8f0; }
:root[data-theme="light"] .svc-slide__caption p { color: #cbd5e1; }
:root[data-theme="light"] .hero-slide__link,
:root[data-theme="light"] .svc-slide__num,
:root[data-theme="light"] .svc-side-badge,
:root[data-theme="light"] .hw-banner__tag { color: #5eead4; }

/* Logo swap: white-text logo on dark, dark-text logo on light */
.brand-logo--light { display: none; }
:root[data-theme="light"] .brand-logo--dark { display: none; }
:root[data-theme="light"] .brand-logo--light { display: block; }

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--tint);
    color: var(--text-soft);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-line); }
.theme-toggle svg { width: 19px; height: 19px; }
/* Action-oriented: dark mode shows a sun (switch to light), light shows a moon. */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
