/* ==========================================================================
   Pathway IT — base.css
   :root design tokens, reset, typography, buttons, shared utilities.
   Every page loads this first. Colors/sizes are driven by these tokens,
   so the whole site re-skins from here.
   ========================================================================== */

:root {
  /* brand */
  --indigo: #4F46E5;
  --indigo-400: #7C7EF5;
  --indigo-50: #EEF0FF;
  --blue: #2563EB;
  --sky: #38BDF8;
  --green: #10B981;
  --amber: #F59E0B;

  /* neutrals */
  --ink: #05070F;
  --ink-2: #0A0E1A;
  --slate-900: #0B1220;
  --slate-600: #4A5568;
  --slate-500: #64748B;
  --line: #E4E9F2;
  --paper: #FFFFFF;
  --paper-2: #F7F9FC;

  /* gradients */
  --grad-brand: linear-gradient(120deg, #4F46E5 0%, #2563EB 48%, #22A6E0 100%);
  --grad-dark: radial-gradient(120% 130% at 10% -10%, #16204A 0%, #0A0E1A 52%, #05070F 100%);

  /* type */
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --fs-h1: clamp(2.3rem, 4.6vw, 4rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.7rem);
  --fs-body: clamp(1rem, 1.05vw, 1.0625rem);

  /* layout */
  --container: 1200px;
  --container-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --section-y: clamp(5.5rem, 11vw, 10rem);

  /* radius / shadow / motion */
  --r-lg: 20px;
  --r-xl: 26px;
  --r-2xl: 34px;
  --r-pill: 999px;
  --sh-md: 0 12px 32px rgba(6, 12, 32, .08);
  --sh-lg: 0 24px 60px rgba(6, 12, 32, .12);
  --sh-glow: 0 12px 34px rgba(79, 70, 229, .32);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: 340ms;
  --header-h: 88px;
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                      */
/* -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--slate-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:where(h1, h2, h3, h4) { line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }

/* -------------------------------------------------------------------------- */
/* Accessibility                                                              */
/* -------------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--indigo); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--r-pill); font-weight: 600; transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--indigo-400);
  outline-offset: 2px;
  border-radius: 6px;
}

.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;
}

/* -------------------------------------------------------------------------- */
/* Layout helpers                                                             */
/* -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--grad-dark); color: #eaf0ff; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; }
.maxw-620 { max-width: 620px; }

/* -------------------------------------------------------------------------- */
/* Section rhythm — eyebrow / heading / lead (used on EVERY page)             */
/* -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--indigo);
  background: var(--indigo-50);
  padding: .42rem .85rem; border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--indigo) 16%, transparent);
}
.section--dark .eyebrow {
  color: var(--indigo-400);
  background: rgba(124, 126, 245, .12);
  border-color: rgba(124, 126, 245, .28);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 20%, transparent);
}

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: var(--fs-h2); margin-top: 1.1rem; }
.section-head .lead { margin-top: 1rem; }

.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: var(--slate-600);
  line-height: 1.7;
}
.section--dark .lead { color: #aeb9dd; }

.muted { color: var(--slate-500); }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.btn {
  --_bg: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: .95rem 1.5rem; border-radius: var(--r-pill);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
              background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  white-space: nowrap; will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: scale(.97); }

.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: var(--sh-glow); background-size: 140% 140%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(79, 70, 229, .42); }

.btn--ghost { background: transparent; color: inherit; border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.section--dark .btn--ghost, .hero .btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.btn--light { background: #fff; color: var(--slate-900); box-shadow: var(--sh-md); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }

.btn--sm { padding: .68rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--indigo);
  transition: gap var(--t) var(--ease), color var(--t) var(--ease);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--t) var(--ease); }
.link-arrow:hover { gap: .65rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* -------------------------------------------------------------------------- */
/* Cards (shared base — pages extend it)                                      */
/* -------------------------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-glow);
  border-color: color-mix(in srgb, var(--indigo) 40%, var(--line));
}

.card-ico {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--indigo-50); color: var(--indigo);
  margin-bottom: 1.1rem;
}
.card-ico svg { width: 26px; height: 26px; }
.card h3 { font-size: var(--fs-h3); margin-bottom: .5rem; }
.card p { color: var(--slate-600); }

.pill-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  background: var(--paper-2); border: 1px solid var(--line); color: var(--slate-600);
}

/* status pill (All systems operational) */
.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 600;
  padding: .5rem .9rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.status-dot--amber { background: var(--amber); }
.status-dot--amber { animation: pulseAmber 2.4s var(--ease) infinite; }
@keyframes pulseAmber {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* -------------------------------------------------------------------------- */
/* Scroll-reveal (driven by [data-animate], toggled by animations.js)        */
/* -------------------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-animate].is-in { opacity: 1; transform: none; }

/* No-JS / reduced-motion fallback: always show content */
.no-js [data-animate] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* -------------------------------------------------------------------------- */
/* Custom cursor (desktop only, enhanced by cursor.js)                        */
/* -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 3000; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  body.has-cursor .cursor-dot { display: block; width: 7px; height: 7px; background: #fff; }
  body.has-cursor .cursor-ring {
    display: block; width: 34px; height: 34px; border: 1.5px solid #fff;
    transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease);
  }
  body.has-cursor .cursor-ring.is-hover { width: 54px; height: 54px; background: rgba(255, 255, 255, .12); }
}

/* ==========================================================================
   Page transitions, scroll progress, hero load, anchor offset
   ========================================================================== */

/* Smooth fade-in on every page load (CSS-only, works without JS) */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn .45s var(--ease) both; }
/* Fade-out when navigating to another internal page (added by render.js) */
body.is-leaving { opacity: 0; transition: opacity .24s var(--ease); }

/* Offset anchor jumps so targets clear the fixed header */
:where(section, .section, [id]) { scroll-margin-top: calc(var(--header-h) + 18px); }

/* Thin scroll-progress bar at the very top of the viewport */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1200; pointer-events: none; background: transparent; }
.scroll-progress > span { display: block; height: 100%; width: 0; background: var(--grad-brand); box-shadow: 0 0 12px rgba(79, 70, 229, .5); transition: width .1s linear; }

/* Hero content drifts up on load (independent of JS) */
.hero .hero-copy > *, .hero .hero-mockup {
  opacity: 0; transform: translateY(20px);
  animation: heroIn .7s var(--ease) forwards;
}
.hero .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero .hero-copy > *:nth-child(2) { animation-delay: .13s; }
.hero .hero-copy > *:nth-child(3) { animation-delay: .21s; }
.hero .hero-copy > *:nth-child(4) { animation-delay: .29s; }
.hero .hero-copy > *:nth-child(5) { animation-delay: .37s; }
.hero .hero-copy > *:nth-child(n+6) { animation-delay: .45s; }
.hero .hero-mockup { animation-delay: .3s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .hero .hero-copy > *, .hero .hero-mockup { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ==========================================================================
   Enquiry modal (global — injected by render.js)
   ========================================================================== */
.modal-root {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t);
}
.modal-root.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 15, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
/* Sized so the whole form fits a laptop viewport without an inner scrollbar.
   overflow-y stays `auto` purely as a fallback for very short windows. */
.modal-card {
  position: relative; width: min(540px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: 16px; box-shadow: 0 40px 100px rgba(2, 6, 20, .5);
  padding: clamp(1.15rem, 3vw, 1.5rem);
  transform: translateY(18px) scale(.97); opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.modal-root.is-open .modal-card { transform: none; opacity: 1; }
.modal-x { position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; border: 1px solid transparent; color: var(--slate-500); transition: all var(--t) var(--ease); }
.modal-x:hover { background: var(--paper-2); border-color: var(--line); color: var(--slate-900); }
.modal-x svg { width: 17px; height: 17px; }

/* header — plane badge beside the title stack */
.enq-head { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: center; padding-right: 2rem; margin-bottom: .9rem; }
.enq-head-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--indigo); background: var(--indigo-50); }
.enq-head-ico svg { width: 19px; height: 19px; }
.modal-card h3 { font-size: 1.14rem; margin: 0 0 .12rem; letter-spacing: -.01em; }
.modal-sub { color: var(--slate-500); font-size: .78rem; line-height: 1.45; }

.modal-form { display: grid; gap: .62rem; }
/* minmax(0,…) not 1fr: a bare `1fr` track refuses to shrink below an input's
   intrinsic size, which overflows the card on narrow screens. */
.modal-form .mf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .62rem; }
.modal-form label, .modal-form .mf-field { display: grid; gap: .26rem; min-width: 0; font-size: .74rem; font-weight: 600; color: var(--slate-900); }
.mf-req { color: #E5484D; font-style: normal; }
.modal-form input:not([type="checkbox"]), .modal-form select, .modal-form textarea {
  min-width: 0; width: 100%;
  font-size: .84rem; font-weight: 500; color: var(--slate-900);
  padding: .58rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.modal-form ::placeholder { color: var(--slate-500); font-weight: 400; opacity: 1; }
.modal-form select {
  appearance: none; -webkit-appearance: none; padding-right: 1.9rem; cursor: pointer;
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; background-size: 14px;
}
.modal-form input:focus-visible, .modal-form select:focus-visible, .modal-form textarea:focus-visible { outline-color: var(--indigo-400); border-color: var(--indigo-400); background: var(--paper); }

/* phone — country picker welded to the left of the number field */
.mf-phone { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); }
.mf-phone:focus-within { border-color: var(--indigo-400); }
.modal-form .mf-phone input[type="tel"] { flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 0 10px 10px 0; padding-left: .55rem; }
.enq-cc { position: relative; }
.enq-cc-btn { display: flex; align-items: center; gap: .28rem; height: 100%; padding: .4rem .45rem .4rem .55rem; border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; font-size: .78rem; font-weight: 600; color: var(--slate-900); }
.enq-cc-btn:hover { background: var(--paper); }
.enq-cc-btn svg { width: 12px; height: 12px; color: var(--slate-500); }
.enq-cc-flag, .enq-cc-item img { width: 18px; height: 13px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 18, 32, .1); }
.enq-cc-panel {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(290px, 74vw);
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--sh-lg); padding: .5rem;
}
.enq-cc-panel[hidden], .enq-cc-list li[hidden], .enq-cc-none[hidden] { display: none; }
.enq-cc-search { position: relative; display: flex; margin-bottom: .35rem; }
.enq-cc-search svg { position: absolute; left: .62rem; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--slate-500); pointer-events: none; }
.modal-form .enq-cc-search input { width: 100%; padding: .6rem .8rem .6rem 2.1rem; font-size: .85rem; }
.enq-cc-list { list-style: none; margin: 0; padding: 0; max-height: 176px; overflow-y: auto; }
.enq-cc-item { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: .5rem; width: 100%; padding: .4rem .5rem; border-radius: 8px; text-align: left; font-size: .8rem; font-weight: 500; color: var(--slate-900); }
.enq-cc-item:hover { background: var(--paper-2); }
.enq-cc-code { color: var(--slate-500); font-family: var(--font-mono); font-size: .76rem; }
.enq-cc-list [aria-selected="true"] .enq-cc-item { background: var(--indigo-50); color: var(--indigo); }
.enq-cc-none { padding: .55rem; font-size: .82rem; color: var(--slate-500); }

/* project details — live character budget pinned inside the field */
.modal-form textarea { resize: vertical; min-height: 62px; line-height: 1.5; }
.mf-ta { position: relative; }
.modal-form .mf-ta textarea { padding-bottom: 1.35rem; }
.mf-count { position: absolute; right: .6rem; bottom: .45rem; font-family: var(--font-mono); font-size: .64rem; font-weight: 500; color: var(--slate-500); pointer-events: none; }

.modal-form .mf-check { grid-template-columns: auto 1fr; gap: .45rem; align-items: center; font-size: .72rem; font-weight: 500; color: var(--slate-600); line-height: 1.45; cursor: pointer; }
.mf-check input { width: 15px; height: 15px; accent-color: var(--indigo); }
.mf-check a { color: var(--indigo); font-weight: 600; }

.enq-submit { margin-top: .1rem; border-radius: 10px; padding-block: .72rem; font-size: .87rem; }
.enq-submit svg { width: 15px; height: 15px; }
.modal-note { font-size: .78rem; color: var(--slate-500); }
.enq-secure { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .68rem; }
.enq-secure svg { width: 12px; height: 12px; flex: none; }
@media (max-width: 520px) {
  /* Only the wide fields stack; name/email stay paired to save a row. */
  .modal-form .mf-row--stack { grid-template-columns: 1fr; }
  .modal-form, .modal-form .mf-row { gap: .5rem; }
  .modal-card { padding: 1rem .95rem; }
  .modal-form textarea { min-height: 54px; }
  .enq-head { gap: .6rem; margin-bottom: .75rem; }
  .enq-head-ico { width: 34px; height: 34px; }
  .enq-head-ico svg { width: 17px; height: 17px; }
}
/* Below this the paired name/email columns get too narrow to read, so they
   stack and the form is allowed to scroll — there is no room either way. */
@media (max-width: 340px) {
  .modal-form .mf-row { grid-template-columns: 1fr; }
}

/* thank-you state — swapped in on submit with a soft transition */
.modal-body, .modal-thanks { transition: opacity var(--t) var(--ease); }
.modal-thanks { display: none; text-align: center; padding: 1rem 0; }
.modal-card.sent .modal-body { display: none; }
.modal-card.sent .modal-thanks { display: block; animation: thanksIn .5s var(--ease) both; }
@keyframes thanksIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.thanks-ico { width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad-brand); box-shadow: var(--sh-glow); animation: pop .5s var(--ease) .1s both; }
.thanks-ico svg { width: 36px; height: 36px; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.modal-thanks h3 { margin-bottom: .5rem; }
.modal-thanks p { color: var(--slate-600); max-width: 40ch; margin: 0 auto 1.6rem; }
.modal-thanks .btn { margin: .3rem; }

body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .modal-root, .modal-card, .modal-body, .modal-thanks, .thanks-ico { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Mobile hardening — guarantees clean layout down to 360px on every page
   ========================================================================== */

/* Long words / URLs can never force horizontal scroll */
h1, h2, h3, h4, p, .lead, blockquote, .eyebrow, .stack-chip, .pill-tag, .footer-blurb {
  overflow-wrap: break-word;
}
/* Flex & grid children are allowed to shrink (prevents blow-outs) */
.hero-grid > *, .svc-card > *, .split > *, .stack-row > *, .layer > *,
.principle > *, .card, .tier, .incl, .cta-block { min-width: 0; }
/* Media & scrollers never exceed the viewport */
.compare-wrap, .pipeline, .carousel-track { max-width: 100%; -webkit-overflow-scrolling: touch; }

/* --- Tablet / large phone --- */
@media (max-width: 640px) {
  :root { --header-h: 72px; --section-y: clamp(3.75rem, 12vw, 6rem); }
  .brand-logo { height: 38px; }
  .footer-brand .brand-logo { height: 42px; }
  .hero-stats { gap: 1.1rem 1.6rem; }
  .hero-stat .n { font-size: clamp(1.5rem, 7vw, 2rem); }
  .stat .n { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .price-cue .amt { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}

/* --- Small phone (≤ 400px, covers 360px) --- */
@media (max-width: 400px) {
  :root { --gutter: 1.1rem; }
  .btn { padding: .85rem 1.15rem; font-size: .92rem; }
  /* Stack hero + CTA buttons full-width for comfortable tap targets */
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .cta-block { padding: 2.2rem 1.3rem; }
  .card, .svc-card, .tier, .incl, .principle { padding: 1.35rem; }
  .carousel-track { grid-auto-columns: 88vw; }
  .cart-fab { bottom: 1rem; right: 1rem; padding: .8rem 1.1rem; }
}

/* ==========================================================================
   Shared "arc glow" hero — the blue-arc artwork behind centered heroes
   (used by the Legal page and every Service page). url() is resolved
   relative to this stylesheet, hence ../img/.
   ========================================================================== */
.hero.hero--arc { background: #05070f; }
.hero.hero--arc::before {
  background-image: url("../img/legal-hero.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  -webkit-mask-image: none; mask-image: none;
  opacity: 1;
}
.hero.hero--arc .hero-glow { display: none; }
