/* =====================================================================
   Loopdash — Log skin
   Loaded AFTER redesign.css. Brings the marketing site in line with
   Loopdash Log (log.loopdash.com): DM Sans, the warm gray scale, a
   single ink colour, white bordered cards, chips, and a compact app bar.
   Tokens first, then the shared components, then page sections.
   Delete this file's <link> in head.njk to return to the editorial skin.
   ===================================================================== */

:root {
  /* Same scale as Log's Tailwind theme (app/assets/tailwind/application.css). */
  --gray-50: #f7f5f0;
  --gray-100: #f0eee5;
  --gray-200: #e7e5da;
  --gray-300: #d4d1c5;
  --gray-400: #bab6aa;
  --gray-500: #8f8b81;
  --gray-600: #726d64;
  --gray-700: #635f56;
  --gray-800: #3b3830;
  --gray-900: #221f1a;

  --base-font: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* The page sits on Log's airy gray-50; cream-dark becomes the next step down. */
  --color-cream: var(--gray-50);
  --color-cream-dark: var(--gray-200);

  /* Log is one ink. Emphasis is a quieter gray, not a second colour. */
  --accent: var(--gray-600);
  --ink-60: var(--gray-600);
  --ink-30: var(--gray-400);
  --ink-12: var(--gray-200);

  /* Heading tracking, tuned for Manrope. */
  --track-display: -0.022em;
  --track-heading: -0.012em;

  --radius-card: 12px;
  --radius-chip: 6px;
  --radius-pill: 100px;
  --bar-height: 3.5rem;
}

/* ---------- Base ---------- */
body {
  letter-spacing: 0;
  font-optical-sizing: auto;
}
::-moz-selection { background: var(--gray-900); color: var(--gray-50); }
::selection { background: var(--gray-900); color: var(--gray-50); }

h1, h2, h3, h4 { font-weight: 500; }

/* Dark bands become light surfaces. Their rules read the paper and ink tokens,
   so swapping the tokens here flips every colour inside them at once. */
.site-footer,
.cta,
.home-proof {
  --color-charcoal: var(--gray-100);
  --color-cream: #1b1811;
  --paper-70: var(--gray-700);
  --paper-55: var(--gray-600);
  --paper-14: var(--gray-300);
  --accent: var(--gray-600);
  border-top: 1px solid var(--gray-200);
}

/* ---------- Display type — product scale, not poster scale ---------- */
.headline {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: var(--track-display);
}
.headline--inspiration { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.headline em,
.accent-italic { color: var(--gray-500); }

.text-8, .text-9, .text-10, .text-11, .text-12, .text-13 { letter-spacing: var(--track-heading); }
.text-11, .text-12, .text-13 { line-height: 1.05; }

/* ---------- Chips (were uppercase eyebrows) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  /* A chip hugs its label even as a grid or flex child. */
  justify-self: start;
  align-self: flex-start;
  width: -moz-fit-content;
  width: fit-content;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-chip);
  background: var(--gray-200);
  color: var(--gray-700);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
.section-head .eyebrow { color: var(--gray-700); }
.home-reviews > .eyebrow { display: inline-flex; }
.proof-press .eyebrow { color: var(--gray-700); }

/* ---------- Buttons ---------- */
.button,
.button-primary {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  letter-spacing: 0;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}
.button:hover, .button-primary:hover {
    background: var(--gray-800);
    border-color: var(--gray-800);
    color: var(--gray-50);
  }
.button:hover svg, .button-primary:hover svg { fill: var(--gray-50); }
.button-secondary,
.button-white {
  background: #fff;
  border: 1px solid var(--gray-300);
  color: var(--gray-900);
}
.button-secondary:hover, .button-white:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-900);
  }
.button-lg { padding: 0.8rem 1.4rem; font-size: 0.9375rem; }
.button-sm { padding: 0.45rem 0.9rem; font-size: 0.8125rem; }
.button-xs { padding: 0.3rem 0.7rem; font-size: 0.75rem; }

.card.card-dark .button-white:hover {
  background: var(--gray-200);
  border-color: var(--gray-200);
  color: #000;
}
.card.card-dark .button-white:hover svg { fill: #000; }

/* ---------- App bar ---------- */
.navbar-bkg {
  background: var(--gray-50);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid var(--gray-300);
}
.navbar {
  min-height: var(--bar-height);
  box-sizing: border-box;
  padding: 0;
}
.navbar-logo { padding-left: clamp(1.25rem, 5vw, 4rem); }
.nav-flex {
  gap: 0.25rem;
  padding-right: clamp(1.25rem, 5vw, 4rem);
}
.nav-flex a:not(.button) {
    padding: 0.375rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    letter-spacing: 0;
    color: var(--gray-800);
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
  }
.nav-flex a:not(.button):not(.no-hover):hover {
      background: var(--gray-200);
      color: var(--gray-900);
    }
.nav-flex .button { margin-left: 0.5rem; margin-right: 0; }
@media only screen and (min-width: 760px) {
  .logo { max-width: 112px; }
}
.menu-toggle { margin-right: clamp(0.5rem, 3vw, 1.5rem); }

/* Mobile menu: a plain sheet of list rows. */
.nav-container {
  background: var(--gray-50);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-container .nav { padding-top: 5rem; }
.nav a.menu-item {
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: var(--track-heading);
  font-weight: 500;
}
.nav a.menu-item:hover { color: var(--gray-600); }
.nav-container .nav-cta { font-size: 1rem; padding: 0.8rem 1.4rem; margin-top: 1.5rem; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  box-shadow: none;
}
.project { border-radius: var(--radius-card); }

/* ---------- Form fields — Log's soft field ---------- */
.form-group .form-input,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="password"],
form textarea,
form select {
  color: #121212;
  background-color: #fdfdfd;
  border: 2px solid rgb(18 18 18 / 0.12);
  border-radius: 0.875rem;
  box-shadow: 0 0 0 4px rgb(18 18 18 / 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-group .form-input:focus,
form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form input[type="url"]:focus,
form input[type="password"]:focus,
form textarea:focus,
form select:focus {
  outline: none;
  border-color: rgb(18 18 18 / 0.28);
  box-shadow: 0 0 0 4px rgb(18 18 18 / 0.08);
}

/* ---------- Section heads ---------- */
.section-head { border-bottom-color: var(--gray-200); padding-top: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: var(--track-heading); }
.section-head a,
.home-hero-v2__link {
  border-bottom: 0;
  padding: 0.375rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  color: var(--gray-800);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.section-head a:hover,
.home-hero-v2__link:hover { background: var(--gray-200); color: var(--gray-900); }

/* ---------- Home hero ---------- */
.home-hero-v2 {
  min-height: 0;
  justify-content: flex-start;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: calc(var(--bar-height) + clamp(3.5rem, 9vw, 7rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.home-hero-v2 h1 {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: var(--track-display);
  max-width: 18ch;
}
.home-hero-v2 h1 em,
.hero-words .hw--accent { color: var(--gray-500); }
.home-hero-v2__lead { margin: 0; }
.home-hero-v2__lead p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 48ch;
}
.home-hero-v2__bottom { padding-top: 0; align-items: center; }
.home-hero-v2__cta { gap: 0.5rem; }
.home-hero-v2__tags {
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* ---------- Home: featured work as a stack of cards ---------- */
.home-featured {
  display: grid;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}
.feature-row,
.feature-row__body { min-height: min(68vh, 620px); }
.feature-row {
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-sizing: border-box;
}
.feature-row__body { padding: clamp(1.5rem, 3vw, 2.5rem); box-sizing: border-box; }
.feature-row__num {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-chip);
  background: rgb(255 255 255 / 0.16);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
  text-transform: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.feature-row__name {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  letter-spacing: var(--track-display);
  line-height: 1;
  margin: 0.6rem 0 0.3rem;
  color: #fff;
}
.feature-row__tagline {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 36ch;
}
.feature-row__body::after { margin-top: 0.6rem; font-size: 0.875rem; letter-spacing: 0; }
@media (max-width: 860px) {
  .feature-row,
  .feature-row__body { min-height: 58vh; }
  .feature-row__body { padding: 1.5rem; }
}

/* ---------- Home: statement ---------- */
.home-statement {
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.home-statement h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--track-heading);
}
.home-statement .stmt-muted { color: var(--gray-400); }
.home-statement .tool-rotator { color: var(--gray-500); }
.home-statement .tool-rotator::after {
  background: var(--gray-900);
  color: var(--gray-50);
  font-size: 0.875rem;
  letter-spacing: 0;
  box-shadow: none;
}

/* ---------- List rows (capabilities, work index) ---------- */
.home-cap-row,
.work-row {
  border-color: var(--gray-200);
  padding: 1rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: var(--radius-card);
  transition: background-color 0.2s ease-out;
}
.home-cap-row { align-items: center; border-top-color: transparent; }
.home-cap-row + .home-cap-row { box-shadow: 0 -1px 0 var(--gray-200); }
.home-cap-row:last-child { border-bottom-color: transparent; }
.home-cap-row .cap-name {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: var(--track-heading);
  line-height: 1.3;
}
.home-cap-row .cap-arr { width: 1rem; color: var(--gray-500); }
.home-cap-row:hover {
  color: var(--gray-900);
  background: var(--gray-200);
  padding-left: 0.75rem;
  box-shadow: none;
}
.home-cap-row:hover + .home-cap-row { box-shadow: none; }
.home-cap-row:hover .cap-name { transform: none; }

.work-index__head { border-bottom-color: var(--gray-300); }
.work-row { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--gray-200); }
.work-row .name { font-size: clamp(1.1rem, 1.9vw, 1.5rem); letter-spacing: var(--track-heading); line-height: 1.3; }
.work-row .num,
.work-row .meta { font-size: 0.8125rem; }
.work-row:hover { padding-left: 0.75rem; background: var(--gray-200); box-shadow: none; }
.work-row:hover .name { color: var(--gray-900); transform: none; }
.work-row .thumb { border-radius: var(--radius-card); box-shadow: 0 0 0 1px var(--gray-300); }

/* ---------- Home: proof as a grid of stat cards ---------- */
.home-proof { padding: clamp(3rem, 6vw, 5rem) 0; }
.proof-stats { gap: clamp(0.75rem, 1.2vw, 1rem); border-bottom: 0; padding-bottom: 0; }
.proof-stats .stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.proof-stats .stat .n,
.proof-stats .stat--wide .n {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: var(--track-display);
  line-height: 1.05;
}
.proof-stats .stat .l { margin-top: 0.6rem; max-width: 30ch; font-size: 0.875rem; line-height: 1.5; }
@media (max-width: 760px) { .proof-stats { gap: 0.75rem; } }
.press-marquee .track span { font-size: 1rem; }
.press-marquee .track span::after { color: var(--gray-400); }

/* ---------- Home: testimonials ---------- */
.home-reviews { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-reviews > .eyebrow { margin-bottom: 1.5rem; }
.reviews-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
/* Organisations are a single row of pills that scrolls sideways when it runs out of room. */
.reviews-list {
  position: relative;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* Bleed to the screen edges so pills slide under the gutter instead of clipping at it. */
  margin: 0 calc(-1 * clamp(1.25rem, 5vw, 4rem));
  padding: 0.25rem clamp(1.25rem, 5vw, 4rem);
  scroll-padding-inline: clamp(1.25rem, 5vw, 4rem);
}
.reviews-list::-webkit-scrollbar { display: none; }
.review-org {
  flex: 0 0 auto;
  scroll-snap-align: start;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1.3;
  color: var(--gray-800);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
}
.review-org:hover { background: var(--gray-100); border-color: var(--gray-400); color: var(--gray-900); }
.review-org.is-active { background: var(--gray-900); border-color: var(--gray-900); color: var(--gray-50); }
.reviews-display {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.review-quote .q {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
}
.review-quote .cite { margin-top: 1.25rem; font-size: 0.875rem; }

/* ---------- Page heroes ---------- */
.page-hero { padding-top: calc(var(--bar-height) + clamp(3rem, 7vw, 5.5rem)); }
.page-hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: var(--track-display);
}
.page-hero p {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 1.1rem;
  max-width: 52ch;
}
.page-hero--legal h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); }

.contact-hub { padding-top: calc(var(--bar-height) + clamp(3rem, 7vw, 5.5rem)); }
.contact-hub__head .headline {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.05;
}

.scroll-cue { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; }
.scroll-cue .dot { background: var(--gray-500); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--gray-300); }
.site-footer .footer-top {
  align-items: center;
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.footer-statement p {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: var(--track-heading);
  line-height: 1.2;
}
.footer-statement em { color: var(--gray-500); font-weight: 500; }
.footer-cta__btn { color: var(--gray-50); }
.footer-cta__btn:hover { background: var(--gray-800); color: var(--gray-50); }
.footer-cta__email { font-size: 0.875rem; font-weight: 400; }
.footer-cta__email:hover { color: var(--gray-900); }
.footer-menu {
  gap: 0.25rem;
  margin-left: -0.75rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.footer-menu a {
  padding: 0.375rem 0.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gray-800);
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.footer-menu a:hover { background: var(--gray-200); color: var(--gray-900); }
.site-footer .legal { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer .legal .legal-links a:hover { color: var(--gray-900); }

@media (prefers-reduced-motion: reduce) {
  .button, .button-primary, .nav-flex a:not(.button), .home-cap-row, .work-row,
  .review-org, .footer-menu a { transition: none; }
}

/* ---------- Services ---------- */
.page-hero h1.page-hero__statement {
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  letter-spacing: var(--track-display);
  line-height: 1.15;
}
.svc-flat__label { display: inline-flex; margin-bottom: 0.75rem; }
.svc-item,
.svc-flat .svc-item:first-of-type {
  border-top-color: transparent;
  padding: 1rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: var(--radius-card);
  box-shadow: 0 -1px 0 var(--gray-200);
  transition: background-color 0.2s ease-out;
}
.svc-item:hover { padding-left: 0.75rem; background: var(--gray-200); box-shadow: none; }
.svc-item:hover + .svc-item { box-shadow: none; }
.svc-item h3,
.svc-flat .svc-item h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: var(--track-heading);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.svc-item:hover h3 { color: var(--gray-900); }
.svc-item p { font-size: 0.9375rem; line-height: 1.5; }
.svc-item__arrow { width: 1rem; color: var(--gray-500); }
.svc-item:hover .svc-item__arrow { color: var(--gray-900); }

.svc-sub__hero { padding-top: calc(var(--bar-height) + clamp(3rem, 7vw, 5.5rem)); }
.svc-sub__hero h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: var(--track-display);
  margin-bottom: 1.1rem;
}
.svc-sub__hero p { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.5; max-width: 52ch; }
.svc-block { border-top-color: var(--gray-200); }
.svc-block__head h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.25rem);
  letter-spacing: var(--track-heading);
  line-height: 1.15;
}
.svc-block__head p { font-size: 1rem; line-height: 1.5; }
.svc-feature-grid { gap: clamp(0.75rem, 1.2vw, 1rem); }
.svc-feature {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.svc-feature h3 { font-size: 1rem; letter-spacing: -0.01em; }
.svc-feature p { font-size: 0.875rem; }
.svc-related-grid { gap: clamp(0.75rem, 1.2vw, 1rem); }
.svc-related-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  transition: border-color 0.2s ease-out;
}
.svc-related-card:hover { border-color: var(--gray-400); }
.svc-related-card h3 { font-size: 1.05rem; letter-spacing: -0.01em; }
.svc-related-card:hover h3 { color: var(--gray-900); }
.svc-related-card p { font-size: 0.875rem; }

/* ---------- About ---------- */
.about-hero-headline {
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: var(--track-display);
  max-width: 22ch;
}
.about-hero-media { padding: 0 clamp(1.25rem, 5vw, 4rem); box-sizing: border-box; }
.about-hero-media__img { border-radius: 16px; border: 1px solid var(--gray-200); box-sizing: border-box; }
.about-stats__grid { gap: clamp(0.75rem, 1.2vw, 1rem); }
.about-stat {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-card);
  padding: clamp(1.1rem, 2vw, 1.5rem);
}
.about-stat__n {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.about-stat p { font-size: 0.875rem; line-height: 1.5; max-width: 30ch; }
.about-purpose__grid { border-top-color: var(--gray-200); }
.about-link-row {
  border-top-color: transparent;
  padding: 1rem 0.75rem;
  margin: 0 -0.75rem;
  border-radius: var(--radius-card);
  box-shadow: 0 -1px 0 var(--gray-200);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  letter-spacing: var(--track-heading);
  transition: background-color 0.2s ease-out;
}
.about-link-row:last-child { border-bottom-color: transparent; }
.about-link-row:hover { color: var(--gray-900); padding-left: 0.75rem; background: var(--gray-200); box-shadow: none; }
.about-link-row:hover + .about-link-row { box-shadow: none; }
.about-link-row .arr { width: 1rem; color: var(--gray-500); }

/* ---------- Dark-top pages (Services) read as light, like every Log screen ---------- */
body.dark-top .page-hero { background: transparent; }
body.dark-top .page-hero h1 { color: var(--gray-900); }
body.dark-top .page-hero p { color: var(--gray-600); }
body.dark-top.dark-top--active .navbar-bkg { background: var(--gray-50); border-bottom-color: var(--gray-300); }
body.dark-top.dark-top--active .nav-flex a:not(.button) { color: var(--gray-800); }
body.dark-top.dark-top--active .logo-path { fill: #262218; }
body.dark-top.dark-top--active .menu-toggle .bar { background: var(--gray-900); }
body.dark-top.dark-top--active .nav-flex .button-primary { background: var(--primary-color); border-color: var(--primary-color); color: var(--gray-50); }

/* ---------- Home, phones: project cards page like full screens ----------
   Native scroll snap rather than a scroll-jacking library, so the finger
   stays in control and the browser does the easing. "proximity" only catches
   a scroll that ends near a card, which leaves the hero and the sections
   after the cards free to scroll normally. */
@media (max-width: 860px) {
  html:has(.home-featured) { scroll-snap-type: y proximity; }
  /* base.css makes <main> a scroll container (overflow: hidden), which would
     swallow the snap points. Clip sideways only so they reach the page. */
  main:has(.home-featured) { overflow-x: clip; overflow-y: visible; }

  .home-featured { --card-gap: 0.75rem; gap: var(--card-gap); }
  .home-featured .feature-row,
  .home-featured .feature-row__body {
    /* One card fills the screen under the bar, with the gap showing as a sliver
       of the next card's edge. dvh would resize as the browser bar slides. */
    min-height: 0;
    height: calc(100svh - var(--bar-height) - var(--card-gap) * 2);
  }
  .home-featured .feature-row {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: calc(var(--bar-height) + var(--card-gap));
  }
}

/* ---------- Proposals: main action sits beside Share at the top ---------- */
.proposal-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ---------- Case studies: onward links ---------- */
.cs-onward { padding-top: clamp(2rem, 5vw, 4rem); }
.cs-onward__label { color: var(--gray-500); margin-right: 0.5rem; }

/* ---------- Home: project cards say they open ----------
   The "View case study" cue only showed on hover, and the cards drew one
   click in a month. It is always visible now, as a pill. */
.feature-row__body::after {
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--gray-900);
  font-size: 0.8125rem;
  font-weight: 500;
  opacity: 1;
  transform: none;
  transition: background-color 0.2s ease-out;
}
.feature-row:hover .feature-row__body::after,
.feature-row:focus-visible .feature-row__body::after { background: var(--gray-200); }

/* ---------- About: team rows are not links ----------
   A hover highlight made each person look clickable; a quarter of all clicks
   on the page were dead clicks on names. */
.team-list__item:hover .team-list__row { background-color: transparent; }
.team-list__row { cursor: default; }

/* ---------- Blog posts, phones: the CTA card sits inside the article ----------
   A script moves it to after the first section (see single-blog.njk). These
   keep the article's paragraph and link styles from leaking into the card. */
.prose-content > .post-aside__cta { margin: 2.5rem 0; }
.prose-content > .post-aside__cta .post-aside__cta-title { margin: 0 0 0.4rem; font-size: 1.05rem; line-height: 1.3; }
.prose-content > .post-aside__cta .post-aside__cta-copy { margin: 0 0 1.1rem; font-size: 0.92rem; line-height: 1.45; }
.prose-content > .post-aside__cta a.button {
  width: auto;
  text-decoration: none;
  border-bottom: 0;
  background-image: none;
  color: var(--gray-50);
}

/* ---------- Home: section order after the Clarity pass ----------
   Statement now follows the hero directly, so it reads as the hero's second
   beat rather than a new section. Adjacent-sibling selectors keep these ahead
   of the later skin layers. */
.home-hero-v2 + .home-statement { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-featured + .home-all-work {
  display: flex;
  justify-content: center;
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
/* The one large action under the work: a black pill, a step up from .button-lg. */
.home-all-work .home-all-work__btn {
  padding: 1rem 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--gray-900);
  border-color: var(--gray-900);
  color: var(--gray-50);
  font-size: 1.0625rem;
}
.home-all-work .home-all-work__btn:hover { background: var(--gray-800); border-color: var(--gray-800); }
.home-all-work + .home-caps { padding-top: 0; }

/* ---------- FAQ ----------
   One centred column of separate question cards. The later skin gives every
   .card a soft fill, which had turned the old flush, divider-separated list
   into a single slab with text touching its edges. Selectors carry .card so
   they outrank that rule. */
.faq-group {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  max-width: 46rem;
  margin-inline: auto;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0;
  border-top: 0;
}
.faq-group__label { position: static; color: var(--gray-700); }
.faq-accordion { display: grid; gap: 0.5rem; }
.faq-accordion .card.card-question,
.faq-accordion .card.card-question.opened {
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: var(--gray-100);
  box-shadow: none;
  transition: background-color 0.2s ease-out;
}
.faq-accordion .card.card-question:hover { background: var(--gray-200); }
.faq-accordion .card.card-question.opened,
.faq-accordion .card.card-question.opened:hover { background: var(--gray-100); }
.faq-accordion .card.card-question .card-header,
.faq-accordion .card.card-question.opened .card-header {
  padding: 1.1rem 3.25rem 1.1rem 1.4rem;
  border-bottom: 0;
}
.faq-accordion .card.card-question .card-header h3 {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  letter-spacing: var(--track-heading);
  line-height: 1.35;
}
.faq-accordion .card.card-question:hover .card-header h3 { color: var(--gray-900); }
.faq-accordion .card.card-question .card-header::after {
  right: 1.5rem;
  top: 50%;
  margin-top: -7px;
  width: 8px;
  height: 8px;
  border-width: 1.5px;
  color: var(--gray-500);
}
.faq-accordion .card.card-question.opened .card-header::after { margin-top: -2px; color: var(--gray-900); }
.faq-accordion .card.card-question .card-body {
  max-width: none;
  padding: 0 1.4rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.faq-accordion .card.card-question.opened .card-body {
  /* Room for the longest answers; the base cap of 600px clipped them. */
  max-height: 1400px;
  padding: 0 1.4rem 1.25rem;
}
.faq-accordion .card.card-question .card-body > :last-child { margin-bottom: 0; }
.faq-accordion .card.card-question .card-body ul { margin: 0 0 1rem; padding-left: 1.25rem; }
@media (max-width: 600px) {
  .faq-accordion .card.card-question .card-header,
  .faq-accordion .card.card-question.opened .card-header { padding: 1rem 2.75rem 1rem 1.1rem; }
  .faq-accordion .card.card-question .card-header::after { right: 1.15rem; }
  .faq-accordion .card.card-question .card-body { padding-inline: 1.1rem; }
  .faq-accordion .card.card-question.opened .card-body { padding: 0 1.1rem 1.1rem; }
}

/* ---------- Blog post: full-width solid hero band ----------
   The later skin made this hero transparent. The band is back as one flat
   colour, edge to edge, running up behind the fixed nav bar. */
.single-blog-layout .post-hero {
  background: var(--gray-200);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.single-blog-layout .post-hero__media { background: var(--gray-100); }
.single-blog-layout .post-hero + .post-main { padding-top: clamp(2.5rem, 5vw, 4.5rem); }

/* FAQ hero: title, one line of intro, then pills that jump to each group. */
.faq-hero { padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 46rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
}
.faq-jump__link {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  color: var(--gray-800);
  font-size: 0.875rem;
  line-height: 1.3;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.faq-jump__link:hover { background: var(--gray-900); color: var(--gray-50); }
/* Group names are headings now, not chips. Anchors land clear of the fixed bar. */
.faq-group { scroll-margin-top: calc(var(--bar-height) + 1rem); gap: 0.75rem; }
.faq-group__title {
  margin: 0;
  padding-left: 0.25rem;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: var(--track-heading);
  line-height: 1.3;
  color: var(--gray-900);
}
