.brand {
  display: inline-flex;
  width: auto;
  min-width: 235px;
  align-items: center;
  gap: 11px;
  overflow: visible;
  color: var(--navy);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  color: var(--navy);
}

.logo-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-mark path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.logo-words { display: flex; flex-direction: column; line-height: 1; }
.logo-words strong { color: var(--navy); font-size: 20px; letter-spacing: 1.7px; }
.logo-words small { margin-top: 6px; color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: 2.1px; }

.robin-large {
  position: relative;
  width: min(92%, 360px);
  height: 345px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,.22));
  transform: translateY(-18px);
}

.robin-toggle { overflow: hidden; background: var(--navy); }
.robin-toggle img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.footer-brand { color: #fff; }
.footer-brand .logo-words strong,
.footer-brand .logo-words small { color: #fff; }
.footer-brand .logo-mark { color: #fff; }

@media (max-width: 720px) {
  .brand { width: auto; min-width: 0; }
  .logo-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .logo-words strong { font-size: 17px; }
  .logo-words small { font-size: 8px; }
}

/* Cross-device resilience: phones, tablets, desktop browsers and text zoom. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body { min-width: 320px; overflow-x: hidden; }
img, svg { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }
.site-header { -webkit-backdrop-filter: blur(12px); }
.site-nav a, .menu-button, .button, .robin-toggle { touch-action: manipulation; }

@media (max-width: 960px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .hero-grid { gap: 34px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 700px; }
  .hero-robin { width: min(100%, 560px); min-height: 360px; margin-inline: auto; }
  .robin-large { height: 320px; }
  .trust-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 720px) {
  .site-nav { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
  .site-nav a { min-height: 48px; display: flex; align-items: center; font-size: 15px; }
  .menu-button { min-width: 44px; min-height: 44px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); letter-spacing: -2px; }
  h2 { font-size: clamp(1.9rem, 9vw, 2.65rem); }
  .hero-lead, .section-lead { font-size: 1rem; }
  .hero-points { flex-direction: column; gap: 8px; }
  .hero-robin { min-height: 330px; }
  .robin-large { height: 300px; }
  .service-grid { grid-template-columns: 1fr; }
  .button { width: 100%; min-height: 48px; }
  .mtd-check, .contact-form, .values-card { padding: 24px 20px; }
  .contact-section a { overflow-wrap: anywhere; }
  .footer-grid { gap: 30px; }
  .footer-brand { width: fit-content; }
  .robin-guide { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .robin-message { max-height: min(45vh, 260px); overflow-y: auto; }
}

@media (max-width: 420px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .logo-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .logo-words strong { font-size: 15px; letter-spacing: 1.2px; }
  .logo-words small { font-size: 7px; letter-spacing: 1.5px; }
  .hero { padding-block: 44px; }
  .hero-robin { min-height: 285px; border-radius: 18px; }
  .robin-large { height: 265px; }
  .hero-robin p { right: 20px; bottom: 18px; left: 20px; }
  .timeline div { padding-block: 14px; }
  .robin-message { width: min(230px, calc(100vw - 82px)); padding: 14px 34px 14px 15px; }
}

@media (hover: none) {
  .button:hover, .site-nav a:hover { text-decoration: none; }
}

.footer-social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; border: 1px solid rgba(255,255,255,.4); border-radius: 7px; color: #fff; }
.footer-social svg { width: 21px; height: 21px; fill: currentColor; }
.footer-social a:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.footer-social a:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
