/* Homepage section merges: Ways to begin inside How we start; client logos inside Selected work */
.q-begin { margin-top: 72px; padding-top: 40px; border-top: 1px solid rgba(250, 247, 241, 0.16); }
.q-begin-label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qd-brass-300, #D9B776); margin-bottom: 24px; }
.q-begin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.q-begin-grid h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--fg-inverse, #FAF7F1); }
.q-begin-grid p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: rgba(250, 247, 241, 0.74); max-width: 48ch; }
@media (max-width: 760px) { .q-begin-grid { grid-template-columns: 1fr; gap: 32px; } }
.q-prop-grid--one { grid-template-columns: minmax(0, 1fr); margin-top: 40px; }
.q-prop-grid--one .q-prop-col p { max-width: 62ch; }
.q-home-logos { margin-top: 56px; padding-top: 0; border-top: 0; }
.q-home-logos .q-logos-label { margin-bottom: 28px; }
.q-home-logos .q-logos-grid { align-items: start; }
.q-home-logos .q-logo-name { font-size: 18px; line-height: 1.4; }
/* Spacing and rules: one rule per boundary, tighter gaps at the end of the page */
.q-home .q-work-sel { padding-bottom: 88px; }
.q-home .q-closer { border-top: 0; padding: 96px 0; }
.q-home .q-closer-inner { border-top: 0; padding-top: 0; }

/* Ways to begin inside What we do */
.q-begin-pillars { margin-top: 48px; }
.q-begin-pillars .q-section-head { margin-bottom: 28px; }
.q-begin-pillars .q-section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }

/* How we build: a light timeline, one line with a dot per step */
.q-flow { margin-top: 72px; }
.q-flow-head { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qd-brass-700, #8C6A2B); margin-bottom: 28px; }
.q-flow-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 32px; }
.q-flow-steps li { position: relative; padding-top: 30px; }
.q-flow-steps li::before { content: ""; position: absolute; left: 0; right: -32px; top: 6px; height: 1px; background: var(--qd-paper-300); }
.q-flow-steps li:last-child::before { right: 0; }
.q-flow-steps li::after { content: ""; position: absolute; left: 0; top: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--qd-paper-100, #F3EEE3); border: 1.5px solid var(--fg-1, #0B1F33); box-sizing: border-box; }
.q-flow-steps li .k { display: block; font-size: 16px; font-weight: 600; color: var(--fg-1); margin-bottom: 6px; }
.q-flow-steps li p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); max-width: 24ch; }
@media (max-width: 900px) {
  .q-flow-steps { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .q-flow-steps li { padding-top: 0; }
  .q-flow-steps li::before { left: -24px; right: auto; top: 6px; bottom: -28px; width: 1px; height: auto; }
  .q-flow-steps li:last-child::before { display: none; }
  .q-flow-steps li::after { left: -30px; top: 2px; }
}

/* Situations as an editorial list on the homepage */
.q-home .q-who .q-situations { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.q-home .q-who .q-situation { background: none; border: 0; border-top: 1px solid var(--qd-paper-300); padding: 20px 0 24px; }
.q-home .q-who .q-situation h3 { font-size: 18px; }
@media (max-width: 700px) { .q-home .q-who .q-situations { grid-template-columns: 1fr; } }

/* Approach band: statement left, paragraph right */
.q-home .q-prop-band .q-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 64px; align-items: end; }
.q-home .q-prop-band .q-eyebrow { grid-column: 1 / -1; }
.q-home .q-prop-band .q-prop-statement { grid-column: 1; }
.q-home .q-prop-band .q-prop-grid--one { grid-column: 2; margin-top: 0; }
.q-home .q-prop-band { padding: 96px 0; }
@media (max-width: 900px) { .q-home .q-prop-band .q-wrap { grid-template-columns: 1fr; } .q-home .q-prop-band .q-prop-grid--one { grid-column: 1; margin-top: 32px; } }

/* Review fixes: sans segment labels in Selected work; team photos use the full width */
.q-home .q-work-item h4 .seg { font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--fg-3, #5A6876); }
.q-home .q-partner-grid { max-width: none; }
/* Real client logos: one height, grayscale, centered in their cells */
.q-home-logos .q-logos-grid { align-items: center; gap: 28px 40px; }
.q-home-logos .q-logo-mark { height: 48px; display: flex; align-items: center; }
.q-home-logos .q-logo-mark img { height: 30px; width: auto; max-width: 100%; max-height: none; object-fit: contain; filter: grayscale(1) brightness(0.35); opacity: 0.85; }
.q-home-logos .q-logo-name { font-size: 17px; font-weight: 500; color: #3a4350; line-height: 48px; white-space: nowrap; }
/* The HBS logo is a stacked lockup, so it needs more height to stay legible */
.q-home-logos .q-logo-mark img[alt="Harvard Business School"] { height: 46px; }
/* Logo row: spread evenly, balance optical weight */
.q-home-logos .q-logos-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 40px; }
.q-home-logos .q-logo-mark img[alt="Turner Broadcasting"] { height: 23px; }
.q-home-logos .q-logo-mark img[alt="Harvard Business School"] { height: 52px; }
@media (max-width: 900px) { .q-home-logos .q-logos-grid { justify-content: flex-start; } }

/* Hero: cycling list of things we build */
.q-caps { border-left: 1px solid rgba(250, 247, 241, 0.18); padding: 4px 0 4px 32px; }
.q-caps-label { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #C9A55A; margin-bottom: 18px; }
.q-caps ul { list-style: none; margin: 0; padding: 0; }
.q-caps li { font-size: 19px; line-height: 1.35; padding: 9px 0; color: rgba(250, 247, 241, 0.38); transition: color .6s ease, transform .6s ease; }
.q-caps li.on { color: #FAF7F1; transform: translateX(6px); }
.q-caps li.on::before { content: ""; display: inline-block; width: 18px; height: 1px; background: #C9A55A; vertical-align: middle; margin: 0 12px 0 -30px; }
@media (prefers-reduced-motion: reduce) { .q-caps li { color: rgba(250, 247, 241, 0.8); transform: none; } .q-caps li.on::before { display: none; } }
@media (max-width: 1000px) { .q-caps { border-left: 0; padding-left: 0; } .q-caps li { font-size: 17px; padding: 6px 0; } .q-caps li.on::before { display: none; } .q-caps li.on { transform: none; } }

/* Demo, moved into What we do */
.q-home-demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; background: var(--qd-navy-900); padding: 48px; margin: 48px 0 0; }
.q-home-demo-text h3 { color: #FAF7F1; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; line-height: 1.2; margin: 16px 0 14px; }
.q-home-demo-text p { color: rgba(250, 247, 241, 0.75); font-size: 16px; line-height: 1.6; margin: 0; max-width: 44ch; }
@media (max-width: 900px) { .q-home-demo { grid-template-columns: 1fr; padding: 32px 20px; gap: 28px; } }

/* Hero services variant */
.q-caps--svc li { padding: 8px 0; }
.q-caps--svc .q-caps-link { color: inherit; text-decoration: none; }
.q-caps--svc .q-caps-desc { max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 1.45; color: rgba(250, 247, 241, 0.72); transition: max-height .5s ease, opacity .5s ease, margin .5s ease; }
.q-caps--svc li.on .q-caps-desc { max-height: 60px; opacity: 1; margin-top: 4px; }
.q-caps--svc li.on .q-caps-link { color: #FAF7F1; }
@media (prefers-reduced-motion: reduce) { .q-caps--svc .q-caps-desc { max-height: none; opacity: 1; } }
@media (max-width: 1000px) { .q-caps--svc .q-caps-desc { display: none; } }

/* Hero services: numbered, brass rail, active row expands */
.q-caps--svc { border-left: 0; padding: 0; position: relative; }
.q-caps--svc .q-caps-label { margin-bottom: 10px; }
.q-caps--svc ul { border-top: 1px solid rgba(250, 247, 241, 0.14); }
.q-caps--svc li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0 12px 16px; border-bottom: 1px solid rgba(250, 247, 241, 0.1); position: relative; font-size: 20px; transform: none; transition: color .5s ease, background .5s ease; }
.q-caps--svc li::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #C9A55A; transform: scaleY(0); transform-origin: top; transition: transform .5s ease; }
.q-caps--svc li.on { background: rgba(250, 247, 241, 0.04); transform: none; }
.q-caps--svc li.on::after { transform: scaleY(1); }
.q-caps--svc li.on::before { display: none; }
.q-caps-num { font-family: var(--font-serif, Georgia, serif); font-size: 15px; color: rgba(201, 165, 90, 0.55); transition: color .5s ease; }
.q-caps--svc li.on .q-caps-num { color: #C9A55A; }
.q-caps--svc .q-caps-link { font-weight: 400; }
.q-caps--svc li:hover .q-caps-link { color: #FAF7F1; }
@media (max-width: 1000px) { .q-caps--svc li { font-size: 17px; padding-left: 12px; } }

.q-caps--svc li { display: block; }

/* Hero services: fixed heights so nothing moves, top-aligned with the tagline */
.q-home-hero-split:has(.q-caps--svc) { align-items: start; }
.q-caps--svc li.on .q-caps-desc { max-height: none; height: 44px; }
.q-caps--svc .q-caps-label { color: var(--qd-brass-300); font-size: 16px; font-weight: 500; letter-spacing: .02em; text-transform: none; line-height: 19px; margin-bottom: 14px; }

/* Whole service row is the link */
.q-caps--svc li { padding: 0; }
.q-caps--svc .q-caps-link { display: block; padding: 12px 0 12px 16px; cursor: pointer; }
@media (min-width: 1001px) { .q-caps--svc .q-caps-desc { display: block; } }
@media (max-width: 1000px) { .q-caps--svc .q-caps-link { padding: 10px 0 10px 12px; } }
