/* Home colour system (approved 2026-11-26): white with black, green is never a surface.
   Rust (#CF7855) marks progress in How it works only. Loaded by index.html only, after pages.css.
   Note: Refound and Close hold stills blended with "darken", so their background can only
   match the paper (#F4F5F0) or go deeper, never lighter. */

:root {
  --btn-bg: #1A1A1A; --btn-text: #FAFAFA; --btn-hover: #4A4A4A;
  --card-bg: rgba(26,26,26,.03); --card-bg-hover: rgba(26,26,26,.06);

  /* How it works: paper section, ink text, rust progress */
  --stage-bg: #F4F5F0; --stage-ink: #1A1A1A;
  --stage-body: rgba(26,26,26,.74); --stage-mute: rgba(26,26,26,.5);
  --stage-hair: rgba(26,26,26,.12); --stage-line: rgba(26,26,26,.22); --stage-ring: rgba(26,26,26,.4);
}

/* Headline second lines: ink italic instead of green */
.accent, .refound-title .t2, .rf-pit-title .accent { color: var(--ink); font-style: italic; }
/* Two headline italics take the green: "Change how it runs." (typed) and "Bring it in." */
.refound-title .t2, #close-title .accent { color: var(--accent); }
/* Typing: characters exist from the start (no reflow), they only change opacity. */
.refound-title .rf-type span { display: inline; }
.rf-type .w { white-space: nowrap; }
.rf-type .c { opacity: 0; position: relative; }
.rf-type .c.on { opacity: 1; }
.rf-type .c.is-cur::after {
  content: ""; position: absolute; left: 100%; top: .14em; bottom: .04em; margin-left: 3px;
  width: max(2px, .03em); background: var(--accent); animation: rf-blink 1.06s steps(1) infinite;
}
@keyframes rf-blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
.rf-change p { color: var(--ink); font-style: italic; }

/* Section rhythm: The crew sits on white between two paper sections */
.squad2 { --wall: #FFFFFF; background: #FFFFFF; }

/* How it works */
.hw-b { --lime: #CF7855; background: var(--stage-bg); }
.hw-b .eyebrow, .hw-b .eyebrow .n, .hw-b .hw-when, .hw-b .hw-io dt { color: var(--stage-mute); }
.hw-b .h2 .accent { color: var(--stage-ink); }
.js .hw-b .hw-words { color: var(--stage-ink); }

/* Same condition as the pinned stage in styles.css: the card padding only exists there */
@media (min-width: 900px) and (min-height: 780px) and (prefers-reduced-motion: no-preference) {
  /* Open step: white card lifted by a soft shadow; only its step number is rust */
  .js .hw-b .hw-step.is-on .hw-card {
    background: #FFFFFF; border-radius: 10px;
    box-shadow: 0 1px 2px rgba(26,26,26,.04), 0 12px 32px -8px rgba(26,26,26,.10), 0 32px 64px -24px rgba(26,26,26,.10);
  }
  .js .hw-b .hw-step.is-on h3 { color: var(--stage-ink); }
  .js .hw-b .hw-step.is-on .hw-when { color: var(--stage-mute); }
  .js .hw-b .hw-step.is-on .hw-when span:first-child { color: #CF7855; }
  .js .hw-b .hw-step.is-on .hw-io dd.hw-get { color: var(--stage-ink); }
  .js .hw-b .hw-step.is-done::after { width: 2px; left: 4.5px; }
}

/* Refound copy (Belu, 2026-11-30): attributed quote, "Now AI native" under the change, body pair, ROI band */
.rf-quote { max-width: 17em; }
.rf-quote p { margin: 0; }
.rf-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: 11px; color: var(--mute); }
/* Client logo on the name's line, quiet */
.rf-quote .rf-cite { display: inline-flex; align-items: center; gap: 6px; }
.rf-logo { display: inline-block; height: 13px; width: auto; filter: grayscale(1); opacity: .55; }
.rf-change .rf-now { margin-top: 4px; color: #A8502F; }
.rf-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 4vw, 88px);
  max-width: 980px; margin-top: clamp(32px, 4vw, 56px);
}
.rf-body p { font-size: 17px; line-height: 1.6; color: var(--body); }
.rf-roi {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 16px 48px;
  margin-top: clamp(64px, 6vw, 88px);
}
.rf-roi .rf-roi-l { color: #A8502F; font-size: 11px; padding-top: 10px; }
.rf-roi-t {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -.01em; color: var(--ink);
}
.rf-roi-t em { font-style: italic; }

@media (max-width: 719px) {
  .rf-quote { max-width: none; }
  .rf-body { grid-template-columns: 1fr; gap: 12px; }
  .rf-body p { font-size: 16px; }
  .rf-roi { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
  .rf-roi .rf-roi-l { padding-top: 0; }
}

/* 03 What we build: Belu's isometric stack (inline SVG) replaces the 3D slabs. Flat section, no floor.
   Desktop: head and list on the left, the stack on the right. Mobile: the stack sits under the head. */
.build { padding-bottom: var(--section-y); }
.ly { min-height: 0; padding: 0; }
.ly::before { display: none; }
.ly-stage {
  position: static; width: auto; height: auto; pointer-events: auto;
  -webkit-mask-image: none; mask-image: none; margin: 0;
}
.ly-stage::before { display: none; }
.ly-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ly-next { position: static; height: auto; padding-top: 36px; }
@media (min-width: 900px) {
  .ly { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); column-gap: 5%; align-items: start; }
  .ly-head { max-width: none; grid-column: 1; grid-row: 1; }
  .ly-list { grid-column: 1; grid-row: 2; width: auto; max-width: 460px; }
  .ly-next { grid-column: 1; grid-row: 3; }
  .ly-stage { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: start; width: min(700px, 112%); }
}
@media (max-width: 899px) {
  /* Phones: the in-graphic labels would be ~8px, so hide them and let the stack fill the width; the list below names each layer. */
  .ly-stage { margin: 24px 0 28px; aspect-ratio: auto; overflow: hidden; }
  .ly-svg { width: 176%; max-width: none; margin-left: -6%; }
  .ly-svg .ly-labels { display: none; }
}

/* Header CTA: hidden over the film, fades in once the header turns solid */
.header-cta {
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s, background-color .2s;
}
.site-header.is-solid .header-cta {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .25s, transform .25s var(--ease), background-color .2s;
}

/* Trusted by: grey monochrome client logos under the hero */
.trusted { padding: 56px 0 8px; }
.trusted-label {
  margin: 0 0 28px; text-align: center; font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--mute);
}
.trusted-row {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 56px;
}
.trusted-row img { display: block; width: auto; filter: brightness(0); opacity: .45; }
.lg-hooray { height: 20px; }
.lg-super73 { height: 22px; }
.lg-iec { height: 34px; }
.lg-heritage { height: 30px; }
.lg-hodson { height: 34px; }
.lg-world { height: 30px; }
.lg-sierra { height: 40px; }
@media (max-width: 719px) {
  .trusted { padding: 40px 0 0; }
  .trusted-row { gap: 22px 32px; }
  .trusted-row img { transform: scale(.82); }
}
