/* V6 chrome — keep V4 styles.css untouched; all responsive header/top-bar work lives here. */
:root {
  --chrome-compact: 1199.98px;
}

.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;
}
.sr-only:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.6rem 0.9rem;
  background: var(--color-yellow);
  color: #000;
  font-size: 13px;
  font-weight: 600;
}

.site-main--empty {
  flex: 1;
  min-height: 40vh;
}

.home-hero--magnet {
  min-height: var(--card-min-h);
}

.home-hero--magnet > .site-main--hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-hero--magnet .home-hero-video-wrap {
  flex: 1;
}

.home-hero--magnet .home-logo-rows {
  flex: none;
}

.site-main.legal-doc {
  min-height: 0;
}

.site-main .page-body h2 {
  margin-top: 1.75rem;
  font-size: 1.25rem;
}

.site-main .page-body ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.site-main .page-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page {
  padding-left: max(var(--card-gap), env(safe-area-inset-left, 0px));
  padding-right: max(var(--card-gap), env(safe-area-inset-right, 0px));
}

html.is-nav-open,
html:has(#preloader) {
  overflow: hidden;
}

.article-banner-item,
.home-nav-icon,
.home-nav-toggle,
.home-nav-links a,
.home-nav-avatar,
.btn-face {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-nav-tools {
  display: none;
}

.home-nav-toggle {
  display: none;
}

.home-nav-avatar-meta {
  display: none;
}

.home-nav-avatar {
  position: relative;
}

/* ---------- founder photo ----------
   Square head-and-shoulders portrait. The circle keeps the face and
   trims the hoodie, with a white gap and a gold ring. */
.home-nav-avatar-face,
.mnav-founder-face {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #F6E7C4; /* matches the photo backdrop while it loads */
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color-accent);
  transition: box-shadow 150ms ease;
}
.home-nav-avatar-face img,
.mnav-founder-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: none;
}
.home-nav-avatar:hover .home-nav-avatar-face,
.home-nav-avatar:focus-visible .home-nav-avatar-face {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--color-navy);
}

.home-nav-icon,
.home-nav-toggle {
  width: 44px;
  height: 44px;
}

.home-nav-icon:focus-visible,
.home-nav-toggle:focus-visible,
.home-nav-links a:focus-visible,
.home-nav-avatar:focus-visible,
.home-nav-brand:focus-visible,
.article-banner-item:focus-visible,
.btn-face:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* ---------- logo: height-locked, never squeezed ----------
   Size by HEIGHT only. Width follows the SVG’s intrinsic 1971×372
   ratio. Never pair a fixed height with a max-width below the natural
   width — that is what used to squash the wordmark. */
.home-nav-brand {
  min-width: max-content;
  flex-shrink: 0;
}
.home-nav-logo {
  display: block;
  height: clamp(30px, 1.1vw + 22px, 34px) !important;
  width: auto !important;
  max-width: none !important;
  aspect-ratio: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.home-cta .site-footer a:focus-visible {
  outline-color: var(--color-yellow);
}

/* ---------- desktop: one fluid bar from 1200px laptops to 4K TVs ----------
   The bar and its content run full width (side gutter: --gutter).
   Sizes scale smoothly:
                 1200px   1440px   1920px   2560px   3840px
   link text      12px     12.6px   14px     15.8px   17px
   link spacing   14px     20px     30px     44px     44px          */
@media (width >= 1200px) {
  .home-nav {
    /* equal side columns, so the links sit on the exact centre of the page */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 1.5rem;
    padding-block: clamp(16px, 0.55vw + 9.4px, 24px);
    padding-inline: var(--container-pad);
  }
  .home-nav-brand {
    justify-self: start;
  }
  .home-nav-links {
    gap: clamp(14px, 2.2vw - 12px, 44px);
  }
  .home-nav-links .nav-top {
    font-size: clamp(12px, 0.28vw + 8.6px, 17px);
    letter-spacing: 0.04em;
    /* bigger click area without changing the bar's height */
    padding-block: 10px;
    margin-block: -10px;
  }
  .home-nav-right {
    gap: clamp(10px, 0.4vw + 5px, 16px);
  }
  .home-nav-avatar,
  .home-nav-avatar-face {
    width: clamp(42px, 0.5vw + 36px, 54px);
    height: clamp(42px, 0.5vw + 36px, 54px);
  }
  .home-nav-avatar-initials {
    font-size: clamp(12px, 0.15vw + 10px, 16px);
  }

  /* hover/focus: who this is, in a small navy label under the photo */
  .home-nav-avatar-meta {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    z-index: 45;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    white-space: nowrap;
    background: var(--color-navy);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
    pointer-events: none;
  }
  .home-nav-avatar-meta::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    border: 6px solid transparent;
    border-bottom-color: var(--color-navy);
    transform: translateX(-50%);
  }
  .home-nav-avatar:hover .home-nav-avatar-meta,
  .home-nav-avatar:focus-visible .home-nav-avatar-meta {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
  .home-nav-avatar-name {
    font: 500 14px/1.2 var(--font-heading);
    letter-spacing: -0.01em;
  }
  .home-nav-avatar-role {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-yellow);
  }
  .home-nav .btn-sm .btn-face {
    font-size: clamp(11px, 0.14vw + 9.3px, 14px);
    padding: 0.8em 2em;
  }

  .home-nav-menu {
    display: contents;
  }
}

/* ---------- compact: phones, tablets, small laptops ---------- */
@media (width < 1200px) {
  .article-banner {
    padding: 7px 0;
  }
  .article-banner::before,
  .article-banner::after {
    width: 22px;
  }
  .article-banner-item {
    font-size: 12px;
    padding: 0 1.15rem;
    gap: 0.55rem;
  }
  .article-banner-kicker {
    font-size: 9px;
    padding: 3px 7px 2px;
  }

  .home-nav {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand tools";
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 14px !important;
    background: #fff;
  }

  .home-nav-brand {
    grid-area: brand;
    min-width: 0;
  }

  .home-nav-tools {
    grid-area: tools;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .home-nav-actions {
    display: flex !important;
  }

  .home-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #111;
    color: var(--color-yellow);
    padding: 0;
  }

  .home-nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .home-nav-toggle-bars {
    position: relative;
    width: 16px;
    height: 10px;
    display: block;
  }

  .home-nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 16px;
    height: 1.75px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), top 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .home-nav-toggle-bars span:first-child { top: 1px; }
  .home-nav-toggle-bars span:last-child { top: 7px; }

  .home-nav.is-open .home-nav-toggle-bars span:first-child {
    top: 4px;
    transform: rotate(45deg);
  }
  .home-nav.is-open .home-nav-toggle-bars span:last-child {
    top: 4px;
    transform: rotate(-45deg);
  }

  .home-nav-toggle:hover {
    background: #000;
  }
  .home-nav-toggle:active {
    translate: 0 1px;
  }

}
@media (width >= 768px) and (width < 1200px) {
  .home-nav {
    padding: 14px 18px !important;
  }
  .home-nav-toggle {
    width: auto;
    min-width: 98px;
    padding: 0 14px 0 12px;
    border-radius: 999px;
  }
  .home-nav-toggle-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    clip: auto;
    overflow: visible;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-yellow);
  }
}

@media (width <= 360px) {
  .home-nav {
    padding: 10px 12px !important;
    column-gap: 8px;
  }
  .home-nav-tools {
    gap: 6px;
  }
  .article-banner-item {
    font-size: 11px;
    padding: 0 0.95rem;
  }
}

html.reduced-motion .home-nav-toggle-bars span {
  transition: none;
}

/* ---------- footer: quiet paper, the V6 columns, local links ---------- */
.site-footer-shell {
  background: #fff;
  color: #10213A;
  min-height: 0;
  border-top: 1px solid #E6E9EF;
}

.site-footer-about,
.site-footer-menus,
.site-footer-cta {
  min-width: 0;
}

.site-footer-grid {
  grid-template-columns: minmax(220px, 1.05fr) minmax(0, 1.7fr) minmax(240px, 0.95fr);
  gap: 2.5rem 3rem;
  padding: 3rem 0 2.25rem;
}

.site-footer-grid--clean {
  grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 0.9fr);
  justify-content: space-between;
}

.site-footer-about p,
.site-footer-brand span,
.site-footer-col a,
.site-footer-row span:last-child,
.site-footer-base,
.site-footer-base a,
.site-footer-legal a {
  color: #3d4a5c;
}

.site-footer-about p {
  margin-top: 0.9rem;
  max-width: 34em;
  color: #3d4a5c;
}

.site-footer-brand img {
  width: auto;
  height: 32px;
  max-width: none;
}

.site-footer-social a {
  color: #10213A;
  border-color: #E6E9EF;
  border-radius: 999px;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
  background: #f6edd6;
  color: #03264E;
  border-color: #C29546;
}

.site-footer-col h2,
.site-footer-cta h2,
.site-footer-row span:first-child {
  color: #5B6472;
}

.site-footer-menus {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
}

.site-footer-col a {
  color: #10213A;
  min-height: 32px;
}

.site-footer-col a:hover {
  color: #03264E;
  translate: none;
}

.site-footer-col a[aria-current="page"] {
  color: #8C6B32;
}

.site-footer-cta {
  border-left: 1px solid #E6E9EF;
  padding-left: 2rem;
}

.site-footer-row {
  border-bottom-color: #E6E9EF;
}

.site-footer-row span:last-child {
  overflow-wrap: anywhere;
  color: #10213A;
}

.site-footer-row:hover span:last-child,
.site-footer-row:focus-visible span:last-child {
  color: #8C6B32;
}

.site-footer-base {
  align-items: flex-start;
  gap: 0.75rem 1.5rem;
  border-top-color: #E6E9EF;
  color: #5B6472;
}

.site-footer-base a:hover {
  color: #03264E;
}

.site-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin-left: auto;
}

.site-footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #5B6472;
}

.site-footer-col a,
.site-footer-row,
.site-footer-social a,
.site-footer-brand,
.site-footer-legal a,
.site-footer-base a {
  touch-action: manipulation;
}

@media (width <= 1200px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .site-footer-about,
  .site-footer-menus,
  .site-footer-cta {
    grid-column: 1 / -1;
  }

  .site-footer-cta {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid #E6E9EF;
    padding-top: 1.75rem;
  }

  .site-footer-legal {
    margin-left: 0;
  }
}

@media (width <= 767px) {
  .site-footer {
    padding: 0 1.25rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2.25rem 0 1.5rem;
  }

  .site-footer-menus {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .site-footer-col a,
  .site-footer-legal a,
  .site-footer-base a {
    min-height: 44px;
  }

  .site-footer-base {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0 1.35rem;
  }
}

/* ---------- breadcrumb ---------- */
.site-breadcrumb {
  min-width: 0;
}

.site-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-breadcrumb li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #555;
}

.site-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin: 0 0.55rem;
  color: #9a9a9a;
}

.site-breadcrumb a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-breadcrumb [aria-current="page"] {
  color: #111;
  overflow-wrap: anywhere;
}

.legal-breadcrumb {
  padding: 1.15rem 1.25rem 0;
}

.legal-doc > .site-breadcrumb {
  margin: 0 0 1.5rem;
}

/* ---------- compliance pages: sidebar + Indian-law document ---------- */
.legal-shell {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 0;
}

.legal-sidebar {
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(1, 1, 1, 0.08);
}

.legal-sidebar-date {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 0.75rem;
}

.legal-sidebar-date span {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
}

.legal-sidebar-date time {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: #111;
}

.legal-sidebar-nav,
.legal-sidebar-officer {
  margin-top: 1.35rem;
}

.legal-sidebar h2 {
  margin: 0 0 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #767676;
}

.legal-sidebar-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.legal-sidebar-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--color-grey);
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}

.legal-sidebar-nav a[aria-current="page"] {
  background: var(--color-yellow);
  color: #000;
}

.legal-sidebar-officer p {
  margin: 0 0 0.55rem;
  max-width: none;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
}

.legal-sidebar-officer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc--with-sidebar {
  width: 100%;
  min-width: 0;
  padding: 2rem 1.25rem 3rem;
}

.legal-shell .legal-doc h1,
.legal-shell .legal-doc p,
.legal-shell .legal-doc li,
.legal-shell .legal-doc .page-body {
  max-width: none;
}

.legal-doc--with-sidebar h2[id] {
  scroll-margin-top: 1.25rem;
}

@media (width < 1024px) {
  .legal-sidebar-officer {
    display: none;
  }
}

@media (width >= 1024px) {
  .legal-shell {
    grid-template-columns: 15rem minmax(0, 1fr);
  }

  .legal-breadcrumb {
    grid-column: 1 / -1;
    padding: 1.35rem clamp(1.75rem, 3vw, 3rem) 1.1rem;
    border-bottom: 1px solid rgba(1, 1, 1, 0.08);
  }

  .legal-sidebar {
    position: sticky;
    top: 1.25rem;
    align-self: start;
    padding: 1.75rem 1.35rem 2.5rem clamp(1.5rem, 3vw, 2.25rem);
    background: #fff;
    border-bottom: 0;
    border-right: 1px solid rgba(1, 1, 1, 0.08);
  }

  .legal-sidebar-nav ul {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.25rem;
  }

  .legal-sidebar-nav a {
    display: flex;
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
  }

  .legal-doc--with-sidebar {
    padding: 2rem clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 5rem);
  }
}

/* Who are we — company brief, not a founder portrait */
.home-who-company {
  background: #fff;
  min-height: var(--card-min-h);
}

.home-who-company-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding: clamp(2rem, 4.5vw, 4.25rem) clamp(1.5rem, 4vw, 4.5rem) clamp(2.25rem, 4vw, 3.5rem);
  max-width: 1180px;
}

.home-who-company .section-meta {
  margin-bottom: 0;
}

.home-who-thesis {
  display: grid;
  gap: 1.25rem 3rem;
}

.home-who-company .home-who-heading {
  max-width: 14.5em;
  margin: 0;
}

.home-who-lede {
  margin: 0;
  max-width: 38em;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  color: #333;
}

.home-who-contrast-kicker {
  margin: 0 0 1.15rem;
}

.home-who-contrast-head,
.home-who-contrast-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
}

.home-who-contrast-head {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #010101;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-who-contrast-head span:last-child {
  color: #010101;
}

.home-who-company .home-who-block {
  padding: 1.35rem 0;
  border-top: 0;
  border-bottom: 1px solid #e8e6e1;
}

.home-who-them,
.home-who-us {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.55;
}

.home-who-them {
  color: #6a6a6a;
}

.home-who-us {
  color: #010101;
  padding-left: 1.15rem;
  border-left: 3px solid var(--color-accent);
}

.home-who-them .label,
.home-who-us .label {
  display: none;
}

.home-who-credit {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: #6a6a6a;
}

@media (width <= 767px) {
  .home-who-company-inner {
    padding: 2rem 1.35rem 2.25rem;
    gap: 1.75rem;
  }

  .home-who-company .home-who-heading {
    font-size: 2rem !important;
    max-width: none;
  }

  .home-who-contrast-head {
    display: none;
  }

  .home-who-contrast-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .home-who-them .label,
  .home-who-us .label {
    display: block;
    margin: 0 0 0.45rem;
    color: #666;
  }

  .home-who-us {
    padding-left: 0.9rem;
  }
}

@media (width >= 900px) {
  .home-who-thesis {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
  }

  .home-who-lede {
    padding-bottom: 0.2rem;
  }
}

/* ---------- brand colours: logo navy + Saffron ----------
   Saffron #F2C150 is the primary surface colour: top strip, buttons, call
   icon. Same hue family as the logo's gold (#CC9D50, h37) but brighter and
   cleaner. Navy text on it = 8.7:1 (passes WCAG AA/AAA); white on it is
   too faint, so text/icons on it stay navy.
   It is too pale for thin lines on white, so underlines, current-page
   marks and rings use the deeper shade --color-accent (3.3:1).
   --color-yellow keeps its name (styles.css uses it everywhere).

   Other golds tried — to switch, replace the four values below:
     Soft Gold (quieter)   #E7B76A · shadow/accent #BF8322 · pressed #E3AC54
     Champagne Gold        #E4C68B · shadow/accent #B6872B · pressed #DFBC77
     Honey Gold            #EDAF45 · shadow/accent #BA8221 · pressed #EAA52E
     Marigold (boldest)    #F6AF23 · shadow/accent #B68420 · pressed #F5A70A
     Biscuit Beige         #DEB78B · shadow/accent #B88A56 · pressed #D3A976
     Poster tan            #B89872 · shadow/accent #977D5D · pressed #A98C69  */
:root {
  --color-navy: #08294E;           /* exact navy from the logo */
  --color-navy-deep: #051B36;      /* hover/pressed */
  --color-yellow: #F2C150;         /* Saffron — primary surfaces */
  --color-yellow-shadow: #B2861F;  /* button drop-shadow */
  --color-yellow-pressed: #F0B938; /* Saffron button, hover/pressed */
  --color-accent: #B2861F;         /* thin lines/marks on white */
}

/* text and icons sitting on gold */
.home-nav .home-nav-icon.call,
.home-nav .btn-face,
.article-banner-item,
.sr-only:focus {
  color: var(--color-navy);
}

/* dark pills/buttons sitting next to gold: navy instead of black */
.article-banner-kicker,
.home-nav .home-nav-toggle {
  background: var(--color-navy);
}
.home-nav .home-nav-toggle:hover {
  background: var(--color-navy-deep);
}

/* no orange-red accents in the header: the navy pills already separate
   the top-strip messages, so the dots between them and the pulsing
   "live" dot inside the pill are removed */
.article-banner-item::before,
.article-banner-kicker.is-live::before {
  content: none;
}
.home-nav-icon:focus-visible,
.home-nav-toggle:focus-visible,
.home-nav-links a:focus-visible,
.home-nav-avatar:focus-visible,
.home-nav-brand:focus-visible,
.article-banner-item:focus-visible,
.btn-face:focus-visible {
  outline-color: var(--color-navy);
}

/* =====================================================================
   PAGE SHELL — full-width, white, square edges (corporate layout).
   No black frame, no rounded cards, no gaps around the page.
   ===================================================================== */
:root {
  /* header + menus run full width; only a side gutter that grows with the
     screen: 30px @1200 · 48px @1920 · 64px @2560 · 96px @3840 */
  --gutter: clamp(20px, 2.5vw, 96px);
  --container-pad: var(--gutter);
  --line: #E6E9EF;                     /* hairlines */
  --ink: #10213A;                      /* menu text */
  --muted: #5B6472;                    /* secondary text */
}

body,
.page {
  background: #fff;
}
.page {
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  gap: 0;
}
.card,
.article-banner {
  border-radius: 0;
}
/* the header card must not clip the menu panels.
   Homepage uses .home-hero; every other page uses .page-top.
   .card defaults to overflow:hidden, which would hide mega menus. */
.home-hero,
.page-top {
  overflow: visible;
  position: relative;
}
.page-top { min-height: 0; }
.home-hero {
  isolation: isolate;
  /* layers, top to bottom: soft light from the upper right, a gold veil that
     warms the lower middle (it stops short of the corners, so it never
     greys the blue), a gold bloom behind the laptop, quiet blue and coral
     accents in the corners, then the pale champagne base */
  background:
    radial-gradient(ellipse 62% 44% at 76% -8%, rgba(255, 255, 255, 0.9), transparent 64%),
    radial-gradient(ellipse 58% 56% at 52% 104%, rgba(240, 206, 128, 0.34), transparent 70%),
    radial-gradient(ellipse 44% 40% at 32% 68%, rgba(214, 170, 78, 0.32), transparent 66%),
    radial-gradient(ellipse 30% 32% at 2% 90%, rgba(86, 156, 232, 0.26), transparent 68%),
    radial-gradient(ellipse 32% 30% at 97% 66%, rgba(255, 112, 104, 0.2), transparent 68%),
    linear-gradient(165deg, #fdfaf1 0%, #fbf5e4 48%, #f8edd2 100%);
}

.home-hero-scene {
  background: transparent;
  z-index: 1;
}

.home-hero-video-wrap {
  overflow: hidden;
}

/* corner plates: gold beside the colour, so blue and coral stay clean tints */
.home-hero-blur {
  z-index: 0;
  filter: blur(80px);
  opacity: 0.8;
}

.home-hero-blur.is-left {
  left: -140px;
  bottom: -60px;
  width: 620px;
  height: 500px;
  background:
    radial-gradient(circle at 80% 72%, rgba(222, 180, 92, 0.5), transparent 46%),
    radial-gradient(circle at 30% 50%, rgba(86, 156, 232, 0.46), transparent 56%);
}

.home-hero-blur.is-right {
  right: -100px;
  bottom: -40px;
  top: auto;
  width: 640px;
  height: 520px;
  background:
    radial-gradient(circle at 64% 70%, rgba(222, 180, 92, 0.5), transparent 60%),
    radial-gradient(circle at 46% 42%, rgba(255, 112, 104, 0.34), transparent 60%);
}

.home-nav {
  border-bottom: 1px solid var(--line);
}

/* =====================================================================
   MAIN MENU — top-level items (shared)
   ===================================================================== */
.nav-item {
  position: static;
}
.nav-top,
.home-nav-links .nav-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.nav-chevron {
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-trigger[aria-expanded="true"] .nav-chevron {
  transform: rotate(180deg);
}

/* links inside panels: reset the uppercase top-level styling */
.nav-panel a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  color: var(--ink);
  transition: color 150ms ease;
}
.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
  color: var(--color-navy);
}
.nav-panel a[aria-current="page"] {
  font-weight: 600;
}

.nav-group-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-list {
  display: grid;
}
.nav-list a {
  padding: 7px 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.nav-list a:hover {
  text-decoration-color: var(--color-accent);
}

/* featured audit card */
.nav-feature {
  background: var(--color-navy);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-feature-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
}
.nav-feature-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.nav-feature-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.nav-panel .nav-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 150ms ease;
}
.nav-panel .nav-feature-cta:hover {
  background: var(--color-yellow-pressed);
  color: var(--color-navy);
}

/* panel footer row */
.nav-mega-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
}
.nav-foot-label,
.nav-foot-note {
  font-size: 13px;
  color: var(--muted);
}
.nav-foot-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nav-panel .nav-chips a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: border-color 150ms ease, color 150ms ease;
}
.nav-panel .nav-chips a:hover {
  border-color: var(--color-navy);
}
.nav-panel .nav-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-navy);
}
.nav-panel .nav-all svg {
  transition: transform 150ms ease;
}
.nav-panel .nav-all:hover svg {
  transform: translateX(3px);
}

/* areas: heading + search */
.nav-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.nav-mega-title {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  transition: border-color 150ms ease;
}
.nav-search:focus-within {
  border-color: var(--color-navy);
}
.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 500 15px/1 var(--font-sans);
  color: var(--ink);
}
.nav-search input::placeholder {
  color: #8A93A1;
}
.nav-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 0 20px;
}
.nav-panel .nav-empty a {
  display: inline;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
[data-area-item][hidden],
[data-area-group][hidden] {
  display: none;
}

/* about: rich links */
.nav-rich-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--color-navy);
}
.nav-rich-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.nav-list--posts a {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* =====================================================================
   DESKTOP (1200px+): full-width panels below the bar
   ===================================================================== */
@media (width >= 1200px) {
  /* gold underline marks hover, the open menu and the current section */
  .home-nav-links .nav-top::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .home-nav-links .nav-top:hover::after,
  .home-nav-links .nav-trigger[aria-expanded="true"]::after,
  .home-nav-links .nav-item.is-active > .nav-top::after,
  .home-nav-links .nav-top[aria-current="page"]::after {
    transform: scaleX(1);
  }
  .home-nav-links .nav-trigger[aria-expanded="true"] {
    color: var(--color-navy);
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 36px var(--container-pad) 0;
    max-height: calc(100svh - 140px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 28px 48px -20px rgba(8, 41, 78, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 220ms;
  }
  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav-mega {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 48px;
  }
  .nav-mega-cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
  .nav-mega-cols--areas {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .nav-group-title {
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .nav-mega-head {
    margin-bottom: 28px;
  }
  .nav-search {
    width: min(340px, 40%);
  }
  .nav-mega-foot {
    margin-top: 28px;
    padding: 18px 0 22px;
  }

  .nav-list--rich {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 36px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .nav-list--rich li + li {
    border-left: 1px solid var(--line);
  }
  .nav-panel .nav-list--rich a {
    height: 100%;
    padding: 22px 24px;
    text-decoration: none;
    transition: background 150ms ease;
  }
  .nav-panel .nav-list--rich a:hover {
    background: #F5F7FA;
  }

  .nav-blog {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
  }

  /* soften the page behind an open menu */
  #hero-content {
    transition: opacity 220ms ease;
  }
  .home-hero:has(.nav-panel.is-open) #hero-content {
    opacity: 0.4;
  }
}

.nav-trigger:focus-visible,
.nav-panel a:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
}

html.reduced-motion .nav-panel,
html.reduced-motion .nav-chevron {
  transition: none;
}

/* =====================================================================
   PHONE & TABLET MENU (< 1200px) — calm drill-down, up to 3 levels
   Menu › Services › Websites. Phones: full screen. Tablets: right drawer.
   Every screen = one title (+ "See all") and one list. A chevron opens
   the next list; no chevron opens a page. WhatsApp + Call stay pinned.
   Markup: includes/mobile-menu.php · Behaviour: js/chrome.js
   ===================================================================== */
.mnav[hidden] {
  display: none;
}

@media (width >= 1200px) {
  .mnav {
    display: none !important;
  }
}

@media (width < 1200px) {
  /* the desktop link row + mega panels are desktop-only; phones use .mnav */
  .home-nav-menu {
    display: none !important;
  }

  .mnav {
    --mnav-pad: 24px;
    --mnav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --mnav-row-line: #EDF0F4;
    position: fixed;
    inset: 0;
    z-index: 1000;
  }
  .mnav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 41, 78, 0.4);
    opacity: 0;
    transition: opacity 280ms ease;
  }
  .mnav-sheet {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    overscroll-behavior: contain;
    outline: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 320ms var(--mnav-ease);
  }
  .mnav.is-open .mnav-backdrop {
    opacity: 1;
  }
  .mnav.is-open .mnav-sheet {
    opacity: 1;
    transform: none;
  }

  /* ---- top bar: logo (or Back) + close ---- */
  .mnav-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: env(safe-area-inset-top, 0px) 14px 0 var(--mnav-pad);
  }
  .mnav-logo img {
    display: block;
    height: 30px;
    width: auto;
    max-width: none;
    object-fit: contain;
  }
  .mnav-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    height: 44px;
    margin-left: -10px;
    padding: 0 12px 0 4px;
    font: 600 16px/1 var(--font-sans);
    color: var(--color-navy);
  }
  .mnav-back[hidden],
  .mnav-logo[hidden] {
    display: none;
  }
  .mnav-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-yellow);
  }
  .mnav-close:active {
    background: var(--color-navy-deep);
  }

  /* ---- sliding screens ---- */
  .mnav-screens {
    position: relative;
    flex: 1;
    overflow: hidden;
    border-top: 1px solid var(--line);
  }
  .mnav-screen {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 4px var(--mnav-pad) 24px;
    background: #fff;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 320ms var(--mnav-ease), visibility 0s linear 320ms;
  }
  .mnav-screen.is-active {
    transform: none;
    visibility: visible;
    transition-delay: 0s;
  }
  .mnav-screen.is-behind {
    transform: translateX(-24%);
  }

  /* ---- screen title + "See all" ---- */
  .mnav-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0 10px;
  }
  .mnav-title {
    font-family: var(--font-heading);
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-navy);
    outline: none;
  }
  .mnav-seeall {
    flex-shrink: 0;
    padding: 12px 0 12px 12px;
    margin: -12px 0;
    font: 600 15px/1 var(--font-sans);
    color: var(--color-navy);
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }

  /* ---- rows ---- */
  .mnav-list {
    list-style: none;
  }
  .mnav-list > li + li {
    border-top: 1px solid var(--mnav-row-line);
  }
  .mnav-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 14px 0;
    font: 500 17px/1.3 var(--font-sans);
    color: var(--ink);
    text-align: left;
    background: none;
    isolation: isolate; /* keeps the press highlight behind the text */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .mnav-row--muted {
    color: #9aa3b0;
    cursor: default;
    pointer-events: none;
  }
  /* press feedback spans the full width of the sheet */
  .mnav-row::after {
    content: "";
    position: absolute;
    inset: 0 calc(var(--mnav-pad) * -1);
    z-index: -1;
    background: #F3F5F8;
    opacity: 0;
    transition: opacity 120ms ease;
  }
  .mnav-row:active::after {
    opacity: 1;
  }
  .mnav-label {
    flex: 1;
    min-width: 0;
  }
  .mnav-next {
    flex-shrink: 0;
    color: #A3ABB8;
  }
  /* first level: big and calm */
  .mnav-list--main .mnav-row {
    min-height: 62px;
    font-family: var(--font-heading);
    font-size: clamp(22px, 6vw, 26px);
    letter-spacing: -0.025em;
  }
  /* current page / current section: navy + a gold mark on the edge */
  .mnav-row.is-active,
  .mnav-row[aria-current="page"] {
    color: var(--color-navy);
    font-weight: 600;
  }
  .mnav-row.is-active::before,
  .mnav-row[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: calc(var(--mnav-pad) * -1);
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: var(--color-accent);
  }

  /* ---- area search ---- */
  .mnav-search {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    margin: 6px 0 10px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    color: var(--muted);
    transition: border-color 150ms ease;
  }
  .mnav-search:focus-within {
    border-color: var(--color-navy);
  }
  .mnav-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 500 16px/1 var(--font-sans); /* 16px stops iOS zooming in */
    color: var(--ink);
  }
  .mnav-search input::placeholder {
    color: #8A93A1;
  }
  .mnav-empty {
    padding: 14px 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
  }
  .mnav-empty a {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* ---- About: the founder ---- */
  .mnav-founder {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--mnav-row-line);
    -webkit-tap-highlight-color: transparent;
  }
  .mnav-founder-face {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
  }
  .mnav-founder-text {
    flex: 1;
    min-width: 0;
  }
  .mnav-founder-name {
    display: block;
    font: 600 17px/1.3 var(--font-sans);
    color: var(--ink);
  }
  .mnav-founder-role {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* ---- pinned contact buttons ---- */
  .mnav-foot {
    flex: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: #fff;
  }
  .mnav-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    font: 600 16px/1 var(--font-sans);
    -webkit-tap-highlight-color: transparent;
  }
  .mnav-action--wa {
    background: #0B7A5E; /* darker WhatsApp green: white text passes contrast */
    color: #fff;
  }
  .mnav-action--call {
    background: var(--color-yellow);
    color: var(--color-navy);
  }
  .mnav-action:active {
    filter: brightness(0.94);
  }

  /* ---- keyboard focus ---- */
  .mnav a:focus-visible,
  .mnav button:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
  }
  .mnav-row:focus-visible {
    outline-offset: -2px;
  }
}

/* small phones (≤ 360px): slightly tighter side space */
@media (width <= 360px) {
  .mnav {
    --mnav-pad: 18px;
  }
  .mnav-title {
    font-size: 25px;
  }
}

/* short phones (e.g. iPhone SE, 320×568): slightly shorter rows so the
   whole first level fits without scrolling */
@media (width < 640px) and (max-height: 680px) {
  .mnav-list--main .mnav-row {
    min-height: 52px;
    padding-block: 10px;
    font-size: 21px;
  }
  .mnav-row {
    min-height: 50px;
    padding-block: 12px;
  }
  .mnav-head {
    padding: 14px 0 6px;
  }
  .mnav-title {
    font-size: 24px;
  }
}

/* tablets and sideways phones: a drawer from the right, page dimmed behind */
@media (640px <= width < 1200px) {
  .mnav {
    --mnav-pad: 28px;
  }
  .mnav-sheet {
    left: auto;
    width: min(440px, 100%);
    opacity: 1;
    transform: translateX(100%);
    box-shadow: -24px 0 48px -16px rgba(8, 41, 78, 0.28);
  }
}

/* short screens (phones held sideways): compact rows so the list fits */
@media (width < 1200px) and (max-height: 500px) {
  .mnav-bar {
    min-height: 54px;
  }
  .mnav-head {
    padding: 10px 0 4px;
  }
  .mnav-title {
    font-size: 22px;
  }
  .mnav-row {
    min-height: 46px;
    padding-block: 10px;
  }
  .mnav-list--main .mnav-row {
    min-height: 46px;
    font-size: 20px;
  }
  /* first level in two columns, so all 7 items + the buttons fit */
  .mnav-list--main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    padding-top: 4px;
  }
  .mnav-list--main > li + li {
    border-top: 0;
  }
  .mnav-list--main > li {
    border-bottom: 1px solid var(--mnav-row-line);
  }
  .mnav-row.is-active::before,
  .mnav-row[aria-current="page"]::before {
    top: 10px;
    bottom: 10px;
  }
  .mnav-search {
    height: 44px;
  }
  .mnav-foot {
    padding-block: 8px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .mnav-action {
    height: 44px;
  }
}

html.reduced-motion .mnav-sheet,
html.reduced-motion .mnav-backdrop,
html.reduced-motion .mnav-screen {
  transition: none;
}

/* =====================================================================
   CLIENT LOGO STRIP — optical sizing
   Each logo carries its own height (--logo-h, set in includes/hero.php
   from its shape), so a wide wordmark and a compact mark look equally
   weighted instead of all being forced to one height.
   ===================================================================== */
.home-logo-rows .home-brand-logo img {
  height: calc(var(--logo-h, 44px) * var(--logo-scale, 1)) !important;
  width: auto;
  max-width: 200px !important;
  /* every logo in its own colours at 95% opacity, a touch softer than
     the page text; full strength on hover */
  opacity: var(--logo-rest-opacity, 0.95);
  transition: opacity 250ms ease;
}
.home-logo-rows .home-brand-logo {
  opacity: 1; /* replaces the old 0.94 dimming on the wrapper */
}
/* hover: the logo comes up to full strength */
.home-logo-rows .home-brand-logo:hover img {
  opacity: 1;
}
@media (width <= 767px) {
  .home-logo-rows {
    --logo-scale: 0.8;
  }
}

/* =====================================================================
   HERO MAGNET — layout + layering refinements
   Two stage layouts are set by js/hero-magnet.js: "wide" (1200×380,
   laptop left, city from the right) and "tall" (440×420, phones: laptop
   at the bottom, magnet standing on the screen, city pulled in from above
   and both sides; the stage gets .is-tall).
   ===================================================================== */
/* bubbles and lines sit above the soft colour patches, so they stay crisp */
.mg-stage {
  z-index: 3;
}

/* tall layout: the magnet stands on the top of the screen, so the page
   mock-up and the call/WhatsApp cards move below it */
.mg-stage.is-tall .mg-page {
  padding: 62px 14px 12px;
}
.mg-stage.is-tall .mg-pg-nav {
  visibility: hidden;
}
.mg-stage.is-tall .mg-pg-hero {
  margin-top: 0;
}
.mg-stage.is-tall .mg-pg-grid {
  right: 14px;
}
.mg-stage.is-tall .mg-toasts {
  top: 60px;
  right: 8px;
}
/* tall layout (phones + portrait tablets): the city arrives from above, so the
   scene must start below the copy — cancel the 80px tuck-under that the wide
   layout uses on tablets — and bubbles/lines fade in from its top edge
   instead of being cut hard */
.home-hero-video-wrap:has(.mg-stage.is-tall) {
  margin-top: 0 !important;
}
.home-hero-scene:has(.mg-stage.is-tall) {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
}

/* phones: the scene fills the space left in the screen-tall hero, but never
   drops below 82% of the tall 440×420 stage fitted to the width (+ the band
   insets) — so on short phones (e.g. 320×568) the magnet stays a proper
   size and the page scrolls a little instead of the scene collapsing */
@media (width <= 767px) {
  .home-hero--magnet .home-hero-video-wrap {
    flex: 1 0 auto;
    height: auto;
    min-height: calc(min(100vw * 420 / 440, 525px) * 0.82 + 56px);
  }
}

/* ---------- Flagship footer + mega menu (QuickHey, 3 Dec 2026) ---------- */
.site-footer-grid--flagship { grid-template-columns: minmax(260px, 1fr) minmax(0, 2.6fr); }
.site-footer-menus--flagship { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.site-footer-menus--flagship .site-footer-col ul { display: grid; gap: 2px; }
.site-footer-about p { max-width: 34ch; line-height: 1.6; }
.site-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.site-footer-btn { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(3,38,78,.22); color: #03264E; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.site-footer-btn:hover { background: #03264E; color: #fff; }
.site-footer-btn--wa { background: #03264E; color: #fff; border-color: #03264E; }
.site-footer-btn--wa:hover { background: #B2861F; border-color: #B2861F; }
.site-footer-direct { display: grid; gap: 4px; margin-top: 1rem; font-style: normal; }
.site-footer-direct a { color: #10213A; text-decoration: none; }
.site-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.site-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
@media (max-width: 1100px) {
  .site-footer-grid--flagship { grid-template-columns: 1fr; }
  .site-footer-menus--flagship { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .site-footer-menus--flagship { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
}

/* ---------- UI/UX audit (4 Dec 2026): shared chrome, every page ----------
   One side gutter for the header, the page content and the footer, so their
   left edges line up. 20px matches the content gutter every inner page
   already uses (100% - 2.5rem); 16px on the narrowest phones; the fluid
   desktop --gutter from 1200px. Before this the header used 14px or 18px,
   content 20px and the footer 20px to 32px. */
:root { --qh-edge: 20px; }
@media (width <= 360px) { :root { --qh-edge: 16px; } }
@media (width >= 1200px) { :root { --qh-edge: var(--gutter); } }

/* top strip: the whole bar height is the tap target (links were 17px tall) */
.article-banner { padding: 0; }
.article-banner-item { min-height: 38px; }
@media (width < 1200px) {
  .article-banner-item { min-height: 36px; font-size: 12px; }
  .article-banner-kicker { font-size: 10px; }
}

/* compact header: shared gutter, and a logo that scales down instead of
   sliding under the WhatsApp button on 320px phones. Height and width are
   both auto, so the wordmark keeps its ratio and is never squashed. */
@media (width < 1200px) {
  .home-nav { padding-inline: var(--qh-edge) !important; }
  .home-nav-brand { min-width: 0; flex-shrink: 1; }
  .home-nav-logo {
    height: auto !important;
    max-height: clamp(30px, 1.1vw + 22px, 34px);
    max-width: 100% !important;
    flex-shrink: 1;
  }
}

/* footer */
.site-footer { padding-inline: var(--qh-edge); }
.site-footer-col h2 { font-size: 0.78rem; }
.site-footer-base { font-size: 0.8125rem; }
.site-footer-btn { min-height: 44px; }
.site-footer-direct { gap: 0; }
.site-footer-direct a { display: inline-flex; align-items: center; justify-self: start; min-height: 40px; }
@media (width < 1200px) {
  .site-footer-col a, .site-footer-legal a { min-height: 40px; }
}
@media (width <= 767px) {
  .site-footer-direct a { min-height: 44px; }
}
/* four link columns need about 190px each; below 1280px the brand block
   moves on top so they keep that room and link labels stay on one line */
@media (max-width: 1279px) {
  .site-footer-grid--flagship { grid-template-columns: 1fr; }
}
@media (min-width: 900px) and (max-width: 1279px) {
  .site-footer-menus--flagship { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 720px) and (max-width: 1279px) {
  .site-footer-about { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  .site-footer-about .site-footer-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-footer-about p { grid-column: 1; grid-row: 2; max-width: 56ch; }
  .site-footer-about .site-footer-actions { grid-column: 2; grid-row: 1; margin-top: 0; }
  .site-footer-about .site-footer-direct { grid-column: 2; grid-row: 2; margin-top: 0.75rem; }
}

/* ---------- Subpages, 4 Dec 2026 ----------
   The fixed Call / WhatsApp / Get a Quote bar is removed on every subpage.
   One plain breadcrumb bar on every inner page: Home › section › page. */
.qsf-sticky-bar { display: none !important; }
body:has(.qsf-sticky-bar) { padding-bottom: 0 !important; }

.qh-crumbbar {
  position: relative;
  background: #fdf2d5;
  border-bottom: 1px solid rgba(3, 38, 78, 0.08);
}
.qh-crumbbar ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0;
  width: min(100% - 2 * var(--qh-edge, 20px), 76rem);
  margin: 0 auto;
  padding: 0.9rem 0;
  list-style: none;
}
.qh-crumbbar li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 500;
  color: #5c6575;
}
.qh-crumbbar li:not(:last-child)::after {
  content: "›";
  margin: 0 0.55rem;
  color: rgba(3, 38, 78, 0.35);
}
.qh-crumbbar a {
  color: #03264e;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.qh-crumbbar a:hover {
  color: #03264e;
  border-bottom-color: rgba(178, 134, 31, 0.85);
}
.qh-crumbbar [aria-current="page"] {
  color: #8a6510;
  font-weight: 600;
  overflow-wrap: anywhere;
}
body.qh-has-crumb .qsf-crumbs,
body.qh-has-crumb .contact-breadcrumb,
body.qh-has-crumb .qh-breadcrumb,
body.qh-has-crumb .blog-breadcrumb,
body.qh-has-crumb .about-breadcrumb,
body.qh-has-crumb .team-breadcrumb,
body.qh-has-crumb .qh-inner-breadcrumb { display: none; }
