/* =====================================================================
   Omnit design system
   ---------------------------------------------------------------------
   1. Fonts & tokens
   2. Base & typography
   3. Layout primitives (container, section, section-header, grids)
   4. Buttons & links
   5. Cards, icon tiles, lists
   6. Home page (hero, about split)
   7. Sub-page hero
   8. Services / About / Contact
   9. Utility, reveal motion, reduced motion, Blazor defaults
   ===================================================================== */

/* ===== 1. Fonts & tokens ============================================ */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand palette */
    --navy-950: #061531;
    --navy-900: #091E3A;
    --navy-800: #0D2C54;
    --navy-700: #143A6B;
    --navy-600: #1A4A7A;
    --navy-500: #2A5C90;

    --teal-700: #00707B;
    --teal-600: #008A97;
    --teal-500: #00A5B5;
    --teal-400: #1FC0CF;
    --teal-300: #6EE0EA;
    --teal-200: #B3EEF3;
    --teal-100: #D9F5F8;
    --teal-50: #EEFAFB;

    --ink-900: #0F172A;
    --ink-800: #1E293B;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748B;
    --ink-400: #94A3B8;
    --ink-300: #CBD5E1;
    --ink-200: #E2E8F0;
    --ink-100: #F1F5F9;

    --surface: #FFFFFF;
    --surface-alt: #F6F8FB;
    --surface-tint: #F2F9FA;
    --line: rgba(13, 44, 84, 0.10);
    --line-strong: rgba(13, 44, 84, 0.18);

    /* Legacy aliases kept for scoped component CSS */
    --omnit-navy: var(--navy-800);
    --omnit-navy-dark: var(--navy-900);
    --omnit-navy-light: var(--navy-600);
    --omnit-teal: var(--teal-500);
    --omnit-teal-dark: var(--teal-600);
    --omnit-teal-light: var(--teal-100);
    --omnit-gray-light: var(--surface-alt);
    --omnit-gray: var(--ink-500);
    --omnit-gray-dark: var(--ink-700);
    --omnit-white: #FFFFFF;
    --omnit-text: var(--ink-800);
    --omnit-text-muted: var(--ink-500);
    --omnit-border: var(--line);
    --omnit-radius: var(--radius-md);

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Elevation */
    --shadow-xs: 0 1px 2px rgba(13, 44, 84, 0.06);
    --shadow-sm: 0 1px 2px rgba(13, 44, 84, 0.05), 0 4px 12px rgba(13, 44, 84, 0.06);
    --shadow-md: 0 2px 4px rgba(13, 44, 84, 0.05), 0 12px 32px rgba(13, 44, 84, 0.10);
    --shadow-lg: 0 4px 8px rgba(13, 44, 84, 0.06), 0 24px 60px rgba(13, 44, 84, 0.16);
    --shadow-teal: 0 8px 24px rgba(0, 165, 181, 0.28);
    --omnit-shadow: var(--shadow-sm);
    --omnit-shadow-lg: var(--shadow-md);

    /* Spacing & sizing */
    --nav-height: 72px;
    --container: 1200px;
    --container-narrow: 760px;
    --gutter: clamp(1.1rem, 4vw, 2rem);
    --section-y: clamp(4rem, 9vw, 7rem);
    --section-y-sm: clamp(3rem, 6vw, 4.5rem);

    /* Motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur: 0.25s;

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(0, 165, 181, 0.35);

    color-scheme: light;
}

/* ===== 2. Base & typography ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--ink-800);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: "cv11", "ss01", "calt";
}

h1, h2, h3, h4, h5, h6 {
    color: var(--navy-800);
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); line-height: 1.08; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; letter-spacing: -0.01em; }

p {
    margin: 0 0 1em;
    text-wrap: pretty;
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--teal-600);
    text-decoration: none;
    text-underline-offset: 0.18em;
    transition: color var(--dur);
}

a:hover {
    color: var(--teal-700);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 4px;
}

::selection {
    background: var(--teal-200);
    color: var(--navy-900);
}

strong {
    font-weight: 600;
}

/* ===== 3. Layout primitives ========================================= */

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-y) 0;
    position: relative;
}

.section-sm {
    padding: var(--section-y-sm) 0;
}

.section-alt {
    background: var(--surface-alt);
}

.section-tint {
    background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface-alt) 100%);
}

.section-dark {
    background: var(--navy-900);
    color: rgba(255, 255, 255, 0.82);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: #fff;
}

.section-divider {
    border-top: 1px solid var(--line);
}

.text-center {
    text-align: center;
}

/* Section header: eyebrow + title + lede */
.section-header {
    max-width: 720px;
    margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
}

.section-header.is-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-header .section-title {
    margin-bottom: 1rem;
}

.section-header .section-text {
    margin: 0;
}

.section-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.024em;
    line-height: 1.12;
}

.section-text {
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    color: var(--ink-600);
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.section-header.is-centered .section-text,
.section-text.is-centered {
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-600);
    margin-bottom: 1.1rem;
}

.eyebrow::before {
    content: "";
    width: 1.5rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.7;
}

.section-header.is-centered .eyebrow::before,
.eyebrow.is-plain::before {
    display: none;
}

.section-dark .eyebrow {
    color: var(--teal-300);
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.section-actions.is-centered {
    justify-content: center;
}

/* Generic grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Split layout (text + aside) */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.split.is-reversed > :first-child {
    order: 2;
}

.split.is-stretch {
    align-items: stretch;
}

@media (max-width: 900px) {
    .split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .split.is-reversed > :first-child {
        order: 0;
    }
}

/* ===== 4. Buttons & links =========================================== */

.btn {
    --btn-bg: var(--teal-500);
    --btn-fg: #fff;
    --btn-border: var(--teal-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    letter-spacing: -0.005em;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1.5px solid var(--btn-border);
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    min-height: 46px;
    transition: background var(--dur) var(--ease-out), color var(--dur), border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
    box-shadow: var(--focus-ring);
}

.btn svg {
    width: 1.05em;
    height: 1.05em;
    flex: none;
    transition: transform var(--dur) var(--ease-out);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    --btn-bg: var(--teal-500);
    --btn-border: var(--teal-500);
    box-shadow: 0 1px 2px rgba(0, 138, 151, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    --btn-bg: var(--teal-600);
    --btn-border: var(--teal-600);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-teal);
}

.btn-navy {
    --btn-bg: var(--navy-800);
    --btn-border: var(--navy-800);
}

.btn-navy:hover {
    --btn-bg: var(--navy-700);
    --btn-border: var(--navy-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 44, 84, 0.25);
}

.btn-outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy-800);
    --btn-border: var(--line-strong);
}

.btn-outline:hover {
    --btn-bg: var(--surface-alt);
    --btn-border: var(--navy-800);
    color: var(--navy-800);
    transform: translateY(-1px);
}

.btn-white {
    --btn-bg: #fff;
    --btn-fg: var(--navy-800);
    --btn-border: #fff;
}

.btn-white:hover {
    --btn-bg: var(--teal-50);
    --btn-border: var(--teal-50);
    color: var(--navy-900);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
    --btn-bg: rgba(255, 255, 255, 0.06);
    --btn-fg: #fff;
    --btn-border: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    --btn-bg: rgba(255, 255, 255, 0.12);
    --btn-border: rgba(255, 255, 255, 0.6);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
    min-height: 38px;
}

.btn-lg {
    padding: 0.95rem 1.85rem;
    font-size: 1.02rem;
    min-height: 52px;
}

.btn-block {
    width: 100%;
}

/* Inline text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--teal-600);
}

.link-arrow svg {
    width: 1em;
    height: 1em;
    transition: transform var(--dur) var(--ease-out);
}

.link-arrow:hover svg {
    transform: translateX(3px);
}

/* ===== 5. Cards, icon tiles, lists ================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: left;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 165, 181, 0.35);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--ink-600);
    font-size: 0.97rem;
    line-height: 1.7;
}

.card-icon,
.icon-tile {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--teal-50);
    border: 1px solid rgba(0, 165, 181, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: var(--teal-600);
    flex: none;
}

.card-icon svg,
.icon-tile svg {
    width: 26px;
    height: 26px;
}

.icon-tile.is-navy {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
}

.icon-tile.is-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--teal-300);
}

.card-link {
    margin-top: auto;
    padding-top: 1.25rem;
}

/* Value rows (icon + text) */
.value-list {
    display: grid;
    gap: 1.25rem;
}

.value-row {
    display: flex;
    gap: 1.1rem;
    padding: 1.25rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: border-color var(--dur), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.value-row:hover {
    border-color: rgba(0, 165, 181, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.value-row .icon-tile {
    width: 44px;
    height: 44px;
    margin: 0;
}

.value-row .icon-tile svg {
    width: 22px;
    height: 22px;
}

.value-row h3 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.value-row p {
    margin: 0;
    color: var(--ink-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Facts / key-value list */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.fact {
    background: var(--surface);
    padding: 1.35rem 1.5rem;
}

.fact-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-500);
    margin-bottom: 0.35rem;
}

.fact-value {
    display: block;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.4;
}

/* ===== 6. Home page ================================================== */

/* Dark hero surface with mesh + dot grid */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--navy-900);
    padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 70% at 85% 20%, rgba(0, 165, 181, 0.30) 0%, rgba(0, 165, 181, 0) 60%),
        radial-gradient(50% 60% at 10% 90%, rgba(42, 92, 144, 0.55) 0%, rgba(42, 92, 144, 0) 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1.2px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 50% 40%, #000 20%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.55rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(6px);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-400);
    box-shadow: 0 0 0 4px rgba(31, 192, 207, 0.22);
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5.6vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.032em;
    margin-bottom: 1.25rem;
}

.hero h1 .accent {
    color: var(--teal-300);
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Hero illustration: integration flow */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-visual svg {
    width: 100%;
    max-width: 580px;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.flow-line {
    stroke-dasharray: 6 7;
    animation: flow-dash 1.6s linear infinite;
}

@keyframes flow-dash {
    to { stroke-dashoffset: -26; }
}

.hero-glow {
    animation: hero-glow 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes hero-glow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.06); }
}

.hero-float {
    animation: hero-float 3.2s ease-in-out infinite;
}

@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Staircase: each step rises into place on load, bottom to top */
.hero-step {
    animation: hero-step-in 0.7s var(--ease-out) both;
    animation-delay: var(--step-delay, 0ms);
}

.hero-step text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: -0.01em;
}

@keyframes hero-step-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hero-actions .btn {
        flex: 1 1 100%;
    }
}

/* CTA panel */
.cta-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-700) 100%);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(50% 80% at 100% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%),
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.2px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
    mask-image: linear-gradient(180deg, #000, transparent 90%);
}

.cta-panel h2 {
    color: #fff;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    margin-bottom: 0.85rem;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    max-width: 560px;
    margin: 0 auto 1.85rem;
}

.cta-panel .btn-white {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* Legacy CTA section kept for compatibility */
.section-cta {
    background: var(--surface);
}

/* ===== 7. Sub-page hero ============================================== */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, var(--surface-tint) 0%, var(--surface) 100%);
    border-bottom: 1px solid var(--line);
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(13, 44, 84, 0.14) 1px, transparent 1.2px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 100% at 90% 0%, #000, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 100% at 90% 0%, #000, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.page-hero-content {
    max-width: 760px;
}

.page-hero h1 {
    color: var(--navy-800);
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--ink-600);
    line-height: 1.65;
    max-width: 640px;
}

/* ===== 8. Services / About / Contact ================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem 2rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur);
    overflow: hidden;
}

.service-item::after {
    content: attr(data-index);
    position: absolute;
    top: 1.1rem;
    right: 1.4rem;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--navy-800);
    opacity: 0.05;
    line-height: 1;
    pointer-events: none;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 165, 181, 0.35);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--navy-800);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex: none;
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
}

.service-content p {
    color: var(--ink-600);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 800px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Mission quote block */
.mission {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.75rem);
    background: var(--navy-900);
    color: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    isolation: isolate;
}

.mission::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(60% 80% at 100% 0%, rgba(0, 165, 181, 0.35) 0%, transparent 60%);
}

.mission .eyebrow {
    color: var(--teal-300);
}

.mission-quote {
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    text-wrap: balance;
}

.mission-quote::before {
    content: "“";
    display: block;
    font-size: 4rem;
    line-height: 0.6;
    color: var(--teal-300);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 1rem;
}

.contact-card {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-xs);
    transition: border-color var(--dur), box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.contact-card:hover {
    border-color: rgba(0, 165, 181, 0.35);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: var(--teal-50);
    border: 1px solid rgba(0, 165, 181, 0.16);
    color: var(--teal-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-body {
    min-width: 0;
}

.contact-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.contact-card p {
    color: var(--ink-600);
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.contact-card p:last-child {
    margin-bottom: 0;
}

.contact-card .btn {
    margin-top: 0.25rem;
}

.contact-form-wrapper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.contact-form-intro {
    color: var(--ink-500);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--navy-800);
    margin-bottom: 0.45rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: max(16px, 0.95rem);
    font-family: inherit;
    color: var(--ink-800);
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
    min-height: 48px;
    appearance: none;
}

.form-input::placeholder {
    color: var(--ink-400);
}

.form-input:hover {
    border-color: rgba(13, 44, 84, 0.32);
}

.form-input:focus {
    outline: none;
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(0, 165, 181, 0.14);
}

select.form-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--navy-800);
    font-size: 1.05rem;
    line-height: 1.6;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--teal-50);
    border: 1px solid rgba(0, 165, 181, 0.2);
    display: grid;
    place-items: center;
    color: var(--teal-600);
}

.form-success-icon svg {
    width: 30px;
    height: 30px;
}

.form-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

/* Honeypot field — invisible to humans, bots fill it in */
.form-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-submit {
    margin-top: 0.5rem;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--ink-500);
    text-align: center;
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-code {
    width: 128px;
    flex-shrink: 0;
}

.phone-number {
    flex: 1;
    min-width: 0;
}

.field-error {
    color: #991B1B;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .phone-input-group {
        flex-direction: column;
    }
    .phone-code {
        width: 100%;
    }
}

/* Content blocks (legacy) */
.content-block {
    max-width: 700px;
    margin: 0 auto;
}

.content-block p {
    color: var(--ink-700);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Not found / error */
.status-page {
    padding: clamp(5rem, 12vw, 9rem) 0;
    text-align: center;
}

.status-code {
    display: inline-block;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: linear-gradient(135deg, var(--navy-800), var(--teal-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.status-page .section-text {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
}

.status-page code {
    font-size: 0.85rem;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    color: var(--ink-700);
}

/* ===== 9. Utility, motion, Blazor defaults ========================== */

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll reveal: only active when site.js has marked the document */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

h1:focus {
    outline: none;
    box-shadow: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.invalid {
    outline: none;
    border-color: #DC2626;
}

.validation-message {
    color: #DC2626;
}

.blazor-error-boundary {
    background: #B32121;
    padding: 1rem 1.25rem;
    color: #fff;
    border-radius: var(--radius-sm);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
