/* ============================================================
   ITCompany — Ion design system. Dark-first with a light theme.
   ============================================================ */

:root,
[data-theme="dark"] {
    --bg: #060A14;
    --bg-2: #0B1222;
    --surface: #101A2E;
    --surface-2: #16223A;
    --line: rgba(255,255,255,0.09);
    --line-2: rgba(255,255,255,0.14);
    --cyan: #22D3EE;
    --blue: #3B82F6;
    --pink: #F472B6;
    --accent-text: #5EA9FF;
    --text: #ECF4FF;
    --muted: #9FB3D1;
    --muted-2: #6B7E9E;
    --on-grad: #03060d;
    --grad: linear-gradient(90deg, #22D3EE, #3B82F6, #F472B6);
    --grad-br: linear-gradient(135deg, #22D3EE, #3B82F6 55%, #F472B6);
    --grad-text-fill: linear-gradient(90deg, #22D3EE, #3B82F6, #F472B6);
    --danger-text: #fb7185;
    --shadow: 0 10px 40px rgba(0,0,0,0.45);
    /* Cinematic redesign (2026-06-06) */
    --accent-solid: #2563EB;        /* primary button fill — white text = 5.17:1 (WCAG AA) */
    --accent-solid-hover: #1D4ED8;  /* primary button hover */
    --scrim-hero: linear-gradient(180deg, rgba(6,10,20,.42) 0%, rgba(6,10,20,.22) 32%, rgba(6,10,20,.94) 100%),
                  linear-gradient(90deg, rgba(6,10,20,.58), transparent 66%);
    --scrim-card: linear-gradient(180deg, rgba(6,10,20,.10), rgba(6,10,20,.86));
}

[data-theme="light"] {
    /* --accent-solid / --accent-solid-hover / --scrim-hero / --scrim-card intentionally
       inherit from :root — the hero/work/CTA bands stay dark photographic in BOTH themes. */
    --bg: #F7F9FC;
    --bg-2: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #EEF2F8;
    --line: rgba(10,20,40,0.10);
    --line-2: rgba(10,20,40,0.16);
    --cyan: #0E7490;
    --blue: #2563EB;
    --pink: #BE185D;
    --accent-text: #2563EB;
    --text: #0A1424;
    --muted: #4A5A75;
    --muted-2: #5E6E89;
    --on-grad: #03060d;
    --grad-text-fill: linear-gradient(90deg, #0E7490, #2563EB, #BE185D);
    --danger-text: #BE123C;
    --shadow: 0 10px 40px rgba(20,40,80,0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, .dsp { font-family: 'Sora', system-ui, sans-serif; letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }
a { color: inherit; text-decoration: none; }

/* layout helpers */
.ion-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ion-section { padding: 84px 0; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); }
.grad-text { background: var(--grad-text-fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* buttons */
.btn-ion { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; padding: 0.8rem 1.4rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-ion-primary { background: var(--accent-solid); color: #fff; box-shadow: 0 8px 30px rgba(59,130,246,0.35); }
.btn-ion-primary:hover { transform: translateY(-2px); background: var(--accent-solid-hover); box-shadow: 0 12px 40px rgba(37,99,235,0.5); }
.btn-ion-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ion-ghost:hover { background: rgba(127,127,127,0.08); }

/* surface card with gradient-border hover */
.ion-card { position: relative; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: 16px; transition: transform .22s, border-color .22s; }
.ion-card:hover { transform: translateY(-4px); border-color: var(--line-2); }

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

.ion-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.ion-logo-word { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); }
.ion-logo-word .dim { color: var(--muted); }
.ion-icon { display: inline-block; vertical-align: middle; }

/* header / nav */
.ion-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: var(--bg); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.ion-nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.ion-nav-links { display: flex; gap: 1.4rem; margin-left: 0.5rem; }
.ion-nav-link { position: relative; display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.ion-nav-link:hover { color: var(--text); }
/* active page: keep the current nav item lit until you navigate elsewhere */
.ion-nav-link.active { color: var(--text); }
.ion-nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent-text); }
.ion-nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.ion-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; }
.ion-icon-btn:hover { color: var(--text); }
/* theme toggle: show the icon for the theme you'd switch TO */
.theme-light { display: none; }
[data-theme="light"] .theme-dark { display: none; }
[data-theme="light"] .theme-light { display: inline-flex; }
/* mega menu (desktop) */
.ion-has-mega { position: relative; }
.ion-mega { position: absolute; top: 100%; left: 0; min-width: 560px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; padding: 1.2rem; margin-top: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .16s ease .12s; }
/* Invisible hover bridge spanning the gap between the "Services" trigger and the panel, so moving the
   mouse down onto a submenu item keeps the menu open instead of closing in the dead zone. */
.ion-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -0.7rem; height: 0.85rem; }
.ion-has-mega:hover .ion-mega, .ion-has-mega:focus-within .ion-mega { opacity: 1; pointer-events: auto; transition-delay: 0s; }
.ion-mega-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.6rem; }
.ion-mega-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.5rem; border-radius: 8px; font-size: 0.85rem; color: var(--muted); }
.ion-mega-item:hover { background: var(--surface-2); color: var(--text); }
/* mobile drawer */
.ion-burger { display: none; }
.ion-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: min(82vw, 340px); background: var(--bg-2); border-left: 1px solid var(--line); padding: 84px 1.4rem 2rem; display: flex; flex-direction: column; gap: 0.4rem; transform: translateX(100%); transition: transform .25s ease; z-index: 60; overflow-y: auto; }
.ion-drawer-link { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; padding: 0.5rem 0; color: var(--text); }
.ion-drawer-link.active { color: var(--accent-text); }
.ion-drawer-sub { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--muted); padding: 0.3rem 0 0.3rem 0.5rem; }
.ion-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 55; }
body.nav-open .ion-drawer { transform: translateX(0); }
body.nav-open .ion-scrim { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
    .ion-nav-links, .ion-cta-desktop { display: none; }
    .ion-burger { display: inline-flex; }
}

/* footer */
.ion-footer { border-top: 1px solid var(--line); margin-top: 84px; padding: 56px 0 28px; color: var(--muted); }
.ion-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.ion-footer-h { font-family: 'Sora', sans-serif; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 0.9rem; }
.ion-footer-grid a { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); padding: 0.22rem 0; }
.ion-footer-grid a:hover { color: var(--text); }
.ion-footer-tag { font-size: 0.92rem; max-width: 34ch; margin-top: 0.8rem; }
.ion-footer-social { display: flex; gap: 0.6rem; margin-top: 0.8rem; }
.ion-footer-bot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.4rem; font-size: 0.82rem; color: var(--muted-2); flex-wrap: wrap; gap: 0.5rem; }
@media (max-width: 760px) { .ion-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ion-footer-grid { grid-template-columns: 1fr; } }

/* hero + home — cinematic (2026-06-06) */
.ion-hero { position: relative; min-height: clamp(520px, 78vh, 720px); display: flex; flex-direction: column;
    justify-content: flex-end; padding: 96px 0 56px; overflow: hidden; color: var(--text); background-color: #060A14;
    --text: #ECF4FF; --muted: #9FB3D1; --cyan: #22D3EE; --line: rgba(255,255,255,0.10); --line-2: rgba(255,255,255,0.16);
    --grad-text-fill: linear-gradient(90deg, #22D3EE, #3B82F6, #F472B6); }
.ion-hero-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.ion-hero-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-hero); }
.ion-hero-inner { position: relative; z-index: 3; text-align: left; }
/* One drop-shadow on the whole heading, so every word — gradient or plain white — gets the SAME shadow.
   (filter works over background-clip:text, unlike text-shadow, so the gradient span needs no shadow of its own.) */
.ion-hero-h { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 20ch; margin: 1rem 0 1.1rem; font-weight: 700; filter: drop-shadow(0 1px 2px rgba(3,6,13,.42)) drop-shadow(0 0 9px rgba(3,6,13,.28)); }
.ion-hero-h .grad-text { --grad-text-fill: linear-gradient(90deg, #1FF0E5, #20D6EE, #3B9EFF); font-weight: 600; }
.ion-hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 56ch; margin: 0 0 1.8rem; }
.ion-hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.ion-scrollcue { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
    font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); animation: ionBob 2.4s ease-in-out infinite; }
.ion-sec-head { text-align: center; max-width: 60ch; margin: 0 auto 2.6rem; }
.ion-sec-title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-top: 0.5rem; }
.ion-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ion-svc { padding: 1.5rem; display: block; }
.ion-svc-ic { width: 44px; height: 44px; border-radius: 11px; background: rgba(34, 211, 238, 0.10); background: color-mix(in srgb, var(--cyan) 12%, transparent); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.ion-svc-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.ion-svc-desc { color: var(--muted); font-size: 0.9rem; }
.ion-ctaband { position: relative; overflow: hidden; border-radius: 24px; padding: 3.6rem 2rem; text-align: center; background-color: #0B1222;
    background-image:
        radial-gradient(60% 130% at 18% 0%, rgba(34,211,238,.34), transparent 60%),
        radial-gradient(60% 130% at 82% 100%, rgba(244,114,182,.30), transparent 60%),
        radial-gradient(92% 130% at 50% 50%, rgba(59,130,246,.30), transparent 62%),
        radial-gradient(100% 90% at 50% 50%, rgba(6,10,20,0.55), rgba(6,10,20,0.16) 68%, rgba(6,10,20,0) 100%),
        url('/media/aurora.webp');
    background-size: 220% 220%, 220% 220%, 220% 220%, cover, cover;
    background-position: 0% 50%;
    animation: ionMesh 18s ease-in-out infinite alternate;
    border: 1px solid rgba(255,255,255,0.14); color: var(--text); --text: #ECF4FF; --muted: #9FB3D1; }
.ion-ctaband h1, .ion-ctaband h2, .ion-ctaband h3, .ion-ctaband p:not(.muted) { color: var(--text); }
.ion-ctaband-h { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 0.6rem; }
.ion-ctaband .btn-ion { margin-top: 1rem; }
/* Hero + CTA now sit on brighter photos — a soft central scrim (above) plus this text-shadow keep the
   light text crisp without re-darkening the whole image. */
.ion-hero .eyebrow, .ion-hero-h, .ion-hero-sub { text-shadow: 0 1px 16px rgba(3,6,13,0.55); }
.ion-ctaband-h, .ion-ctaband p { text-shadow: 0 1px 16px rgba(3,6,13,0.5); }
@media (max-width: 880px) { .ion-svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ion-svc-grid { grid-template-columns: 1fr; } }

/* contact / forms */
.ion-contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.ion-contact-h { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 0.6rem 0 0.8rem; }
.ion-contact-email { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.ion-contact-email a { color: var(--accent-text); }
.ion-form { display: flex; flex-direction: column; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.ion-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ion-field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--muted); }
.ion-input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 0.7rem 0.85rem; color: var(--text); font-size: 0.95rem; font-family: inherit; width: 100%; }
.ion-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.25); }
.ion-textarea { resize: vertical; min-height: 120px; }
.ion-form .validation-message { color: var(--danger-text); font-size: 0.78rem; }
.ion-form-error { background: rgba(190,18,60,0.10); background: color-mix(in srgb, var(--danger-text) 12%, transparent); border: 1px solid var(--danger-text); color: var(--danger-text); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.85rem; }
.ion-form button[type=submit] { align-self: flex-start; margin-top: 0.4rem; }
.ion-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ion-form-success { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2.4rem; text-align: center; }
.ion-form-success-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--grad-br); color: var(--on-grad); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.ion-form-success h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* content blocks (rendered by BlockRenderer) */
.ion-blocks { max-width: 760px; }
.ion-block-heading { font-size: 1.4rem; margin: 2rem 0 0.8rem; }
.ion-block-p { color: var(--muted); margin: 0 0 1rem; line-height: 1.7; }
.ion-block-quote { border-left: 3px solid var(--cyan); padding: 0.4rem 0 0.4rem 1.1rem; margin: 1.4rem 0; font-size: 1.15rem; color: var(--text); font-style: italic; }
.ion-block-code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; overflow-x: auto; font-size: 0.85rem; margin: 1.2rem 0; }
.ion-block-img { max-width: 100%; border-radius: 12px; margin: 1.2rem 0; }
.ion-block-list { color: var(--muted); margin: 0 0 1.2rem; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ion-block-list li { position: relative; padding-left: 1.6rem; line-height: 1.6; }
.ion-block-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 2px; background: var(--grad-br); }
.ion-block-stat { display: flex; flex-direction: column; margin: 1rem 0; }
.ion-block-stat .n { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2rem; }
.ion-block-stat .l { color: var(--muted); font-size: 0.9rem; }
.ion-block-callout { background: color-mix(in srgb, var(--blue) 12%, transparent); border: 1px solid var(--line-2); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.2rem 0; }

/* services pages */
.ion-page-hero { padding: 64px 0 24px; }
.ion-page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0.5rem 0 0.6rem; max-width: 20ch; }
.ion-page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.ion-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 760px) { .ion-related { grid-template-columns: 1fr; } }

.grouplabel-wrap { margin: 2rem 0 1rem; }
.grouplabel { display: flex; align-items: center; gap: 0.7rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.grouplabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ion-svc-arrow { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--cyan); font-size: 0.82rem; font-weight: 600; margin-top: 0.9rem; }

/* 404 / not-found */
.ion-notfound { text-align: center; padding: 40px 0; }
.ion-notfound h1 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 0.6rem 0 0.6rem; }
.ion-notfound .muted { max-width: 46ch; margin: 0 auto; }
.ion-notfound-cta { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
@media (max-width: 820px) { .ion-contact { grid-template-columns: 1fr; gap: 1.8rem; } .ion-form-row { grid-template-columns: 1fr; } }

/* work / case studies */
.ion-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 880px) { .ion-work-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ion-work-grid { grid-template-columns: 1fr; } }
.ion-case { overflow: hidden; display: flex; flex-direction: column; }
.ion-case-thumb { height: 160px; position: relative; display: flex; align-items: flex-end; padding: 1rem; }
.ion-case-thumb .client { position: relative; z-index: 2; font-family: 'Sora', sans-serif; font-weight: 700; color: #fff; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.ion-case-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg1 { background: linear-gradient(135deg, #0e7490, #3b82f6); }
.cg2 { background: linear-gradient(135deg, #6d28d9, #db2777); }
.cg3 { background: linear-gradient(135deg, #0891b2, #7c3aed); }
.ion-case-body { padding: 1.1rem 1.2rem; }
.ion-case-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.ion-tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-2); border-radius: 999px; padding: 0.12rem 0.5rem; }
.ion-case-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.ion-case-metric { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; margin-top: 0.6rem; }
.ion-case-metric .lbl { font-family: 'Inter'; font-weight: 500; font-size: 0.82rem; color: var(--muted); margin-left: 0.4rem; }
.ion-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.ion-chip { font-size: 0.82rem; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.ion-chip:hover { color: var(--text); }
.ion-chip.active { background: var(--grad-br); color: var(--on-grad); border-color: transparent; font-weight: 600; }
.ion-case-cover { height: 260px; border-radius: 18px; position: relative; overflow: hidden; margin-bottom: 1.5rem; display: flex; align-items: flex-end; padding: 1.5rem; color: #fff; }
.ion-case-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ion-case-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55)); }

/* home: stats / process / testimonials */
.ion-stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(127,127,127,0.04), transparent); }
.ion-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.ion-stat { padding: 2.2rem 1rem; text-align: center; border-right: 1px solid var(--line); container-type: inline-size; }
.ion-stat:last-child { border-right: none; }
/* Size the value relative to its OWN column width (cqi = 1% of the cell's inline size) and keep it on one
   line, so a long text value like "End-to-end" always fits the column instead of wrapping and inflating the
   equal-height stat row. Numbers stay large on wide columns and scale down only where the column is narrow. */
.ion-stat .n { font-family: 'Sora', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 12.5cqi, 2.6rem); white-space: nowrap; }
.ion-stat .l { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.ion-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ion-step { padding: 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(127,127,127,0.03), transparent); }
.ion-step .num { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 0.9rem; width: 30px; height: 30px; border-radius: 8px; background: var(--grad-br); color: var(--on-grad); display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.ion-step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.ion-step p { color: var(--muted); font-size: 0.86rem; }
.ion-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ion-testi { padding: 1.5rem; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.ion-testi blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--text); }
.ion-testi figcaption { display: flex; flex-direction: column; }
.ion-testi .who { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.92rem; }
.ion-testi .role { color: var(--muted); font-size: 0.82rem; }
@media (max-width: 880px) { .ion-stats-grid, .ion-process, .ion-testi-grid { grid-template-columns: 1fr 1fr; } .ion-stat:nth-child(2) { border-right: none; } }
@media (max-width: 560px) { .ion-stats-grid, .ion-process, .ion-testi-grid { grid-template-columns: 1fr; } .ion-stat { border-right: none; border-bottom: 1px solid var(--line); } }
.ion-case-cover .ov { position: relative; z-index: 2; }
/* Case-study cover sits on a dark image overlay in both themes — keep its tags/text light. */
.ion-case-cover .ion-tag { color: #fff; border-color: rgba(255,255,255,0.5); }

/* insights / blog */
.ion-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
@media (max-width: 880px) { .ion-post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ion-post-grid { grid-template-columns: 1fr; } }
.ion-post { overflow: hidden; display: flex; flex-direction: column; }
.ion-post-thumb { height: 150px; position: relative; }
.ion-post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ion-post-body { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.ion-post-meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.72rem; color: var(--muted-2); }
.ion-cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan); }
.ion-post-title { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.ion-post-excerpt { color: var(--muted); font-size: 0.88rem; }
.ion-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.ion-pager .pg { font-size: 0.85rem; color: var(--muted); }
.ion-pager a.disabled { opacity: 0.4; pointer-events: none; }
.ion-article { max-width: 760px; margin: 0 auto; }
.ion-article-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; color: var(--muted); font-size: 0.85rem; margin: 0.6rem 0 1.4rem; }
.ion-article-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; }

/* careers */
.ion-jobs { display: flex; flex-direction: column; gap: 0.8rem; }
.ion-job { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; }
.ion-job-main h3 { font-size: 1.1rem; font-weight: 600; }
.ion-job-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--muted); font-size: 0.82rem; margin-top: 0.3rem; }
.ion-job-dept { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cyan); }
.ion-job-arrow { color: var(--cyan); flex-shrink: 0; }
.ion-apply { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; margin-top: 2rem; }
.ion-apply h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.ion-file { background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 0.7rem 0.85rem; color: var(--muted); font-size: 0.9rem; width: 100%; }
.ion-file::file-selector-button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 8px; padding: 0.3rem 0.7rem; margin-right: 0.7rem; cursor: pointer; font-family: inherit; }

/* about / team */
.ion-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.ion-value { padding: 1.4rem; }
.ion-value h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.ion-value p { color: var(--muted); font-size: 0.9rem; }
.ion-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ion-member { padding: 1.4rem; text-align: center; }
.ion-avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 0.9rem; display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--on-grad); background: var(--grad-br); }
.ion-member h3 { font-size: 1rem; }
.ion-member-role { color: var(--cyan); font-size: 0.82rem; font-weight: 600; margin-top: 0.15rem; }
.ion-member-bio { color: var(--muted); font-size: 0.84rem; margin-top: 0.6rem; }
@media (max-width: 880px) { .ion-team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ion-values, .ion-team { grid-template-columns: 1fr; } }

/* legal */
.ion-legal { max-width: 760px; margin: 0 auto; }
.ion-legal h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0.6rem 0 1rem; }
.ion-legal-body { color: var(--muted); line-height: 1.8; white-space: pre-line; margin-bottom: 1.4rem; }

/* admin login */
.ion-login { max-width: 440px; margin: 0 auto; }
.ion-login-card { padding: 2rem; }
.ion-login-head { text-align: center; margin-bottom: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.ion-login-head h1 { font-size: 1.6rem; margin-top: 0.5rem; }
.ion-login .ion-form { background: transparent; border: none; padding: 0; }

/* admin shell */
.ion-admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.ion-admin-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 0; height: 100vh; }
.ion-admin-brand { display: block; }
.ion-admin-nav { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.ion-admin-nav a { padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.9rem; color: var(--muted); }
.ion-admin-nav a:hover { background: var(--surface); color: var(--text); }
.ion-admin-nav a.active { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--accent-text); }
.ion-admin-main { padding: 2rem; }
.ion-admin-view { float: right; font-size: 0.82rem; color: var(--muted); }
.ion-admin-head h1 { font-size: 1.8rem; }
.ion-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.ion-admin-stat { padding: 1.4rem; display: block; }
.ion-admin-stat .n { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 2rem; }
.ion-admin-stat .l { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 760px) { .ion-admin { grid-template-columns: 1fr; } .ion-admin-side { position: static; height: auto; } }

/* admin pages editor */
.ion-page-group { margin-bottom: 2rem; overflow-x: auto; }
.ion-page-group-title { font-family: 'Sora', sans-serif; font-size: 1.1rem; text-transform: capitalize; margin-bottom: 0.6rem; color: var(--text); }
.ion-badge.visible { color: #34d399; border-color: #34d399; }
.ion-badge.hidden { color: var(--muted-2); border-color: var(--line-2); }

/* admin tables + status badges */
.ion-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ion-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.ion-table td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); color: var(--text); }
.ion-table tr:hover td { background: var(--surface); }
.ion-table a { color: var(--accent-text); }
.ion-empty { color: var(--muted); padding: 2rem 0; }
.ion-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.15rem 0.55rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.ion-badge.new { color: var(--cyan); border-color: var(--cyan); }
.ion-badge.won, .ion-badge.hired { color: #34d399; border-color: #34d399; }
.ion-badge.lost, .ion-badge.rejected { color: var(--danger-text); border-color: var(--danger-text); }
.ion-detail-grid { display: grid; grid-template-columns: 160px 1fr; gap: 0.5rem 1rem; margin: 1.2rem 0; font-size: 0.9rem; }
.ion-detail-grid dt { color: var(--muted-2); }
.ion-detail-grid dd { margin: 0; color: var(--text); }
.ion-status-form { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.ion-status-form .ion-input { width: auto; }
.ion-admin-back { color: var(--muted); font-size: 0.85rem; }

/* ---- Admin: settings + page editor (Plan 4C) ---- */
.ion-settings-form { max-width: 720px; }
.ion-fieldset { display: flex; flex-direction: column; gap: 1rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; }
.ion-fieldset legend { padding: 0 0.5rem; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--text); }
.ion-field-hint { font-size: 0.78rem; color: var(--muted-2); }
.ion-form-ok { background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 45%, transparent); color: var(--text); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; margin-bottom: 1.2rem; }
.ion-check { flex-direction: row; align-items: center; gap: 0.5rem; }
.ion-check .ion-input { width: auto; }
.ion-mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.85rem; line-height: 1.5; }

/* ---- Admin: ContentBlock editor (Plan 4E Slice 2) ---- */
.ion-blocks { display: flex; flex-direction: column; gap: 0.75rem; max-width: 720px; margin-top: 0.5rem; }
.ion-block-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    background: var(--surface);
    cursor: grab;
    transition: opacity 0.15s, border-color 0.15s;
}
.ion-block-card:active { cursor: grabbing; }
.ion-block-card.dragging { opacity: 0.5; border-color: var(--cyan); }
.ion-block-card:hover { border-color: var(--line-2); }
.ion-block-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.ion-block-handle {
    font-size: 1.1rem;
    color: var(--muted-2);
    cursor: grab;
    user-select: none;
    line-height: 1;
    padding: 0 0.1rem;
}
.ion-block-type-label {
    font-family: 'Sora', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    flex: 1;
}
.ion-block-toolbar {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}
.btn-ion-sm {
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 8px;
    min-height: unset;
    line-height: 1.4;
}
.ion-block-add-row {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
    .ion-block-toolbar { gap: 0.3rem; }
    .ion-block-add-row { flex-wrap: wrap; }
}

/* ---- Accessibility: visible keyboard focus (Plan 5) ---- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---- Section imagery (cover/banner images) ---- */
.ion-article-cover { margin: 1.4rem 0; border-radius: 16px; overflow: hidden; max-height: 360px; }
.ion-article-cover img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; display: block; }
.ion-service-banner { margin-top: 1.8rem; border-radius: 18px; overflow: hidden; max-height: 300px; border: 1px solid var(--line); }
.ion-service-banner img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; display: block; }
.ion-about-cover { margin-top: 1.8rem; border-radius: 18px; overflow: hidden; max-height: 340px; border: 1px solid var(--line); }
.ion-about-cover img { width: 100%; height: 100%; max-height: 340px; object-fit: cover; display: block; }
a:focus-visible, button:focus-visible, .btn-ion:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* FocusOnNavigate (Routes.razor, Selector="h1") gives the page heading tabindex="-1" and focuses it after
   each navigation for screen-reader/keyboard landing. That's a programmatic focus target, NOT an interactive
   control, so it must never show a visible ring — this was the blue border lingering around page headings. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

/* ============================================================
   Cinematic motion primitives (2026-06-06). All gated by the
   existing prefers-reduced-motion kill-switch (* { animation:none }).
   Reveal hiding is scoped to .ion-js so no-JS users see content.
   ============================================================ */

/* Ken Burns drift on hero/cover photos */
/* No will-change here: this class lands on the hero <img>, which is the LCP element —
   pre-promoting it to a layer can delay LCP. The slow 34s transform composites fine on its own. */
.ion-kenburns { animation: ionKen 34s ease-in-out infinite alternate; }
@keyframes ionKen { from { transform: scale(1.02); } to { transform: scale(1.10); } }

/* Aurora glow layer over photographic bands. z-index:2 = above the dark scrim (z1), below content (z3). */
.ion-aurora { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(40% 50% at 12% 18%, rgba(34,211,238,.22), transparent 60%),
    radial-gradient(40% 50% at 88% 10%, rgba(244,114,182,.16), transparent 60%),
    radial-gradient(60% 60% at 74% 104%, rgba(59,130,246,.26), transparent 60%);
  animation: ionDrift 20s ease-in-out infinite alternate; will-change: transform; }
@keyframes ionDrift { from { transform: translate(0,0); } to { transform: translate(-6px,-10px); } }

/* Marquee track */
@keyframes ionScrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* CTA mesh drift */
@keyframes ionMesh { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Scroll cue bob */
@keyframes ionBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 5px); } }

/* Scroll-reveal (only hidden when JS active + motion allowed) */
.ion-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.ion-js [data-reveal].in-view { opacity: 1; transform: none; }

/* trusted-by marquee */
.ion-marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 0.95rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ion-marquee-track { display: flex; gap: 3.2rem; width: max-content; padding-left: 3.2rem; animation: ionScrollX 40s linear infinite; }
.ion-marquee-track span { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.07em; color: var(--muted-2); white-space: nowrap; }
/* WCAG 2.2.2: let users stop the auto-scroll by hovering; reduced-motion shows one static set */
.ion-marquee-track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .ion-marquee-track { width: auto; }
    .ion-marquee-track span[aria-hidden] { display: none; }
}

/* services bento */
.ion-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 208px; gap: 1rem; }
.ion-tile { position: relative; overflow: hidden; border-radius: 16px; padding: 1.4rem; border: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); transition: transform .22s, border-color .22s; }
.ion-tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
/* Info (glass) tiles top-align their content so the icon reads from the top and never clips
   (image tiles keep the bottom-anchored label-over-photo look from .ion-tile). */
.ion-tile-glass { background: linear-gradient(180deg, var(--surface), var(--bg-2)); justify-content: flex-start; }
.ion-tile-img { background-color: #0B1222 /* fixed dark fallback: these carry light text over a photo in BOTH themes */; background-size: cover; background-position: center; color: #fff; }
.ion-tile-lg { grid-row: span 2; }
.ion-tile-wide { grid-column: span 2; }
.ion-tile-scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-card); }
.ion-tile-in { position: relative; z-index: 2; display: block; }
.ion-tile-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.1rem; display: block; margin-bottom: 0.28rem; }
.ion-tile-desc { color: var(--muted); font-size: 0.86rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ion-tile-img .ion-tile-desc { color: #d6e0f0; }
@media (max-width: 880px) { .ion-bento { grid-template-columns: 1fr 1fr; } .ion-tile-lg { grid-row: auto; grid-column: span 2; } .ion-tile-wide { grid-column: span 2; } }
@media (max-width: 560px) { .ion-bento { grid-template-columns: 1fr; grid-auto-rows: auto; } .ion-tile-lg, .ion-tile-wide { grid-column: auto; grid-row: auto; } .ion-tile { min-height: 180px; } }

/* parallax statement band */
.ion-pband { position: relative; min-height: 320px; display: flex; align-items: center; overflow: hidden;
    color: #ECF4FF; --text: #ECF4FF; --muted: #9FB3D1; --cyan: #22D3EE;
    --grad-text-fill: linear-gradient(90deg, #22D3EE, #3B82F6, #F472B6); padding: 64px 0; }
/* inset:-14% top/bottom = travel room for the parallax translateY(±6%) so the band edge never shows */
.ion-pband-img { position: absolute; inset: -14% 0; z-index: 0; background-color: #0B1222 /* fixed dark fallback: these carry light text over a photo in BOTH themes */; background-size: cover; background-position: center; }
.ion-pband-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,10,20,.9), rgba(6,10,20,.5) 60%, rgba(6,10,20,.68)); }
.ion-pband-in { position: relative; z-index: 2; }
.ion-pband-h { font-size: clamp(1.5rem, 2.6vw, 2.2rem); max-width: 24ch; }
.ion-pband-sub { color: var(--muted); margin-top: 0.8rem; max-width: 50ch; }
.ion-pband .eyebrow { color: #9be7f5; }

/* parallax drift — progressive enhancement; static (and harmless) where unsupported */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ion-pband-img { animation: ionPar linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes ionPar { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
  }
}

/* full-bleed featured work */
.ion-work-feat { position: relative; display: flex; align-items: flex-end; min-height: 420px; overflow: hidden; color: #fff; }
.ion-work-img { position: absolute; inset: 0; z-index: 0; background-color: #0B1222 /* fixed dark fallback: these carry light text over a photo in BOTH themes */; background-size: cover; background-position: center; transition: transform .8s ease; }
.ion-work-feat:hover .ion-work-img, .ion-case-sm:hover .ion-work-img { transform: scale(1.05); }
.ion-work-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.06) 38%, rgba(0,0,0,.8)); }
.ion-work-feat-in { position: relative; z-index: 2; display: block; width: 100%; padding-top: 2.2rem; padding-bottom: 2.2rem; }
.ion-work-feat-title { font-family: 'Sora', sans-serif; font-weight: 800; letter-spacing: -.03em; font-size: clamp(1.4rem, 2.4vw, 2rem); max-width: 24ch; display: block; margin-top: .4rem; }
.ion-work-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ion-case-sm { position: relative; overflow: hidden; border-radius: 18px; min-height: 240px; display: flex; align-items: flex-end; color: #fff; border: 1px solid var(--line); }
.ion-case-sm .ion-work-scrim { border-radius: 18px; }
.ion-case-sm-in { position: relative; z-index: 2; display: block; padding: 1.5rem; }
.ion-case-sm-title { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; display: block; margin-top: .3rem; }
.ion-work-feat .ion-tag, .ion-case-sm .ion-tag { color: #fff; border-color: rgba(255,255,255,.5); }
@media (max-width: 640px) { .ion-work-row { grid-template-columns: 1fr; } .ion-work-feat { min-height: 340px; } }

/* ============================================================
   Cinematic cascade — Phase 3 (2026-06-06). Brings the homepage
   treatment to interior pages. Mostly automatic via existing classes.
   All motion is covered by the existing prefers-reduced-motion kill-switch.
   ============================================================ */

/* Interior page-hero: a subtle branded aurora glow (no photo needed) */
.ion-page-hero { position: relative; overflow: hidden; }
.ion-page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(46% 95% at 12% -15%, rgba(34,211,238,.10), transparent 60%),
        radial-gradient(46% 95% at 88% -5%, rgba(244,114,182,.08), transparent 60%); }
.ion-page-hero > * { position: relative; z-index: 1; }

/* Image cards: hover-zoom on Work + Insights thumbnails — clip the zoom to the thumb itself
   (the card clips its outer edge, but not the thumb→body boundary, so the thumb must clip too) */
.ion-case-thumb, .ion-post-thumb { overflow: hidden; }
.ion-case-thumb img, .ion-post-thumb img { transition: transform .6s ease; will-change: transform; }
.ion-case:hover .ion-case-thumb img, .ion-post:hover .ion-post-thumb img { transform: scale(1.06); }

/* Detail covers: slow Ken Burns drift (their containers clip overflow) */
.ion-case-cover img, .ion-article-cover img, .ion-service-banner img { animation: ionKen 36s ease-in-out infinite alternate; }

/* Cinematic contact: aurora-glow panel behind the intro/left column */
.ion-contact-panel { position: relative; overflow: hidden; border-radius: 18px; padding: 1.8rem 1.6rem;
    border: 1px solid var(--line);
    background:
        radial-gradient(75% 90% at 8% 0%, rgba(34,211,238,.14), transparent 60%),
        radial-gradient(85% 90% at 100% 100%, rgba(244,114,182,.12), transparent 62%),
        linear-gradient(180deg, var(--surface), var(--bg-2)); }
