/* Alphabyte Technologies — design tokens
   Style: Minimalism / Swiss · Type: Outfit + Work Sans · Brand 2026 blues (logo kit) + orange CTA accent */
:root {
  --color-primary: #0A6C93;         /* brand descriptor blue: 5.9:1 with white text */
  --color-primary-dark: #004D6D;
  --color-on-primary: #FFFFFF;
  --color-secondary: #0094D2;       /* brand BYTE blue: large text / decorative only */
  --color-accent: #C2410C;          /* orange 700: 5.2:1 with white text */
  --color-accent-hover: #9A3412;
  --color-accent-bright: #F97316;   /* decorative only */
  --color-background: #F7FAFC;
  --color-foreground: #1C2F3A;
  --color-heading: #003A54;         /* brand ALPHA navy */
  --color-card: #FFFFFF;
  --color-muted: #EEF4F7;
  --color-muted-foreground: #46606E;
  --color-border: #DCE7ED;
  --color-ring: #0A6C93;
  --color-dark: #061A26;
  --color-dark-2: #0B2C3F;
  --color-on-dark: #E1ECF2;
  --color-on-dark-muted: #A7BFCC;
  --color-success: #15803D;
  --color-danger: #B91C1C;

  --font-heading: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Work Sans', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgb(6 32 48 / .06), 0 1px 3px rgb(6 32 48 / .08);
  --shadow: 0 10px 30px -12px rgb(6 32 48 / .18);
  --shadow-lg: 0 24px 60px -20px rgb(6 32 48 / .3);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--color-primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-heading); line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.icon { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; }
.container-wide { max-width: 1040px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 600 1rem/1.2 var(--font-heading);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); box-shadow: 0 8px 20px -8px rgb(10 108 147 / .6); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 8px 22px -8px rgb(194 65 12 / .65); }
.btn-accent:hover { background: var(--color-accent-hover); }
.btn-outline { border-color: var(--color-border); color: var(--color-heading); background: var(--color-card); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-ghost-light { border-color: rgb(255 255 255 / .45); color: #fff; background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.site-header.is-over-dark { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.site-header.is-over-dark:not(.is-scrolled) .site-nav a:not(.btn) { color: #fff; }
.site-header.is-over-dark:not(.is-scrolled) .nav-toggle { color: #fff; }
.site-header.is-scrolled { background: rgb(255 255 255 / .95); backdrop-filter: saturate(180%) blur(12px); border-color: var(--color-border); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }

/* Brand logo (inline SVG from assets/img/brand, fills mapped to classes by brand_svg()).
   Light-theme colours by default; dark surfaces switch to the kit's dark-theme set. */
.brand-logo {
  --lg-ribbon: #00B1EB; --lg-fold: #0094D2; --lg-crossbar: #0080AE; --lg-leg: #004D6D; --lg-crossing: #003A54;
  --lg-alpha: #003A54; --lg-byte: #0094D2; --lg-desc: #0A6C93;
}
.brand-on-dark .brand-logo,
.hero-slogan .brand-logo,
.site-header.is-over-dark:not(.is-scrolled):not(.nav-open) .brand-logo {
  --lg-ribbon: #33C3F2; --lg-fold: #1FA8E0; --lg-crossbar: #0089C7; --lg-leg: #0A6C93; --lg-crossing: #0E5E80;
  --lg-alpha: #FFFFFF; --lg-byte: #00B1EB; --lg-desc: #8FD3EE;
}
.brand-logo path { transition: fill .25s; }
.brand-logo .lg-1 { fill: var(--lg-ribbon); }
.brand-logo .lg-2, .brand-logo .lg-5 { fill: var(--lg-fold); }
.brand-logo .lg-3, .brand-logo .lg-4 { fill: var(--lg-leg); }
.brand-logo .lg-6, .brand-logo .lg-8 { fill: var(--lg-crossbar); }
.brand-logo .lg-7 { fill: var(--lg-crossing); }
.brand-logo .lg-9 { fill: var(--lg-alpha); }
.brand-logo .lg-10 { fill: var(--lg-byte); }
.brand-logo .lg-11 { fill: var(--lg-desc); }

.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; flex-shrink: 0; }
.brand .brand-logo { height: 42px; width: auto; aspect-ratio: 773.13 / 150.13; }
.logo-tile { border-radius: 22%; }

.site-nav { display: flex; align-items: center; gap: var(--space-5); }
.site-nav ul { list-style: none; display: flex; gap: 4px; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font: 500 1rem/1 var(--font-heading); color: var(--color-foreground); text-decoration: none;
  border-radius: 999px; position: relative; transition: color .2s;
}
.site-nav a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px;
  background: var(--color-accent-bright); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:not(.btn):hover { color: var(--color-primary); }
.site-header.is-over-dark:not(.is-scrolled) .site-nav a:not(.btn):hover { color: #CDEEFA; }

.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: transparent; color: var(--color-heading); border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--space-4);
    padding: var(--space-5) 20px var(--space-6);
    background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { font-size: 1.15rem; padding: 0 8px; min-height: 52px; color: var(--color-foreground) !important; }
  .site-nav a:not(.btn)::after { left: 8px; right: auto; width: 32px; bottom: 10px; }
  .site-header.nav-open { background: #fff !important; }
  .site-header.nav-open .nav-toggle { color: var(--color-heading) !important; }
}

/* ---------- Hero with video ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 96px;
  background: var(--color-dark) url('../video/hero-poster.jpg') center/cover no-repeat;
  color: var(--color-on-dark);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 30%, rgb(10 108 147 / .28), transparent 70%),
    linear-gradient(100deg, rgb(6 26 38 / .94) 0%, rgb(6 26 38 / .78) 50%, rgb(6 26 38 / .45) 100%);
}
.hero-inner { max-width: 1200px; }
.hero-title { color: #fff; max-width: 15ch; font-size: clamp(2.4rem, 6vw, 4.4rem); }
.grad-text { background: linear-gradient(90deg, #33C3F2, #8FD3EE 45%, #FDBA74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; color: #CBD5E1; margin-bottom: var(--space-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-6); color: #CBD5E1; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: #4ADE80; }
.hero-fade { opacity: 0; transform: translateY(18px); animation: heroIn .7s var(--ease) forwards; }
.hero-fade:nth-child(2) { animation-delay: .1s; }
.hero-fade:nth-child(3) { animation-delay: .2s; }
.hero-fade:nth-child(4) { animation-delay: .3s; }
.hero-fade:nth-child(5) { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.video-toggle {
  position: absolute; right: 20px; bottom: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: rgb(6 32 48 / .55); border: 1px solid rgb(255 255 255 / .35);
  cursor: pointer; backdrop-filter: blur(6px); transition: background-color .2s;
}
.video-toggle:hover { background: rgb(6 32 48 / .8); }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: inline-flex; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1.2 var(--font-heading); letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-4); }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--color-accent-bright); border-radius: 2px; }
.eyebrow-light { color: #8FD3EE; }
.eyebrow .icon + * { margin: 0; }
.hero .eyebrow::before { display: none; }

/* Slogan: sentence case, Outfit Regular, as set in the brand guide */
.hero-slogan {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin-bottom: var(--space-5); padding: 6px 16px 6px 10px;
  font: 400 clamp(.98rem, 1.5vw, 1.1rem)/1.3 var(--font-heading); letter-spacing: .01em; color: #CDEEFA;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(143 211 238 / .3); border-radius: 22px;
  backdrop-filter: blur(6px);
}
.nowrap { white-space: nowrap; }
.hero-slogan .logo-mark { flex-shrink: 0; height: 22px; width: auto; }
.eyebrow-slogan { font: 400 1.1rem/1.3 var(--font-heading); letter-spacing: .01em; text-transform: none; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 80px; background: var(--color-dark); color: var(--color-on-dark); }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgb(6 26 38 / .95), rgb(6 26 38 / .72) 60%, rgb(0 77 109 / .55)); }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #CBD5E1; max-width: 60ch; font-size: 1.15rem; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-muted { background: var(--color-muted); }
.section-dark { background: var(--color-dark); color: var(--color-on-dark); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: var(--space-7); }
.section-head .lead { color: var(--color-muted-foreground); font-size: 1.1rem; }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; }
.section-head-row h2 { margin: 0; }
.lead { font-size: 1.125rem; }
.muted { color: var(--color-muted-foreground); }

/* Strip */
.strip { background: #fff; border-bottom: 1px solid var(--color-border); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; gap: 14px; align-items: flex-start; padding: 28px 20px; border-right: 1px solid var(--color-border); }
.strip-item:last-child { border-right: 0; }
.strip-item .icon { color: var(--color-primary); margin-top: 2px; }
.strip-item strong { display: block; font-family: var(--font-heading); color: var(--color-heading); font-size: 1.05rem; }
.strip-item span { color: var(--color-muted-foreground); font-size: .92rem; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.service-card {
  display: flex; flex-direction: column; padding: 28px; background: var(--color-card);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.service-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent-bright)); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { margin: 18px 0 8px; }
.service-card p { color: var(--color-muted-foreground); font-size: .96rem; flex: 1; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: #E0F2FA; color: var(--color-primary-dark); flex-shrink: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font: 600 .95rem var(--font-heading); color: var(--color-primary); }
.service-card:hover .link-arrow .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy > .service-icon { margin-bottom: var(--space-4); }
.split-copy p { color: var(--color-muted-foreground); }
.media-badge { position: absolute; left: -16px; bottom: 28px; display: flex; gap: 12px; align-items: center; background: #fff; padding: 14px 18px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-badge .icon { color: var(--color-accent); }
.media-badge strong { display: block; font-family: var(--font-heading); color: var(--color-heading); }
.media-badge span { font-size: .88rem; color: var(--color-muted-foreground); }

.check-list { list-style: none; display: grid; gap: 12px; margin: var(--space-5) 0 var(--space-6); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--color-success); border-radius: 50%; padding: 3px; margin-top: 2px; }
.check-grid { grid-template-columns: 1fr 1fr; }

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: s; }
.process li { position: relative; padding: 28px; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.process li:not(:last-child)::after { content: ''; position: absolute; top: 52px; right: -20px; width: 16px; height: 2px; background: var(--color-border); }
.step { display: inline-block; font: 800 2.2rem/1 var(--font-heading); background: linear-gradient(135deg, var(--color-primary), var(--color-accent-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; }
.process p { color: var(--color-muted-foreground); margin: 0; font-size: .96rem; }

/* Tech */
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.tech-list li { padding: 10px 18px; border: 1px solid rgb(255 255 255 / .14); border-radius: 999px; background: rgb(255 255 255 / .04); font: 500 .98rem var(--font-heading); color: var(--color-on-dark); transition: border-color .2s, background-color .2s; }
.tech-list li:hover { border-color: #33C3F2; background: rgb(51 195 242 / .1); }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.post-card { display: flex; flex-direction: column; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); position: relative; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--color-muted); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-title { font-size: 1.2rem; margin: 12px 0 10px; }
.post-title a { color: var(--color-heading); text-decoration: none; }
.post-title a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */
.post-title a:hover { color: var(--color-primary); }
.post-card:focus-within { outline: 3px solid var(--color-ring); outline-offset: 2px; }
.post-card .post-title a:focus-visible { outline: none; }
.post-excerpt { color: var(--color-muted-foreground); font-size: .95rem; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--color-muted-foreground); font-size: .88rem; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.tag { align-self: flex-start; display: inline-block; padding: 5px 12px; border-radius: 999px; background: #FFEDD5; color: #9A3412; font: 600 .78rem/1.2 var(--font-heading); letter-spacing: .03em; }

.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--space-7); box-shadow: var(--shadow); }
.featured-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.featured-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.featured-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 14px 0 12px; }
.featured-body h2 a { color: var(--color-heading); text-decoration: none; }
.featured-body h2 a:hover { color: var(--color-primary); }
.featured-body p { color: var(--color-muted-foreground); }
.featured-body .btn { align-self: flex-start; margin-top: var(--space-5); }

.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-6); }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--color-border); background: #fff; color: var(--color-foreground); text-decoration: none; font: 500 .95rem var(--font-heading); transition: all .2s; }
.filter a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter a[aria-current="true"] { background: var(--color-heading); border-color: var(--color-heading); color: #fff; }

/* Article */
.article-head { padding: 40px 0 32px; background: linear-gradient(180deg, #EAF5FA, var(--color-background)); }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 16px 0 20px; }
.article-head .post-meta { font-size: .95rem; }
.article-head .logo-mark { border-radius: 6px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--color-muted-foreground); margin-bottom: 20px; }
.breadcrumb a { color: var(--color-muted-foreground); }
.breadcrumb a:hover { color: var(--color-primary); }
.article-cover { margin: 0 0 var(--space-7); }
.article-cover img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow-lg); }
.prose { font-size: 1.1rem; line-height: 1.8; color: #334155; }
.prose h2 { font-size: 1.65rem; margin: 2.2em 0 .6em; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--color-primary); font-weight: 600; }
.prose strong { color: var(--color-heading); }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 24px 0; margin-top: var(--space-6); border-top: 1px solid var(--color-border); }
.share span { font: 600 .95rem var(--font-heading); color: var(--color-heading); margin-right: 6px; }
.share a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-foreground); background: #fff; transition: all .2s; }
.share a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--color-muted); border-radius: var(--radius-lg); margin: var(--space-5) 0; }
.author-box p { margin: 6px 0 0; color: var(--color-muted-foreground); font-size: .96rem; }
.author-box strong { font-family: var(--font-heading); color: var(--color-heading); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 1rem var(--font-heading); text-decoration: none; margin-bottom: var(--space-8); }

/* Values */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.value-card { padding: 32px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.value-card h3 { margin-top: 18px; }
.value-card p { color: var(--color-muted-foreground); margin: 0; }

/* Services jump nav */
.service-jump { position: sticky; top: var(--header-h); z-index: 50; background: rgb(255 255 255 / .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.service-jump ul { list-style: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.service-jump a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--color-foreground); text-decoration: none; font: 500 .94rem var(--font-heading); transition: background-color .2s, color .2s; }
.service-jump a:hover { background: var(--color-muted); color: var(--color-primary); }
.page-services .site-header.is-scrolled { box-shadow: none; }

/* CTA band with video */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0; background: var(--color-dark) url('../video/globe-poster.jpg') center/cover; color: #fff; }
.cta-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(6 26 38 / .92), rgb(0 77 109 / .7)); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-inner h2 { color: #fff; margin-bottom: 10px; }
.cta-inner p { color: #CBD5E1; max-width: 52ch; margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info p { color: var(--color-muted-foreground); }
.info-list { list-style: none; display: grid; gap: 18px; margin: var(--space-5) 0; }
.info-list li { display: flex; gap: 16px; align-items: center; }
.info-list strong { display: block; font-family: var(--font-heading); color: var(--color-heading); }
.contact-grid > * { min-width: 0; }
.info-list span, .info-list a { font-size: .97rem; overflow-wrap: anywhere; }
.info-list span:not(.service-icon) { color: var(--color-muted-foreground); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 4 / 3; background: var(--color-muted); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.form-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.75rem; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font: 600 .95rem var(--font-heading); color: var(--color-heading); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  font: 400 1rem/1.5 var(--font-body); color: var(--color-heading);
  background: #fff; border: 1.5px solid #CBD5E1; border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #94A3B8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgb(10 108 147 / .18); }
.field [aria-invalid="true"] { border-color: var(--color-danger); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgb(185 28 28 / .15); }
.field-help { font-size: .87rem; color: var(--color-muted-foreground); margin: 6px 0 0; }
.field-error { font-size: .9rem; color: var(--color-danger); margin: 6px 0 0; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 24px; }
.alert p { margin: 4px 0 0; }
.alert-success { background: #DCFCE7; color: #14532D; }
.alert-success .icon { color: var(--color-success); }
.alert-error { background: #FEE2E2; color: #7F1D1D; }
.alert:focus { outline: 3px solid currentColor; outline-offset: 2px; }

/* 404 */
.not-found { text-align: center; }
.nf-code { display: flex; align-items: center; justify-content: center; gap: 10px; font: 800 7rem/1 var(--font-heading); color: var(--color-heading); margin-bottom: 16px; }
.not-found .hero-actions { justify-content: center; margin-top: 24px; }

/* Footer */
.site-footer { background: var(--color-dark); color: var(--color-on-dark-muted); padding: 80px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.4fr; gap: var(--space-7); padding-bottom: 56px; }
.footer-brand p { margin: 20px 0; max-width: 36ch; }
.footer-brand .footer-slogan { margin: 18px 0 0; font: 400 1.15rem/1.35 var(--font-heading); color: var(--color-on-dark); }
.footer-brand .brand .brand-logo { height: 44px; }
.footer-title { font-size: 1.05rem; color: #fff; margin-bottom: 18px; letter-spacing: 0; }
.footer-links, .footer-contact { list-style: none; display: grid; gap: 6px; }
.footer-links a, .footer-contact a { color: var(--color-on-dark-muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; }
.footer-contact .icon { color: #33C3F2; margin-top: 4px; }
.footer-contact a { min-height: auto; }
.social { list-style: none; display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .16); color: #fff; transition: all .2s; }
.social a:hover { background: var(--color-primary); border-color: var(--color-primary); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 20px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--color-on-dark-muted); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #15803D; color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* Scroll reveal (enabled by JS only, so content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2) { border-right: 0; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--color-border); }
  .split, .contact-grid, .featured-post { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: 0; }
  .split-media { order: -1; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: 1fr; }
  .media-badge { left: 12px; }
  .featured-media img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { padding: 0 16px; }
  .site-header .brand .brand-logo { height: 36px; }
  .eyebrow-slogan { font-size: 1rem; }
  .service-grid, .post-grid, .process, .form-row, .check-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-item { border-right: 0; border-bottom: 1px solid var(--color-border); padding: 20px 4px; }
  .strip-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero { padding-bottom: 80px; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .nf-code { font-size: 4.5rem; }
  .nf-code .logo-mark { height: 64px; width: auto; }
}
@media (max-width: 380px) {
  .site-header .brand .brand-logo { height: 32px; } /* 165px wide: above the kit's 140px minimum */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-fade { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}
