/* ==========================================================================
   Public site — page chrome, hero, and every content section.
   Depends on base.css tokens.
   ========================================================================== */

/* --- Page backdrop ------------------------------------------------------ */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    var(--grad-mesh),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
}
.page-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(120, 180, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, 0.05) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 12%, #000 0%, transparent 72%);
}
/* Slow drifting scanline for a live, technical feel */
.page-scan {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background: linear-gradient(180deg, transparent 0%, rgba(53, 214, 245, 0.045) 50%, transparent 100%);
  background-size: 100% 260px;
  animation: scan-drift 14s linear infinite;
}
@keyframes scan-drift {
  from { background-position: 0 -260px; }
  to   { background-position: 0 100vh; }
}

/* --- Announcement bar ---------------------------------------------------- */
.announce {
  position: relative;
  z-index: calc(var(--z-header) + 1);
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(53, 214, 245, 0.13), rgba(74, 143, 231, 0.11));
  font-size: var(--t-xs);
}
.announce--success { background: linear-gradient(90deg, rgba(52, 211, 153, 0.14), rgba(53, 214, 245, 0.09)); }
.announce--warn    { background: linear-gradient(90deg, rgba(251, 191, 36, 0.14), rgba(251, 113, 133, 0.09)); }
.announce--danger  { background: linear-gradient(90deg, rgba(248, 113, 113, 0.16), rgba(139, 124, 246, 0.09)); }
.announce--promo   {
  background: linear-gradient(90deg, rgba(139, 124, 246, 0.18), rgba(53, 214, 245, 0.14), rgba(139, 124, 246, 0.18));
  background-size: 220% 100%;
  animation: border-flow 9s linear infinite;
}
.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 46px 9px 16px;
  text-align: center;
  color: var(--ink);
}
.announce__inner a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 5px;
  border-radius: var(--r-sm);
  color: var(--ink-3);
}
.announce__close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}
.site-header.is-stuck {
  background: rgba(5, 13, 31, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; }
.brand__mark {
  position: relative;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(3, 10, 23, 0.7);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); box-shadow: 0 0 18px rgba(53, 214, 245, 0.35); }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand__tag {
  font-size: 0.68rem;
  color: var(--ink-4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  font-weight: 550;
  color: var(--ink-2);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.nav__link:hover { color: #fff; background: var(--surface); }
.nav__link.is-active { color: var(--cyan); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* Mega menu */
.nav__item { position: relative; }

/* Bridge the visual gap between the trigger and the panel. The panel sits
   10px below the link, and that gap used to be outside .nav__item — so moving
   the pointer down towards the menu left the hover target and closed it before
   it could be reached. This pseudo-element makes the gap part of the item. */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  display: none;
}
.nav__item:hover::after,
.nav__item:focus-within::after { display: block; }

.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(720px, calc(100vw - 40px));
  padding: var(--gap-5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(7, 17, 39, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur);
}
.nav__item:hover .mega,
.nav__item:focus-within .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}
.mega__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}
.mega__link:hover { background: var(--surface-2); }
.mega__link b { display: block; font-size: var(--t-sm); font-weight: 650; color: #fff; }

/* Scoped to the text column on purpose. A bare `.mega__link span` also matched
   the icon tile — forcing display:block onto it, which broke its flex centring
   and pushed the glyph out of its box. */
.mega__link__text { min-width: 0; }
.mega__link__text span {
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-4);
  line-height: 1.5;
}
.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  margin-top: var(--gap-4);
  padding-top: var(--gap-4);
  border-top: 1px solid var(--line-2);
  font-size: var(--t-xs);
  color: var(--ink-4);
}

.header-actions { display: flex; align-items: center; gap: 9px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--line-hot); color: var(--cyan); }

.burger { display: none; }

@media (max-width: 1040px) {
  .nav, .header-actions .btn--desktop { display: none; }
  .burger { display: inline-flex; }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: grid;
  grid-template-columns: 1fr min(390px, 88vw);
  visibility: hidden;
}
.drawer.is-open { visibility: visible; }
.drawer__scrim {
  background: rgba(2, 7, 18, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: var(--gap-5);
  border-left: 1px solid var(--line);
  background: var(--bg-2);
  transform: translateX(100%);
  transition: transform 0.34s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  padding-bottom: var(--gap-4);
  margin-bottom: var(--gap-4);
  border-bottom: 1px solid var(--line);
}
.drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border-radius: var(--r-md);
  font-size: var(--t-md);
  font-weight: 600;
  color: var(--ink-2);
}
.drawer__link:hover, .drawer__link.is-active { background: var(--surface); color: var(--cyan); }
.drawer__group-title {
  padding: var(--gap-4) 13px 6px;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.drawer__sub {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border-radius: var(--r-md);
  font-size: var(--t-sm);
  color: var(--ink-3);
}
.drawer__sub:hover { background: var(--surface); color: var(--cyan); }
.drawer__foot { margin-top: auto; padding-top: var(--gap-5); }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px); }
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: var(--gap-4); }
.hero__lead { margin-bottom: var(--gap-6); max-width: 54ch; }

/* Rotating word in the headline */
.rotator {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  text-align: left;
}
.rotator__word {
  grid-area: 1 / 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.55em);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.rotator__word.is-active { opacity: 1; transform: none; }
.rotator__word.is-leaving { opacity: 0; transform: translateY(-0.55em); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: var(--gap-6); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-4);
  padding-top: var(--gap-5);
  border-top: 1px solid var(--line-2);
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.hero__trust-item { display: flex; align-items: center; gap: 7px; }

/* Hero visual — the logo centred in a single wide service orbit.
   Sizing is driven by --orbit-size so one variable rescales the whole system
   at each breakpoint; the satellites sit on a radius expressed as a fraction
   of it, which keeps everything concentric at any width.

   Geometry, in fractions of --orbit-size (the box radius is 0.5):
     core radius       0.29   (--core-size 58%, halved)
     satellite radius  0.44
     tile half-width   0.05   (42px on a 430px orbit)
   That leaves a clear gap of 0.44 - 0.05 - 0.29 = 0.10 — about 43px at full
   size — between the edge of the logo and the nearest icon. One ring, not two:
   with the logo at full size a second inner ring has nowhere to run without
   colliding with it. */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  /* Room for the labels hanging below the lowest satellite. */
  padding-block: 18px;
}
.orbit {
  /* MUST be an absolute length, never a percentage.
     --r-sat feeds translateY() on a zero-height element, and a percentage in a
     transform resolves against that element's own size — so `min(100%, 430px)`
     collapsed to 0 and every satellite stacked on top of the logo. Each
     breakpoint below sets a px value that fits the column at that width. */
  --orbit-size: 420px;
  --core-size: 58%;
  --r-sat: calc(var(--orbit-size) * 0.44);
  position: relative;
  width: var(--orbit-size);
  max-width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  isolation: isolate;
}

/* Soft brand bloom behind everything. */
.orbit__glow {
  position: absolute;
  inset: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(53, 214, 245, 0.20), transparent 68%);
  filter: blur(22px);
  animation: orbit-pulse 6s var(--ease) infinite;
}

.orbit__ring {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.6;
}
/* Ring 1 is the track the icons ride on, so its inset is the complement of
   --r-sat (0.5 - 0.44 = 0.06). Rings 2 and 3 are decorative, one in the clear
   space between the icons and the logo, one at the outer edge. */
.orbit__ring--1 { inset: 6%;  border-style: dashed; animation: spin 44s linear infinite; }
.orbit__ring--2 { inset: 17%; animation: spin 32s linear infinite reverse; }
.orbit__ring--3 { inset: 0;   border-style: dotted; opacity: 0.35; animation: spin 56s linear infinite; }

/* --- Orbiting service satellites ---
   Above the core: a satellite passing the logo should cross in front of it,
   not vanish behind it. */
.orbit__track { position: absolute; inset: 0; z-index: 3; animation: spin 46s linear infinite; }

/* Level 1: place on the circle at angle --a and radius --r-sat. */
.orbit__sat {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--r-sat) * -1));
}

/* Level 2: cancel the track's rotation so satellites stay upright. Must match
   the track's duration and run the opposite way. */
.orbit__sat > i { display: block; animation: spin 46s linear infinite reverse; }

/* Level 3: cancel this satellite's own placement angle. */
.orbit__sat > i > b {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: rotate(calc(var(--a) * -1)) translate(-50%, -50%);
  transform-origin: 0 0;
  width: max-content;
}

.orbit__sat-tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  background: rgba(7, 17, 39, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--cyan);
  box-shadow: var(--sh-md), 0 0 18px rgba(53, 214, 245, 0.18);
}
.orbit__sat-tile[data-accent='blue']    { color: var(--blue);    border-color: rgba(74, 143, 231, 0.5);  box-shadow: var(--sh-md), 0 0 18px rgba(74, 143, 231, 0.20); }
.orbit__sat-tile[data-accent='violet']  { color: var(--violet);  border-color: rgba(139, 124, 246, 0.5); box-shadow: var(--sh-md), 0 0 18px rgba(139, 124, 246, 0.20); }
.orbit__sat-tile[data-accent='emerald'] { color: var(--emerald); border-color: rgba(52, 211, 153, 0.5);  box-shadow: var(--sh-md), 0 0 18px rgba(52, 211, 153, 0.20); }
.orbit__sat-tile[data-accent='amber']   { color: var(--amber);   border-color: rgba(251, 191, 36, 0.5);  box-shadow: var(--sh-md), 0 0 18px rgba(251, 191, 36, 0.20); }
.orbit__sat-tile[data-accent='rose']    { color: var(--rose);    border-color: rgba(251, 113, 133, 0.5); box-shadow: var(--sh-md), 0 0 18px rgba(251, 113, 133, 0.20); }

.orbit__sat-label {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(2, 7, 18, 0.9);
}

/* --- Core: a true circle, not a rounded box --- */
.orbit__core {
  position: relative;
  z-index: 1;
  width: var(--core-size);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12%;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  background:
    radial-gradient(circle at 38% 30%, rgba(53, 214, 245, 0.22), rgba(4, 12, 28, 0.94) 70%);
  box-shadow: var(--sh-lg), inset 0 0 40px rgba(53, 214, 245, 0.14);
  animation: float-y 8s var(--ease) infinite;
}
.orbit__core img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
/* Thin halo that breathes with the core. */
.orbit__core-ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(53, 214, 245, 0.28);
  animation: orbit-halo 4.5s var(--ease) infinite;
}

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@keyframes orbit-halo {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(1.07); }
}

/* The hero is two columns until 940px, so the orbit's share of the shell
   narrows as the viewport does — step it down before it can be clamped by
   max-width, which would push the satellites outside the rings. */
@media (max-width: 1180px) { .orbit { --orbit-size: 380px; } }
@media (max-width: 1040px) {
  .orbit { --orbit-size: 340px; }
  /* Labels are still on at this width, so trim the tile to keep the outermost
     edge inside the ring. */
  .orbit__sat-tile { width: 38px; height: 38px; }
}

@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; padding-block: 8px; }
  .hero__lead { max-width: none; }
  /* Single column again, so there is room to grow back. */
  .orbit { --orbit-size: 360px; }
  /* Labels go first — with the tiles shrunk, it is the gap between logo and
     icons that carries the visual, not the wording. */
  .orbit__sat-label { display: none; }
  .orbit__sat-tile { width: 36px; height: 36px; }
}
@media (max-width: 480px) {
  .orbit { --orbit-size: 280px; }
  .orbit__sat-tile { width: 31px; height: 31px; }
  .orbit__sat-tile .icon { width: 15px; height: 15px; }
}
@media (max-width: 360px) {
  .orbit { --orbit-size: 244px; }
  .orbit__sat-tile { width: 27px; height: 27px; }
}

/* --- Stat counters -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 1px;
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--line); }
.stat { padding: var(--gap-5); background: rgba(7, 17, 39, 0.82); text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { margin-top: 5px; font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.stat__hint  { margin-top: 3px; font-size: var(--t-xs); color: var(--ink-4); }
.stat .icon-tile { margin: 0 auto var(--gap-3); }

/* --- Service cards -------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card__head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: var(--gap-4); }
.service-card h3 { margin: 0 0 3px; font-size: var(--t-md); }
.service-card__tag { font-size: var(--t-xs); color: var(--cyan); font-weight: 600; }
.service-card__features {
  margin: var(--gap-4) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--t-xs);
  color: var(--ink-3);
}
.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.service-card__features .icon { color: var(--cyan); margin-top: 3px; }
.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  margin-top: auto;
  padding-top: var(--gap-4);
  font-size: var(--t-xs);
}

/* --- Marquee (partner logos) ---------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: var(--gap-4);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--gap-8);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-4);
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
  white-space: nowrap;
}
.marquee__item:hover { opacity: 1; color: var(--ink); }
.marquee__item img { max-height: 34px; width: auto; filter: grayscale(1) brightness(1.7); opacity: 0.75; }
.marquee__item:hover img { filter: none; opacity: 1; }

/* --- Process / timeline steps --------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--gap-4); }
.process__step { position: relative; padding-top: var(--gap-5); }
.process__step::before {
  content: '';
  position: absolute;
  top: 12px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line-hot), transparent);
}
.process__num {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
}
.process__step h4 { margin: var(--gap-3) 0 5px; font-size: var(--t-md); }
.process__step p  { font-size: var(--t-sm); color: var(--ink-3); margin: 0; }

/* --- Vertical timeline (company history) ---------------------------------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 6px; left: 9px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), transparent);
  opacity: 0.5;
}
.timeline__item { position: relative; padding-bottom: var(--gap-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  top: 5px; left: -34px;
  width: 20px; height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  background: var(--bg-2);
  color: var(--cyan);
}
.timeline__item--highlight .timeline__dot {
  background: var(--grad-brand);
  color: #041020;
  box-shadow: 0 0 0 4px rgba(53, 214, 245, 0.15);
}
.timeline__year {
  display: inline-block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.timeline__item h4 { margin: 0 0 5px; font-size: var(--t-md); }
.timeline__item p { margin: 0; font-size: var(--t-sm); color: var(--ink-3); }

/* --- Reviews -------------------------------------------------------------- */
.review-card { display: flex; flex-direction: column; gap: var(--gap-4); height: 100%; }
.review-card__quote { flex: 1; font-size: var(--t-sm); line-height: 1.75; color: var(--ink-2); }
.review-card__quote::before {
  content: '“';
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 0.6;
  color: var(--cyan);
  opacity: 0.45;
  margin-bottom: 8px;
}
.review-card__who { display: flex; align-items: center; gap: 11px; }
.review-card__who b { display: block; font-size: var(--t-sm); color: #fff; }

/* Scoped to the name column. A bare `.review-card__who span` also matched the
   avatar and the spacer, forcing display:block onto the avatar and destroying
   the flex centring that keeps the initials inside their circle. */
.review-card__who-text { min-width: 0; }
.review-card__who-text span { display: block; font-size: var(--t-xs); color: var(--ink-4); }
.review-card__reply {
  margin-top: var(--gap-3);
  padding: var(--gap-3) var(--gap-4);
  border-left: 2px solid var(--line-hot);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(53, 214, 245, 0.06);
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.rating-summary {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--gap-6);
  align-items: center;
}
.rating-summary__score {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating-bar { display: grid; grid-template-columns: 54px 1fr 46px; align-items: center; gap: 11px; margin-bottom: 7px; }
.rating-bar__label { font-size: var(--t-xs); color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.rating-bar__count { font-size: var(--t-xs); color: var(--ink-4); text-align: right; }
@media (max-width: 640px) { .rating-summary { grid-template-columns: 1fr; text-align: center; } }

/* --- Post / article cards -------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.post-card h3 { margin: 0 0 8px; font-size: var(--t-md); line-height: 1.35; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: var(--cyan); }
.post-card__excerpt { flex: 1; font-size: var(--t-sm); color: var(--ink-3); margin-bottom: var(--gap-4); }

.post-card--wide {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.post-card--wide .card__media { aspect-ratio: auto; height: 100%; min-height: 200px; }
@media (max-width: 760px) {
  .post-card--wide { grid-template-columns: 1fr; }
  .post-card--wide .card__media { aspect-ratio: 16 / 9; min-height: 0; }
}

/* --- Article body ---------------------------------------------------------- */
.article { font-size: var(--t-md); line-height: 1.82; color: var(--ink-2); }
.article > * + * { margin-top: 1.15em; }
.article h2 { margin-top: 1.9em; font-size: var(--t-2xl); scroll-margin-top: calc(var(--header-h) + 24px); }
.article h3 { margin-top: 1.6em; font-size: var(--t-xl); scroll-margin-top: calc(var(--header-h) + 24px); }
.article h4 { margin-top: 1.4em; font-size: var(--t-lg); }
.article ul, .article ol { padding-left: 1.4em; }
.article li::marker { color: var(--cyan); }
.article img { border-radius: var(--r-lg); border: 1px solid var(--line); }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article strong { color: #fff; }

/* Blocks --------------------------------------------------------------------*/
.block { margin-block: clamp(28px, 4vw, 46px); }
.block--narrow { max-width: 38rem; margin-inline: auto; }
.block--wide   { max-width: var(--shell); margin-inline: auto; }
.block--full   { max-width: none; }

.block-figure figcaption {
  margin-top: 10px;
  font-size: var(--t-xs);
  color: var(--ink-4);
  text-align: center;
}
.block-figure img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }

.block-gallery { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); cursor: zoom-in; transition: transform var(--dur) var(--ease); }
.block-gallery img:hover { transform: scale(1.02); }

.block-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #030a17; }
.block-video iframe, .block-video video { width: 100%; height: 100%; border: 0; }

.block-code { position: relative; }
.block-code__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.block-code__head + pre { margin: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-size: var(--t-xs); }
.copy-btn:hover { color: var(--cyan); }

.block-quote {
  padding: var(--gap-6);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--grad-panel);
  text-align: center;
}
.block-quote p {
  font-family: var(--font-display);
  font-size: var(--t-xl);
  line-height: 1.5;
  color: #fff;
  letter-spacing: -0.02em;
}
.block-quote cite { display: block; margin-top: var(--gap-4); font-size: var(--t-sm); font-style: normal; color: var(--cyan); }

.callout {
  display: flex;
  gap: 14px;
  padding: var(--gap-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.callout__body { flex: 1; font-size: var(--t-sm); }
.callout__body > :first-child { margin-top: 0; }
.callout b { display: block; margin-bottom: 4px; color: #fff; font-size: var(--t-md); }
.callout--info    { border-color: rgba(53, 214, 245, 0.32);  background: rgba(53, 214, 245, 0.07); }
.callout--info    .icon-tile { color: var(--cyan); }
.callout--success { border-color: rgba(52, 211, 153, 0.32);  background: rgba(52, 211, 153, 0.07); }
.callout--success .icon-tile { color: var(--emerald); background: rgba(52, 211, 153, 0.14); }
.callout--warn    { border-color: rgba(251, 191, 36, 0.32);  background: rgba(251, 191, 36, 0.07); }
.callout--warn    .icon-tile { color: var(--amber); background: rgba(251, 191, 36, 0.14); }
.callout--danger  { border-color: rgba(248, 113, 113, 0.32); background: rgba(248, 113, 113, 0.07); }
.callout--danger  .icon-tile { color: var(--red); background: rgba(248, 113, 113, 0.14); }

.block-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.block-list li { display: flex; align-items: flex-start; gap: 11px; font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.block-list .icon { margin-top: 3px; color: var(--emerald); }
.block-list li.is-off { color: var(--ink-4); }
.block-list li.is-off .icon { color: var(--ink-4); }

.block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.block-table table { margin: 0; }
.block-table td, .block-table th { white-space: nowrap; }

.specs { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.specs__row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 1px; background: var(--line); }
.specs__key { padding: 12px 16px; background: rgba(255, 255, 255, 0.035); font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.specs__val { padding: 12px 16px; background: rgba(7, 17, 39, 0.9); font-size: var(--t-sm); color: var(--ink-3); }
@media (max-width: 560px) { .specs__row { grid-template-columns: 1fr; } }

.accordion__item { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.accordion__item + .accordion__item { margin-top: 9px; }
.accordion__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  font-size: var(--t-md);
  font-weight: 600;
  color: #fff;
  transition: background var(--dur-fast) var(--ease);
}
.accordion__btn:hover { background: var(--surface-2); }
.accordion__btn .icon { color: var(--cyan); transition: transform var(--dur) var(--ease); }
.accordion__item.is-open .accordion__btn .icon { transform: rotate(180deg); }
.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}
.accordion__item.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__inner { overflow: hidden; }
.accordion__inner > div { padding: 0 18px 18px; font-size: var(--t-sm); color: var(--ink-3); }

.block-steps { counter-reset: step; display: grid; gap: var(--gap-4); }
.block-steps__item { position: relative; padding-left: 52px; }
.block-steps__item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0; left: 0;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-hot);
  background: rgba(53, 214, 245, 0.1);
  font-family: var(--font-display);
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--cyan);
}
.block-steps__item h4 { margin: 4px 0 5px; font-size: var(--t-md); }
.block-steps__item p  { margin: 0; font-size: var(--t-sm); color: var(--ink-3); }

.block-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-4); }
.block-compare__col { padding: var(--gap-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.block-compare__col h4 { display: flex; align-items: center; gap: 8px; margin-bottom: var(--gap-3); font-size: var(--t-md); }
.block-compare__col--before h4 { color: var(--rose); }
.block-compare__col--after  h4 { color: var(--emerald); }
@media (max-width: 620px) { .block-compare { grid-template-columns: 1fr; } }

.block-download {
  display: flex;
  align-items: center;
  gap: var(--gap-4);
  padding: var(--gap-4) var(--gap-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.block-download:hover { border-color: var(--line-hot); background: var(--surface-2); }
.block-download b { display: block; font-size: var(--t-sm); color: #fff; }
.block-download span { font-size: var(--t-xs); color: var(--ink-4); }

.block-cta {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--grad-panel);
  text-align: center;
}
.block-cta h3 { font-size: var(--t-2xl); margin-bottom: 10px; }
.block-cta p { color: var(--ink-3); max-width: 52ch; margin-inline: auto; }
.block-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: var(--gap-5); }

/* --- Table of contents ------------------------------------------------------ */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  padding: var(--gap-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.toc h4 { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-4); margin-bottom: var(--gap-3); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 6px 11px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-xs);
  line-height: 1.5;
  color: var(--ink-3);
}
.toc a:hover { color: var(--cyan); background: var(--surface); }
.toc a.is-current { color: var(--cyan); border-left-color: var(--cyan); background: rgba(53, 214, 245, 0.07); }
.toc li[data-level='3'] a { padding-left: 22px; }

/* --- Reading progress bar ---------------------------------------------------- */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: calc(var(--z-header) + 5);
  height: 3px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(53, 214, 245, 0.6);
  transition: width 0.1s linear;
}

/* --- Comments ----------------------------------------------------------------- */
.comment { display: flex; gap: 13px; padding-block: var(--gap-4); }
.comment + .comment { border-top: 1px solid var(--line-2); }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.comment__head b { font-size: var(--t-sm); color: #fff; }
.comment__head time { font-size: var(--t-xs); color: var(--ink-4); }
.comment__text { font-size: var(--t-sm); color: var(--ink-2); }
.comment__replies { margin-top: var(--gap-4); padding-left: var(--gap-5); border-left: 1px solid var(--line-2); }

/* --- Project / case study ------------------------------------------------------ */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: var(--gap-4); }
.metric { padding: var(--gap-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.metric__value {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cyan);
}
.metric__label { font-size: var(--t-xs); color: var(--ink-3); margin-top: 3px; }

.tech-pills { display: flex; flex-wrap: wrap; gap: 7px; }

/* --- Pricing --------------------------------------------------------------------- */
.plan { display: flex; flex-direction: column; height: 100%; }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin: var(--gap-4) 0; }
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
}
.plan__period { font-size: var(--t-sm); color: var(--ink-4); }
.plan__features { flex: 1; list-style: none; padding: 0; margin: 0 0 var(--gap-5); display: grid; gap: 9px; }
.plan__features li { display: flex; align-items: flex-start; gap: 9px; font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.plan__features .icon { margin-top: 3px; color: var(--emerald); }
.plan__features li.is-off { color: var(--ink-4); text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.2); }
.plan__features li.is-off .icon { color: var(--ink-4); }
.plan--highlight { border-color: var(--line-hot); box-shadow: 0 0 0 1px rgba(53, 214, 245, 0.18), var(--sh-md); }
.plan__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  font-size: 0.68rem;
  font-weight: 700;
  color: #041020;
  white-space: nowrap;
}

/* --- Team ------------------------------------------------------------------------- */
.person { text-align: center; }
.person__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: var(--gap-4);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(53, 214, 245, 0.14), rgba(74, 143, 231, 0.08));
  display: grid;
  place-items: center;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person__initials { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--cyan); }
.person h4 { margin: 0 0 3px; font-size: var(--t-md); }
.person__role { font-size: var(--t-xs); color: var(--cyan); font-weight: 600; }
.person__socials { display: flex; justify-content: center; gap: 7px; margin-top: var(--gap-3); }
.person__socials a { color: var(--ink-4); padding: 5px; border-radius: var(--r-sm); }
.person__socials a:hover { color: var(--cyan); background: var(--surface); }

/* --- Job cards ---------------------------------------------------------------------- */
.job-card { display: flex; align-items: center; gap: var(--gap-4); flex-wrap: wrap; }
.job-card__main { flex: 1 1 260px; min-width: 0; }
.job-card h3 { margin: 0 0 6px; font-size: var(--t-md); }
.job-card__tags { display: flex; flex-wrap: wrap; gap: 7px; }

/* --- CTA band ------------------------------------------------------------------------ */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 5vw, 66px);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--grad-panel);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(53, 214, 245, 0.12), transparent 40%);
  animation: spin 18s linear infinite;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--t-3xl); }
.cta-band p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--gap-5); }

/* --- Newsletter --------------------------------------------------------------------- */
.newsletter__form { display: flex; gap: 9px; flex-wrap: wrap; }
.newsletter__form input[type='email'] { flex: 1 1 220px; }
.newsletter__result { margin-top: 10px; font-size: var(--t-xs); }
.newsletter__result.is-ok  { color: #a9f0d4; }
.newsletter__result.is-err { color: #ffc2c2; }

/* --- Footer ------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 22, 0.62);
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--gap-6);
  padding-block: clamp(40px, 6vw, 68px);
}
.footer-col h5 {
  margin-bottom: var(--gap-4);
  font-family: var(--font-sans);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col li { margin: 0; }
.footer-col a { font-size: var(--t-sm); color: var(--ink-3); }
.footer-col a:hover { color: var(--cyan); }

.footer-contact { display: grid; gap: 11px; margin-top: var(--gap-4); font-size: var(--t-sm); color: var(--ink-3); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.footer-contact .icon { color: var(--cyan); margin-top: 3px; }

.social-row { display: flex; gap: 8px; margin-top: var(--gap-5); }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink-3);
  transition: all var(--dur-fast) var(--ease);
}
.social-row a:hover { border-color: var(--line-hot); color: var(--cyan); transform: translateY(-2px); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-4);
  padding-block: var(--gap-5);
  border-top: 1px solid var(--line-2);
  font-size: var(--t-xs);
  color: var(--ink-4);
}
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--gap-4); }

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* --- Back to top --------------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(7, 17, 39, 0.92);
  backdrop-filter: blur(10px);
  color: var(--cyan);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur) var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--line-hot); box-shadow: var(--sh-glow); }

/* --- Toasts ---------------------------------------------------------------------------- */
.toasts {
  position: fixed;
  top: 78px; right: 18px;
  z-index: var(--z-toast);
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(7, 17, 39, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--sh-md);
  font-size: var(--t-sm);
  color: var(--ink-2);
  animation: toast-in 0.34s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }
.toast--success { border-color: rgba(52, 211, 153, 0.4); }
.toast--success .icon { color: var(--emerald); }
.toast--error   { border-color: rgba(248, 113, 113, 0.4); }
.toast--error   .icon { color: var(--red); }
.toast--warning { border-color: rgba(251, 191, 36, 0.4); }
.toast--warning .icon { color: var(--amber); }
.toast--info    .icon { color: var(--cyan); }
.toast__close { margin-left: auto; color: var(--ink-4); }
.toast__close:hover { color: #fff; }

/* --- Page header (interior pages) --------------------------------------------------------- */
.page-head { padding-block: clamp(36px, 5vw, 68px) clamp(24px, 3vw, 40px); }
.page-head h1 { margin-bottom: var(--gap-3); }
.page-head .lead { margin-bottom: 0; }

/* --- Search results ------------------------------------------------------------------------ */
.result { display: block; padding: var(--gap-4); border-radius: var(--r-lg); transition: background var(--dur-fast) var(--ease); }
.result:hover { background: var(--surface); }
.result h4 { margin-bottom: 4px; font-size: var(--t-md); }
.result p { margin: 0; font-size: var(--t-sm); color: var(--ink-3); }
.result__url { font-size: var(--t-xs); color: var(--ink-4); font-family: var(--font-mono); }

/* --- Filter toolbar ---------------------------------------------------------------------------- */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--gap-3);
  flex-wrap: wrap;
  padding: var(--gap-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  margin-bottom: var(--gap-5);
}
.toolbar__search { position: relative; flex: 1 1 220px; min-width: 0; }
.toolbar__search input { padding-left: 38px; }
.toolbar__search .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--ink-4); pointer-events: none; }
.toolbar select { width: auto; min-width: 140px; }

/* --- Lightbox ------------------------------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  place-items: center;
  padding: var(--gap-5);
  background: rgba(2, 7, 18, 0.92);
  backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: var(--r-lg); box-shadow: var(--sh-lg); }
.lightbox__close { position: absolute; top: 18px; right: 18px; color: #fff; padding: 9px; border-radius: var(--r-md); background: rgba(255,255,255,0.1); }

/* --- Maintenance ---------------------------------------------------------------------------------- */
.maintenance-note {
  position: sticky;
  top: var(--header-h);
  z-index: calc(var(--z-header) - 1);
  padding: 9px 16px;
  background: rgba(251, 191, 36, 0.16);
  border-bottom: 1px solid rgba(251, 191, 36, 0.34);
  font-size: var(--t-xs);
  color: #ffe0a3;
  text-align: center;
}

/* --- Sample-data notice ---------------------------------------------------------------------------- */
.sample-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  border-radius: var(--r-pill);
  background: rgba(251, 191, 36, 0.09);
  font-size: var(--t-xs);
  font-weight: 600;
  color: #ffe0a3;
}


/* ==========================================================================
   Responsive layer
   --------------------------------------------------------------------------
   Everything above is written desktop-first. This block carries the phone and
   tablet corrections in one place so the breakpoints stay consistent:

     1040px  nav collapses to the drawer (declared with the header)
      900px  two-column splits and 3/4-up grids stack
      680px  dense rows unstack, paired actions go full-width
      480px  small-phone trims: tighter padding, smaller chrome

   The rule of thumb applied throughout: nothing may set an intrinsic width
   larger than the viewport, and any flex row that pairs a long string with a
   fixed-size sibling must be allowed to wrap.
   ========================================================================== */

/* Sidebars that track the page on desktop. Declared here rather than inline so
   the media query below can unstick them — once the split has stacked, a sticky
   sidebar pins itself over the content the reader is scrolling to. */
.side-sticky { position: sticky; top: calc(var(--header-h) + 22px); }
@media (max-width: 900px) {
  .side-sticky { position: static; top: auto; }
}

/* Unbreakable strings — email addresses, URLs, long slugs — are the single
   most common source of horizontal overflow on phones. */
.article, .card__text, .lead, .result__url, .footer-contact,
.comment__body, .review-card__quote, .block-quote p, .callout__body {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 900px) {
  /* A heading paired with a "see all" button: let the button drop and left-align
     rather than squeezing the heading into a narrow column. */
  .row--between { align-items: flex-start; }
  .section-head { max-width: none; }

  .article h2 { margin-top: 1.5em; }
  .toc { position: static; max-height: none; margin-bottom: var(--gap-5); }
}

@media (max-width: 680px) {
  :root { --header-h: 60px; }

  /* Brand tagline is the first thing to go — the logo and name carry it. */
  .brand__tag { display: none; }

  .hero { padding-block: clamp(28px, 7vw, 48px) clamp(28px, 5vw, 44px); }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__trust { gap: var(--gap-3); font-size: 0.72rem; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: var(--gap-4); }

  .card { padding: var(--gap-4); }

  /* Price and "Details" were colliding at narrow widths. */
  .service-card__foot { flex-wrap: wrap; gap: var(--gap-2); }

  .cta-band { padding: var(--gap-6) var(--gap-5); }
  .cta-band__actions .btn { flex: 1 1 100%; }

  .toolbar { padding: var(--gap-3); }
  .toolbar__search { flex: 1 1 100%; }
  .toolbar select { width: 100%; min-width: 0; }

  .plan__badge { position: static; display: inline-block; transform: none; margin-bottom: var(--gap-3); }

  .job-card { align-items: flex-start; }
  .job-card .btn { width: 100%; justify-content: center; }

  .newsletter__form input[type='email'] { flex: 1 1 100%; }
  .newsletter__form .btn { width: 100%; justify-content: center; }

  .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: var(--gap-3); }

  /* Tables in article bodies keep nowrap cells, so the wrapper must scroll and
     advertise it. */
  .block-table { -webkit-overflow-scrolling: touch; }

  .block-quote { padding: var(--gap-5); }
  .block-quote p { font-size: var(--t-lg); }

  .callout { flex-direction: column; gap: var(--gap-3); }

  .process__step { padding-top: var(--gap-4); }
}

@media (max-width: 480px) {
  .shell { padding-inline: 16px; }

  .stats { grid-template-columns: 1fr; }

  .eyebrow { font-size: 0.66rem; padding: 6px 12px; }
  .kicker { font-size: 0.66rem; }
  .kicker::before { width: 14px; }

  .btn { padding: 11px 18px; }
  .btn--lg { padding: 13px 20px; }

  .to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }

  .drawer { grid-template-columns: 1fr min(340px, 92vw); }
  .drawer__panel { padding: var(--gap-4); }

  .timeline { padding-left: 28px; }
  .timeline__dot { left: -28px; width: 18px; height: 18px; }

  .person__socials { gap: 4px; }

  .block-code__head { padding: 8px 12px; }
  .toasts { left: 12px; right: 12px; }
  .toast { width: auto; }
}

/* Coarse pointers get larger hit targets — 44px is the accessible minimum and
   the icon buttons sat just under it. */
@media (pointer: coarse) {
  .icon-btn { width: 42px; height: 42px; }
  .drawer__link, .drawer__sub { padding-block: 13px; }
  .nav__link { padding-block: 11px; }
}
