/* ==========================================================================
   Monolith — How we work ("The protocol")
   Dark system page, sibling of Services/About. The centerpiece is the
   sequence: six phases on a spine that fills as the reader scrolls
   (js/pages/how-we-work.js drives the fill and lights the phase under
   the viewport's middle). Below it: honest engagement models, what we
   ask of clients, and the pre-sales FAQ as native <details>.
   ========================================================================== */

.blink { animation: blink 1.2s steps(1) infinite; }

/* ============ shared heads ============ */
.hw-tag {
  font-family: 'VCR OSD Mono', monospace; font-size: 13px; letter-spacing: 0.12em;
  color: #A8A8A8; text-transform: uppercase;
}
.hw-h2 {
  margin: 18px 0 0; font-weight: 400; font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05; letter-spacing: -0.03em; color: #FFFFFF;
}

/* ============ hero ============ */
.hw-hero {
  max-width: 1440px; margin: 0 auto; padding: 120px 80px 48px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 32px;
}
.hw-h1 {
  margin: 0; font-weight: 400; font-size: clamp(52px, 7vw, 110px); line-height: 1.0;
  letter-spacing: -0.035em; color: #FFFFFF;
}
.hw-sub { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.45; color: #9C9C9C; }
.hw-hint {
  margin: 0; font-family: 'VCR OSD Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8F8F8F;
}

/* ============ the sequence ============ */
.hw-seq {
  position: relative; max-width: 1440px; margin: 0 auto;
  padding: 56px 80px 40px; box-sizing: border-box;
}
/* the spine: a hairline the whole way down, and a green fill that
   tracks scroll progress (scaleY set by JS, origin top) */
.hw-spine {
  position: absolute; top: 76px; bottom: 60px; left: 87px; width: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.hw-spine-fill {
  position: absolute; inset: 0;
  background: #BCFF56; box-shadow: 0 0 12px rgba(188, 255, 86, 0.45);
  transform: scaleY(0); transform-origin: top;
}
.hw-phase {
  position: relative; display: grid;
  grid-template-columns: 180px minmax(0, 640px);
  gap: 12px 56px; padding: 44px 0 44px 48px;
}
.hw-dot {
  position: absolute; left: 3px; top: 58px; width: 9px; height: 9px;
  border-radius: 50%; background: #1A1A1A; border: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.hw-phase.is-now .hw-dot {
  background: #BCFF56; border-color: #BCFF56;
  box-shadow: 0 0 10px rgba(188, 255, 86, 0.7);
}
.hw-phase-meta { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.hw-num {
  font-family: 'VCR OSD Mono', monospace; font-size: 30px; letter-spacing: 0.06em;
  color: #7C7C7C; transition: color 0.3s ease;
}
.hw-phase.is-now .hw-num { color: #BCFF56; }
.hw-when {
  font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #A8A8A8;
}
.hw-head {
  margin: 0; font-weight: 400; font-size: clamp(26px, 2.8vw, 40px);
  letter-spacing: -0.025em; line-height: 1.05; color: #FFFFFF;
}
.hw-lead { margin: 12px 0 0; font-size: 20px; line-height: 1.35; color: #C9C9C9; }
.hw-copy { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: #B0B0B0; }
.hw-copy a { color: #BCBCBC; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s ease; }
.hw-copy a:hover { color: #BCFF56; }
.hw-out {
  display: inline-block; margin-top: 18px;
  font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #9CA894;
  border: 1px solid rgba(188, 255, 86, 0.3); padding: 7px 12px 6px;
}
.hw-phase.is-now .hw-out { color: #A8C687; border-color: rgba(188, 255, 86, 0.45); }

/* ============ ways in ============ */
.hw-ways { max-width: 1440px; margin: 0 auto; padding: 120px 80px 24px; box-sizing: border-box; }
.hw-ways-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hw-way { background: #1A1A1A; padding: 34px 30px 38px; display: flex; flex-direction: column; gap: 10px; transition: background 0.25s ease; }
.hw-way:hover { background: #202020; }
.hw-way-name {
  font-family: 'VCR OSD Mono', monospace; font-size: 15px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #BCFF56;
}
.hw-way-spec {
  font-family: 'VCR OSD Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #A8A8A8;
}
.hw-way-lead { margin: 14px 0 0; font-size: 21px; line-height: 1.25; color: #E8E8E3; }
.hw-way-copy { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #B0B0B0; }
.hw-ways-note {
  margin: 22px 0 0; font-family: 'VCR OSD Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8F8F8F;
}

/* ============ your side ============ */
.hw-side { max-width: 1440px; margin: 0 auto; padding: 120px 80px 24px; box-sizing: border-box; }
.hw-side-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px; margin-top: 56px;
}
.hw-ask { display: flex; gap: 18px; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 22px; }
.hw-ask-num {
  font-family: 'VCR OSD Mono', monospace; font-size: 14px; color: #BCFF56; flex: 0 0 auto;
}
.hw-ask-name { display: block; font-size: 19px; color: #E8E8E3; letter-spacing: -0.01em; }
.hw-ask-copy { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #B0B0B0; }

/* ============ faq ============ */
.hw-faq { max-width: 1440px; margin: 0 auto; padding: 120px 80px 0; box-sizing: border-box; }
.hw-faq-list { margin-top: 48px; max-width: 860px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hw-q { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.hw-q summary {
  display: flex; align-items: baseline; gap: 22px; padding: 22px 4px;
  cursor: pointer; list-style: none;
}
.hw-q summary::-webkit-details-marker { display: none; }
.hw-q-num {
  font-family: 'VCR OSD Mono', monospace; font-size: 12px; letter-spacing: 0.1em;
  color: #8F8F8F; flex: 0 0 30px; transition: color 0.2s ease;
}
.hw-q-text { font-size: 19px; color: #C9C9C9; letter-spacing: -0.01em; transition: color 0.2s ease; flex: 1; }
.hw-q-mark {
  font-family: 'VCR OSD Mono', monospace; font-size: 16px; color: #8F8F8F;
  transition: transform 0.25s ease, color 0.2s ease;
}
.hw-q summary:hover .hw-q-text { color: #FFFFFF; }
.hw-q summary:hover .hw-q-mark, .hw-q summary:hover .hw-q-num { color: #BCFF56; }
.hw-q[open] .hw-q-num { color: #BCFF56; }
.hw-q[open] .hw-q-text { color: #FFFFFF; }
.hw-q[open] .hw-q-mark { transform: rotate(45deg); color: #BCFF56; }
.hw-a {
  margin: 0; padding: 0 4px 26px 52px; max-width: 680px;
  font-size: 16px; line-height: 1.55; color: #B0B0B0;
}

/* ============ cta ============
   The house outro, same as every other page bottom on the site: a
   short copy line, then TALK TO MONOLITH in the big mono — identical
   type treatment to the case studies and the homepage contact. */
.hw-cta { max-width: 1440px; margin: 0 auto; padding: 150px 80px 140px; box-sizing: border-box; }
.hw-cta-copy { margin: 18px 0 0; max-width: 560px; font-size: 24px; line-height: 1.25; color: #B0B0B0; }
.hw-cta-link {
  display: inline-block; margin-top: 32px; font-family: 'VCR OSD Mono', monospace;
  font-size: clamp(28px, 5vw, 72px); color: #FFFFFF; text-decoration: none;
  text-transform: uppercase; line-height: 1.1; word-break: break-all;
  transition: color 0.2s ease;
}
.hw-cta-link:hover { color: #BCFF56; }

/* ============ mobile ============ */
@media (max-width: 900px) {
  .hw-phase { grid-template-columns: 1fr; gap: 18px; }
  .hw-phase-meta { flex-direction: row; align-items: baseline; gap: 16px; }
  .hw-ways-grid { grid-template-columns: 1fr; }
  .hw-side-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .hw-hero, .hw-seq, .hw-ways, .hw-side, .hw-faq, .hw-cta {
    padding-left: 22px !important; padding-right: 22px !important;
  }
  .hw-spine { left: 26px; }
  .hw-phase { padding-left: 30px; }
  .hw-dot { left: 0; }
  .hw-num { font-size: 22px; }
  .hw-a { padding-left: 52px; }
}
