/* ==========================================================================
   TechMinions homepage
   Old-theme look (black, Orbitron, orange/crimson, glowing globe) with the
   draft's content. Motion: transform/opacity only, eased, reduced-motion aware.
   ========================================================================== */

:root {
  --bg: #000;
  --bg-raise: #07080e;
  --orange: #F15A24;
  --orange-2: #FF8C00;
  --crimson: #C70B46;
  --pink: #FF0080;
  --cyan: #0CFBFB;
  --teal: #009FA1;
  --navy: #2B3C56;

  --text: #FFFFFF;
  --text-2: #D5D9E2;
  --muted: #A4ABBA;
  --line: rgba(241, 90, 36, 0.34);
  --line-soft: rgba(255, 255, 255, 0.08);

  --card-bg: linear-gradient(145deg, rgba(24, 12, 14, 0.8), rgba(8, 10, 20, 0.84));
  --panel-bg: rgba(4, 5, 10, 0.86);
  --grad: linear-gradient(90deg, var(--crimson) 0%, var(--orange) 100%);
  --grad-text: linear-gradient(270deg, var(--pink), var(--orange-2), var(--pink));
  --glow: 0 18px 44px -20px rgba(241, 90, 36, 0.55);

  --f-head: 'Orbitron', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Source Code Pro', ui-monospace, Consolas, monospace;

  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --nav-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--orange) #0b0b10; scrollbar-width: thin; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #0b0b10; }
html::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 5px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: #FFB08A; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--orange); }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--f-head); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--orange-2); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; transition: top 0.2s ease; }
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: clamp(16px, 5vw, 48px); padding-right: clamp(16px, 5vw, 48px); }
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section-tight { padding-top: clamp(18px, 3vw, 28px); padding-bottom: clamp(18px, 3vw, 28px); }
.section-body { margin-top: clamp(24px, 4vw, 40px); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.accent-a { --accent: var(--orange); }
.accent-b { --accent: var(--crimson); }
.accent-text { color: var(--orange); }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); }

/* Text sitting straight on the scene gets a soft halo so the globe never hurts legibility */
.hero-copy, .section-head, .subhead, .logo-bar-label, .actions .fine, .case-note {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7);
}

/* ---------- Background scene ---------- */
.scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  /* Shown when WebGL is unavailable, and while the canvas fades in */
  background:
    radial-gradient(ellipse 55% 45% at 78% 42%, rgba(199, 11, 70, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 18% 75%, rgba(93, 22, 236, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 60% 90%, rgba(0, 159, 161, 0.1), transparent 70%),
    var(--bg);
}
#scene-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease-out); }
.scene.is-ready #scene-canvas { opacity: 1; }
.scene-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 38, 83, 0.14) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}
.page { position: relative; z-index: 1; }

/* ---------- Scroll reveal (Elementor-style entrances, smoothed) ---------- */
.js [data-anim] {
  opacity: 0;
  transition: opacity 0.9s var(--ease-out) var(--delay, 0ms), transform 0.9s var(--ease-out) var(--delay, 0ms);
}
.js [data-anim="fade-up"]    { transform: translate3d(0, 32px, 0); }
.js [data-anim="fade-down"]  { transform: translate3d(0, -20px, 0); }
.js [data-anim="fade-left"]  { transform: translate3d(40px, 0, 0); }
.js [data-anim="fade-right"] { transform: translate3d(-40px, 0, 0); }
.js [data-anim="zoom-in"]    { transform: scale(0.94); }
.js [data-anim].is-in { opacity: 1; transform: none; }

/* ---------- Type ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: clamp(12px, 1.3vw, 14px); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange);
}
.kicker::before { content: ""; width: 36px; height: 2px; flex-shrink: 0; background: linear-gradient(90deg, var(--orange), transparent); }
.section-title { margin-top: 14px; font-size: clamp(26px, 3.7vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; }
.sub { margin-top: 16px; max-width: 660px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--text-2); }
.sub-sm { font-size: 15px; color: var(--muted); }
.gradient-text {
  background: var(--grad-text); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--orange);
}
/* text-shadow would paint over clipped-gradient text; use a filter halo instead */
.gradient-text { text-shadow: none; }
.hero-copy .gradient-text { filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.85)); }
.hero-title .gradient-text, .final-cta-title .gradient-text { animation: gradient-shift 10s ease-in-out infinite alternate; }
@keyframes gradient-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border: 0; border-radius: 999px;
  background: var(--grad); color: #fff; cursor: pointer;
  font-family: var(--f-body); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 10px 26px -12px rgba(241, 90, 36, 0.8);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.2s ease;
}
.btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(241, 90, 36, 0.9); }
.btn:active { transform: translateY(0); }
.btn-outline {
  background: linear-gradient(#0a0a10, #0a0a10) padding-box, var(--grad) border-box;
  border: 1.5px solid transparent; box-shadow: none;
}
.btn-outline:hover { background: linear-gradient(rgba(40, 14, 16, 0.95), rgba(40, 14, 16, 0.95)) padding-box, var(--grad) border-box; box-shadow: var(--glow); }
.btn-sm { min-height: 42px; padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
@media all {
  .btn-glow { animation: ignite 3.4s ease-in-out 1.6s infinite; }
  @keyframes ignite {
    0%, 100% { box-shadow: 0 0 0 1px rgba(241, 90, 36, 0.25), 0 10px 26px -12px rgba(241, 90, 36, 0.8); }
    50% { box-shadow: 0 0 0 1px rgba(255, 140, 0, 0.55), 0 12px 38px -8px rgba(255, 110, 40, 0.95); }
  }
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: clamp(24px, 4vw, 36px); }

/* ---------- Navbar (old-theme pill) ---------- */
.navbar { position: sticky; top: 0; z-index: 40; padding: 12px 0; }
.nav-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 60px; padding-top: 8px; padding-bottom: 8px;
}
.nav-inner::before {
  content: ""; position: absolute; inset: 0 clamp(4px, 2vw, 24px); z-index: -1;
  border-radius: 999px; border: 1px solid var(--line-soft);
  background: rgba(6, 6, 12, 0.82);
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, 0.9);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar.is-scrolled .nav-inner::before { background: rgba(4, 4, 8, 0.92); border-color: rgba(241, 90, 36, 0.25); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; padding-left: clamp(8px, 1.5vw, 16px); }
.brand img { height: clamp(24px, 2.6vw, 30px); width: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav-links a {
  position: relative; padding: 8px 0; white-space: nowrap;
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .menu-only, .nav-links .mobile-only { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; padding-right: clamp(4px, 1vw, 8px); }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(241, 90, 36, 0.08); color: var(--text); cursor: pointer;
}
.burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

@media (max-width: 1140px) {
  .burger { display: inline-flex; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: clamp(4px, 2vw, 24px); right: clamp(4px, 2vw, 24px);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px;
    border-radius: 20px; border: 1px solid var(--line-soft); background: rgba(6, 6, 12, 0.96);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.95);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 13px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.is-active { background: rgba(241, 90, 36, 0.1); color: #FFB08A; }
  .nav-links .menu-only { display: block; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .nav-links .mobile-only { display: block; color: var(--orange); }
}

/* ---------- Flight path (section waypoints, desktop) ---------- */
.flight { position: fixed; right: 18px; top: 50%; z-index: 30; display: flex; flex-direction: column; gap: 14px; transform: translateY(-50%); }
.flight::before { content: ""; position: absolute; right: 3px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2) 15%, rgba(255, 255, 255, 0.2) 85%, transparent); }
.flight a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 22px; }
.flight .wp { width: 8px; height: 8px; border-radius: 50%; background: #000; border: 1.5px solid rgba(255, 255, 255, 0.5); transition: transform 0.3s var(--ease-out), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.flight .lbl {
  padding: 3px 8px; border-radius: 4px; background: rgba(0, 0, 0, 0.85);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  opacity: 0; transform: translateX(6px); transition: opacity 0.2s ease, transform 0.25s var(--ease-out); pointer-events: none;
}
.flight a:hover .lbl, .flight a:focus-visible .lbl { opacity: 1; transform: none; }
.flight a.is-active .wp { background: var(--orange); border-color: var(--orange-2); transform: scale(1.4); box-shadow: 0 0 14px rgba(241, 90, 36, 0.9); }
@media (max-width: 1340px) { .flight { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; }
.hero-inner { width: 100%; padding-top: clamp(40px, 8vh, 90px); padding-bottom: clamp(56px, 10vh, 110px); }
.hero-copy { max-width: 700px; }
.hero-title { margin-top: 18px; font-size: clamp(30px, 4.9vw, 58px); font-weight: 800; line-height: 1.16; letter-spacing: 0.005em; }
.hero-sub { margin-top: 22px; max-width: 610px; font-size: clamp(16px, 1.8vw, 20px); line-height: 1.7; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.telemetry { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.telemetry i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
@media all {
  .telemetry i { animation: pulse 2.4s ease-in-out infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
}
.hero-facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 3.5vw, 40px); margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--line-soft); }
.hero-facts dt { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; color: var(--orange-2); line-height: 1.2; }
.hero-facts dd { margin-top: 4px; font-size: 14px; color: var(--muted); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; display: flex; justify-content: center; width: 26px; height: 42px; padding-top: 7px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 14px; }
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--orange); }
@media all {
  .scroll-cue span { animation: cue 1.8s ease-in-out infinite; }
  @keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
}
@media (max-height: 640px), (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Trust badges, logos, stats ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(241, 90, 36, 0.08);
  font-size: 14px; font-weight: 500; color: #FFD2BD;
}
.badge .icon { color: var(--orange); }

.logo-bar { padding: 26px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.logo-bar-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); }
.logo-bar-label .icon { color: var(--orange); }
.marquee { margin-top: 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; gap: 20px; padding-right: 20px; }
.logo-item { width: 200px; height: 80px; flex-shrink: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line-soft); transition: border-color 0.3s ease, transform 0.3s var(--ease-out); }
.logo-item img { width: 100%; height: 100%; object-fit: cover; }
.logo-item:hover { border-color: var(--line); transform: translateY(-2px); }
@media all {
  .marquee-track { animation: marquee 55s linear infinite; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
}
.reduce-motion .marquee { overflow-x: auto; }
.reduce-motion .marquee-track { animation: none; }
.reduce-motion .marquee-set[aria-hidden="true"] { display: none; }

.card-stat { text-align: center; }
.stat { font-size: clamp(24px, 2.8vw, 36px); font-weight: 700; white-space: nowrap; line-height: 1.2; }
.card-stat .card-text { margin-top: 8px; }

/* ---------- Grids & cards ---------- */
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 > :last-child:nth-child(odd) { grid-column: auto; }
}

.card, .plan, .testi-card, .process-step, .case-card {
  position: relative; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card { border-top: 2px solid var(--accent, var(--orange)); }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .plan:hover, .testi-card:hover, .process-step:hover, .case-card:hover {
    transform: translateY(-5px); border-color: rgba(241, 90, 36, 0.45); box-shadow: var(--glow);
  }
  .card:hover { border-top-color: var(--accent, var(--orange)); }
}
.ibadge {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--accent, var(--orange)); background: rgba(241, 90, 36, 0.1); border: 1px solid var(--line);
}
.card-title { margin-top: 16px; font-size: clamp(16px, 1.6vw, 19px); font-weight: 700; line-height: 1.35; letter-spacing: 0.01em; }
.card-title-flush { margin-top: 0; }
.card-title-sm { margin-top: 0; font-size: 16px; }
.card-text { margin-top: 10px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(241, 90, 36, 0.06); font-size: 14px; color: #FFB08A;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.chips a:hover { background: rgba(241, 90, 36, 0.18); border-color: var(--orange); color: #fff; }

.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--orange-2); background: rgba(241, 90, 36, 0.1); border: 1px solid var(--line);
}
.tag-accent { align-self: flex-start; letter-spacing: 0.04em; text-transform: none; font-size: 12px; }

/* ---------- Calculator ---------- */
.calc-card { position: relative; padding: clamp(18px, 3.5vw, 32px); border-radius: 20px; background: var(--panel-bg); border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 1); }
.calc-card::before, .calc-card::after, .clock::before, .clock::after, .book-form::before, .book-form::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: solid rgba(241, 90, 36, 0.7); pointer-events: none;
}
.calc-card::before, .clock::before, .book-form::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 8px; }
.calc-card::after, .clock::after, .book-form::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 8px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.calc-inputs { display: grid; gap: 14px; }
.calc-step { padding: clamp(16px, 2.5vw, 22px); border-radius: var(--radius); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line-soft); }
.calc-step-label { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); }
.calc-step-num { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; }
.toggle { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line-soft); }
.toggle-btn {
  flex: 1 1 180px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-2); font-weight: 700; font-size: 15px;
  transition: background 0.3s var(--ease-out), color 0.3s ease, box-shadow 0.3s ease;
}
.toggle-btn:hover { color: #fff; background: rgba(241, 90, 36, 0.1); }
.toggle-btn.is-active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(241, 90, 36, 0.9); }
.calc-field { margin-top: 16px; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--text); }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.55); color: var(--text);
  font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input:hover { border-color: var(--line); }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.25); }
.input::placeholder { color: rgba(213, 217, 226, 0.5); }
select.input {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F15A24' stroke-width='2.2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
select.input option { background: #0b0b12; color: var(--text); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper .input { max-width: 90px; text-align: center; }
.stepper-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(241, 90, 36, 0.1); color: #fff; font-size: 20px; cursor: pointer; transition: background 0.2s ease; }
.stepper-btn:hover { background: rgba(241, 90, 36, 0.25); }
.calc-hint { margin-top: 10px; font-size: 14px; color: var(--muted); }
.rate-note { margin-top: 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(241, 90, 36, 0.07); font-size: 14px; }
.slider-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 22px; }
.slider-head label { margin: 0; font-size: 15px; }
.slider-head output { font-size: 22px; font-weight: 700; }
.slider-range { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--muted); }
input[type="range"] { width: 100%; height: 28px; margin: 14px 0 0; background: transparent; -webkit-appearance: none; appearance: none; touch-action: pan-y; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--crimson), var(--orange) var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--grad); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 0 0 6px rgba(241, 90, 36, 0.18); transition: box-shadow 0.2s ease; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--orange); box-shadow: 0 0 0 6px rgba(241, 90, 36, 0.18); }
input[type="range"]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(241, 90, 36, 0.25); }
.cost-lines { display: grid; gap: 10px; margin-top: 22px; font-size: 15px; }
.cost-lines div { display: flex; justify-content: space-between; gap: 12px; }
.cost-lines dd { font-weight: 700; color: var(--text); }
.cost-lines .total { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 700; color: var(--text); }
.result-panel {
  position: sticky; top: calc(var(--nav-h) + 20px);
  padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); text-align: center;
  background: linear-gradient(160deg, rgba(60, 18, 14, 0.9), rgba(12, 8, 16, 0.92)); border: 1px solid var(--line);
}
.result-panel .calc-step-label { justify-content: center; }
.savings-figure { margin-top: 12px; font-size: clamp(36px, 5vw, 54px); font-weight: 700; line-height: 1.05; }
.savings-caption { margin-top: 8px; font-size: 15px; color: var(--text-2); }
.bars { display: grid; gap: 12px; margin: 22px 0; text-align: left; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.bar { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: 6px; transform-origin: left; }
.bar-inhouse { background: linear-gradient(90deg, #6b1a2c, var(--crimson)); }
.bar-tm { background: linear-gradient(90deg, var(--orange), var(--orange-2)); transform: scaleX(var(--scale, 0.3)); transition: transform 0.5s var(--ease-out); }
.result-panel .fine { margin-top: 10px; }
.calc-foot { margin-top: 20px; text-align: center; }
@media (max-width: 900px) {
  .calc-grid { grid-template-columns: 1fr; }
  .result-panel { position: static; }
}

/* ---------- Comparison table ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--line); background: var(--panel-bg); }
.cmp { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft); }
.cmp thead th { font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); background: rgba(241, 90, 36, 0.06); }
.cmp tbody th { width: 30%; font-weight: 700; color: var(--text); }
.cmp .tm { background: rgba(241, 90, 36, 0.09); border-left: 2px solid rgba(241, 90, 36, 0.55); color: var(--text); font-weight: 600; }
.cmp thead .tm { color: #fff; background: rgba(241, 90, 36, 0.2); }
.cmp tbody tr { transition: background 0.2s ease; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.cmp tbody tr:last-child > * { border-bottom: 0; }

/* ---------- Process ---------- */
.process { counter-reset: none; }
.process-step { padding: 22px; }
.process-num { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 0 0 6px rgba(241, 90, 36, 0.12); }
.process-when { margin-top: 14px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); }
.process-step .card-title { margin-top: 8px; }
@media (min-width: 981px) {
  .process-step:not(:last-child)::after {
    content: ""; position: absolute; top: 41px; left: 70px; right: -12px; height: 1px;
    background: repeating-linear-gradient(90deg, rgba(241, 90, 36, 0.6) 0 6px, transparent 6px 12px);
  }
}

/* ---------- Coverage ---------- */
.panel { position: relative; padding: clamp(24px, 5vw, 52px); border-radius: 22px; background: var(--panel-bg); border: 1px solid var(--line-soft); overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 100% 0%, rgba(241, 90, 36, 0.12), transparent 70%); }
.cov-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 30px; }
.sec-list > div { padding-left: 16px; border-left: 2px solid var(--orange); }
.sec-list h3 { display: flex; align-items: center; gap: 8px; font-family: var(--f-body); font-size: 16px; font-weight: 700; }
.sec-list h3 .icon { color: var(--orange); flex-shrink: 0; }
.sec-list p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); }
.clock { position: relative; display: grid; gap: 18px; padding: clamp(18px, 3vw, 26px); border-radius: var(--radius); background: rgba(12, 14, 24, 0.9); border: 1px solid var(--line-soft); }
.tz { display: grid; gap: 10px; }
.tz .row { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; color: var(--text-2); }
.tz .row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz .lane { position: relative; height: 26px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.tz .seg { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 6px; transition: left 0.6s var(--ease-out), width 0.6s var(--ease-out); }
.tz .seg.client { background: #D5DAE8; }
.tz .seg.team { background: var(--grad); }
.tz .ticks { display: grid; grid-template-columns: repeat(4, 1fr); padding-left: calc(7.5rem + 12px); font-size: 12px; color: var(--muted); }
.clock .out { font-size: 15px; color: var(--text-2); }
@media (max-width: 980px) { .cov-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sec-list { grid-template-columns: 1fr; }
  .tz .row { grid-template-columns: 1fr; gap: 6px; }
  .tz .ticks { padding-left: 0; }
}

/* ---------- Industries ---------- */
.subhead { margin-top: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.subhead.section-body { margin-top: clamp(24px, 4vw, 40px); }
.subhead h3 { font-size: clamp(17px, 1.9vw, 22px); font-weight: 700; }
.subhead p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.subhead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.subhead-lg { font-size: clamp(20px, 2.6vw, 30px) !important; }
.niche-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.niche-sub { margin-top: 4px; font-size: 14px; color: var(--muted); }
.niche-services { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.niche-kpi { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 700; color: var(--orange-2); }
.card-compact { padding: 22px; }

/* ---------- Pricing ---------- */
.plan { display: flex; flex-direction: column; border-top: 2px solid var(--line); }
.plan.is-featured { border: 1px solid rgba(241, 90, 36, 0.6); border-top: 2px solid var(--orange); background: linear-gradient(160deg, rgba(60, 18, 14, 0.88), rgba(10, 8, 16, 0.9)); box-shadow: 0 30px 60px -30px rgba(241, 90, 36, 0.55); }
.popular { position: absolute; top: 22px; right: 22px; padding: 4px 10px; border-radius: 6px; background: var(--grad); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.plan-name { font-size: clamp(18px, 2vw, 22px); font-weight: 700; }
.plan-from { margin-top: 16px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.plan-price { margin-top: 4px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; line-height: 1.1; color: var(--orange); }
.plan-unit { margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan .card-text { margin-top: 16px; }
.checklist { display: grid; gap: 10px; margin: 18px 0 24px; flex-grow: 1; font-size: 15px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { flex-shrink: 0; margin-top: 5px; color: var(--orange); }
.soft-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 28px; margin-top: 22px; padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--panel-bg); border: 1px solid var(--line-soft); }
.soft-panel h3 { font-size: 15px; font-weight: 700; }
.soft-panel p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

/* ---------- Testimonials & cases ---------- */
.testi-card { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.stars { color: var(--orange-2); letter-spacing: 3px; }
.testi-quote { margin: 0; flex-grow: 1; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.testi-person { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.testi-name { font-weight: 700; color: var(--text); }
.testi-role { font-size: 14px; color: var(--muted); }
.sample-flag { padding: 5px 10px; border-radius: 6px; border: 1px dashed rgba(255, 140, 0, 0.6); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange-2); }
.case-card { border-top: 3px solid var(--accent, var(--orange)); }
.case-card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; }
.case-card dl { display: grid; gap: 8px; margin-top: 16px; }
.case-card dt { margin-top: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent, var(--orange)); }
.case-card dd { font-size: 15px; color: var(--text-2); }
.case-card .result { font-size: clamp(20px, 2.2vw, 24px); font-weight: 700; color: var(--orange-2); }
.case-note { margin-top: 14px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line-soft); background: rgba(8, 8, 14, 0.82); transition: border-color 0.3s ease, background 0.3s ease; }
.faq-item:hover, .faq-item[open] { border-color: var(--line); background: rgba(14, 10, 16, 0.92); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px;
  list-style: none; cursor: pointer; font-size: 16.5px; font-weight: 700; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--orange); transform: translate(-50%, -50%); transition: transform 0.3s var(--ease-out); }
.faq-plus::before { width: 10px; height: 2px; }
.faq-plus::after { width: 2px; height: 10px; }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 20px 20px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }

/* ---------- Booking ---------- */
.panel-book { border-color: var(--line); }
.panel-book::before { background: radial-gradient(ellipse 60% 60% at 0% 100%, rgba(199, 11, 70, 0.2), transparent 70%), radial-gradient(ellipse 50% 50% at 100% 0%, rgba(241, 90, 36, 0.14), transparent 70%); }
.book-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.final-cta-title { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.2; }
.book-lead { margin-top: 16px; max-width: 460px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.book-meta { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; max-width: 440px; font-size: 14px; color: var(--muted); }
.book-meta .icon { flex-shrink: 0; margin-top: 3px; color: var(--orange-2); }
.book-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 600; color: var(--text); }
.book-mail .icon { color: var(--orange-2); }
.book-form { position: relative; display: grid; gap: 14px; padding: clamp(18px, 3vw, 26px); border-radius: var(--radius); background: rgba(12, 12, 20, 0.92); border: 1px solid var(--line-soft); }
.book-field label { font-size: 13.5px; margin-bottom: 6px; }
.field-err { min-height: 0; margin-top: 6px; font-size: 13px; font-weight: 600; color: #FF9B73; }
.field-err:empty { display: none; }
.input[aria-invalid="true"] { border-color: #FF6B4A; background: rgba(255, 107, 74, 0.08); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.book-success { padding: 36px 24px; border-radius: var(--radius); text-align: center; background: rgba(12, 12, 20, 0.92); border: 1px solid var(--line); }
.book-success-title { font-family: var(--f-head); font-size: 20px; font-weight: 700; color: var(--text); }
.book-success p { margin-top: 10px; color: var(--text-2); }
.book-success a { font-weight: 700; text-decoration: underline; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.78); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer .brand { padding-left: 0; }
.footer-desc { margin-top: 16px; max-width: 320px; font-size: 14.5px; color: var(--muted); }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(241, 90, 36, 0.06); color: var(--text);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}
.footer-social a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-col-title { margin-bottom: 14px; font-family: var(--f-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); }
.footer-muted { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-bottom { justify-content: center; text-align: center; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 1140px) {
  .sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px;
    padding: 10px clamp(16px, 4vw, 24px) calc(10px + env(safe-area-inset-bottom));
    background: rgba(4, 4, 8, 0.94); border-top: 1px solid var(--line-soft);
    transform: translateY(110%); transition: transform 0.4s var(--ease-out);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { flex: 1 1 0; min-height: 46px; padding: 10px 14px; font-size: 15px; }
  .footer { padding-bottom: 72px; }
}

/* ---------- Back to top (old theme: scroll-progress ring) ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 44; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(0, 0, 0, 0.7); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out), visibility 0s linear 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top::after {
  content: ""; position: absolute; inset: 0; border: 2px solid var(--orange); border-radius: 10px;
  -webkit-mask: conic-gradient(#000 calc(var(--progress, 0) * 360deg), transparent 0);
  mask: conic-gradient(#000 calc(var(--progress, 0) * 360deg), transparent 0);
}
.to-top-caret { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 10px solid var(--orange); transition: border-bottom-color 0.2s ease; }
.to-top:hover .to-top-caret { border-bottom-color: #fff; }
@media (max-width: 1140px) { .to-top { bottom: 84px; } }
@media (max-width: 640px) { .to-top { display: none; } }

/* ---------- Static starfield (reading pages: blog) ----------
   Same backdrop as the homepage scene without WebGL: the star image drifts very slowly. */
.scene-static .scene-stars {
  position: absolute; inset: -6%;
  background: var(--stars) center / cover no-repeat;
  opacity: 0.95;
  animation: stars-drift 140s ease-in-out infinite alternate;
}
@media (max-aspect-ratio: 3/4) { .scene-static .scene-stars { background-image: var(--stars-mobile); } }
@keyframes stars-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

/* ---------- Blog post cards (homepage "From the blog" and the blog pages) ---------- */
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-5px); border-color: rgba(241, 90, 36, 0.45); box-shadow: var(--glow); }
  .post-card:hover .post-card-media img { transform: scale(1.04); }
}
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1a0f14, #0b1020); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.post-card-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.post-card-placeholder img { width: 56px; height: 56px; object-fit: contain; opacity: 0.35; }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex-grow: 1; padding: 20px 22px 22px; }
.post-card-body .tag { align-self: flex-start; }
.post-card-title { font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: 0.01em; }
.post-card-title a { color: var(--text); }
.post-card-title a:hover { color: #FFB08A; }
.post-card-excerpt { flex-grow: 1; font-size: 14.5px; color: var(--text-2); }
.byline { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-facts { gap: 18px 28px; }
  .hero-facts > div { flex: 1 1 40%; }
  .logo-item { width: 160px; height: 64px; }
}

/* ---------- Reduced motion (only when HONOR_REDUCED_MOTION is on and the OS asks for it) ---------- */
html.reduce-motion { scroll-behavior: auto; }
.reduce-motion [data-anim] { opacity: 1; transform: none; transition: none; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }

/* ---------- Lenis smooth scrolling (lenis@1.3.26 base styles + native smooth-scroll off while it runs) ---------- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
html.lenis.lenis-smooth { scroll-behavior: auto; }

/* ---------- Simple page header (404 page) ---------- */
.blog-hero { padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(24px, 4vw, 40px); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7); }
.blog-hero-title { font-size: clamp(28px, 4.2vw, 48px); }
