/* Shalem Cleaning & Property Care — site styles */

:root {
  /* Brand palette */
  --navy: #192c47;
  --abyss: #0e1a2c;
  --teal: #4a9698;
  --teal-ink: #2f6f71;   /* teal dark enough for small text on white */
  --teal-glow: #7cc3c4;  /* teal light enough for text on navy */
  --slate: #637083;
  --mist: #b1c1c7;
  --frost: #eef3f5;
  --white: #ffffff;
  --ink: #15233a;

  /* Type */
  --display: "Lexend", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Cinzel", "Trajan Pro", Georgia, serif;

  /* Scale (1.25 minor third base, fluid display) */
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-4: clamp(2.8rem, 1.6rem + 5vw, 5.6rem);
  --step-5: clamp(3.4rem, 1.4rem + 8vw, 8.4rem);

  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --max: 1240px;
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 24px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--white); color: var(--navy); padding: .75rem 1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type roles ---------- */
.display, .h2, .h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 4rem); line-height: 1.05; }
.h3 { font-size: var(--step-2); line-height: 1.15; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--slate); max-width: 58ch; text-wrap: pretty; }
.kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .01em; color: var(--teal-ink); }
.prose p { max-width: 64ch; text-wrap: pretty; }
.prose p + p { margin-top: 1.1em; }

/* ---------- Buttons (liquid glass) ---------- */
.btn {
  --bg: var(--teal);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85rem 1.5rem;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--white);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -8px 16px rgba(14,26,44,.18),
    0 10px 28px -12px rgba(74,150,152,.75);
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
/* specular highlight that follows the pointer */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.42), transparent 60%);
  opacity: .7; transition: opacity .25s;
}
.btn::after { /* glass sheen band */
  content: ""; position: absolute; inset: 1px 1px 52% 1px; border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
  background: linear-gradient(rgba(255,255,255,.28), rgba(255,255,255,0)); pointer-events: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -8px 16px rgba(14,26,44,.14), 0 16px 34px -12px rgba(74,150,152,.9); }
  .btn:hover::before { opacity: 1; }
}
.btn:active { transform: scale(.97); }
.btn--navy { --bg: var(--navy); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 28px -12px rgba(25,44,71,.7); }
.btn--glass {
  --bg: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--ghost { --bg: transparent; color: var(--navy); border: 1.5px solid rgba(25,44,71,.25); box-shadow: none; }
.btn--ghost::after { display: none; }
.btn--small { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

.text-link {
  font-weight: 700; color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: .25em; text-decoration-color: rgba(47,111,113,.35);
  transition: text-decoration-color .2s;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header: transparent over the photo, glass once scrolled ---------- */
.site-header {
  position: fixed; inset: 24px 0 auto; z-index: 50; pointer-events: none;
}
.site-header .bar {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter) - 24px, var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  height: 64px; padding: 0 10px 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--white);
  transition: background-color .35s var(--ease-out), border-color .35s, box-shadow .35s, backdrop-filter .35s;
  position: relative;
}
.site-header.is-scrolled .bar {
  background: rgba(14,26,44,.62);
  border-color: rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 20px 50px -28px rgba(14,26,44,.6);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--white); justify-self: start; }
.brand img { width: 38px; height: 38px; }
.brand-name { display: grid; line-height: 1; }
.brand-name b { font-family: var(--brand); font-weight: 600; font-size: 1.2rem; letter-spacing: .06em; }
.brand-name small { font-size: .6875rem; color: rgba(255,255,255,.75); font-weight: 500; margin-top: 3px; letter-spacing: .02em; }

.nav { display: contents; }
.nav-links { display: flex; align-items: center; gap: .25rem; justify-self: center; }
.nav-links a {
  padding: .5rem .95rem; border-radius: 999px;
  color: rgba(255,255,255,.85); font-weight: 500; font-size: .875rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.14); }
.header-cta { justify-self: end; }
.btn--outline {
  --bg: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.85); box-shadow: none;
}
.btn--outline::after { display: none; }
@media (hover: hover) { .btn--outline:hover { --bg: rgba(255,255,255,.12); box-shadow: none; } }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: var(--white); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; position: relative;
    transition: transform .25s var(--ease-out), background-color .2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
  .header-cta { display: none; }
  .site-header .bar { grid-template-columns: 1fr auto; }
  .nav-toggle { justify-self: end; }

  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem;
    border-radius: var(--radius-l);
    background: rgba(14,26,44,.92); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
  .nav-links a:not(.btn) { padding: .9rem 1rem; font-size: 1.0625rem; }
  .nav-links .btn { margin: .5rem 0 0; }
}
@media (min-width: 921px) { .nav-links .nav-cta-mobile { display: none; } }

/* ---------- Hero: full-bleed photo with floating glass cards ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 12px; border-radius: 32px;
  min-height: max(760px, calc(100svh - 24px));
  display: grid;
  background: var(--abyss); color: var(--white);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; }
.hero-photo::after { /* soft shade on the left and bottom keeps white text readable */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,26,44,.82) 0%, rgba(14,26,44,.55) 40%, rgba(14,26,44,.18) 72%),
    linear-gradient(0deg, rgba(14,26,44,.88) 0%, rgba(14,26,44,.35) 34%, rgba(14,26,44,0) 55%),
    linear-gradient(180deg, rgba(14,26,44,.45) 0%, rgba(14,26,44,0) 20%),
    rgba(14,26,44,.18);
}

.hero-inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 1fr auto;
  column-gap: 20px; row-gap: 24px;
  padding: calc(var(--header-h) + 40px) 0 28px;
}

/* Headline */
.hero-head { grid-column: 1 / 9; grid-row: 1; align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 1.75rem; }
.hero-quote { margin-bottom: clamp(.4rem, 1vw, 1rem); }
.hero h1 { display: grid; gap: 1.25rem; }
.hero-kicker { font-family: var(--display); font-size: clamp(1.15rem, .8rem + 1.1vw, 1.6rem); font-weight: 500; line-height: 1.25; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 12px rgba(14,26,44,.6); }
.hero-title, .proof, .hero-note { text-shadow: 0 2px 24px rgba(14,26,44,.45); }
.hero-title {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, .3rem + min(4.2vw, 7.6vh), 5.4rem); line-height: .98; letter-spacing: -.035em;
}
.hero-title .line { display: block; }
.btn--white { --bg: #fff; color: var(--navy); box-shadow: 0 14px 34px -16px rgba(14,26,44,.6); font-size: .9375rem; }
.btn--white::after { display: none; }
.btn--white::before { background: radial-gradient(120px circle at var(--mx, 30%) var(--my, 0%), rgba(74,150,152,.18), transparent 60%); }
.hero-title .btn { font-family: var(--sans); text-transform: none; letter-spacing: 0; vertical-align: middle; }

/* Glass surfaces */
.glass {
  background: linear-gradient(160deg, rgba(25,44,71,.62), rgba(14,26,44,.5));
  border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 30px 60px -36px rgba(14,26,44,.55);
}
.pill-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; }
.pill-tags li { padding: .38rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); font-size: .8125rem; font-weight: 500; color: #fff; }
.card-title { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.35; }
.card-text { font-size: .9375rem; line-height: 1.55; color: rgba(255,255,255,.9); }
.arrow-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .875rem; font-weight: 600; color: #fff; text-decoration: none;
}
.arrow-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.arrow-link:hover svg { transform: translate(2px, -2px); }

/* Top-right glass card */
.hero-card {
  grid-column: 9 / 13; grid-row: 1; align-self: start;
  position: relative; border-radius: 24px; padding: 1.4rem 1.4rem 1.5rem;
  display: grid; gap: .9rem;
}
.hero-card .pill-tags { padding-right: 92px; }
.hero-card .thumb {
  position: absolute; top: 14px; right: 14px; width: 80px; height: 80px; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
}
.hero-card .thumb img { width: 100%; height: 100%; object-fit: cover; }


/* Hero quick view of every service */
.svc-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; padding: .35rem 0 0; margin: 0; list-style: none; }
.svc-quick a { display: grid; justify-items: center; gap: .45rem; text-align: center; text-decoration: none; color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.25; border-radius: 14px; padding: .35rem .2rem; transition: background-color .2s; }
.svc-quick img { width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 8px 18px -10px rgba(0,0,0,.6); transition: transform .25s var(--ease-out); }
.svc-quick a:hover { background: rgba(255,255,255,.08); }
.svc-quick a:hover img { transform: translateY(-3px) scale(1.04); }

/* Google reviews card in the hero */
.g-reviews {
  grid-column: 1 / 5; display: grid; gap: .55rem; padding: 1.2rem 1.3rem 1.25rem; border-radius: 24px;
  background: #fff; color: var(--navy); text-decoration: none;
  box-shadow: 0 30px 60px -34px rgba(14,26,44,.7);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.g-reviews [hidden] { display: none; }
.g-reviews-fallback { font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.g-reviews:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -34px rgba(14,26,44,.75); }
.g-reviews-top { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; font-weight: 700; color: var(--slate); }
.g-reviews-top svg { width: 18px; height: 18px; }
.g-reviews-score { display: flex; align-items: center; gap: .6rem; }
.g-reviews-score b { font-family: var(--display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.g-reviews-score .stars svg { width: 18px; height: 18px; }
.g-reviews-count { font-size: .8125rem; color: var(--slate); margin-top: -.3rem; }
.g-reviews-quote { display: grid; gap: .3rem; font-size: .875rem; line-height: 1.5; color: var(--ink); padding-top: .65rem; border-top: 1px solid rgba(25,44,71,.1); transition: opacity .35s var(--ease-out), translate .35s var(--ease-out); min-height: 5.6em; }
.g-reviews-quote small { font-size: .75rem; font-weight: 700; color: var(--navy); }
.g-reviews-quote.is-out { opacity: 0; translate: 0 6px; }
.g-reviews .arrow-link { color: var(--teal-ink); text-shadow: none; }

/* Bottom row */
.hero-bottom { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: end; }
.feature-card {
  grid-column: 1 / 5; border-radius: 24px; padding: 12px 12px 1.25rem;
  background: var(--teal-ink); color: #fff; display: grid; gap: .6rem;
  box-shadow: 0 30px 60px -36px rgba(14,26,44,.6);
}
.feature-card .photo { aspect-ratio: 5 / 2; border-radius: 16px; overflow: hidden; margin-bottom: .4rem; }
.feature-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-card > :not(.photo) { padding-inline: .5rem; }
.proof { grid-column: 5 / 9; justify-self: center; text-align: center; display: grid; justify-items: center; gap: .5rem; padding-bottom: .5rem; }
.avatars { display: flex; padding: 0; list-style: none; }
.avatars li { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; margin-left: -12px; background: var(--navy); }
.avatars li:first-child { margin-left: 0; }
.avatars img { width: 100%; height: 100%; object-fit: cover; }
.proof-big { font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem); line-height: 1; text-transform: uppercase; }
.proof .card-text { max-width: 22ch; }
.hero-note { grid-column: 9 / 13; display: grid; gap: .8rem; padding-bottom: .5rem; }
.hero-note .card-text { font-size: 1rem; color: #fff; max-width: 32ch; }

/* Hotspots */
.hotspot {
  position: absolute; z-index: 2; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; cursor: pointer; translate: -50% -50%;
  box-shadow: 0 0 0 8px rgba(255,255,255,.22), 0 0 0 16px rgba(255,255,255,.1);
}
.hotspot::after { /* gentle pulse */
  content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
  animation: halo 2.8s var(--ease-out) infinite;
}
.hotspot span {
  position: absolute; left: 50%; bottom: calc(100% + 18px); translate: -50% 4px;
  white-space: nowrap; padding: .45rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: #fff; font-size: .8125rem; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out);
}
.hotspot:hover span, .hotspot:focus-visible span { opacity: 1; translate: -50% 0; }
@keyframes halo { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

/* Page-load sequence (the one orchestrated moment) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-kicker, .js .hero-title .line, .js .hero-card, .js .hero-bottom > * {
    opacity: 0; translate: 0 18px;
    animation: rise .9s var(--ease-out) forwards;
  }
  .js .hero-title .line:nth-child(1) { animation-delay: .08s; }
  .js .hero-title .line:nth-child(2) { animation-delay: .16s; }
  .js .hero-title .line:nth-child(3) { animation-delay: .24s; }
  .js .hero-card { animation-delay: .4s; }
  .js .hero-bottom > :nth-child(1) { animation-delay: .5s; }
  .js .hero-bottom > :nth-child(2) { animation-delay: .58s; }
  .js .hero-bottom > :nth-child(3) { animation-delay: .66s; }
}
@keyframes rise { to { opacity: 1; translate: 0 0; } }

@media (max-width: 1080px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; grid-template-rows: none; padding-top: calc(var(--header-h) + 56px); }
  .hero-head, .hero-card, .hero-bottom { grid-column: 1; grid-row: auto; }
  .hero-card { max-width: 460px; }
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
  .g-reviews { grid-column: 1; }
  .proof { grid-column: 2; align-self: center; }
  .hero-note { grid-column: 1 / -1; }
  .hotspot { display: none; }
  .hero-photo::after { background: linear-gradient(180deg, rgba(14,26,44,.55) 0%, rgba(14,26,44,.6) 50%, rgba(14,26,44,.85) 100%); }
}
@media (max-width: 620px) {
  .hero { margin: 8px; border-radius: 26px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .g-reviews, .proof, .hero-note { grid-column: 1; }
  .proof { justify-self: start; text-align: left; justify-items: start; }
  .hero-last .btn { margin-top: .5rem; }
}

/* ---------- Sub-page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 12px; border-radius: 32px;
  padding: calc(var(--header-h) + 96px) 0 clamp(3rem, 7vw, 5.5rem);
  background: var(--abyss); color: var(--white);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hero-img, url("../img/photos/hero-office-lobby-1280.webp")) 50% 60% / cover no-repeat;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(14,26,44,.88), rgba(14,26,44,.6) 60%, rgba(14,26,44,.35));
}
.page-hero h1 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.1rem, .9rem + 3.8vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance;
}
.page-hero .lede { color: rgba(255,255,255,.8); margin-top: 1.25rem; font-size: 1.0625rem; }
@media (max-width: 620px) { .page-hero { margin: 8px; border-radius: 26px; } }
.breadcrumbs { display: flex; gap: .5rem; margin-bottom: 1.5rem; padding: 0; list-style: none; font-size: var(--step--1); color: var(--mist); }
.breadcrumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumbs a { color: var(--mist); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--frost { background: var(--frost); }
.section--navy { background: var(--navy); color: var(--white); }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 860px; }

/* Industries strip */
.industries { padding-block: 2.25rem; border-bottom: 1px solid rgba(25,44,71,.08); }
.industries .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.industries p { font-weight: 700; color: var(--navy); font-size: .9375rem; }
.industries ul { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; padding: 0; list-style: none; color: var(--slate); font-size: .9375rem; font-weight: 600; }
.industries li { display: inline-flex; align-items: center; gap: .5rem; }
.industries li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Why Shalem */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: start; }
.why .h2 { max-width: 11ch; }
.why .prose { margin-top: 1.75rem; color: var(--slate); font-size: var(--step-1); line-height: 1.55; }
.why .btn { margin-top: 2.25rem; }
.pillars { display: grid; padding: 0; list-style: none; border-top: 1px solid rgba(25,44,71,.14); }
.pillars li { display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid rgba(25,44,71,.14); }
.pillars .icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #ffffff, #dbe8ea 70%); color: var(--navy);
  box-shadow: inset 0 -2px 6px rgba(74,150,152,.25), 0 6px 14px -8px rgba(25,44,71,.4);
}
.pillars .icon svg { width: 24px; height: 24px; }
.pillars h3 { font-size: var(--step-1); font-weight: 700; color: var(--navy); line-height: 1.3; }
.pillars p { color: var(--slate); margin-top: .35rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; } }

/* Services bento */
.services-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.svc {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-l);
  background: var(--white);
  border: 1px solid rgba(25,44,71,.08);
  text-decoration: none; color: inherit;
  transition: border-color .25s, box-shadow .3s var(--ease-out);
}
.svc:nth-child(1), .svc:nth-child(2) { grid-column: span 6; }
.svc:nth-child(n+3) { grid-column: span 3; }
.svc:nth-child(n+3) .svc-body h3 { font-size: var(--step-1); line-height: 1.2; }
.svc:nth-child(n+3) .svc-body { padding: 1.25rem 1.25rem 1.5rem; }
.svc-media { position: relative; background: linear-gradient(160deg, #f6fafb, #e3eef0); aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.svc-media img { width: 72%; max-height: 92%; object-fit: contain; transition: transform .5s var(--ease-out); }
.svc-media img.photo { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.svc-body { padding: 1.5rem 1.6rem 1.75rem; display: grid; gap: .5rem; }
.svc-body .tagline { font-size: var(--step--1); font-weight: 700; color: var(--teal-ink); }
.svc-body h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-2); line-height: 1.1; color: var(--navy); }
.svc-body p:last-child { color: var(--slate); font-size: 1rem; }
@media (hover: hover) {
  .svc:hover { border-color: rgba(74,150,152,.45); box-shadow: 0 24px 50px -30px rgba(25,44,71,.45); }
  .svc:hover .svc-media img { transform: scale(1.04); }
}
.services-more { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.services-more p { color: var(--slate); max-width: 52ch; }
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }

/* Process (a true sequence, so numbered) */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; padding: 0; list-style: none; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: linear-gradient(90deg, var(--teal), rgba(177,193,199,.25)); }
.process li { position: relative; counter-increment: step; }
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--display); font-weight: 600; font-size: 1.6rem; color: var(--white); background: var(--navy);
  box-shadow: 0 0 0 8px var(--frost), inset 0 1px 0 rgba(255,255,255,.25);
  margin-bottom: 1.5rem; position: relative;
}
.process h3 { font-size: var(--step-1); color: var(--navy); line-height: 1.3; }
.process p { color: var(--slate); margin-top: .5rem; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { left: 27px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--teal), rgba(177,193,199,.25)); }
  .process li { display: grid; grid-template-columns: 54px 1fr; column-gap: 1.25rem; padding-bottom: 2rem; }
  .process li::before { grid-row: span 2; margin: 0; }
}

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.founder-card {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-l); overflow: hidden;
  background: radial-gradient(120% 80% at 20% 0%, #22406a, var(--abyss));
  display: grid; place-items: center;
}
.founder-card img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder-card .mark { width: 46%; opacity: .95; }
.founder-card figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: 1rem 1.25rem; border-radius: var(--radius-m);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--white);
}
.founder-card figcaption b { display: block; font-size: 1.0625rem; }
.founder-card figcaption span { font-size: .875rem; color: var(--mist); }
.quote { font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.12; color: var(--white); text-wrap: balance; }
.founder .prose { margin-top: 1.75rem; color: rgba(255,255,255,.75); }
.signature { width: 220px; margin-top: 2rem; filter: brightness(0) invert(1); opacity: .92; }
.signature + p { font-size: .875rem; color: var(--teal-glow); margin-top: .5rem; font-weight: 600; }
.founder .btn { margin-top: 2rem; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder-card { aspect-ratio: 16 / 11; } }

/* Reviews (hidden until there are reviews) */
.reviews[hidden] { display: none; }
.reviews { overflow: hidden; }
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.reviews-head .h2 { max-width: 12ch; }
.rating-card {
  display: flex; align-items: center; gap: 1rem; padding: .9rem .9rem .9rem 1.1rem;
  border-radius: 999px; background: #fff; border: 1px solid rgba(25,44,71,.08);
  box-shadow: 0 20px 40px -28px rgba(25,44,71,.45);
}
.g-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--frost); }
.g-icon svg { width: 20px; height: 20px; }
.rating { display: flex; align-items: center; gap: .6rem; }
.rating .score { font-family: var(--display); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--navy); }
.stars { display: inline-flex; gap: 2px; color: #f4b400; }
.stars svg { width: 16px; height: 16px; }
.rating-card small { display: block; color: var(--slate); font-size: .8125rem; margin-top: .15rem; }
.sample-flag { margin: -1.5rem 0 2rem; display: inline-block; padding: .4rem .9rem; border-radius: 999px; background: #fff4d6; color: #7a5a00; font-size: .8125rem; font-weight: 600; }
.sample-flag[hidden] { display: none; }

/* Sliding rows of floating review cards */
.marquee { display: grid; gap: 22px; padding-block: 18px 30px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row { overflow: hidden; }
.marquee-track { display: flex; gap: 20px; width: max-content; padding: 10px 0 18px; margin: 0; list-style: none; }
.review {
  flex: none; width: min(380px, 82vw); padding: 1.5rem 1.5rem 1.35rem;
  border-radius: 24px; background: #fff; border: 1px solid rgba(25,44,71,.07);
  box-shadow: 0 1px 2px rgba(25,44,71,.04), 0 24px 48px -30px rgba(25,44,71,.38);
  display: grid; gap: .9rem; align-content: start;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.review:nth-child(even) { margin-top: 18px; } /* staggered heights: cards look like they float */
.review-top { display: flex; align-items: center; justify-content: space-between; }
.review-top svg.g { width: 18px; height: 18px; }
.review blockquote { margin: 0; color: var(--ink); font-size: .9688rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review footer { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; color: var(--slate); padding-top: .9rem; border-top: 1px solid rgba(25,44,71,.08); }
.review .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: linear-gradient(140deg, var(--teal), var(--navy)); color: #fff; font-weight: 700; font-size: .875rem; }
.review .avatar img { width: 100%; height: 100%; object-fit: cover; }
.review footer b { color: var(--navy); display: block; font-size: .9375rem; }
@media (hover: hover) {
  .review:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(25,44,71,.04), 0 34px 60px -30px rgba(25,44,71,.5); }
}
@media (prefers-reduced-motion: no-preference) {
  .marquee.is-moving .marquee-track { animation: slide var(--dur, 60s) linear infinite; }
  .marquee.is-moving .reverse .marquee-track { animation-direction: reverse; }
  .marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Without motion the rows simply scroll sideways */
.marquee:not(.is-moving) .marquee-row { overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: var(--gutter); }
.marquee:not(.is-moving) .review { scroll-snap-align: start; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--abyss); color: var(--white); text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../img/photos/office-building-blue-hour-1000.webp") 50% 50% / cover no-repeat; opacity: .55;
}
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 40%, rgba(14,26,44,.35), rgba(14,26,44,.92)); }
.cta-band .h2 { max-width: 14ch; margin-inline: auto; }
.cta-band .lede { margin: 1.25rem auto 0; color: rgba(255,255,255,.78); }
.cta-band .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.25rem; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); }
.story aside { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.story .prose { font-size: var(--step-1); line-height: 1.65; color: var(--ink); }
.story .prose p { max-width: 60ch; }
.story .prose strong { color: var(--navy); }
.commit { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(25,44,71,.12); }
.closing { font-family: var(--display); font-weight: 600; font-size: var(--step-2); line-height: 1.2; color: var(--navy); margin-top: 2rem; max-width: 30ch; }
.story .signature { filter: none; }
.story .signature + p { color: var(--teal-ink); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story aside { position: static; } }

/* ---------- Services page ---------- */
.svc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgba(25,44,71,.1); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail-media { border-radius: var(--radius-l); overflow: hidden; background: linear-gradient(160deg, #f6fafb, #dfecee); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.svc-detail-media img { width: 70%; }
.svc-detail-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.svc-detail .tagline { font-weight: 700; color: var(--teal-ink); font-size: var(--step--1); }
.svc-detail h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.05; color: var(--navy); margin-top: .75rem; }
.svc-detail p.desc { color: var(--slate); font-size: var(--step-1); margin-top: 1rem; max-width: 46ch; }
.svc-detail .btn { margin-top: 1.75rem; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; } .svc-detail:nth-child(even) .svc-detail-media { order: 0; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; color: var(--navy); }
.field .opt { font-weight: 500; color: var(--slate); }
.input {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  border: 1.5px solid rgba(25,44,71,.16); border-radius: 14px; background: var(--white);
  font-size: 1rem; /* 16px+ avoids iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 140px; resize: vertical; }
select.input { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23192c47' stroke-width='1.8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center; padding-right: 2.5rem; }
.input:hover { border-color: rgba(25,44,71,.3); }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(74,150,152,.18); }
.input[aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .875rem; font-weight: 600; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem 1rem;
  border-radius: 999px; border: 1.5px solid rgba(25,44,71,.16); background: var(--white);
  font-size: .9375rem; font-weight: 600; color: var(--navy); cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }
.form-foot small { color: var(--slate); }
.form-status { grid-column: 1 / -1; padding: 1rem 1.25rem; border-radius: 14px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e3f1ef; color: #1d5a50; }
.form-status.err { background: #fbeaea; color: #8c1d18; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-card {
  position: sticky; top: calc(var(--header-h) + 40px);
  padding: 2rem; border-radius: var(--radius-l); background: var(--navy); color: var(--white);
  background-image: radial-gradient(90% 60% at 100% 0%, rgba(74,150,152,.35), transparent 60%);
}
.contact-card h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-2); }
.contact-list { display: grid; gap: 1rem; padding: 0; margin-top: 1.5rem; list-style: none; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--white); font-weight: 600; }
.contact-list .ic { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.contact-list svg { width: 18px; height: 18px; color: var(--teal-glow); }
.contact-list a:hover { color: var(--teal-glow); }
.contact-card p { color: var(--mist); margin-top: 1.5rem; font-size: .9375rem; }
@media (max-width: 920px) { .contact { grid-template-columns: 1fr; } .contact-card { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: rgba(255,255,255,.75); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-grid h2 { font-size: .9375rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .6rem; padding: 0; list-style: none; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,.75); }
.footer-grid a:hover { color: var(--white); }
.footer-logo { width: 170px; }
.footer-grid .about-line { margin-top: 1.25rem; max-width: 34ch; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; color: rgba(255,255,255,.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.credit a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(255,255,255,.3); transition: color .2s, text-decoration-color .2s; }
.credit a:hover { color: #fff; text-decoration-color: currentColor; }

/* Mobile sticky quote bar */
.mobile-cta { display: none; }
@media (max-width: 920px) {
  .mobile-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px;
    border-radius: 999px; background: rgba(14,26,44,.82); border: 1px solid rgba(255,255,255,.14);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    transform: translateY(140%); transition: transform .35s var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .call { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: var(--white); }
  .mobile-cta .call svg { width: 20px; height: 20px; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 100px; }
}



/* ---------- SEO content blocks ---------- */
.areas-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.area-list li { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem .6rem .8rem; border-radius: 999px; background: var(--frost); border: 1px solid rgba(25,44,71,.08); font-weight: 600; font-size: .9375rem; color: var(--navy); }
.section--frost .area-list li { background: #fff; }
.area-list svg { width: 16px; height: 16px; color: var(--teal-ink); }
@media (max-width: 860px) { .areas-grid { grid-template-columns: 1fr; } }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq .h2 { position: sticky; top: calc(var(--header-h) + 40px); max-width: 12ch; }
.faq-list { border-top: 1px solid rgba(25,44,71,.14); }
.faq details { border-bottom: 1px solid rgba(25,44,71,.14); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-weight: 700; font-size: var(--step-1); color: var(--navy); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(25,44,71,.2);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23192c47' stroke-width='1.6'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: #fff; }
.faq details p { padding: 0 3.5rem 1.5rem 0; color: var(--slate); max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) { .faq details[open] p { animation: reveal .45s var(--ease-out) both; } }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq .h2 { position: static; } .faq details p { padding-right: 0; } }

.svc-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.svc-intro .h2 { font-size: var(--step-3); margin-bottom: 1.5rem; color: var(--navy); }
.svc-intro .prose { font-size: var(--step-1); color: var(--slate); }
.svc-intro figure { margin: 0; }
@media (max-width: 860px) { .svc-intro { grid-template-columns: 1fr; } }
.included { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.included li { display: flex; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; border-radius: 18px; background: #fff; border: 1px solid rgba(25,44,71,.07); font-weight: 600; color: var(--navy); }
.included svg { width: 22px; height: 22px; flex: none; color: var(--teal-ink); }
.ideal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.ideal h3 { font-size: 1rem; color: var(--navy); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.pill-row li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(25,44,71,.18); font-size: .9375rem; font-weight: 600; color: var(--navy); }
.more-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.more-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.4rem; border-radius: 18px; border: 1px solid rgba(25,44,71,.12); text-decoration: none; font-weight: 700; color: var(--navy); transition: border-color .2s, background-color .2s; }
.more-links a:hover { border-color: var(--teal); background: var(--frost); }
.more-links svg { width: 16px; height: 16px; flex: none; transition: transform .2s var(--ease-out); }
.more-links a:hover svg { transform: translate(2px, -2px); }
.svc-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.svc-detail .svc-actions .btn { margin-top: 0; }


/* ---------- Mobile polish (phones) ---------- */
@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .section { padding-block: 3.75rem; }
  .section-head { margin-bottom: 2rem; gap: .9rem; }
  .h2 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 2.4rem); max-width: none !important; }
  .lede, .why .prose, .story .prose, .svc-intro .prose { font-size: 1.0625rem; line-height: 1.6; }
  .site-header { inset: 14px 0 auto; }
  .site-header .bar { width: calc(100% - 24px); height: 58px; }
  .brand-name b { font-size: 1.05rem; }

  /* Hero: one focused screen */
  .hero { min-height: calc(100svh - 16px); }
  .hero-inner { padding: calc(var(--header-h) + 52px) 0 24px; row-gap: 22px; align-content: space-between; }
  .hero-head { gap: 1.25rem; }
  .hero h1 { gap: .9rem; }
  .hero-kicker { font-size: .875rem; }
  .hero-title { font-size: clamp(2.6rem, 1rem + 9vw, 3.4rem); }
  .hero-quote { margin: 0; }
  .hero-card { padding: 1.1rem 1.1rem 1.2rem; gap: .7rem; }
  .hero-card .card-text { display: none; }
  .svc-quick { gap: 10px 4px; }
  .svc-quick img { width: 48px; height: 48px; }
  .svc-quick a { font-size: .75rem; }
  .g-reviews { padding: 1rem 1.1rem; }
  .g-reviews-quote { display: none; }
  .hero-kicker { font-size: 1.05rem; }
  .hero-bottom { gap: 16px; }
  .hero-note, .proof { display: none; }
  .proof { grid-template-columns: auto 1fr; grid-template-areas: "av big" "av txt"; column-gap: 14px; row-gap: 2px; align-items: center; justify-items: start; text-align: left; padding: 0; }
  .avatars { grid-area: av; }
  .avatars li { width: 40px; height: 40px; }
  .proof-big { grid-area: big; font-size: 1.5rem; }
  .proof .card-text { grid-area: txt; max-width: none; font-size: .875rem; }

  /* Industries strip */
  .industries { padding-block: 1.75rem; }
  .industries ul { gap: .4rem 1.1rem; font-size: .875rem; }

  /* Pillars + process tighter */
  .pillars li { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.25rem 0; }
  .pillars .icon { width: 44px; height: 44px; }
  .why .btn { margin-top: 1.5rem; }

  /* Services grid cards */
  .svc-media { aspect-ratio: 16 / 10; }
  .svc-body, .svc:nth-child(n+3) .svc-body { padding: 1.1rem 1.2rem 1.3rem; }
  .svc-body h3, .svc:nth-child(n+3) .svc-body h3 { font-size: 1.25rem; }
  .services-more { margin-top: 1.75rem; }
  .services-more .btn { width: 100%; }

  /* Founder: compact card instead of a tall panel */
  .founder { gap: 2rem; }
  .founder-card { aspect-ratio: auto; display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: 20px; }
  .founder-card .mark { width: 56px; flex: none; }
  .founder-card figcaption { position: static; padding: 0; background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .founder-card:has(img.photo) { aspect-ratio: 4 / 5; display: grid; padding: 0; }
  .quote { font-size: 1.6rem; line-height: 1.2; }
  .signature { width: 170px; }

  /* Service area + reviews */
  .area-list { gap: 8px; }
  .area-list li { padding: .5rem .85rem .5rem .7rem; font-size: .875rem; }
  .reviews-head { gap: 1.25rem; margin-bottom: 1.5rem; }
  .rating-card { width: 100%; border-radius: 22px; flex-wrap: wrap; padding: 1rem; }
  .rating-card > div { flex: 1; }
  .rating-card .btn { width: 100%; }
  .sample-flag { margin: 0 0 1rem; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .review { width: 82vw; padding: 1.2rem; }
  .review blockquote { font-size: .9375rem; }

  /* FAQ */
  .faq summary { font-size: 1.0625rem; padding: 1.1rem 0; }
  .faq summary::after { width: 30px; height: 30px; }

  /* Service landing pages */
  .page-hero { padding: calc(var(--header-h) + 64px) 0 2.75rem; }
  .page-hero h1 { font-size: clamp(1.9rem, 1rem + 6vw, 2.6rem); }
  .page-hero .hero-actions .btn, .cta-band .actions .btn { width: 100%; }
  .included { grid-template-columns: 1fr; gap: 8px; }
  .included li { padding: .9rem 1rem; }
  .svc-detail { padding-block: 2.5rem; gap: 1.5rem; }
  .svc-detail h2 { font-size: 1.75rem; }
  .svc-detail p.desc { font-size: 1rem; }
  .svc-actions .btn { flex: 1; }

  /* Contact */
  .contact-card { padding: 1.5rem; }
  .form-foot .btn { width: 100%; }
  .page-hero::after { background: linear-gradient(180deg, rgba(14,26,44,.82), rgba(14,26,44,.7) 60%, rgba(14,26,44,.85)); }

  /* Footer: two columns for the link lists */
  .site-footer { padding-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-logo { width: 120px; }
  .footer-bottom { margin-top: 2.25rem; flex-direction: column; gap: .5rem; }
}

/* ---------- Motion ---------- */
/* Hero reacts to scroll: photo pushes in, layers drift at different depths */
.hero-photo img { transform: scale(calc(1 + var(--hp, 0) * .14)) translateY(calc(var(--hp, 0) * 6%)); transform-origin: 60% 40%; will-change: transform; }
.hero-head { transform: translateY(calc(var(--hp, 0) * -90px)); opacity: calc(1 - var(--hp, 0) * 1.1); }
.hero-card { transform: translateY(calc(var(--hp, 0) * -150px)); }
.hero-bottom { transform: translateY(calc(var(--hp, 0) * -50px)); opacity: calc(1 - var(--hp, 0) * .9); }
.hotspot { opacity: calc(1 - var(--hp, 0) * 2.5); }

/* Reveal on scroll: once, short distance, staggered */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
  .js [data-reveal].is-in { animation: reveal .85s var(--ease-out) calc(var(--i, 0) * 80ms) both; }
  .js [data-reveal='img'].is-in img { animation: settle 1.4s var(--ease-out) calc(var(--i, 0) * 80ms) backwards; }
  .js .process[data-reveal]::before { transform: scaleX(0); transform-origin: left center; transition: transform 1.4s var(--ease-in-out) .2s; }
  .js .process.is-in::before { transform: scaleX(1); }
  .js .process[data-reveal] { opacity: 1; }
  .js .process[data-reveal].is-in { animation: none; }
  .js .process li { opacity: 0; }
  .js .process.is-in li { animation: reveal .8s var(--ease-out) both; }
  .js .process.is-in li:nth-child(2) { animation-delay: .25s; }
  .js .process.is-in li:nth-child(3) { animation-delay: .5s; }
  .js .process.is-in li:nth-child(4) { animation-delay: .75s; }
  @media (max-width: 860px) {
    .js .process[data-reveal]::before { transform: scaleY(0); transform-origin: center top; }
    .js .process.is-in::before { transform: scaleY(1); }
  }
}
@keyframes reveal { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }

/* Signature writes itself in */
@media (prefers-reduced-motion: no-preference) {
  .js .signature[data-reveal] { opacity: 1; clip-path: inset(0 100% 0 0); }
  .js .signature[data-reveal].is-in { animation: write 1.6s var(--ease-in-out) .2s forwards; }
}
@keyframes write { to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
