/* =====================================================================
   Loopdash — Grok skin
   Loaded LAST, after log-skin.css and footer-cta.css. Pushes the Log skin
   toward the Grok look: almost no lines, surfaces separated by space and
   a soft fill, pills for every control, bigger softer corners, more air.
   Same typeface (DM Sans) and the same warm gray scale as the Log skin.
   Delete this file's <link> in head.njk to return to the Log skin.
   ===================================================================== */

:root {
  /* Larger surfaces get softer corners; chips become pills. */
  --radius-card: 24px;
  --radius-panel: 28px;
  --radius-row: 16px;
  --radius-chip: 100px;

  /* One soft fill does the work the borders used to do. */
  --surface: var(--gray-100);
  --surface-hover: var(--gray-200);
  /* Muted text on the soft fill. gray-600 only reaches 4.4:1 there. */
  --surface-muted: var(--gray-700);

  --space-section: clamp(4rem, 9vw, 7.5rem);
  --space-grid: clamp(0.875rem, 1.6vw, 1.5rem);
  --space-card: clamp(1.5rem, 2.4vw, 2rem);
}

/* ---------- Focus: the ring carries what the borders used to ---------- */
a:focus-visible,
button:focus-visible,
.button:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
  outline: 2px solid var(--gray-900);
  outline-offset: 3px;
}
.card-dark a:focus-visible,
.card-dark button:focus-visible { outline-color: var(--gray-50); }

/* ---------- Bands: no rules between sections, no tinted strips ---------- */
.site-footer,
.cta,
.home-proof { border-top: 0; }
.home-proof { background: transparent; }

/* ---------- Chips ---------- */
.eyebrow {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}
.feature-row__num {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
}

/* ---------- Buttons: pills, filled, never outlined ---------- */
.button,
.button-primary,
button.button,
input[type="submit"].button {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.3rem;
}
.button-lg { padding: 0.9rem 1.6rem; }
.button-sm { padding: 0.5rem 1rem; }
.button-xs { padding: 0.35rem 0.8rem; }
.button-secondary,
.button-white {
  background: var(--gray-200);
  border-color: transparent;
  color: var(--gray-900);
}
.button-secondary:hover,
.button-white:hover {
  background: var(--gray-300);
  border-color: transparent;
  color: var(--gray-900);
}
/* On the ink card the quiet button is the light one. */
.card.card-dark .button-white {
  background: var(--gray-50);
  border-color: transparent;
}

/* ---------- App bar: no line under it ---------- */
.navbar-bkg,
body.dark-top.dark-top--active .navbar-bkg { border-bottom: 0; }

/* ---------- Cards: a soft fill, no outline ---------- */
.card {
  border: 0;
  border-radius: var(--radius-card);
}
.card:not(.card-dark) { background: var(--surface); }
.card .card-header { border-bottom: 0; }
.project { border-radius: var(--radius-card); }

.proof-stats .stat,
.about-stat,
.svc-feature,
.svc-related-card,
.reviews-display {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-card);
  padding: var(--space-card);
}
.proof-stats .stat .l,
.about-stat p,
.svc-feature p,
.svc-related-card p,
.review-quote .cite { color: var(--surface-muted); }
.svc-related-card { transition: background-color 0.2s ease-out; }
.svc-related-card:hover { background: var(--surface-hover); }

.proof-stats,
.about-stats__grid,
.svc-feature-grid,
.svc-related-grid { gap: var(--space-grid); }

/* ---------- Form fields: white pills on the gray page ---------- */
.form-group .form-input,
.contact-form .form-input,
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="url"],
form input[type="password"],
form select {
  background-color: #fff;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-pill);
  box-shadow: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
/* A full pill would crop multi-line text, so the textarea keeps a large corner. */
form textarea,
.form-group textarea.form-input,
.contact-form textarea.form-input {
  background-color: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  box-shadow: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.form-group .form-input:focus,
.contact-form .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: var(--gray-900);
  box-shadow: 0 0 0 3px rgb(34 31 26 / 0.14);
}
.contact-form .form-input::-moz-placeholder { color: var(--gray-600); }
.contact-form .form-input::placeholder { color: var(--gray-600); }
/* Choice tiles: soft fill at rest, an ink ring when picked. */
.form-selector {
  background: var(--surface);
  border-color: transparent;
  border-radius: var(--radius-row);
  box-shadow: none;
}
.form-selector:hover {
  background: var(--surface-hover);
  border-color: transparent;
  box-shadow: none;
}
.form-selector-input:checked + .form-selector {
  background: #fff;
  border-color: var(--gray-900);
  box-shadow: none;
}
.form-selector .form-selector-title { color: var(--gray-800); }
.form-selector-input:focus-visible + .form-selector {
  outline: 2px solid var(--gray-900);
  outline-offset: 3px;
}

/* ---------- Section heads: space instead of a rule ---------- */
.section-head {
  border-bottom: 0;
  padding-top: var(--space-section);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Home hero: centred, with room around it ---------- */
.home-hero-v2 {
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: calc(var(--bar-height) + clamp(3rem, 11vw, 9rem));
  padding-bottom: clamp(3.5rem, 9vw, 7.5rem);
}
.home-hero-v2__lead p { max-width: 44ch; }
.home-hero-v2__cta { flex-wrap: wrap; gap: 0.75rem; }
/* Only the homepage centres. /projects/ reuses this hero above a left-aligned list. */
main:has(.home-featured) .home-hero-v2 {
  align-items: center;
  text-align: center;
}
main:has(.home-featured) .home-hero-v2 h1,
main:has(.home-featured) .home-hero-v2__lead p { margin-left: auto; margin-right: auto; }
main:has(.home-featured) .home-hero-v2__bottom {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}
main:has(.home-featured) .home-hero-v2__cta { justify-content: center; }

/* ---------- Home: featured work ---------- */
.feature-row {
  border: 0;
  border-radius: var(--radius-panel);
}
@media (min-width: 861px) {
  /* Phones keep the Log skin's snap gap, so this only opens up wider screens. */
  .home-featured { gap: clamp(1rem, 2vw, 1.75rem); }
  .feature-row__body { padding: clamp(2rem, 3.5vw, 3rem); }
}
@media (max-width: 860px) {
  .feature-row { border-radius: var(--radius-card); }
}

/* ---------- Home: statement, proof, testimonials ---------- */
.home-statement {
  padding-top: var(--space-section);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.home-caps { padding-bottom: clamp(3rem, 7vw, 6rem); }
.home-proof { padding: var(--space-section) 0; }
.home-reviews {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}
.home-reviews > .eyebrow { margin-bottom: 2rem; }
.reviews-grid { gap: 1.5rem; }
.review-org {
  border-color: transparent;
  background: var(--surface);
  padding: 0.55rem 1.1rem;
}
.review-org:hover { background: var(--surface-hover); border-color: transparent; }
.review-org.is-active { background: var(--gray-900); border-color: transparent; color: var(--gray-50); }
.reviews-display { padding: clamp(1.75rem, 3.5vw, 3rem); }

/* ---------- List rows: no separators, a fill on hover ---------- */
.home-cap-row,
.work-row,
.svc-item,
.svc-flat .svc-item:first-of-type,
.about-link-row {
  border-color: transparent;
  box-shadow: none;
  border-radius: var(--radius-row);
  padding: 1.1rem 1rem;
  margin: 0 -1rem;
}
.home-cap-row + .home-cap-row,
.svc-item:hover + .svc-item,
.about-link-row:hover + .about-link-row { box-shadow: none; }
.home-cap-row:hover,
.work-row:hover,
.svc-item:hover,
.about-link-row:hover {
  padding-left: 1rem;
  background: var(--surface-hover);
  box-shadow: none;
}
.work-index__head { border-bottom: 0; }
.work-row .thumb { border-radius: var(--radius-row); box-shadow: none; }

/* ---------- Page heroes ---------- */
.page-hero,
.svc-sub__hero,
.contact-hub {
  padding-top: calc(var(--bar-height) + clamp(3rem, 9vw, 7.5rem));
}
.page-hero { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.page-hero p,
.svc-sub__hero p { max-width: 48ch; margin-top: 1.5rem; }
.svc-sub__hero { padding-bottom: clamp(3rem, 6vw, 5rem); }
.svc-sub__hero .home-hero-v2__cta { margin-top: 2rem; }

/* ---------- Services ---------- */
.svc-flat { padding-top: clamp(2.5rem, 5vw, 4rem); }
.svc-block {
  border-top: 0;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.svc-block__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.svc-block__head h2 { margin-bottom: 1.25rem; }
/* Questions sit on their own soft tiles instead of between rules. */
.faq-clean { border-top: 0; display: grid; gap: var(--space-grid); }
.faq-clean__item {
  border-bottom: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-card);
}
.faq-clean__item p { color: var(--surface-muted); }

/* ---------- About ---------- */
.about-hero-media__img { border: 0; border-radius: var(--radius-panel); }
.about-purpose__grid { border-top: 0; }

/* ---------- Contact ---------- */
.contact-hub__head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact-option,
.contact-option:last-child {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  margin-bottom: var(--space-grid);
  transition: background-color 0.2s ease-out;
}
.contact-option:last-child { margin-bottom: 0; }
.contact-option:hover { padding-left: var(--space-card); background: var(--surface-hover); }
.contact-option:hover h3 { color: var(--gray-900); }
.contact-option p { color: var(--surface-muted); }
.contact-option:hover .contact-option__link { color: var(--gray-900); border-color: var(--gray-900); }

/* ---------- Blog ---------- */
.blog-grid { gap: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.blog-card__media { border-radius: var(--radius-card); }
/* The post hero loses its tinted band; the cover keeps the soft fill. */
.post-hero { background: transparent; }
.post-hero__media { background: var(--surface); border-radius: var(--radius-card); }
.post-aside__cta {
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.post-aside__cta-copy { color: var(--surface-muted); }
.post-related { border-top: 0; }
.post-main .prose-content hr {
  border: 0;
  height: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}
.post-main .prose-content blockquote {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Footer: the ink panel and a quiet menu, nothing ruled ---------- */
.site-footer { background: transparent; }
.site-footer .footer-pitch-wrap { padding-top: var(--space-section); }
.site-footer .footer-pitch {
  border-radius: var(--radius-panel);
  padding: clamp(1.75rem, 5vw, 4rem);
}
.site-footer .footer-nav { padding-top: clamp(2rem, 4vw, 3rem); }
.site-footer .legal { border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .svc-related-card,
  .contact-option { transition: none; }
}

/* ---------- Proposals ---------- */
/* The shared muted utility sits on soft cards here, where its old gray fell under 4.5:1. */
.text-charcoal-light { color: var(--surface-muted); }

/* =====================================================================
   Second pass — further toward Grok.
   A calm centred column, restrained type, compact chrome, and the last
   underlines, outlines and blue accents replaced by fills and ink.
   ===================================================================== */

:root {
  /* Content sits in a centred column instead of running edge to edge. */
  --page-max: 68rem;
  --text-max: 46rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --pad-page: max(var(--gutter), calc((100% - var(--page-max)) / 2));
  --pad-text: max(var(--gutter), calc((100% - var(--text-max)) / 2));

  --space-section: clamp(4.5rem, 11vw, 9.5rem);

  /* Focus and selection are ink, never blue. */
  --color-focus: var(--gray-900);
  --color-focus-surface: #fff;
  --color-focus-glow: rgb(34 31 26 / 0.14);
}

/* ---------- The column ---------- */
/* Case studies keep their cinematic full-width layout, and the homepage
   project cards keep the near-full-width size set in home-cards.css. */
main:not(:has(.cs-section)) .bleed,
.site-footer .bleed,
.about-hero-media {
  padding-left: var(--pad-page);
  padding-right: var(--pad-page);
}
/* Reading sections narrow further: heroes, statements, lists, questions. */
main .page-hero.bleed,
main .svc-sub__hero.bleed,
main .about-hero.bleed,
main .home-hero-v2.bleed,
main .home-statement.bleed,
main .home-all-work.bleed,
main .home-caps.bleed,
main .svc-flat.bleed,
main .work-index.bleed,
main .about-purpose.bleed,
main .about-links:not(.cs-onward).bleed,
main .svc-block.bleed:has(.faq-clean) {
  padding-left: var(--pad-text);
  padding-right: var(--pad-text);
}

/* ---------- Heroes: centred, one restrained size ---------- */
.home-hero-v2,
.page-hero,
.svc-sub__hero,
.about-hero,
.contact-hub__head {
  text-align: center;
}
.home-hero-v2 { align-items: center; }
.home-hero-v2 h1,
main:has(.home-featured) .home-hero-v2 h1,
.page-hero h1,
.page-hero h1.page-hero__statement,
.svc-sub__hero h1,
.about-hero-headline,
.contact-hub__head .headline {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: var(--track-display);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
.contact-hub__head .headline { max-width: 24ch; }
/* A statement is a sentence, not a title: smaller, and a longer line. */
.page-hero h1.page-hero__statement {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: var(--track-heading);
  max-width: 30ch;
}
.page-hero p,
.svc-sub__hero p,
.home-hero-v2__lead p {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  margin-left: auto;
  margin-right: auto;
}
.contact-hub__head { max-width: none; }
.svc-sub__hero .home-hero-v2__cta { justify-content: center; }
.home-hero-v2__bottom {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}
.home-hero-v2__cta { justify-content: center; }
.home-hero-v2 {
  padding-top: calc(var(--bar-height) + clamp(3rem, 12vw, 10rem));
  padding-bottom: clamp(3.5rem, 10vw, 8.5rem);
}

/* ---------- Home statement: one centred paragraph ---------- */
.home-statement {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 1.5rem;
  text-align: center;
}
.home-statement .eyebrow { justify-self: center; }
.home-statement h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: var(--track-heading);
}
.home-all-work { text-align: center; }

/* ---------- Restrained type everywhere else ---------- */
.headline { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
.section-head h2,
.svc-block__head h2,
.post-related__head h2 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: var(--track-heading);
  line-height: 1.2;
}
.proof-stats .stat .n,
.proof-stats .stat--wide .n,
.about-stat__n { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.home-cap-row .cap-name,
.work-row .name,
.svc-item h3,
.svc-flat .svc-item h3,
.about-link-row { font-size: clamp(1.05rem, 1.4vw, 1.2rem); letter-spacing: var(--track-heading); }
.about-purpose__prose p { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.4; }
.post-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.08; }
.blog-card__title { font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; }
.site-footer .footer-pitch__title { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.proposal-page .headline { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }

/* ---------- Narrow sections stack what used to sit side by side ---------- */
.about-purpose__grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.about-purpose__grid .eyebrow { position: static; }
.faq-clean__item { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
.svc-block:has(.faq-clean) .svc-block__head { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Compact chrome ---------- */
.nav-flex a:not(.button) { font-weight: 400; }
.button,
.button-primary,
button.button,
input[type="submit"].button { padding: 0.6rem 1.2rem; }
.button-lg { padding: 0.75rem 1.4rem; }

/* ---------- The last lines: text links become pills ---------- */
.contact-option__link {
  display: inline-block;
  border-bottom: 0;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 0.875rem;
}
.contact-option:hover .contact-option__link { border: 0; }
.site-footer .footer-pitch__email {
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: var(--gray-600);
  text-underline-offset: 0.2em;
}
.site-footer .footer-pitch__email:hover { text-decoration-color: var(--gray-50); }

/* ---------- Proposals: the timeline fills in ink ---------- */
[data-services-timeline] .ul-service > li .service-timeline-fill { background-color: var(--gray-900); }
[data-services-timeline] .ul-service > li .widget {
  background-color: color-mix(in srgb, var(--gray-50) calc((1 - var(--dot-fill, 0)) * 100%), var(--gray-200) calc(var(--dot-fill, 0) * 100%));
  border-color: color-mix(in srgb, var(--gray-300) calc((1 - var(--dot-fill, 0)) * 100%), var(--gray-900) calc(var(--dot-fill, 0) * 100%));
  color: color-mix(in srgb, var(--gray-600) calc((1 - var(--dot-fill, 0)) * 100%), var(--gray-900) calc(var(--dot-fill, 0) * 100%));
}

/* ---------- Phones: keep the first screen tight ---------- */
@media (max-width: 640px) {
  .home-hero-v2 { padding-top: calc(var(--bar-height) + 3rem); }
  .home-statement h2 { font-size: 1.2rem; }
}

/* The statement is body-sized now, so its quiet half has to pass as body text. */
.home-statement .stmt-muted,
.home-statement .tool-rotator { color: var(--gray-600); }
/* Chips sit on soft cards as well as the page; the darker label passes on both. */
.eyebrow,
.section-head .eyebrow,
.proof-press .eyebrow { color: var(--gray-800); }
