/* ==========================================================================
   YUKTVAM TECHNOLOGY — design system
   Deep navy / midnight blue / white, royal & electric blue accents.
   Premium through typography, spacing and hierarchy — not effects.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --navy-900: #060D19;   /* darkest (footer)            */
    --navy-800: #0A1322;   /* hero / dark sections        */
    --navy-700: #0E1A30;   /* panels on dark              */
    --navy-600: #14243E;

    --blue-700: #1D4ED8;   /* royal blue                  */
    --blue-600: #2563EB;
    --blue-500: #3B82F6;   /* electric accent (small use) */
    --blue-400: #60A5FA;

    --ink:        #101828; /* headings on light           */
    --ink-soft:   #344054;
    --text-muted: #475467; /* body on light               */
    --text-faint: #98A2B3;

    --line:        #E4EAF3;
    --line-strong: #D0DAE8;
    --bg-white:    #FFFFFF;
    --bg-soft:     #F6F8FB;

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;

    --container: 1160px;
    --radius: 14px;
    --shadow-panel: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -12px rgba(16, 24, 40, .18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 .5em;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-600); }

:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-soft { background: var(--bg-soft); }
.muted { color: var(--text-muted); }
.muted-dark { color: #9FB0C8; }

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--blue-700);
    margin: 0 0 18px;
}
.eyebrow-light { color: var(--blue-400); }

.lead { font-size: 1.125rem; line-height: 1.75; }

.rule {
    display: block;
    width: 44px;
    height: 2px;
    background: var(--blue-600);
    margin: 0 auto 36px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -64px;
    z-index: 200;
    background: var(--blue-700);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease,
                color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }

.btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--blue-700);
    color: #fff;
}
.btn-primary::before {                 /* sheen sweep on hover */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .30) 50%, transparent 65%);
    transform: translateX(-130%);
    transition: transform .65s ease;
    pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(130%); }
.btn-primary:hover {
    background: var(--blue-600);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(29, 78, 216, .55);
}

.btn-ghost {
    background: transparent;
    color: #EAF0F9;
    border-color: rgba(234, 240, 249, .28);
}
.btn-ghost:hover {
    color: #fff;
    border-color: var(--blue-400);
    background: rgba(59, 130, 246, .08);
}

.btn-light {
    background: #fff;
    color: var(--navy-800);
}
.btn-light:hover {
    color: var(--blue-700);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(9, 16, 30, .97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: rgba(96, 165, 250, .20);
    box-shadow: 0 12px 32px -18px rgba(0, 0, 0, .65);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark { flex: 0 0 auto; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #fff;
}
.brand-sub {
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .34em;
    color: #7CB3FC;
    margin-top: 2px;
}

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
    position: relative;
    color: #DEE6F2;
    font-size: .92rem;
    font-weight: 500;
    letter-spacing: .01em;
    transition: color .2s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    border-radius: 2px;
    background: var(--blue-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s cubic-bezier(.2, .6, .2, 1);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: #fff; }
.site-nav a.nav-cta { display: none; }
.site-nav a.nav-cta::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    background: var(--navy-800);
    color: #B9C6DA;
    overflow: hidden;
}
.hero::before {                       /* faint architectural grid */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(900px 620px at 72% 30%, #000 0%, transparent 78%);
    mask-image: radial-gradient(900px 620px at 72% 30%, #000 0%, transparent 78%);
    pointer-events: none;
}
.hero::after {                        /* soft blue ambience */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(720px 420px at 82% 18%, rgba(37, 99, 235, .20), transparent 65%),
        radial-gradient(560px 380px at 8% 92%, rgba(29, 78, 216, .12), transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 48px;
    min-height: calc(100vh - 76px);
    max-height: 940px;
    padding-block: 96px 88px;
}

.hero-title {
    color: #fff;
    font-size: clamp(2.5rem, 5.6vw, 4.1rem);
    font-weight: 650;
    letter-spacing: -0.032em;
    line-height: 1.08;
    margin-bottom: 26px;
    text-wrap: balance;
}
.hero-title .accent { color: var(--blue-500); }

/* Staggered entrance on page load (pure CSS — works even without JS) */
@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: none; }
}
.hero .eyebrow   { animation: rise .8s cubic-bezier(.22, .61, .25, 1) .05s both; }
.hero-title      { animation: rise .8s cubic-bezier(.22, .61, .25, 1) .15s both; }
.hero-sub        { animation: rise .8s cubic-bezier(.22, .61, .25, 1) .25s both; }
.hero-actions    { animation: rise .8s cubic-bezier(.22, .61, .25, 1) .35s both; }
.hero-visual     { animation: rise .9s cubic-bezier(.22, .61, .25, 1) .30s both; }

.hero-sub {
    max-width: 520px;
    font-size: 1.11rem;
    line-height: 1.75;
    color: #A7B6CD;
    margin-bottom: 38px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img {
    width: min(100%, 520px);
    height: auto;
    animation: hero-breathe 9s ease-in-out infinite;
}
@keyframes hero-breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Emblem: slow orbiting rings + pulsing node (subtle, premium) */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes pulse-node {
    0%, 100% { transform: scale(1);    opacity: .95; }
    50%      { transform: scale(1.30); opacity: 1; }
}
.hero-visual .orbit-dotted,
.hero-visual .orbit-arcs {
    transform-box: fill-box;
    transform-origin: center;
}
.hero-visual .orbit-dotted { animation: spin 90s linear infinite; }
.hero-visual .orbit-arcs   { animation: spin-rev 60s linear infinite; }
.hero-visual .node-core,
.hero-visual .node-ring {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulse-node 4.5s ease-in-out infinite;
}
.hero-visual .node-ring { animation-delay: .12s; }

/* ==========================================================================
   Statement
   ========================================================================== */
.statement { padding-block: clamp(80px, 10vw, 128px) 0; background: #fff; }
.statement-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    letter-spacing: -0.028em;
    text-wrap: balance;
    margin-bottom: 18px;
}
.statement .lead { max-width: 640px; margin-inline: auto; }

/* ==========================================================================
   Section heads
   ========================================================================== */
.section-head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.65rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.section-head-sub { margin-top: 14px; }

/* ==========================================================================
   Services — editorial numbered rows
   ========================================================================== */
.services { background: #fff; }

.service-list { border-top: 1px solid var(--line); }
.service-row {
    display: grid;
    grid-template-columns: 84px 1fr 1.25fr;
    gap: 24px;
    align-items: baseline;
    padding: 30px 12px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid transparent;
    transition: background-color .25s ease, border-left-color .25s ease, padding-left .25s ease;
}
.service-row:hover {
    background: var(--bg-soft);
    border-left-color: var(--blue-500);
    padding-left: 22px;
}

.service-num {
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    transition: color .25s ease;
}
.service-row:hover .service-num { color: var(--blue-500); }

.service-title {
    position: relative;
    width: fit-content;
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0;
    transition: transform .25s ease;
}
.service-row:hover .service-title { transform: translateX(2px); }
.service-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1.5px;
    border-radius: 2px;
    background: var(--blue-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
.service-row:hover .service-title::after { transform: scaleX(1); }

.service-desc { margin: 0; font-size: .98rem; }

/* ==========================================================================
   Products — coming soon (intentional, dark)
   ========================================================================== */
.products {
    position: relative;
    background: var(--navy-800);
    color: #B9C6DA;
    padding-block: clamp(84px, 11vw, 136px);
    overflow: hidden;
}
.products::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(640px 320px at 50% 0%, rgba(37, 99, 235, .16), transparent 70%),
        radial-gradient(500px 300px at 50% 100%, rgba(29, 78, 216, .10), transparent 70%);
    pointer-events: none;
}

.pill {
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(96, 165, 250, .35);
    border-radius: 999px;
    color: var(--blue-400);
    background: rgba(37, 99, 235, .08);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.products-title {
    color: #fff;
    font-size: clamp(1.9rem, 3.8vw, 2.8rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin-bottom: 18px;
}
.products .lead { max-width: 600px; margin-inline: auto; }
.products .btn { margin-top: 26px; }

/* ==========================================================================
   Solutions — quiet progression
   ========================================================================== */
.solutions { background: var(--bg-soft); }

.steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 0;
}
.step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding-inline: 22px;
}
.step:first-child { padding-left: 0; }
.step + .step { border-left: 1px solid var(--line-strong); }

.step-num {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--blue-500);
    font-variant-numeric: tabular-nums;
}
.step-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    transition: color .25s ease;
}
.step:hover .step-name { color: var(--blue-700); }

/* ==========================================================================
   Process — clean grid
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.stage {
    position: relative;
    background: #fff;
    padding: 34px 30px 38px;
    min-height: 190px;
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--blue-500);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}
.stage:hover {
    background: #F9FBFE;
    transform: translateY(-4px);
    box-shadow: 0 16px 34px -20px rgba(16, 24, 40, .30);
    z-index: 1;
}
.stage:hover::before { transform: scaleX(1); }

.stage-num {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .1em;
    color: var(--blue-500);
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
}
.stage-title { font-size: 1.12rem; margin-bottom: 8px; }
.stage-desc { margin: 0; font-size: .94rem; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.about-head { position: sticky; top: 110px; }
.about-head h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.6rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.about-body .lead { color: var(--ink-soft); }

.values {
    margin-top: 34px;
    border-top: 1px solid var(--line);
}
.values li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    color: var(--ink-soft);
    font-size: .98rem;
}
.values li::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    background: var(--blue-500);
    border-radius: 2px;
    transform: rotate(45deg);
}

/* ==========================================================================
   Vision — emotional core
   ========================================================================== */
.vision {
    position: relative;
    background: var(--navy-800);
    color: #B9C6DA;
    padding-block: clamp(96px, 13vw, 160px);
    overflow: hidden;
}
.vision::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(760px 420px at 50% 120%, rgba(37, 99, 235, .22), transparent 68%),
        radial-gradient(520px 300px at 50% -20%, rgba(29, 78, 216, .14), transparent 70%);
    pointer-events: none;
}
.vision .container { position: relative; }

.vision-title {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 650;
    letter-spacing: -0.032em;
    line-height: 1.14;
    text-wrap: balance;
    margin-bottom: 22px;
}
.vision .lead { max-width: 620px; margin-inline: auto; }

/* ==========================================================================
   Contact CTA
   ========================================================================== */
.cta { background: #fff; }

.cta-panel {
    position: relative;
    background:
        radial-gradient(640px 300px at 85% 0%, rgba(37, 99, 235, .28), transparent 70%),
        linear-gradient(135deg, var(--navy-700), var(--navy-800) 55%, #0B1730);
    background-size: 170% 170%;
    border: 1px solid rgba(96, 165, 250, .18);
    border-radius: 22px;
    padding: clamp(52px, 7vw, 88px) clamp(28px, 6vw, 88px);
    text-align: center;
    overflow: hidden;
    animation: ambient-drift 16s ease-in-out infinite alternate;
}
@keyframes ambient-drift {
    from { background-position: 0% 0%; }
    to   { background-position: 100% 100%; }
}
.cta-panel h2 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin-bottom: 12px;
}
.cta-panel p {
    color: #A7B6CD;
    font-size: 1.15rem;
    margin-bottom: 34px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navy-900);
    color: #8CA0BC;
    padding-top: clamp(56px, 7vw, 84px);
    border-top: 1px solid rgba(96, 165, 250, .10);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: clamp(32px, 5vw, 64px);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.footer-brand .brand { margin-bottom: 18px; }
.footer-desc { max-width: 300px; margin: 0; font-size: .95rem; }

.footer-heading {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
    display: inline-block;
    color: #8CA0BC;
    font-size: .95rem;
    transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { color: #fff; transform: translateX(3px); }
.footer-muted { margin: 0; font-size: .95rem; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 22px;
    border-top: 1px solid rgba(140, 160, 188, .14);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   Sub-pages (services / solutions / about / process / contact / custom)
   ========================================================================== */
.page { padding: 150px 0 100px; }
.page-soft { background: var(--bg-soft); }

.page-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.page-title { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.03em; margin-bottom: 12px; text-wrap: balance; }
.page-intro { margin: 0; }
.page-meta { color: var(--text-faint); font-size: .9rem; margin-bottom: 44px; }

.page-body { max-width: 760px; }
.page-body h2 {
    font-size: 1.25rem;
    margin: 40px 0 12px;
    letter-spacing: -0.015em;
}
.page-body p, .page-body li { color: var(--text-muted); }
.page-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.page-body a { text-decoration: underline; text-underline-offset: 3px; }

.blocks h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.blocks ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.blocks li { color: var(--text-muted); }

.page-cta {
    margin-top: clamp(44px, 6vw, 64px);
    padding-top: 34px;
    border-top: 1px solid var(--line);
}
.page-cta p { color: var(--ink-soft); font-weight: 500; margin-bottom: 16px; }

.steps-page { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }

.about-page-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.ink { color: var(--ink-soft); }
.values-heading { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: start; }

.contact-sub { font-size: 1.05rem; margin-bottom: 20px; }
.contact-line { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.contact-label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }
.contact-value { font-size: 1.12rem; font-weight: 600; color: var(--blue-700); word-break: break-all; }
.contact-value:hover { color: var(--blue-600); }

.contact-note {
    margin-top: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 26px;
}
.contact-note h3 { font-size: .98rem; margin-bottom: 6px; }
.contact-note p { margin: 0; font-size: .95rem; }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-panel);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.form-field { display: block; margin-bottom: 18px; }
.form-field span {
    display: block;
    font-size: .86rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px;
}
.form-field input, .form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.form-field textarea { resize: vertical; }
.btn-block { width: 100%; }
.form-hint { text-align: center; font-size: .82rem; color: var(--text-faint); margin: 12px 0 0; }

.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.flash-ok, .flash-err {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: .95rem;
}
.flash-ok { background: #E8F6EE; color: #15663B; border: 1px solid #BCE5CD; }
.flash-err { background: #FDECEC; color: #9B2C2C; border: 1px solid #F5C6C6; }
.flash-err a { color: #9B2C2C; font-weight: 600; }

/* ---------- Active nav state (header handled above) ---------- */
.footer-col a[aria-current="page"] { color: #fff; }

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

/* 404 */
.error-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--navy-800);
    color: #B9C6DA;
    text-align: center;
    padding: 120px 24px 80px;
}
.error-code {
    font-size: clamp(4.5rem, 12vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
    margin-bottom: 12px;
}
.error-code span { color: var(--blue-500); }
.error-page h1 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.error-page p { margin-bottom: 30px; }

/* ==========================================================================
   Reveal-on-scroll (subtle) — only active when JS is available; content is
   always visible without JS, and motion is disabled for reduced-motion users
   ========================================================================== */
html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js [data-delay="1"] { transition-delay: .08s; }
html.js [data-delay="2"] { transition-delay: .16s; }
html.js [data-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 132px;
        padding-bottom: 72px;
        gap: 36px;
    }
    .hero-visual { display: none; }        /* mobile: type carries the hero */
    .about-grid { grid-template-columns: 1fr; }
    .about-head { position: static; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* --- Mobile navigation (its own layout, not a squeezed desktop) --- */
    .nav-toggle {
        display: inline-grid;
        place-items: center;
        width: 44px;
        height: 44px;
        padding: 0;
        background: transparent;
        border: 1px solid rgba(196, 208, 226, .25);
        border-radius: 10px;
        cursor: pointer;
    }
    .nav-toggle-box { display: grid; gap: 4px; }
    .nav-toggle-line {
        width: 18px;
        height: 2px;
        background: #EAF0F9;
        border-radius: 2px;
        transition: transform .25s ease, opacity .25s ease;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .header-cta { display: none; }

    .site-nav {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(8, 15, 28, .97);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(96, 165, 250, .14);
        padding: 10px 24px 22px;
        display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: 15px 4px;
        font-size: 1.02rem;
        border-bottom: 1px solid rgba(140, 160, 188, .12);
    }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a.nav-cta {
        display: inline-flex;
        margin-top: 14px;
        justify-content: center;
        border-bottom: 0;
    }

    /* --- Sections --- */
    .service-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 24px 14px;
    }
    .service-row:hover { padding-left: 18px; }
    .service-num { font-size: .82rem; }
    .service-title { font-size: 1.12rem; }

    .steps { flex-direction: column; align-items: flex-start; gap: 0; }
    .step { padding: 16px 0; width: 100%; }
    .step + .step { border-left: 0; border-top: 1px solid var(--line-strong); }
    .step:first-child { padding-top: 4px; }

    .process-grid { grid-template-columns: 1fr; }
    .stage { min-height: 0; padding: 28px 24px 30px; }

    .hero-actions .btn { width: 100%; }
    .cta-actions .btn { width: 100%; max-width: 340px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion: everything still works, just without movement ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-visual img,
    .hero-visual .orbit-dotted,
    .hero-visual .orbit-arcs,
    .hero-visual .node-core,
    .hero-visual .node-ring,
    .cta-panel,
    .hero .eyebrow, .hero-title, .hero-sub, .hero-actions, .hero-visual { animation: none; }
    .btn, .service-row, .service-title, .stage, .footer-col a { transition: none; }
    .btn:active { transform: none; }
}
