:root {
  /* Sky blue, black, white — restrained enterprise palette */
  --primary-hue: 199;
  --secondary-hue: 199;
  --accent-hue: 199;
  --gold-hue: 199;

  --surface: 255 255 255;
  --ink: 10 10 10;
  --ink-soft: 64 64 64;
  --gold: #0ea5e9;
  --gold-light: #38bdf8;

  --accent-1: #0ea5e9;
  --accent-2: #0369a1;
  --accent-3: #0c4a6e;
  --accent-sky: #7dd3fc;

  --bg: #fafafa;
  --bg-soft: #f4f4f5;
  --text: rgb(var(--ink));
  --text-soft: rgb(var(--ink-soft));
  --line: rgba(0, 0, 0, 0.09);
  --sky: var(--accent-sky);
  --sky-dark: var(--accent-2);

  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.65rem 1rem;
  background: var(--accent-1);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px, 28px 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: rgba(14, 165, 233, 0.22);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* NO backdrop-filter here — it would create a containing block and trap
     position:fixed children (the mobile sidebar) relative to the header.
     The blur is applied via ::before instead. */
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

/* Glass-blur background lives on a pseudo-element so the header itself
   doesn't form a stacking/containing block for fixed children */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  z-index: -1;
  pointer-events: none;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-content: center;
  color: #fff;
  background: var(--accent-1);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-mark {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.brand-logo {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.35);
  object-fit: contain;
  display: block;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  color: var(--text-soft);
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  position: relative;
  transition: all 0.25s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(14, 165, 233, 0.08);
}

.nav-link.active {
  color: var(--accent-2);
  font-weight: 600;
  background: rgba(14, 165, 233, 0.1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.2s ease,
              width 0.25s ease;
  transform-origin: center;
}

/* Morphs to × when sidebar open */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Sidebar drawer (mobile) ─────────────────────── */
.nav-backdrop.visible {
  opacity: 1;
}

/* Page & Sections */
.page {
  padding: 0;        /* hero sits flush against the sticky header */
}

.section {
  padding: 6rem 0;
}

.section:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* Typography */
h1, .h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.15;
  margin: 0 0 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  background: none;
  -webkit-text-fill-color: currentColor;
}

h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-align: center;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.8rem;
}

.lead {
  color: var(--text-soft);
  max-width: 65ch;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.section > .lead, .section > h2 {
  max-width: 70ch;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.section > .eyebrow {
  text-align: center;
}

/* Buttons */
.btn-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.section .btn-row {
  justify-content: center;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  padding: 0.9rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(0,0%,100%,.25), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0284c7;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(14, 165, 233, 0.04);
  box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-animated {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 0;
  display: flex;
  align-items: center;
  /* Lightened overlay — lets the background photo breathe while keeping text readable */
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.72) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(12, 18, 28, 0.45) 100%),
    radial-gradient(ellipse 55% 50% at 8% 100%, rgba(14, 165, 233, 0.18), transparent),
    radial-gradient(ellipse 45% 40% at 92% 8%, rgba(56, 189, 248, 0.12), transparent),
    url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1920&q=82') center 32% / cover no-repeat;
}
.hero-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 0;
  pointer-events: none;
}

.hero-canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.85;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 0;
}

.hero-content h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #e0f2fe;
  -webkit-text-fill-color: #e0f2fe;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 1.6rem;
}

.hero-content .lead {
  margin-inline: auto;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 68ch;
  line-height: 1.75;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ── Hero contact row ────────────────────────────── */
.hero-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  font-size: 0.87rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.hero-contact-btn:hover {
  transform: translateY(-2px);
}

.hero-contact-btn i {
  font-size: 0.95rem;
}

.hero-contact-btn--call {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  color: #fff;
}

.hero-contact-btn--call:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.hero-contact-btn--whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.hero-contact-btn--whatsapp:hover {
  background: #1ebe5a;
  border-color: #1ebe5a;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.hero-contact-btn--email {
  background: rgba(14,165,233,0.15);
  border-color: rgba(14,165,233,0.45);
  color: rgba(147,210,247,1);
}

.hero-contact-btn--email:hover {
  background: rgba(14,165,233,0.28);
  border-color: rgba(14,165,233,0.7);
  color: #fff;
  box-shadow: 0 6px 20px rgba(14,165,233,0.25);
}

@media (max-width: 480px) {
  .hero-contact-row { gap: 0.5rem; }
  .hero-contact-btn { font-size: 0.82rem; padding: 0.5rem 1rem; }
}

/* ── Hero stats ──────────────────────────────────── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  background: none;
  border: none;
  border-radius: 0;
  padding: 1.8rem 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  max-width: 640px;
  margin-inline: auto;
  margin-top: 3.5rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat {
  text-align: center;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.hero-stat:last-child {
  border-right: none;
}

.hero-stat h3 {
  font-size: 2.8rem;
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.hero-stat p {
  margin: 0.35rem 0 0;
  font-weight: 500;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Scroll-down mouse indicator */
.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.scroll-hint:hover {
  border-color: rgba(14,165,233,0.55);
}
.scroll-hint::after {
  content: '';
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { opacity: 1; transform: translateY(0); }
  65%  { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* Code-line decorations in hero */
.hero-code-decor {
  position: absolute;
  right: max(2rem, calc((100vw - 1200px) / 2 - 1rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}
.hero-code-line {
  height: 2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.06);
  animation: code-pulse 3.5s ease-in-out infinite;
}
.hero-code-line:nth-child(1) { width: 140px; animation-delay: 0s; }
.hero-code-line:nth-child(2) { width: 96px;  animation-delay: 0.4s; background: rgba(59,130,246,0.15); }
.hero-code-line:nth-child(3) { width: 120px; animation-delay: 0.8s; }
.hero-code-line:nth-child(4) { width: 80px;  animation-delay: 1.2s; background: rgba(14,165,233,0.18); }
.hero-code-line:nth-child(5) { width: 110px; animation-delay: 1.6s; }
.hero-code-line:nth-child(6) { width: 64px;  animation-delay: 2s;   background: rgba(125, 211, 252, 0.14); }
.hero-code-line:nth-child(7) { width: 130px; animation-delay: 2.4s; }
.hero-code-line:nth-child(8) { width: 88px;  animation-delay: 2.8s; }
@keyframes code-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Cards & Grids */
.surface, .card, .panel, .article {
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover, .panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: hsla(var(--primary-hue), 90%, 55%, 0.2);
}

.card, .panel, .article {
  padding: 2rem;
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 1.8rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }

.card h3, .article h3 {
  margin-top: 0;
}

.card p, .article p, .panel p, li {
  color: var(--text-soft);
  line-height: 1.7;
}

.list {
  margin: 1rem 0;
  padding-left: 1.2rem;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   SERVICE DETAIL ARTICLES
   ═══════════════════════════════════════════════════ */
.service-detail {
  padding: 5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.service-detail:first-child {
  padding-top: 0;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.service-detail-grid.reverse .detail-img {
  order: 2;
}

.service-detail .detail-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.service-detail .detail-img:hover {
  transform: scale(1.03);
  box-shadow: 0 24px 64px hsla(var(--primary-hue), 50%, 20%, 0.18);
}

/* Strip card styles from .article inside service detail */
.service-detail .article {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.service-num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-1);
  background: hsla(var(--primary-hue), 90%, 55%, 0.07);
  border: 1px solid hsla(var(--primary-hue), 90%, 55%, 0.18);
  border-radius: 999px;
  padding: 0.22rem 0.85rem;
  margin-bottom: 1.1rem;
}

.service-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1.1rem;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-1);
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.service-detail .article h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
  color: var(--text);
}

/* Upgraded article-link → pill CTA */
.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.6rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  background: var(--accent-1);
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
  text-decoration: none;
}

.article-link::after {
  content: '→';
  transition: transform 0.2s ease;
  display: inline-block;
}

.article-link:hover {
  transform: translateY(-2px);
  background: #0284c7;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.38);
}

.article-link:hover::after {
  transform: translateX(5px);
}

/* Services page bottom CTA */
.services-cta {
  background: linear-gradient(165deg, #050505 0%, #0f172a 50%, #0a0a0a 100%);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 75% at 50% 45%, rgba(14, 165, 233, 0.1), transparent),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  pointer-events: none;
}

.services-cta .container {
  position: relative;
  z-index: 1;
}

.services-cta .eyebrow {
  color: var(--accent-sky);
  background: none;
  -webkit-text-fill-color: var(--accent-sky);
}

.services-cta h2 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.services-cta .lead {
  color: rgba(255,255,255,0.55);
  margin-inline: auto;
  max-width: 56ch;
}

/* ═══════════════════════════════════════════════════
   BRANDS TICKER  — Super-classic dark band
   ═══════════════════════════════════════════════════ */
.brands-ticker-section {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #111827 50%, #0a0a0a 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.brands-ticker-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
/* thin sky-blue accent line at very top */
.brands-ticker-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent,
    rgba(56,189,248,0.5) 20%,
    rgba(186,230,253,0.8) 50%,
    rgba(56,189,248,0.5) 80%,
    transparent);
}

.brands-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.4rem 0 0.8rem;
  position: relative;
  z-index: 1;
}

.brands-header-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,0.35));
}
.brands-header-line:last-child {
  background: linear-gradient(90deg, rgba(56,189,248,0.35), transparent);
}

.brands-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7dd3fc;
  background: none;
  -webkit-text-fill-color: #7dd3fc;
  margin: 0;
  white-space: nowrap;
}

.brands-ticker {
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding-bottom: 1.4rem;
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 10%,
    #000 90%,
    transparent 100%);
}

.brands-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ticker-ltr 32s linear infinite;
}

@keyframes ticker-ltr {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.brands-track:hover {
  animation-play-state: paused;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(186,230,253,0.65);
  white-space: nowrap;
  padding: 0 1.6rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  cursor: default;
  position: relative;
}

.brands-track:hover .brand-name:hover {
  color: #bae6fd;
  text-shadow: 0 0 18px rgba(56,189,248,0.55), 0 0 36px rgba(56,189,248,0.2);
}

.brand-sep {
  color: #38bdf8;
  font-size: 0.42rem;
  opacity: 0.5;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.6));
}

.service-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.service-card .icon {
  display: inline-block;
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, hsla(var(--primary-hue), 90%, 55%, 0.1), hsla(var(--secondary-hue), 85%, 60%, 0.1));
  margin-bottom: 1.5rem;
  color: var(--accent-1);
  font-size: 2rem;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split .article {
  padding: 3rem;
}

.split img, .detail-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.process-grid .card {
  text-align: center;
}

.process-grid .card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.process-grid .card h3::before {
  counter-increment: process-step;
  content: counter(process-step);
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

body {
  counter-reset: process-step;
}

.project-card .detail-img {
  aspect-ratio: 16 / 10;
  margin-bottom: 1.5rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: hsla(var(--primary-hue), 30%, 50%, 0.1);
  color: var(--text-soft);
}

.final-cta {
  text-align: center;
  background: linear-gradient(165deg, #0a0a0a 0%, #0f172a 45%, #020617 100%);
  color: #fff;
  padding: 4rem 2rem;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.final-cta p {
  color: hsla(0, 0%, 100%, 0.7);
  max-width: 60ch;
  margin-inline: auto;
}

.final-cta .btn-primary {
  background: #fff;
  color: #0a0a0a;
}
.final-cta .btn-primary:hover {
  background: #f0f9ff;
  color: #0a0a0a;
}

.final-cta .btn-secondary {
  border-color: hsla(0, 0%, 100%, 0.3);
  color: #fff;
  background: transparent;
}

/* Footer */
.site-footer {
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 2.5rem 2rem;
  padding: 3.5rem 0 2.5rem;
  text-align: left;
}

.site-footer-col {
  min-width: 0;
}

.site-footer-brand .brand {
  color: #fff;
}

.site-footer-desc {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28ch;
}

.site-footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 1rem;
}

.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer-list a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer-list a:hover {
  color: var(--accent-sky);
}

.site-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
}

.site-footer-bar p {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 900px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    padding-top: 2.75rem;
  }
}

@media (max-width: 560px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split img {
    order: -1;
  }
}

/* ============================================
   MOBILE HERO  ≤ 640px — dedicated layout
   ============================================ */
@media (max-width: 640px) {
  .hero-animated {
    background:
      linear-gradient(160deg, rgba(0, 0, 0, 0.72) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(12, 18, 28, 0.45) 100%),
      radial-gradient(ellipse 55% 50% at 8% 100%, rgba(14, 165, 233, 0.18), transparent),
      radial-gradient(ellipse 45% 40% at 92% 8%, rgba(56, 189, 248, 0.12), transparent),
      url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1920&q=82') center 28% / cover no-repeat;
    min-height: 100svh;
    align-items: flex-start;
    padding-top: 0;
  }

  /* Content block sits a bit lower than center — premium feel */
  .hero-content {
    padding-top: 3.5rem;
    padding-bottom: 6rem;         /* leave room for scroll indicator */
  }

  .hero-content h1 {
    font-size: clamp(2.4rem, 10vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  }

  /* Eyebrow pill — smaller and tighter on mobile */
  .hero-content .eyebrow {
    font-size: 0.72rem;
    padding: 0.38rem 1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
    /* Reset the global gradient-clip so text is actually visible */
    background: rgba(14,165,233,0.12);
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #7dd3fc;  /* sky-300 — crisp on dark */
    color: #7dd3fc;
    border: 1px solid rgba(56,189,248,0.45);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  /* Lead text — short and punchy on mobile */
  .hero-content .lead {
    font-size: 0.97rem;
    line-height: 1.68;
    color: rgba(255,255,255,0.95);
    max-width: 100%;
    margin-bottom: 1.6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.62);
  }

  /* Buttons — full-width stacked */
  .hero-content .btn-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1.6rem;
  }

  .hero-content .btn-row .btn {
    justify-content: center;
    padding: 0.95rem 1.4rem;
    font-size: 0.97rem;
  }

  /* Make the outline button clearly visible on dark mobile hero */
  .hero-content .btn-outline-light {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.1);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Stats — 2 × 2 grid instead of a horizontal row */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 2.2rem;
    border-radius: 0;
    padding: 1rem 0;
    background: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    max-width: 100%;
  }

  .hero-stat {
    padding: 0.9rem 0.6rem;
    border-right: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  /* Remove right border on even (2nd col), remove bottom on last row */
  .hero-stat:nth-child(2n) {
    border-right: none;
  }
  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    border-bottom: none;
  }

  .hero-stat h3 {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(14,165,233,0.35));
  }

  .hero-stat p {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  /* Canvas text sits behind the lead paragraph — full opacity to make letters clearly visible */
  .hero-canvas {
    opacity: 0.85;
  }

  /* Fade-to-page-bg at bottom */
  .hero-animated::after {
    height: 140px;
  }

  /* Scroll indicator stays visible but moves up a touch */
  .scroll-hint {
    display: flex;
    bottom: 1.6rem;
  }
}

@media (max-width: 768px) {
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-grid.reverse .detail-img {
    order: 0;
  }

  .service-detail {
    padding: 3.5rem 0;
  }

  .service-detail:first-child {
    padding-top: 0;
  }

  /* ── Sidebar drawer ────────────────────────────── */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .nav-backdrop.visible {
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100vh;           /* belt-and-suspenders for full height */
    width: min(320px, 82vw);
    background: hsl(var(--primary-hue), 35%, 98%);
    flex-direction: column;
    align-items: stretch;
    padding: 5.5rem 1.6rem 2.5rem;
    box-shadow: -8px 0 40px rgba(4, 10, 28, 0.18);
    border-left: 1px solid var(--line);
    transform: translateX(110%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1060;
    overflow-y: auto;
    gap: 0.3rem;
  }

  .site-nav.open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Nav links inside sidebar */
  .nav-link {
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: none;
    display: flex;
    align-items: center;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover {
    background: hsla(var(--primary-hue), 20%, 75%, 0.18);
    color: var(--accent-1);
  }

  .nav-link.active {
    background: hsla(var(--primary-hue), 90%, 55%, 0.1);
    color: var(--accent-1);
    font-weight: 700;
  }

  /* Sidebar brand header */
  .site-nav::before {
    content: 'Code Forge';
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  /* Sidebar bottom CTA */
  .site-nav::after {
    content: 'Get in touch →';
    display: block;
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent-1);
    opacity: 0.75;
  }

  .grid-3, .grid-4 {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .split .article {
    padding: 1.8rem;
  }

  .hero-content {
    padding: 3rem 0.5rem;
  }

  .page-hero {
    padding: 5.5rem 0 4rem;
  }

  .card, .panel, .article {
    padding: 1.6rem;
  }

  h2 {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
  }
}

@media (max-width: 576px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 1.2rem;
    flex-direction: column;
    border-radius: 14px;
    padding: 1.4rem 1rem;
  }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding-bottom: 1.2rem;
  }
  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero-code-decor {
    display: none;
  }
  .scroll-hint {
    display: none;
  }

  /* Better mobile spacing */
  .section {
    padding: 3rem 0;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .page-hero {
    padding: 4.5rem 0 3rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .lead {
    font-size: 1rem;
  }

  .btn {
    padding: 0.8rem 1.4rem;
    font-size: 0.95rem;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn {
    text-align: center;
    justify-content: center;
  }

  .card, .panel, .article {
    padding: 1.4rem;
  }

  .service-card {
    padding: 2rem 1.2rem;
  }

  .hero-stat h3 {
    font-size: 2.2rem;
  }

h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

/* ============================================
   PREMIUM BUTTON VARIANTS
   ============================================ */
.btn-gold {
  background: var(--accent-1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: #0284c7;
  box-shadow: 0 8px 26px rgba(14, 165, 233, 0.45);
}
.btn-outline-light {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================
   PAGE HERO  (inner / sub pages)
   ============================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #050505 0%, #0f172a 55%, #0c1929 100%);
  padding: 7rem 0 5.5rem;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 70% 60% at 80% 60%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 22px 22px;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero .eyebrow {
  color: var(--accent-sky);
  background: none;
  -webkit-text-fill-color: var(--accent-sky);
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  margin-bottom: 1.2rem;
}
.page-hero .lead {
  color: rgba(255,255,255,0.58);
  margin-inline: auto;
  text-align: center;
  max-width: 68ch;
}
.page-hero .btn-row {
  justify-content: center;
}
.page-hero .hero-stat h3 {
  color: var(--accent-sky);
  background: none;
  -webkit-text-fill-color: var(--accent-sky);
}
.page-hero .hero-stat p {
  color: rgba(255,255,255,0.5);
}
/* Floating math symbols in page hero */
.page-hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.math-symbol {
  position: absolute;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  opacity: 0.04;
  color: #fff;
  font-family: 'Courier New', monospace;
  user-select: none;
  animation: math-drift 12s ease-in-out infinite;
}
.math-symbol:nth-child(2) { animation-delay: -2s; }
.math-symbol:nth-child(3) { animation-delay: -4s; }
.math-symbol:nth-child(4) { animation-delay: -6s; }
.math-symbol:nth-child(5) { animation-delay: -8s; }
.math-symbol:nth-child(6) { animation-delay: -10s; }
@keyframes math-drift {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: 0.04; }
  50%      { transform: translateY(-18px) rotate(6deg); opacity: 0.07; }
}

/* ============================================
   CALCULATOR IMPACT SECTION
   ============================================ */
.calc-section {
  background: linear-gradient(165deg, #04101f 0%, #060e22 60%, #080f20 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.calc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59,130,246,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.calc-section .eyebrow {
  color: var(--accent-sky);
  background: none;
  -webkit-text-fill-color: var(--accent-sky);
  text-align: center;
}
.calc-section h2 {
  color: #fff;
}
.calc-section .lead {
  text-align: center;
  margin-inline: auto;
}
/* The calculator card */
.calc-card {
  background: #060f1d;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease, border-color 0.35s ease;
  position: relative;
}
.calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
  z-index: 0;
}
.calc-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 36px 80px rgba(0,0,0,0.55), 0 0 32px rgba(14,165,233,0.12);
  border-color: rgba(14,165,233,0.22);
}
/* Calculator screen / display */
.calc-display {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #020c18 0%, #03111f 100%);
  padding: 1.8rem 1.6rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-family: 'Courier New', 'Lucida Console', monospace;
  text-align: right;
}
.calc-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  font-family: 'Poppins', sans-serif;
  text-align: left;
}
.calc-result {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(14,165,233,0.5), 0 0 60px rgba(14,165,233,0.18);
  font-family: 'Courier New', monospace;
}
.calc-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
/* Calculator button grid */
.calc-buttons {
  position: relative;
  z-index: 1;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(0,0,0,0.1);
}
.calc-btn-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.55rem 0.3rem;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: default;
  line-height: 1.3;
}
.calc-btn-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.8);
}
.calc-btn-item.accent-blue {
  background: hsla(222, 80%, 60%, 0.1);
  border-color: hsla(222, 80%, 60%, 0.2);
  color: #60a5fa;
}
.calc-btn-item.accent-green {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
  color: #7dd3fc;
}
.calc-btn-item.accent-amber {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
}
.calc-operator {
  background: rgba(14,165,233,0.08);
  border-color: rgba(14,165,233,0.18);
  color: rgba(56,189,248,0.75);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Courier New', monospace;
}

/* ============================================
   SYSTEM PORTFOLIO CARDS
   ============================================ */
.sys-card {
  position: relative;
  padding-top: 0;
  overflow: visible;
}
.sys-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--sys-accent, linear-gradient(90deg, var(--accent-1), var(--accent-2)));
}
.sys-card > *:first-child {
  padding-top: 2rem;
}
.sys-icon {
  display: inline-grid;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  place-content: center;
  font-size: 1.7rem;
  margin-bottom: 1.2rem;
  margin-top: 2rem;
  background: hsla(var(--sys-hue, var(--primary-hue)), 80%, 56%, 0.1);
  border: 1px solid hsla(var(--sys-hue, var(--primary-hue)), 80%, 56%, 0.15);
}
.sys-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}
.sys-feature-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: hsla(var(--sys-hue, var(--primary-hue)), 60%, 56%, 0.08);
  color: hsl(var(--sys-hue, var(--primary-hue)), 55%, 42%);
  font-weight: 600;
  border: 1px solid hsla(var(--sys-hue, var(--primary-hue)), 60%, 56%, 0.18);
}

/* Responsive calc cards */
@media (max-width: 900px) {
  .calc-grid-wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .calc-grid-wrap {
    grid-template-columns: 1fr;
  }
  .calc-result {
    font-size: 2.4rem;
  }
}

/* ═══════════════════════════════════════════════════
   CONTACT FORM & PAGE
   ═══════════════════════════════════════════════════ */

/* Contact page two-column layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

/* ── Form ─────────────────────────────────────────── */
.contact-form {
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.contact-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: hsl(var(--primary-hue), 30%, 99%);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px hsla(var(--primary-hue), 90%, 55%, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: hsla(var(--primary-hue), 20%, 60%, 0.55);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

/* Custom select chevron */
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
  font-size: 0.85rem;
}

.contact-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  padding: 1rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.4em;
}
.form-status.success {
  color: #0369a1;
}
.form-status.error {
  color: #b91c1c;
}

/* ── Contact Info Sidebar ─────────────────────────── */
.contact-info-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  border-color: hsla(var(--primary-hue), 90%, 55%, 0.2);
}

.contact-info-card .ci-icon {
  flex-shrink: 0;
  display: grid;
  place-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: linear-gradient(135deg, hsla(var(--primary-hue), 90%, 55%, 0.1), hsla(var(--secondary-hue), 85%, 60%, 0.1));
  color: var(--accent-1);
  font-size: 1.05rem;
  border: 1px solid hsla(var(--primary-hue), 90%, 55%, 0.12);
}

.contact-info-card .ci-body strong {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.25rem;
}

.contact-info-card .ci-body span,
.contact-info-card .ci-body a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
}

.contact-info-card .ci-body a:hover {
  color: var(--accent-1);
}

/* Chat / messaging card — aligned to site palette */
.contact-info-card.whatsapp-card {
  border-color: rgba(14, 165, 233, 0.22);
}
.contact-info-card.whatsapp-card .ci-icon {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-1);
  border-color: rgba(14, 165, 233, 0.2);
}
.contact-info-card.whatsapp-card .ci-body a {
  color: var(--accent-2);
}

/* Location photo */
.contact-location-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-top: 0.5rem;
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-item {
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: hsla(var(--primary-hue), 90%, 55%, 0.2);
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.faq-item h3 i {
  color: var(--accent-1);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.faq-item p {
  color: var(--text-soft);
  line-height: 1.7;
  margin: 0;
  font-size: 0.93rem;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.8rem 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .brands-track {
    animation: none;
  }
  .scroll-hint::after {
    animation: none;
  }
  .math-symbol {
    animation: none;
  }
}

/* ═══ BLOG START ════════════════════════════════════ */

/* ── Section ─────────────────────────────────────── */
.blog-section {
  padding: clamp(4rem, 7vw, 5.5rem) 0;
  position: relative;
  overflow: hidden;
  background:
    url('images/kevin-ku-w7ZyuGYNpRQ-unsplash.jpg')
    center center / cover no-repeat;
}

/* dark overlay so text + white cards stay readable */
.blog-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 12, 24, 0.62) 0%,
    rgba(5, 18, 35, 0.55) 50%,
    rgba(3, 10, 22, 0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* sky-blue glow in top-left corner */
.blog-section::after {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.blog-section .container {
  position: relative;
  z-index: 1;
}

/* ── Section header ──────────────────────────────── */
.blog-section__head {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.blog-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.blog-section__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.4);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-section__tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  flex-shrink: 0;
  animation: blog-pulse 2s ease-in-out infinite;
}

@keyframes blog-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.blog-section__tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
  font-weight: 400;
}

.blog-section__title {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #f0f6ff;
}

.blog-section__lead {
  margin: 0;
  font-size: clamp(0.93rem, 1.4vw, 1.02rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 40rem;
}

/* ── Empty state ─────────────────────────────────── */
.blog-empty {
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border: 1px dashed rgba(14,165,233,0.3);
  color: rgba(255,255,255,0.4);
  text-align: center;
  max-width: 30rem;
  font-size: 0.93rem;
}

/* ── Carousel wrapper ────────────────────────────── */
.blog-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Carousel track ──────────────────────────────── */
.blog-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem 1.25rem;
  flex: 1;
  min-width: 0;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-carousel::-webkit-scrollbar { display: none; }

/* ── Arrow buttons ───────────────────────────────── */
.blog-carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
  z-index: 2;
  backdrop-filter: blur(6px);
}

.blog-carousel-btn:hover {
  background: rgba(14,165,233,0.25);
  border-color: rgba(14,165,233,0.6);
  transform: scale(1.08);
}

.blog-carousel-btn:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.blog-carousel-btn--prev { margin-right: 0.75rem; }
.blog-carousel-btn--next { margin-left:  0.75rem; }

/* ── Card ────────────────────────────────────────── */
.blog-card {
  --pad: 1.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
  transition:
    transform    0.32s cubic-bezier(0.22,1,0.36,1),
    box-shadow   0.32s ease,
    border-color 0.28s ease;
  animation-fill-mode: both;
  /* carousel sizing */
  flex: 0 0 clamp(270px, 30vw, 340px);
  width:       clamp(270px, 30vw, 340px);
  scroll-snap-align: start;
}

.blog-card.visible {
  animation: bci 0.55s cubic-bezier(0.22,1,0.36,1) calc(var(--card-i,0) * 90ms) both;
}

@keyframes bci {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}

/* coloured top bar */
.blog-card__top-bar {
  height: 4px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #7dd3fc 100%);
}

/* large ghost number */
.blog-card__body {
  padding: var(--pad);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.blog-card__body::after {
  content: attr(data-num);
  position: absolute;
  top: calc(var(--pad) - 0.2rem);
  right: calc(var(--pad) - 0.2rem);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(14,165,233,0.06);
  pointer-events: none;
  user-select: none;
  transition: color 0.3s;
}

/* date + read time */
.blog-card__meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.blog-card__sep  { opacity: 0.35; }

.blog-card__rt {
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* title */
.blog-card__title {
  font-size: clamp(1.05rem, 1.8vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.32;
  margin: 0 0 0.75rem;
  color: #0f172a;
  transition: color 0.22s;
}

/* excerpt */
.blog-card__excerpt {
  flex: 1;
  margin: 0 0 1.25rem;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* footer */
.blog-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem var(--pad);
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  flex-shrink: 0;
}

.blog-card__author-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.blog-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(14,165,233,0.3);
}

.blog-card__author {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* read CTA pill */
.blog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 100px;
  border: 1px solid rgba(14,165,233,0.35);
  background: rgba(14,165,233,0.07);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}

.blog-card__arrow {
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
}

/* ── Hover ───────────────────────────────────────── */
.blog-card:hover,
.blog-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(14,165,233,0.4);
  box-shadow:
    0 0 0 1px rgba(14,165,233,0.1),
    0 12px 32px rgba(0,0,0,0.22),
    0 0 40px rgba(14,165,233,0.08);
  outline: none;
}

.blog-card:hover .blog-card__body::after,
.blog-card:focus-visible .blog-card__body::after {
  color: rgba(14,165,233,0.1);
}

.blog-card:hover .blog-card__title,
.blog-card:focus-visible .blog-card__title {
  color: var(--accent-2);
}

.blog-card:hover .blog-card__cta,
.blog-card:focus-visible .blog-card__cta {
  background: rgba(14,165,233,0.14);
  border-color: rgba(14,165,233,0.55);
  color: var(--accent-2);
}

.blog-card:hover .blog-card__arrow,
.blog-card:focus-visible .blog-card__arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════
   BLOG MODAL — Premium reading popup
═══════════════════════════════════════════════════ */

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .blog-modal {
    align-items: center;
    padding: 1.5rem;
  }
}

.blog-modal[hidden] { display: none; }

/* backdrop */
.blog-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.75);
  backdrop-filter: blur(10px) saturate(1.4);
  animation: modal-bg-in 0.3s ease both;
}

.blog-modal.is-closing .blog-modal__backdrop {
  animation: modal-bg-out 0.28s ease both;
}

@keyframes modal-bg-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-bg-out { from { opacity: 1; } to { opacity: 0; } }

/* panel */
.blog-modal__panel {
  position: relative;
  z-index: 1;
  width: min(44rem, 100%);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 -2px 40px rgba(0,0,0,0.15), 0 32px 80px rgba(0,0,0,0.25);
  animation: modal-panel-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 640px) {
  .blog-modal__panel {
    border-radius: 20px;
    max-height: 88vh;
    animation-name: modal-panel-in;
  }
}

.blog-modal.is-closing .blog-modal__panel {
  animation: modal-panel-down 0.28s ease both;
}

@media (min-width: 640px) {
  .blog-modal.is-closing .blog-modal__panel {
    animation-name: modal-panel-out;
  }
}

@keyframes modal-panel-up   { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes modal-panel-down { from { transform: translateY(0); opacity: 1; } to { transform: translateY(60px); opacity: 0; } }
@keyframes modal-panel-in   { from { transform: scale(0.95) translateY(20px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes modal-panel-out  { from { transform: scale(1); opacity: 1; } to { transform: scale(0.97); opacity: 0; } }

/* header */
.blog-modal__header {
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(150deg, #0c1e2e 0%, #0a1828 100%);
  padding: 1.25rem 1.5rem 1.6rem;
}
@media (min-width: 640px) {
  .blog-modal__header { padding: 1.5rem 2rem 1.85rem; }
}

.blog-modal__header-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--accent-1), #38bdf8 50%, #7dd3fc);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.blog-modal__header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.blog-modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 100px;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #7dd3fc;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-modal__tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: tag-pulse 2s ease infinite;
}

@keyframes tag-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.blog-modal__close {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.blog-modal__close:hover {
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(14, 165, 233, 0.5);
  color: #fff;
}

.blog-modal__title {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

/* meta: avatar + author + date + reading time */
.blog-modal__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-modal__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-3) 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.blog-modal__meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blog-modal__author {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.blog-modal__meta-sub {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.45);
}

.blog-modal__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* scrollable body area */
.blog-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.75rem 1.5rem;
  scroll-behavior: smooth;
}
@media (min-width: 640px) {
  .blog-modal__body { padding: 2.25rem 2rem; }
}

.blog-modal__body:focus { outline: none; }

.blog-modal__body p {
  margin: 0 0 1.3rem;
  font-size: clamp(0.97rem, 1.5vw, 1.05rem);
  line-height: 1.82;
  color: #2d3038;
  font-weight: 400;
}

.blog-modal__body p:first-child::first-letter {
  font-size: 3.1em;
  font-weight: 800;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--accent-2);
  font-family: Georgia, serif;
}

.blog-modal__body p:last-child {
  margin-bottom: 0;
}

/* footer with close button */
.blog-modal__footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  justify-content: flex-start;
}

.blog-modal__close-bottom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.blog-modal__close-bottom:hover {
  background: rgba(14, 165, 233, 0.06);
  border-color: rgba(14, 165, 233, 0.3);
  color: var(--accent-2);
}

/* ── Reduced motion overrides ────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .blog-card           { transition: none; animation: none; }
  .blog-card.visible   { animation: none; opacity: 1; transform: none; }
  .blog-card:hover,
  .blog-card:focus-visible { transform: none; }
  .blog-card__arrow    { transition: none; }
  .blog-card:hover .blog-card__arrow,
  .blog-card:focus-visible .blog-card__arrow { transform: none; }
  .blog-modal__backdrop,
  .blog-modal__panel   { animation: none; }
  .blog-modal.is-closing .blog-modal__backdrop,
  .blog-modal.is-closing .blog-modal__panel { animation: none; opacity: 0; }
}
/* ═══ BLOG END ══════════════════════════════════════ */

/* ═══ SCENE BREAK ═══════════════════════════════════ */
.scene-break {
  width: 100%;
  height: clamp(180px, 28vw, 340px);
  overflow: hidden;
  position: relative;
  display: block;
}

.scene-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.scene-break:hover img {
  transform: scale(1.03);
}

.scene-break::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 24, 0.25) 0%,
    rgba(5, 12, 24, 0.15) 50%,
    rgba(5, 12, 24, 0.28) 100%
  );
  pointer-events: none;
}
/* ═══ SCENE BREAK END ═══════════════════════════════ */

/* ── Blog admin (admin.html) ───────────────────────── */
.admin-gate-card {
  max-width: 420px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.admin-gate-card .form-group {
  margin-bottom: 1rem;
}

.admin-gate-err {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-top: 0.5rem;
  min-height: 1.25em;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-post-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgb(var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-wrap: wrap;
}

.admin-post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.admin-link-badge {
  font-size: 0.83rem;
  color: var(--text-soft);
  margin: 0 0 1.25rem;
  min-height: 1.2em;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.text-soft {
  color: var(--text-soft);
}

.admin-status {
  font-size: 0.88rem;
  margin-top: 1rem;
  color: var(--accent-2);
}

.admin-note {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}
