/* =========================================================================
   T Zync - unified design system
   Light-first - logo blue accent - 2026
   ========================================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body { min-height: 100%; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Tokens ---------- */
:root {
  /* dark-band palette */
  --d-bg: #071634;
  --d-bg-2: #0a1d3f;

  --accent: #3ca1ff;          /* logo blue - fills, icons, dots, borders */
  --accent-deep: #1c73d9;
  --accent-text: #1a72d8;     /* accessible blue for text on light */
  --accent-soft: rgba(60, 161, 255, .10);
  --accent-ink: #ffffff;

  /* light (default) surface tokens - remapped inside .on-dark */
  --page: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f4f8fe;
  --text: #1b2745;
  --text-dim: #5b6a8c;
  --heading: #0e1a33;
  --border: rgba(20, 40, 82, .11);
  --border-strong: rgba(20, 40, 82, .2);
  --shadow-color: 16, 27, 51;

  /* type */
  --font-sans: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;

  --step--1: clamp(.82rem, .78rem + .2vw, .92rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1:  clamp(1.16rem, 1.05rem + .5vw, 1.4rem);
  --step-2:  clamp(1.4rem, 1.2rem + 1vw, 1.95rem);
  --step-3:  clamp(1.75rem, 1.4rem + 1.8vw, 2.7rem);
  --step-4:  clamp(2.1rem, 1.55rem + 2.8vw, 3.7rem);
  --step-5:  clamp(2.55rem, 1.7rem + 4.4vw, 5.1rem);

  --wrap: 1200px;
  --gutter: clamp(1.15rem, 5vw, 3rem);
  --section-y: clamp(4rem, 2.6rem + 7vw, 8rem);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 2px rgba(var(--shadow-color), .05), 0 10px 24px -14px rgba(var(--shadow-color), .18);
  --shadow-md: 0 30px 70px -30px rgba(var(--shadow-color), .32);
  --shadow-glow: 0 0 0 1px rgba(60, 161, 255, .35), 0 22px 55px -18px rgba(60, 161, 255, .45);

  --ease: cubic-bezier(.22, 1, .36, 1);

  /* nav colour state (over dark hero by default) */
  --nav-fg: rgba(255, 255, 255, .82);
  --nav-fg-strong: #ffffff;
}

/* Dark contexts: remap surface tokens so components invert automatically */
.on-dark, .hero, .page-hero, .cta-band, .site-footer {
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .03);
  --text: #e7eefc;
  --text-dim: #a6b8d8;
  --heading: #ffffff;
  --border: rgba(255, 255, 255, .12);
  --border-strong: rgba(255, 255, 255, .22);
  --accent-text: #7cc4ff;
  --accent-soft: rgba(60, 161, 255, .14);
  --shadow-color: 2, 8, 22;
  color: var(--text);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--heading);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p  { text-wrap: pretty; }

em { font-style: normal; color: var(--accent-text); }
strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.section-sm { padding-block: clamp(2.6rem, 1.8rem + 4vw, 4.5rem); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--accent); color: #fff;
  padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ---------- Dark band ---------- */
.section.on-dark { background: var(--d-bg); overflow: hidden; }
.section.on-dark::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 120%; z-index: 0;
  background:
    radial-gradient(40% 60% at 15% 20%, rgba(60, 161, 255, .22), transparent 70%),
    radial-gradient(38% 55% at 85% 80%, rgba(79, 125, 251, .18), transparent 70%);
  filter: blur(30px);
  animation: aurora 22s ease-in-out infinite alternate;
}
.section.on-dark > * { position: relative; z-index: 1; }
@keyframes aurora {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* ---------- Bright inset panel section ---------- */
.section.on-paper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-inline: var(--gutter);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .section.on-paper { margin-inline: 0; border-radius: 0; border-inline: 0; } }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--text-dim);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(60, 161, 255, .55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(60, 161, 255, .5); }
  70% { box-shadow: 0 0 0 12px rgba(60, 161, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(60, 161, 255, 0); }
}
.label-num {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--text-dim);
}
.label-num span {
  color: var(--accent-text); font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: .6rem;
}
.label-num span::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(1); transform-origin: left; transition: transform .6s var(--ease) .1s;
}
.reveal:not(.in) .label-num span::after { transform: scaleX(0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: var(--step-0);
  color: #fff; background: linear-gradient(135deg, #2f93f5, #1560c4);
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: 0 10px 26px -12px rgba(47, 147, 245, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .35s var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(135deg, #3ca1ff, #1560c4);
  transition: opacity .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn:hover::after { opacity: 1; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent; color: var(--heading);
  border: 1px solid var(--border-strong); box-shadow: none;
}
.btn-ghost::after { background: var(--accent-soft); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }
.on-dark .btn-ghost, .hero .btn-ghost, .page-hero .btn-ghost, .cta-band .btn-ghost { color: #fff; }
.site-header:not(.is-scrolled) .nav > .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }

.btn-lg { padding: 1.1rem 1.9rem; font-size: var(--step-1); }
.btn-block { display: flex; width: 100%; justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--accent-text);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.text-link svg { width: 1.1em; height: 1.1em; }
.text-link:hover { border-color: currentColor; gap: .8rem; }

/* ---------- Header ---------- */
:root { --header-h: 76px; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0); backdrop-filter: blur(0);
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px) saturate(1.35);
}
.site-header.is-scrolled {
  border-color: var(--border);
  --nav-fg: #55627f; --nav-fg-strong: #0e1a33;
}
/* The first hero sits BEHIND the transparent sticky header so its dark
   background makes the light nav text readable from the very top. */
main > .hero, main > .page-hero { margin-top: calc(-1 * var(--header-h)); }
.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .nav-links > a,
.site-header:not(.is-scrolled) .nav-drop > summary {
  text-shadow: 0 1px 14px rgba(3, 10, 24, .4);
}

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: clamp(.85rem, .7rem + .5vw, 1.2rem);
}
.brand {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.16rem;
  letter-spacing: -.02em; color: var(--nav-fg-strong);
  transition: color .35s var(--ease);
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { white-space: nowrap; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links > a, .nav-drop > summary {
  position: relative;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 10px;
  font-size: var(--step--1); font-weight: 500; color: var(--nav-fg);
  transition: color .25s var(--ease);
  white-space: nowrap;
}
.nav-links > a::before {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .34rem; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links > a:hover, .nav-drop > summary:hover { color: var(--nav-fg-strong); }
.nav-links > a:hover::before, .nav-links > a[aria-current="page"]::before { transform: scaleX(1); }
.nav-links > a[aria-current="page"] { color: var(--nav-fg-strong); }

.nav-drop { position: relative; }
.nav-drop > summary { list-style: none; cursor: pointer; }
.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary i { font-style: normal; font-size: .7em; transition: transform .3s var(--ease); }
.nav-drop[open] > summary i { transform: rotate(180deg); }
.nav-drop[open] > summary { color: var(--nav-fg-strong); }
.drop-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(92vw, 620px);
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem;
  padding: .8rem;
  background: var(--surface); backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: dropIn .26s var(--ease);
}
@keyframes dropIn { from { opacity: 0; translate: -50% 8px; } to { opacity: 1; translate: -50% 0; } }
.drop-panel a { display: block; padding: .8rem .9rem; border-radius: 12px; transition: background .25s var(--ease); }
.drop-panel a:hover { background: var(--accent-soft); }
.drop-panel a b { display: block; font-weight: 600; color: var(--heading); font-size: .95rem; }
.drop-panel a small { display: block; color: var(--text-dim); font-size: .8rem; line-height: 1.45; margin-top: .2rem; }
.drop-panel a.wide { grid-column: 1 / -1; background: var(--accent-soft); }
.drop-panel a.wide b { color: var(--accent-text); }

.nav-cta { display: inline-flex; }
.nav-toggle { display: none; }
.only-mobile { display: none !important; }

@media (max-width: 940px) {
  .nav-cta { display: none; }
  .only-mobile { display: flex !important; margin-top: .6rem; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--border-strong);
  }
  .nav-toggle span { width: 20px; height: 2px; background: var(--nav-fg-strong); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(88vw, 380px);
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 6rem 1.5rem 2rem;
    background: var(--surface); border-left: 1px solid var(--border);
    transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto; overscroll-behavior: contain;
    --nav-fg: #55627f; --nav-fg-strong: #0e1a33;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links > a, .nav-drop > summary { padding: .9rem 1rem; font-size: 1rem; border-radius: 12px; }
  .nav-links > a::before { display: none; }
  .nav-links > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
  .nav-drop { width: 100%; }
  .drop-panel {
    position: static; translate: none; width: 100%;
    grid-template-columns: 1fr; box-shadow: none; animation: none;
    background: transparent; border: 0; padding: .2rem .2rem .2rem 1rem;
    border-left: 1px solid var(--border); border-radius: 0; margin: .3rem 0;
  }
  .drop-panel a small { display: none; }
  .drop-panel a.wide { background: transparent; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(6, 15, 32, .45); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 99; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
  body.nav-lock { overflow: hidden; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-left { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.zoom { transform: scale(.94); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 940px); background: var(--d-bg);
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(2rem, 1rem + 4vw, 3.75rem);
  padding-block: calc(var(--header-h) + clamp(2.5rem, 2rem + 4vw, 4.5rem)) clamp(4rem, 3rem + 6vw, 7rem);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(60, 161, 255, .18), transparent 60%),
    linear-gradient(180deg, rgba(7, 22, 52, .5), var(--d-bg) 94%);
}
.hero-mesh {
  position: absolute; inset: -20% -10% 0; z-index: 0; filter: blur(70px); opacity: .8;
  background:
    radial-gradient(38% 42% at 20% 30%, rgba(60, 161, 255, .5), transparent 70%),
    radial-gradient(34% 40% at 80% 20%, rgba(79, 125, 251, .4), transparent 70%),
    radial-gradient(40% 46% at 65% 78%, rgba(124, 196, 255, .3), transparent 70%);
  animation: meshFloat 18s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(2%, -3%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
}
.hero-copy { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.3rem); align-content: center; }
.hero h1 { font-size: var(--step-5); max-width: 16ch; line-height: 1.04; }
.hero h1 .line { display: block; }
.hero h1 .line > span { display: inline-block; opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.hero h1.in .line > span { opacity: 1; transform: none; }
.hero h1.in .line:nth-child(2) > span { transition-delay: .1s; }
.hero h1.in .line:nth-child(3) > span { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .hero h1 .line > span { opacity: 1; transform: none; } }
.hero-lede { font-size: var(--step-1); color: var(--text-dim); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card {
  padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(124, 196, 255, .5); }
.stat-card .k { display: block; font-size: var(--step--1); color: var(--text-dim); letter-spacing: .06em; text-transform: uppercase; }
.stat-card .v { display: block; font-family: var(--font-display); font-size: var(--step-3); font-weight: 600; color: #fff; margin: .35rem 0 .15rem; }
.stat-card .v span { color: var(--accent); }
.stat-card .d { display: block; font-size: var(--step--1); color: var(--text-dim); }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; align-self: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: -14% -10% -6% -6%; z-index: 0;
  background: radial-gradient(52% 52% at 62% 38%, rgba(60, 161, 255, .4), transparent 72%);
  filter: blur(46px);
}
.hero-visual > img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover;
  border-radius: var(--radius-xl); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 90px -34px rgba(2, 8, 22, .7);
  animation: floatY 8s ease-in-out infinite alternate;
}
@keyframes floatY { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual > img { animation: none; } }
.hero-visual .vcard {
  position: absolute; z-index: 2;
  left: clamp(-1.6rem, -2vw, -.6rem); right: clamp(1.2rem, 5vw, 2.6rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: grid; gap: .35rem;
  padding: 1.05rem 1.25rem;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -20px rgba(2, 8, 22, .5);
}
.hero-visual .vcard.row { grid-template-columns: auto 1fr; align-items: center; gap: .85rem; }
.hero-visual .vcard small { font-size: var(--step--1); color: #5b6a8c; letter-spacing: .07em; text-transform: uppercase; }
.hero-visual .vcard strong { font-family: var(--font-display); font-weight: 600; line-height: 1.4; color: #0e1a33; }
.hero-visual .vcard p { font-size: var(--step--1); color: #5b6a8c; }
.hero-visual .vcard .vrule { height: 1px; background: rgba(20, 40, 82, .12); margin: .25rem 0; }
.hero-visual .vcard span:last-child { font-size: var(--step--1); color: #5b6a8c; }
.hero-visual .vcard .live {
  width: 10px; height: 10px; border-radius: 50%; background: #16c076;
  box-shadow: 0 0 0 0 rgba(22, 192, 118, .5); animation: pulse 2.4s var(--ease) infinite;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; width: 100%; }
  .hero-visual > img { aspect-ratio: 4 / 3.4; }
  .hero-visual .vcard { left: 0; right: 1rem; }
}
@media (max-width: 460px) { .hero-visual .vcard { position: static; margin-top: .9rem; left: 0; right: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border); background: var(--surface-2);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-seq { display: flex; align-items: center; padding-block: 1.15rem; }
.marquee-seq li {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
  color: var(--text-dim); letter-spacing: -.01em;
}
.marquee-seq li::after {
  content: "\2726"; color: var(--accent); opacity: .5; font-size: .62em;
  margin-inline: clamp(1.8rem, 1.2rem + 2vw, 3rem);
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-seq:nth-child(2) { display: none; }
  .marquee-seq { flex-wrap: wrap; justify-content: center; gap: .4rem 0; }
}

/* ---------- Section head ---------- */
.section-head { display: grid; gap: 1rem; max-width: 60ch; margin-bottom: clamp(2.2rem, 1.4rem + 2.5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Panels / cards ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--shadow-sm);
}
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.tile {
  position: relative; overflow: hidden;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.tile::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(60, 161, 255, .12), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.tile:hover { transform: translateY(-6px); border-color: rgba(60, 161, 255, .45); box-shadow: var(--shadow-md); }
.tile:hover::after { left: 130%; }
.tile .n { font-family: var(--font-display); font-size: var(--step--1); color: var(--accent-text); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.tile h3 { margin: .7rem 0 .5rem; }
.tile p { color: var(--text-dim); font-size: var(--step-0); }

.link-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.link-card:hover { transform: translateY(-5px); border-color: rgba(60, 161, 255, .5); box-shadow: var(--shadow-md); }
.link-card .lc-eyebrow { font-size: var(--step--1); color: var(--accent-text); letter-spacing: .04em; }
.link-card h3 { margin: .55rem 0 .5rem; }
.link-card p { color: var(--text-dim); font-size: var(--step-0); }
.link-card .arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--accent-text);
  transition: background .35s var(--ease), transform .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.link-card .arrow svg { width: 20px; height: 20px; }
.link-card:hover .arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }

/* ---------- Showcase (image cards) ---------- */
.showcase { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.showcase-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 400px; display: flex; align-items: flex-end;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.showcase-item img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); transform: scale(1.02); }
.showcase-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 22, 52, .1) 0%, rgba(7, 22, 52, .5) 45%, rgba(6, 16, 38, .95) 100%); }
.showcase-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.showcase-item:hover img { transform: scale(1.09); }
.showcase-body { padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); color: #fff; }
.showcase-body .n { font-size: var(--step--1); color: #7cc4ff; letter-spacing: .05em; }
.showcase-body h3 { margin: .5rem 0; font-size: var(--step-2); color: #fff; }
.showcase-body p { color: rgba(231, 238, 252, .82); }
.showcase-body .arrow { margin-top: 1rem; display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); place-items: center; color: #7cc4ff; transition: background .3s var(--ease), color .3s var(--ease); }
.showcase-body .arrow svg { width: 18px; height: 18px; }
.showcase-item:hover .arrow { background: var(--accent); color: #fff; }

/* ---------- Specialties grid ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-item {
  display: flex; flex-direction: column; align-items: center; gap: .85rem; text-align: center;
  padding: 1.7rem 1rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .32s var(--ease), border-color .32s var(--ease), box-shadow .32s var(--ease);
}
.spec-item:hover { transform: translateY(-5px); border-color: rgba(60, 161, 255, .5); box-shadow: var(--shadow-sm); }
.spec-item .spec-ico {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.spec-item .spec-ico svg { width: 28px; height: 28px; }
.spec-item:hover .spec-ico { transform: scale(1.1) rotate(-4deg); background: var(--accent); color: #fff; }
.spec-item span { font-weight: 600; font-size: var(--step--1); color: var(--heading); }

/* ---------- Counters ---------- */
.counters { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.counter {
  padding: 1.8rem 1.6rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm);
}
.counter .num {
  font-family: var(--font-display); font-weight: 600; color: var(--heading);
  font-size: var(--step-4); line-height: 1; letter-spacing: -.03em;
  display: flex; align-items: baseline; gap: .1em;
}
.counter .num sup { font-size: .4em; color: var(--accent-text); top: -.9em; }
.counter p { margin-top: .8rem; color: var(--text-dim); font-size: var(--step-0); }

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(2rem, 1rem + 5vw, 5rem); grid-template-columns: 1fr 1fr; align-items: start; }
.split.center-y { align-items: center; }
.split.narrow-left { grid-template-columns: .82fr 1.18fr; }
.split.sticky-left .split-col:first-child { position: sticky; top: 110px; align-self: start; }
@media (max-width: 900px) {
  .split, .split.narrow-left { grid-template-columns: 1fr; }
  .split.sticky-left .split-col:first-child { position: static; }
}

.prose > * + * { margin-top: 1.1rem; }
.prose p { color: var(--text-dim); }

.stack > * + * { margin-top: 1.2rem; }
.lead { font-size: var(--step-1); color: var(--text-dim); }

/* check list */
.check-list { display: grid; gap: 1rem; margin-top: 1.6rem; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: .9rem; align-items: start; }
.check-list li::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; margin-top: 2px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ca1ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.check-list li b { color: var(--heading); font-weight: 600; }
.check-list li small { display: block; color: var(--text-dim); font-size: var(--step--1); }

/* number list */
.num-list { display: grid; gap: .1rem; counter-reset: nl; }
.num-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: baseline;
  padding: 1.15rem 0; border-top: 1px solid var(--border);
}
.num-list li:last-child { border-bottom: 1px solid var(--border); }
.num-list li::before {
  counter-increment: nl; content: counter(nl, decimal-leading-zero);
  font-family: var(--font-display); color: var(--accent-text); font-variant-numeric: tabular-nums;
  font-size: var(--step--1); letter-spacing: .1em;
}
.num-list li p { color: var(--text-dim); }

/* ---------- Timeline ---------- */
.timeline { display: grid; }
.timeline li {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-top: 1px solid var(--border);
}
.timeline li:last-child { border-bottom: 1px solid var(--border); }
.timeline .step {
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  color: var(--accent-text); font-variant-numeric: tabular-nums;
  height: 48px; width: 48px; display: grid; place-items: center;
  border: 1px solid var(--border-strong); border-radius: 12px;
}
.timeline h3 { margin-bottom: .35rem; }
.timeline p { color: var(--text-dim); }

/* ---------- Result panel (service outcomes) ---------- */
.result-panel {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-md);
}
.result-panel .rp-head {
  display: flex; align-items: center; gap: .6rem;
  padding: 1rem 1.3rem; border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-weight: 600; color: var(--heading); font-size: var(--step--1);
  letter-spacing: .04em; text-transform: uppercase;
}
.result-panel .rp-head .live {
  width: 9px; height: 9px; border-radius: 50%; background: #16c076;
  box-shadow: 0 0 0 0 rgba(22, 192, 118, .5); animation: pulse 2.4s var(--ease) infinite;
}
.result-panel .rp-big { padding: 1.5rem 1.3rem .3rem; }
.result-panel .rp-big strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: var(--step-4); line-height: 1; color: var(--heading);
}
.result-panel .rp-big strong span { color: var(--accent-text); }
.result-panel .rp-big em { display: block; margin-top: .4rem; color: var(--text-dim); font-size: var(--step--1); }
.result-panel .rp-list { padding: 1.1rem 1.3rem 1.4rem; display: grid; gap: .6rem; }
.result-panel .rp-list div {
  display: grid; grid-template-columns: 20px 1fr; gap: .7rem; align-items: center;
  padding: .75rem .9rem; border-radius: 12px; background: var(--accent-soft);
  font-size: var(--step--1); color: var(--text);
  opacity: 0; transform: translateX(-10px);
}
.result-panel.in .rp-list div { animation: rpRow .5s var(--ease) forwards; }
.result-panel.in .rp-list div:nth-child(1) { animation-delay: .1s; }
.result-panel.in .rp-list div:nth-child(2) { animation-delay: .2s; }
.result-panel.in .rp-list div:nth-child(3) { animation-delay: .3s; }
.result-panel.in .rp-list div:nth-child(4) { animation-delay: .4s; }
@keyframes rpRow { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result-panel .rp-list div { opacity: 1; transform: none; } }
.result-panel .rp-list div::before {
  content: ""; width: 20px; height: 20px; border-radius: 6px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.faq details[open] { border-color: rgba(60, 161, 255, .4); background: var(--accent-soft); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 26px; height: 26px; position: relative; }
.faq summary .ico::before, .faq summary .ico::after {
  content: ""; position: absolute; inset: 50% 4px auto 4px; height: 2px;
  background: var(--accent); border-radius: 2px; transition: transform .3s var(--ease);
}
.faq summary .ico::after { transform: rotate(90deg); }
.faq details[open] summary .ico::after { transform: rotate(0); }
.faq .faq-body { padding: 0 1.3rem 1.25rem; color: var(--text-dim); }
.faq details[open] .faq-body { animation: faqIn .35s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Forms (dark context) ---------- */
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px); box-shadow: 0 40px 90px -40px rgba(2, 8, 22, .7);
  display: grid; gap: 1.1rem;
}
.form-head { display: grid; gap: .5rem; margin-bottom: .3rem; }
.form-head h2 { font-size: var(--step-2); color: #fff; }
.form-head p { color: var(--text-dim); font-size: var(--step--1); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 600; color: #eaf0fd; }
.field label b { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem;
  background: rgba(3, 10, 26, .55); color: #eaf0fd;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(166, 184, 216, .6); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(60, 161, 255, .22); background: rgba(3, 10, 26, .8);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a6b8d8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.6rem; }
.field select option { background: #0c2148; }
.field .err { display: none; font-size: var(--step--1); color: #fca5a5; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #f87171; }
.field.invalid .err { display: block; }
.form-note { font-size: var(--step--1); color: var(--text-dim); }
.form-note a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-alert { display: none; padding: .9rem 1.1rem; border-radius: 12px; font-size: var(--step--1); border: 1px solid transparent; }
.form-alert.show { display: block; }
.form-alert.error { background: rgba(248, 113, 113, .14); border-color: rgba(248, 113, 113, .4); color: #fecaca; }
.form-alert.ok { background: rgba(60, 161, 255, .14); border-color: rgba(60, 161, 255, .4); color: #bae6fd; }

/* ---------- Contact methods ---------- */
.contact-methods { display: grid; gap: .8rem; margin-top: 1.8rem; }
.contact-methods a, .contact-methods div {
  display: grid; gap: .15rem; padding: 1.1rem 1.3rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.contact-methods a:hover { border-color: var(--accent); background: var(--surface); transform: translateX(4px); }
.contact-methods span { font-size: var(--step--1); color: var(--text-dim); letter-spacing: .08em; text-transform: uppercase; }
.contact-methods b { font-family: var(--font-display); font-size: var(--step-1); color: var(--heading); }
.contact-methods small { color: var(--text-dim); font-size: var(--step--1); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: var(--step--1); color: var(--text-dim); margin-bottom: 1.5rem; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs .sep { opacity: .5; }
.crumbs b { color: var(--heading); font-weight: 500; }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--d-bg);
  padding-block: calc(var(--header-h) + clamp(2rem, 1.5rem + 3vw, 3.5rem)) clamp(3.5rem, 2.5rem + 5vw, 6rem);
}
.page-hero .hero-mesh { opacity: .55; }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero .split { align-items: center; grid-template-columns: 1.18fr .82fr; }
@media (max-width: 900px) { .page-hero .split { align-items: start; grid-template-columns: 1fr; } }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 22, 52, .5), var(--d-bg) 92%); }
.page-hero h1 { font-size: clamp(1.95rem, 1.4rem + 2.3vw, 3.05rem); max-width: 18ch; margin: 1rem 0; }
.page-hero .lede { font-size: var(--step-1); color: var(--text-dim); max-width: 58ch; }
.page-hero .hero-actions { margin-top: 2rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; background: var(--d-bg); }
.cta-band .hero-mesh { opacity: .5; }
.cta-band > .wrap { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-3); max-width: 20ch; margin: .8rem auto 1.2rem; color: #fff; }
.cta-band p { color: var(--text-dim); max-width: 52ch; margin: 0 auto 2rem; }
.cta-band .split { text-align: left; }
.cta-band .split h2, .cta-band .split p { margin-inline: 0; max-width: none; }

/* ---------- Legal ---------- */
.legal { max-width: 68ch; }
.legal > * + * { margin-top: 1.15rem; }
.legal h2 { font-size: var(--step-1); margin-top: 2.4rem; }
.legal p, .legal li { color: var(--text-dim); }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem) 2rem; background: var(--d-bg-2); }
.footer-top { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-dim); margin-top: 1rem; max-width: 34ch; font-size: var(--step--1); }
.footer-col h2 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 600; }
.footer-col a, .footer-col address { display: block; color: var(--text-dim); font-style: normal; font-size: var(--step--1); padding: .35rem 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: var(--step--1); color: var(--text-dim); }
.footer-legal { display: flex; gap: 1.4rem; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Success page ---------- */
.success { min-height: 78vh; display: grid; place-items: center; text-align: center; padding-block: 6rem; position: relative; overflow: hidden; }
.success .badge {
  width: 84px; height: 84px; border-radius: 24px; margin: 0 auto 1.6rem;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: var(--shadow-glow);
}
.success .badge svg { width: 40px; height: 40px; }
.success h1 { font-size: var(--step-3); margin: 1rem 0; }
.success p { color: var(--text-dim); max-width: 46ch; margin: 0 auto 2rem; }
.success .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--section-y); }

/* =========================================================================
   Blog
   ========================================================================= */

/* ----- Listing ----- */
.blog-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(60, 161, 255, .45); }
.blog-card .bc-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.blog-card .bc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .bc-cover img { transform: scale(1.06); }
.blog-card .bc-cover.is-blank { display: grid; place-items: center; background: linear-gradient(135deg, #0c2148, #071634); }
.blog-card .bc-cover.is-blank span { font-family: var(--font-display); font-weight: 600; color: #7cc4ff; font-size: var(--step-1); letter-spacing: .04em; }
.blog-card .bc-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.4rem 1.6rem; flex: 1; }
.blog-card .bc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: var(--step--1); color: var(--text-dim); }
.blog-card .bc-tag { color: var(--accent-text); font-weight: 600; }
.blog-card h3 { font-size: var(--step-1); margin-top: .15rem; }
.blog-card p { color: var(--text-dim); font-size: var(--step-0); flex: 1; }
.blog-card .bc-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: .4rem; font-weight: 600; color: var(--accent-text); }
.blog-card .bc-more svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.blog-card:hover .bc-more svg { transform: translateX(4px); }
.blog-empty { text-align: center; color: var(--text-dim); padding: 3rem 0; }

/* ----- Post header (on the dark band) ----- */
.post-head .post-meta {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.3rem;
  font-size: var(--step--1); color: var(--text-dim);
}
.post-head .post-meta .m-tag { color: #7cc4ff; font-weight: 600; }
.post-head .post-meta span { display: inline-flex; align-items: center; gap: .45rem; }
.post-head .post-meta svg { width: 1em; height: 1em; opacity: .7; }

/* ----- Article typography (theme-matched, any length) ----- */
.blog-article { max-width: 44rem; margin-inline: auto; font-size: clamp(1.02rem, 1rem + .25vw, 1.16rem); }
.blog-article > * + * { margin-top: 1.5rem; }
.blog-article > h2 { font-size: var(--step-2); margin-top: 2.8rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.blog-article > h3 { font-size: var(--step-1); margin-top: 2.2rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.blog-article > h2 + *, .blog-article > h3 + * { margin-top: .9rem; }
.blog-article p { line-height: 1.8; color: var(--text); }
.blog-article a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.blog-article a:hover { text-decoration-thickness: 2px; }
.blog-article strong { color: var(--heading); font-weight: 600; }
.blog-article ul, .blog-article ol { padding-left: 1.4rem; display: grid; gap: .6rem; }
.blog-article ul { list-style: none; }
.blog-article ul > li { position: relative; padding-left: 1.4rem; }
.blog-article ul > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.blog-article ol { list-style: decimal; }
.blog-article ol > li::marker { color: var(--accent-text); font-family: var(--font-display); font-weight: 600; }
.blog-article li { line-height: 1.75; color: var(--text); }
.blog-article li > ul, .blog-article li > ol { margin-top: .6rem; }
.blog-article blockquote {
  margin-inline: 0; padding: .4rem 0 .4rem 1.6rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500;
  color: var(--heading); line-height: 1.5;
}
.blog-article blockquote p { color: inherit; font: inherit; }
.blog-article figure { margin-inline: 0; }
.blog-article img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.blog-article figure img { width: 100%; }
.blog-article figcaption { margin-top: .7rem; font-size: var(--step--1); color: var(--text-dim); text-align: center; }
.blog-article hr { border: 0; height: 1px; background: var(--border); margin-block: 2.6rem; }
.blog-article code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: .15em .4em; border-radius: 6px;
}
.blog-article pre {
  background: var(--d-bg); color: #e7eefc; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; overflow-x: auto;
  font-size: .92rem; line-height: 1.6;
}
.blog-article pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.blog-article table { width: 100%; border-collapse: collapse; font-size: var(--step--1); display: block; overflow-x: auto; }
.blog-article th, .blog-article td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); }
.blog-article th { font-family: var(--font-display); color: var(--heading); background: var(--surface-2); }
.blog-article .blog-lead { font-size: var(--step-1); color: var(--text-dim); line-height: 1.6; }
.blog-article > :first-child { margin-top: 0; }

.post-foot {
  max-width: 44rem; margin: 3.5rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
}
.post-foot .by { font-size: var(--step--1); color: var(--text-dim); }
.post-foot .by b { color: var(--heading); }

/* ----- Editor ----- */
.editor-wrap { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
.editor-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 1rem + 1.5vw, 2rem);
}
.editor-panel h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.ed-field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.ed-field label { font-size: var(--step--1); font-weight: 600; color: var(--heading); }
.ed-field input, .ed-field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.ed-field input:focus, .ed-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60, 161, 255, .18); }
.ed-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .ed-row { grid-template-columns: 1fr; } }

.ed-toolbar {
  display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem;
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: 12px 12px 0 0; background: var(--surface-2);
  position: sticky; top: var(--header-h); z-index: 5;
}
.ed-toolbar button {
  min-width: 34px; height: 34px; padding: 0 .55rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; color: var(--text);
  border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.ed-toolbar button:hover { background: var(--accent-soft); }
.ed-toolbar button.active { background: var(--accent); color: #fff; }
.ed-toolbar .sep { width: 1px; align-self: stretch; margin: .2rem .3rem; background: var(--border); }
.ed-toolbar button svg { width: 16px; height: 16px; }

.ed-canvas {
  border: 1px solid var(--border); border-radius: 0 0 12px 12px;
  background: var(--surface); padding: 1.6rem clamp(1rem, .5rem + 2vw, 2.4rem);
  min-height: 320px; outline: none;
}
.ed-canvas:focus-visible { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ed-canvas:empty::before { content: attr(data-placeholder); color: var(--text-dim); }

.ed-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.ed-note { margin-top: 1rem; font-size: var(--step--1); color: var(--text-dim); }
.ed-note code { background: var(--accent-soft); color: var(--accent-deep); padding: .1em .35em; border-radius: 5px; }
.ed-status { margin-top: 1rem; padding: .85rem 1.1rem; border-radius: 10px; font-size: var(--step--1); display: none; }
.ed-status.show { display: block; }
.ed-status.ok { background: rgba(22, 192, 118, .12); border: 1px solid rgba(22, 192, 118, .4); color: #0f7a4d; }
.ed-status.err { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .4); color: #b42318; }
.ed-preview { display: none; }
.ed-preview.show { display: block; }
.ed-out { width: 100%; min-height: 160px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; padding: 1rem; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); white-space: pre; overflow: auto; }

/* ----- Post manager (edit / delete) ----- */
.pm-list { display: grid; gap: .5rem; }
.pm-row {
  display: flex; flex-wrap: wrap; gap: .7rem 1rem; align-items: center; justify-content: space-between;
  padding: .8rem 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
}
.pm-info { display: grid; gap: .12rem; min-width: 0; }
.pm-info b { color: var(--heading); font-family: var(--font-display); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pm-info span { font-size: var(--step--1); color: var(--text-dim); }
.pm-actions { display: flex; gap: .4rem; flex: none; }
.pm-btn {
  display: inline-flex; align-items: center; padding: .42rem .8rem; border-radius: 8px;
  font-size: var(--step--1); font-weight: 600; color: var(--text);
  border: 1px solid var(--border-strong); background: var(--surface);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.pm-btn:hover { border-color: var(--accent); color: var(--accent-text); }
.pm-btn.pm-danger:hover { border-color: #e5484d; color: #e5484d; }

.ed-editing {
  display: none; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; border-radius: 10px; margin-bottom: 1.1rem;
  background: var(--accent-soft); border: 1px solid rgba(60, 161, 255, .4); font-size: var(--step--1);
}
.ed-editing.show { display: flex; }
.ed-editing b { color: var(--accent-text); }
.ed-editing button { font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
