/* ==========================================================================
   MVNETUS – styles
   1 Tokens · 2 Base · 3 Layout · 4 Header · 5 Hero · 6 Buttons & chips
   7 Cards · 8 Sections · 9 Blog · 10 Footer · 11 Motion · 12 Breakpoints
   Colours and sizes can be changed in section 1.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    --bg: #050914;
    --bg-2: #080e1d;
    --surface: rgba(255, 255, 255, .04);
    --surface-solid: #0c1426;
    --line: rgba(255, 255, 255, .09);
    --text: #eef3ff;
    --muted: #9fb0cf;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --ink: #04121a;
    --grad: linear-gradient(120deg, #22d3ee 0%, #6aa5ff 50%, #a78bfa 100%);
    --radius: 20px;
    --gutter: 16px;
    --header-h: 70px;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 1rem; line-height: 1.7; overflow-x: hidden;
}
/* faint engineering grid behind everything */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    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(ellipse at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 7.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8aeaff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 300; background: var(--cyan); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap-anywhere { overflow-wrap: anywhere; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(1200px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.narrow { width: min(760px, 100% - (var(--gutter) * 2)); margin-inline: auto; }
.section { position: relative; padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--cyan); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 58ch; }

.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: minmax(0, 1fr); }

/* 4. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, backdrop-filter .3s; }
.site-header.is-scrolled { background: rgba(5, 9, 20, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: .08em; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { color: var(--cyan); filter: drop-shadow(0 0 10px rgba(34, 211, 238, .55)); transition: transform .4s ease; }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.12); }

.primary-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.primary-nav a { position: relative; display: block; padding: 10px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .2s, background-color .2s; }
.primary-nav a:hover { color: var(--text); background: var(--surface); }
.primary-nav a.is-active { color: var(--text); background: rgba(34, 211, 238, .12); box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3); }
.primary-nav a.nav-cta { margin-left: 8px; color: var(--ink); background: var(--grad); box-shadow: none; }
.primary-nav a.nav-cta:hover { color: var(--ink); filter: brightness(1.1); }
.primary-nav a.nav-cta.is-active { box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); }

.nav-toggle { display: none; }

@media (max-width: 899px) {
    .js .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); }
    .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s ease, background-color .2s; }
    .nav-toggle-bar { position: relative; }
    .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bar::before { top: -6px; }
    .nav-toggle-bar::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

    .js .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: rgba(8, 14, 29, .98); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility 0s linear .25s; }
    .js .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .js .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 22px; gap: 4px; }
    .js .primary-nav a { padding: 15px 18px; border-radius: 14px; }
    .js .primary-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
    html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 10px; }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero { position: relative; padding: 40px 0 72px; isolation: isolate; overflow: hidden; }
.hero-compact { padding: 32px 0 64px; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .4; }
.aurora i:nth-child(1) { width: 380px; height: 380px; background: var(--cyan); top: -160px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 340px; height: 340px; background: var(--violet); top: 20%; right: -140px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { width: 260px; height: 260px; background: var(--blue); bottom: -140px; left: 30%; opacity: .25; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(50px, 40px) scale(1.15); } }

.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-copy .lead { margin-bottom: 1.8em; }
.hero-text h1 { max-width: 16ch; }

.hero-visual { position: relative; perspective: 1100px; padding: 18px 0 28px; }
.hv-frame { position: relative; margin: 0; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }
.hv-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(34, 211, 238, .35), 0 30px 60px -30px #000; }
.hv-frame::after { content: ""; position: absolute; inset: 0; border-radius: 28px; pointer-events: none; background: linear-gradient(135deg, rgba(34, 211, 238, .18), transparent 40%, rgba(139, 92, 246, .22)); mix-blend-mode: screen; }
.hv-frame.is-flat img { aspect-ratio: 3 / 2; }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(8, 14, 29, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px #000; font-size: .85rem; line-height: 1.3; animation: float 6s ease-in-out infinite; }
.float-card strong { display: block; font-size: .9rem; }
.float-card span { color: var(--muted); font-size: .78rem; }
.float-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: ping 2s infinite; flex: none; }
.float-card svg { color: var(--cyan); flex: none; }
.fc-1 { left: 8px; bottom: 0; }
.fc-2 { right: 8px; top: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero-media { margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -30px rgba(139, 92, 246, .35), 0 30px 60px -30px #000; }
.credit { margin-top: 10px; font-size: .74rem; color: var(--muted); }

/* 6. Buttons & chips ------------------------------------------------------------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font: 700 .98rem var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background-color .25s, border-color .25s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(34, 211, 238, .7); }
.btn-primary:hover { color: var(--ink); box-shadow: 0 18px 38px -12px rgba(34, 211, 238, .9); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { color: var(--text); border-color: var(--cyan); background: rgba(34, 211, 238, .08); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--muted); background: var(--surface); }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

/* 7. Cards ----------------------------------------------------------------- */
.card { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .16), transparent 45%); transition: opacity .35s; }
.card:hover { transform: translateY(-8px); border-color: rgba(34, 211, 238, .45); box-shadow: 0 30px 60px -30px rgba(34, 211, 238, .4); }
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { color: inherit; }

.icon-badge { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; flex: none; border-radius: 16px; color: var(--cyan); background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(139, 92, 246, .14)); border: 1px solid rgba(34, 211, 238, .3); transition: transform .35s ease; }
.card:hover .icon-badge { transform: scale(1.1) rotate(-6deg); }
.link-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--cyan); font-weight: 700; text-decoration: none; }
.link-more span { transition: transform .25s; }
.card:hover .link-more span, .link-more:hover span { transform: translateX(6px); }

.num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: var(--grad); color: var(--ink); font: 700 1.1rem var(--font-head); }

/* 8. Sections ---------------------------------------------------------------- */
.media { margin: 0; position: relative; }
.media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000; }
.media::before { content: ""; position: absolute; inset: 24px -14px -14px 24px; z-index: -1; border-radius: 28px; background: var(--grad); opacity: .22; filter: blur(2px); }

.timeline { list-style: none; position: relative; display: grid; gap: 16px; counter-reset: t; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); opacity: .5; }
.timeline li { counter-increment: t; position: relative; padding: 4px 0 4px 64px; color: var(--muted); }
.timeline li strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }
.timeline li::before { content: counter(t); position: absolute; left: 0; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--cyan); color: var(--cyan); font: 700 1rem var(--font-head); box-shadow: 0 0 20px rgba(34, 211, 238, .3); }

.cta-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 56px; padding: 32px 24px; border-radius: 28px; border: 1px solid rgba(34, 211, 238, .3); background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .16)); }
.cta-banner::before { content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: -80px; top: -120px; border-radius: 50%; background: var(--violet); filter: blur(90px); opacity: .35; }
.cta-banner h2 { font-size: clamp(1.4rem, 4.5vw, 2.1rem); margin-bottom: .3em; }
.cta-banner p { color: var(--muted); margin: 0; }
.section > .container > .cta-banner:first-child { margin-top: 0; }

.service-row { display: grid; gap: 28px; align-items: center; grid-template-columns: minmax(0, 1fr); scroll-margin-top: calc(var(--header-h) + 16px); }
.service-list { display: grid; gap: 20px; }
.service-media { display: grid; place-items: center; min-height: 220px; text-align: center; background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .22), transparent 55%), radial-gradient(circle at 80% 90%, rgba(139, 92, 246, .25), transparent 55%), var(--surface-solid); }
.service-media svg { width: 96px; height: 96px; color: var(--cyan); filter: drop-shadow(0 0 22px rgba(34, 211, 238, .55)); transition: transform .5s ease; }
.service-media:hover svg { transform: scale(1.1) rotate(-5deg); }
.service-media .label { display: block; margin-top: 14px; color: var(--muted); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.checklist { list-style: none; display: grid; gap: 10px; margin-top: 18px; color: var(--text); }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .4em; width: 7px; height: 12px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; background: var(--surface); transition: border-color .25s, background-color .25s; }
.faq details:hover, .faq details[open] { border-color: rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .05); }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--cyan); font-size: 1.5rem; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); }

.contact-card .icon-badge { margin-bottom: 16px; }
.contact-card p { font-size: 1.02rem; }

/* 9. Blog ------------------------------------------------------------------ */
.post-card { padding: 0; display: flex; flex-direction: column; }
.post-card-media { display: block; overflow: hidden; }
.post-card-media img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .7s ease; }
.post-card:hover .post-card-media img { transform: scale(1.07); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.post-card-body h3 a { color: var(--text); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--cyan); }
.post-card-body .link-more { margin-top: auto; }

.featured { display: grid; grid-template-columns: minmax(0, 1fr); margin-bottom: 20px; }
.featured .post-card-media img { aspect-ratio: 16 / 10; height: 100%; }
.featured .post-card-body { padding: 28px; justify-content: center; }
.featured h3 { font-size: clamp(1.4rem, 4vw, 2rem); }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.tag { display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .28); }
a.tag:hover { background: rgba(34, 211, 238, .2); }

.progress { position: fixed; left: 0; top: 0; z-index: 250; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); }

.post-hero { padding: 24px 0 8px; }
.post-hero h1 { margin-top: 18px; font-size: clamp(2rem, 6vw, 3.2rem); }
.post-hero-media { margin-top: 32px; }
.post-hero-media figure { margin: 0; }
.post-hero-media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000; }

.prose { padding-block: 40px 24px; font-size: 1.1rem; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.35rem, 4vw, 1.8rem); }
.prose p { color: #cfd9ee; }
.prose > p:first-child::first-letter { float: left; font: 700 3.6rem/.9 var(--font-head); padding: 6px 12px 0 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 28px; color: #cfd9ee; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.post-nav { display: grid; gap: 14px; padding-bottom: 56px; }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; transition: border-color .25s, transform .25s; }
.post-nav a:hover { border-color: var(--cyan); transform: translateY(-4px); color: var(--text); }
.post-nav small { display: block; margin-bottom: 4px; color: var(--cyan); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }

.error-code { font: 700 clamp(5rem, 22vw, 11rem)/1 var(--font-head); margin: 0 0 .1em; }

.tm-section {
  --tm-bg-1: #050914;
  --tm-bg-2: #081020;
  --tm-accent: #1f5bff;
  --tm-accent-soft: #5b8cff;

  position: relative;
  overflow: hidden;
  padding: clamp(70px, 10vw, 130px) 20px;
  background: linear-gradient(135deg, var(--tm-bg-1) 0%, var(--tm-bg-2) 50%, var(--tm-bg-1) 100%);
  font-family: "Open Sans", sans-serif;
  isolation: isolate;
}

.tm-section *,
.tm-section *::before,
.tm-section *::after {
  box-sizing: border-box;
}

/* Background effects */
.tm-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.tm-glow-1 {
  width: 420px;
  height: 420px;
  background: #0b3bff;
  top: -140px;
  left: -120px;
  animation: tm-float 14s ease-in-out infinite;
}
.tm-glow-2 {
  width: 380px;
  height: 380px;
  background: #0a63ff;
  bottom: -160px;
  right: -100px;
  opacity: 0.25;
  animation: tm-float 16s ease-in-out infinite reverse;
}
.tm-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

@keyframes tm-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 30px); }
}

/* Heading */
.tm-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tm-eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--tm-accent-soft);
  font-weight: 600;
}
.tm-title {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: clamp(0.15em, 1.6vw, 0.35em);
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}
.tm-divider {
  display: block;
  width: 70px;
  height: 3px;
  margin: 22px auto clamp(40px, 6vw, 70px);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--tm-accent), transparent);
}

/* Cards */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tm-card {
  position: relative;
  padding: 44px 20px 40px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.tm-card:nth-child(2) { transition-delay: 0.12s; }
.tm-card:nth-child(3) { transition-delay: 0.24s; }
.tm-card:nth-child(4) { transition-delay: 0.36s; }

.tm-section.tm-visible .tm-card {
  opacity: 1;
  transform: translateY(0);
}
.tm-section.tm-visible .tm-card:hover {
  transform: translateY(-8px);
  transition-delay: 0s;
  border-color: rgba(91, 140, 255, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(31, 91, 255, 0.2);
}
.tm-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  width: 160%;
  height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(31, 91, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.tm-icon {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tm-accent-soft);
  background: rgba(31, 91, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.3);
}
.tm-icon svg {
  width: 24px;
  height: 24px;
}

.tm-number {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-family: "Roboto Slab", serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: #fff;
}
.tm-number sup {
  margin: 2px 0 0 4px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.45em;
  font-weight: 600;
  color: var(--tm-accent);
  text-shadow: 0 0 14px rgba(31, 91, 255, 0.8);
}
.tm-label {
  position: relative;
  margin: 18px 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

/* Animated bottom bar */
.tm-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #0b3bff, var(--tm-accent-soft));
  box-shadow: 0 0 18px rgba(31, 91, 255, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s;
}
.tm-section.tm-visible .tm-bar {
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 1024px) {
  .tm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tm-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tm-card { padding: 36px 16px 34px; }
  .tm-eyebrow { letter-spacing: 0.25em; }
}

@media (prefers-reduced-motion: reduce) {
  .tm-glow, .tm-card, .tm-bar { animation: none; transition: none; }
  .tm-card { opacity: 1; transform: none; }
  .tm-bar { transform: scaleX(1); }
}

/* 10. Footer --------------------------------------------------------------- */
.site-footer { position: relative; background: #03060e; border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad); opacity: .6; }
.footer-grid { display: grid; gap: 36px; padding-block: 56px 36px; grid-template-columns: minmax(0, 1fr); }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 14px; }
.footer-title { margin-bottom: 16px; font: 700 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer li { color: var(--muted); overflow-wrap: anywhere; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .brand { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: .9rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
.footer-bottom .designer-credit a { color: var(--cyan); font-weight: 600; }
.footer-bottom .designer-credit a:hover { text-decoration: underline; }

.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(12, 20, 38, .9); color: var(--cyan); cursor: pointer; transition: transform .25s, border-color .25s; }
.back-to-top[hidden] { display: none; }
.back-to-top:hover { transform: translateY(-4px); border-color: var(--cyan); }

/* 11. Motion ------------------------------------------------------------------ */
/* Reveal uses the separate "translate" property so it never fights hover transforms. */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; translate: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; translate: none; }
    .card:hover, .btn:hover, .post-nav a:hover, .back-to-top:hover, .card:hover .icon-badge, .post-card:hover .post-card-media img { transform: none; }
    .hv-frame { transform: none !important; }
}

/* 12. Breakpoints (mobile first) ------------------------------------------------ */
@media (min-width: 400px) { :root { --gutter: 20px; } }

@media (min-width: 640px) {
    .section { padding: 88px 0; }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px; }
    .post-nav { grid-template-columns: 1fr 1fr; }
    .post-nav a[rel="next"] { text-align: right; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-1 { left: -10px; }
    .fc-2 { right: -10px; }
}

@media (min-width: 900px) {
    :root { --gutter: 28px; --header-h: 80px; }
    .hero { padding: 72px 0 104px; }
    .hero-compact { padding: 56px 0 88px; }
    .hero-grid, .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
    .split-reverse > :first-child { order: 2; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .featured { grid-template-columns: 1.15fr 1fr; }
    .service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
    .service-row:nth-child(even) .service-media { order: 2; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; }
}

@media (min-width: 1200px) { .container { width: min(1200px, 100% - 80px); } }
