/* Service pages and the homepage "What we do" list. Builds on styles.css tokens. */
.page-hero { padding: clamp(120px, 20vh, 200px) var(--gutter) clamp(48px, 9vh, 110px); }
.eyebrow { margin: 0 0 clamp(20px, 4vh, 40px); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow a { text-decoration: none; transition: color 0.3s var(--ease); }
.eyebrow a:hover, .eyebrow a:focus-visible { color: var(--accent); }
.page-title {
  margin: 0;
  font-family: var(--display); font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: clamp(40px, 8.4vw, 150px); line-height: 0.88; letter-spacing: -0.025em; text-transform: uppercase;
}
.page-title .line { display: block; }
.page-lede {
  max-width: 30ch; margin: clamp(36px, 7vh, 80px) 0 0 auto;
  font-family: "Helvetica Neue", var(--text); font-weight: 300;
  font-size: clamp(24px, 3.2vw, 48px); line-height: 1.08; letter-spacing: -0.025em;
}
.page-section { padding: clamp(48px, 9vh, 110px) var(--gutter); border-top: 1px solid var(--line); margin: 0 var(--gutter); padding-left: 0; padding-right: 0; }
/* "Questions we answer": light Helvetica Neue, the size the opening description used to be */
.big-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0;
  font-family: "Helvetica Neue", var(--text); font-weight: 300;
  font-size: clamp(28px, 2.6vw, 52px); line-height: 1.1; letter-spacing: -0.02em; }
.big-list li { max-width: none; text-wrap: pretty; } /* runs the full content width, margin to margin */
/* One row per question with a hairline under each, like wearecollins.com's program list */
.big-list li { padding: clamp(22px, 3.4vh, 40px) 0; border-bottom: 1px solid var(--line); }
.big-list li:last-child { border-bottom: 0; } /* the next section's divider closes the list */
/* Same rise-in as homepage [data-reveal]: up 24px and fade in, expo-out, 0.1s stagger (pages.js) */
.will-rise { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.will-rise.is-in { opacity: 1; transform: none; }
.page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gap); }
.page-grid > div { min-width: 0; }
.plain-list, .steps { margin: 0; padding: 0; display: grid; gap: 14px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.35; max-width: 44ch; }
.plain-list { list-style: none; }
.plain-list li { padding-left: 22px; position: relative; color: var(--fg); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: var(--accent); }
.steps { padding-left: 1.3em; }
.steps li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 600; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vh, 48px) var(--gap); }
.faq-item h3 { margin: 0 0 10px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.faq-item p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 52ch; }
.page-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-line { margin: 0; font-family: var(--text); font-weight: 600; font-size: clamp(26px, 3.2vw, 48px); letter-spacing: -0.04em; line-height: 1.05; max-width: 20ch; }
.pill--lg { padding: 16px 28px; font-size: 14px; text-transform: none; letter-spacing: 0.01em; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.link-list a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.link-list a:hover, .link-list a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* Homepage: "What we do" links */
.paths { padding: 0 var(--gutter) clamp(100px, 18vh, 220px); }
.paths-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.paths-list li { border-bottom: 1px solid var(--line); }
.paths-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; gap: 8px var(--gap); align-items: baseline;
  padding: clamp(18px, 3vh, 30px) 0; text-decoration: none; transition: color 0.35s var(--ease);
}
.paths-list .path-name { font-family: var(--text); font-weight: 600; font-size: clamp(22px, 2.6vw, 40px); letter-spacing: -0.035em; line-height: 1.05; }
.paths-list .path-desc { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.35; }
.paths-list .path-arrow { font-size: 22px; transition: transform 0.45s var(--ease); }
.paths-list a:hover, .paths-list a:focus-visible { color: var(--accent); }
.paths-list a:hover .path-arrow, .paths-list a:focus-visible .path-arrow { transform: translateX(6px); }

@media (max-width: 860px) {
  .page-grid, .faq { grid-template-columns: 1fr; }
  .page-lede { margin-left: 0; }
  .paths-list a { grid-template-columns: minmax(0, 1fr) auto; }
  .paths-list .path-desc { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Service pages: light version (cream page, near-black text) ---------- */
body.subpage {
  --bg: #f5f5ee;
  --fg: #111;
  --muted: #111; /* no grey text on service pages: all text in the one text colour */
  --line: rgba(17, 17, 17, 0.16);
  --accent: #6f7d16; /* the lime, deepened so hovers read on cream */
  --cursor: #111;
  --cursor-hot: #6f7d16;
  color-scheme: light;
}
body.subpage ::selection { background: #111; color: #f5f5ee; }
body.subpage .pill::before { background: #dae882; } /* buttons still fill with the soft lime */
body.subpage .pill:hover, body.subpage .pill:focus-visible { border-color: #111; }
body.subpage .site-grain::before { filter: invert(1); opacity: 0.05; }
body.subpage .site-scene { opacity: 0.35; }
/* "More of what we do": heading and links centred */
.page-section:has(> .link-list) { text-align: center; }
.page-section > .link-list { justify-content: center; }
/* Mid-page call to action: line and Contact button stacked and centred */
.page-cta { flex-direction: column; justify-content: center; text-align: center; }
.page-cta .cta-line { max-width: none; }
/* Footer call to action on service pages: the "Need answers?" line above the Contact button */
.footer-cta .cta-line { max-width: none; margin: 0 0 clamp(18px, 3vh, 28px); }

/* ---------- Service page opening screen (inspired by wearecollins.com/programs) ----------
   Service name small, homepage description large, left; cards float around it at different depths:
   blurred ones sit far back and drift slowly, sharp ones sit close and move faster (pages.js). */
.svc-hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow-x: clip; }
.svc-hero__cards { position: absolute; inset: 0; pointer-events: none; }
.svc-card {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--r);
  z-index: var(--z); display: grid; place-items: center; overflow: hidden;
  background: #111; color: #f5f5ee; border-radius: clamp(8px, 1vw, 18px);
  filter: blur(var(--blur)); will-change: transform;
  opacity: 0; scale: 0.94;
  transition: opacity 1.2s var(--ease), scale 1.6s var(--ease);
  transition-delay: calc(var(--i) * 90ms + 150ms);
}
.svc-hero.is-in .svc-card { opacity: 1; scale: 1; }
.svc-card img { width: 100%; height: 100%; object-fit: cover; }
.svc-card img[src$=".gif"] { width: 72%; height: auto; object-fit: contain; image-rendering: pixelated; }
.svc-card svg { height: 44%; width: auto; fill: currentColor; }
.svc-hero__text {
  position: absolute; z-index: 3; left: var(--gutter); top: 46%;
  width: calc((100% - 2 * var(--gutter)) * 2 / 3); /* two-thirds of the content width */
}
.svc-hero__label {
  margin: 0 0 clamp(16px, 2.4vh, 28px);
  font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 125;
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.svc-hero__desc {
  margin: 0; font-family: "Helvetica Neue", var(--text); font-weight: 300;
  font-size: clamp(29.7px, calc(3.95vw + 6.7px), 104px); line-height: 1; letter-spacing: -0.035em; text-wrap: pretty;
}
@media (max-width: 860px) {
  .svc-hero__text { left: var(--gutter); right: var(--gutter); width: auto; top: 40%; }
  .svc-card:nth-child(2) { display: none; }
  .svc-card:nth-child(1) { --x: 50% !important; --y: 11% !important; --w: 42% !important; }
  .svc-card:nth-child(3) { --x: 9% !important; --y: 70% !important; --w: 34% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-card { opacity: 1; scale: 1; transition: none; }
}

/* ---------- FAQ page (/faq/) ---------- */
.faq-intro { padding: clamp(140px, 22vh, 240px) var(--gutter) 0; }
.faq-intro .section-title { margin: 0 0 clamp(28px, 5vh, 56px); }
.faq-item--wide { grid-column: 1 / -1; }
.faq-item--wide p + p { margin-top: 10px; }
.faq-item--wide p { max-width: 90ch; }
.faq-item--wide a { text-decoration: none; font-weight: 600; transition: color 0.3s var(--ease); }
.faq-item--wide a:hover, .faq-item--wide a:focus-visible { color: var(--accent); }
.faq-intro + .page-section { border-top: 0; padding-top: 0; }
/* FAQ page: one column, a hairline between questions (same line as the question rows on service pages) */
.faq-page .faq { grid-template-columns: minmax(0, 1fr); gap: 0; }
.faq-page .faq-item { padding: clamp(28px, 4.5vh, 48px) 0; border-bottom: 1px solid var(--line); }
.faq-page .faq-item:first-child { padding-top: 0; }
.faq-page .faq-item:last-child { border-bottom: 0; }
.faq-page .faq-item p { max-width: 72ch; }
