/* PPG subpages (Firm, Approach, Capabilities, Discuss a situation, Privacy): their content and markup are kept
   from the live site; this file draws the live component classes with the new system's tokens and type. */

.sub main { padding-top: 0; }
.sub .wrap { width: min(100% - 2 * var(--gut), 1280px); margin-inline: auto; }

/* 12-column placement used by the live markup (c-start-end) */
.sub .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.sub .gap-row { row-gap: var(--s-5); }
.sub .c-1-5 { grid-column: 1 / 6; }  .sub .c-1-6 { grid-column: 1 / 7; }  .sub .c-1-7 { grid-column: 1 / 8; }
.sub .c-1-8 { grid-column: 1 / 9; }  .sub .c-1-9 { grid-column: 1 / 10; } .sub .c-1-12 { grid-column: 1 / -1; }
.sub .c-6-12 { grid-column: 7 / -1; } .sub .c-7-12 { grid-column: 7 / -1; } .sub .c-8-12 { grid-column: 8 / -1; }
@media (max-width: 1023px) { .sub .grid > [class*="c-"] { grid-column: 1 / -1; } }

/* Rhythm */
.sub .hero--page { padding: var(--s-9) 0 var(--s-8); background: var(--p-bg); }
.sub .band { padding: var(--s-9) 0; }
.sub .band:nth-of-type(even) { background: var(--p-surface); }
.sub .mt-3 { margin-top: var(--s-3); } .sub .mt-4 { margin-top: var(--s-5); } .sub .mt-5 { margin-top: var(--s-7); }
.sub .stack { display: grid; gap: var(--s-4); align-content: start; }
@media (max-width: 639px) { .sub .hero--page { padding: var(--s-8) 0 var(--s-7); } .sub .band { padding: var(--s-8) 0; } }

/* Type */
.sub .h1, .sub .display { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking-xl);
  font-size: clamp(38px, 2.6vw + 18px, 60px); line-height: 1.05; margin: 0; text-wrap: balance; }
.sub .h2 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking);
  font-size: var(--t-h2); line-height: 1.1; margin: 0; text-wrap: balance; }
.sub .h3, .sub .ledger h3, .sub .split h3, .sub .qa h3 { font: 500 var(--t-lead)/1.35 var(--font-text); letter-spacing: 0; margin: 0; }
.sub :is(.h1, .h2, .display) em { font-style: normal; color: var(--muted); }
.sub .label { font-size: var(--t-label); font-weight: 500; color: var(--muted); margin: 0; }
.sub .deck, .sub .lead { font-size: var(--t-lead); line-height: 1.55; color: var(--ink); max-width: 60ch; margin: 0; }
.sub .kicker { font-weight: 500; }
.sub .measure { max-width: 22em; }
.sub p.lead.measure { max-width: 60ch; }
.sub .small { font-size: var(--t-small); color: var(--muted); }
.sub .muted { color: var(--muted); }
.sub .prose { display: grid; gap: var(--s-4); }
.sub .prose p, .sub .prose li { max-width: 64ch; line-height: 1.65; }
.sub .prose h2 { font-family: var(--font-display); font-weight: var(--display-weight); font-size: var(--t-h3); margin-top: var(--s-5); }
.sub .statement { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.3; letter-spacing: var(--display-tracking); }
.sub a.inline-link, .sub .prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* Calls to action: the live .btn becomes the system's primary button */
.sub .cta { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-3); }
.sub a.btn:not(.btn--primary):not(.btn--secondary), .sub button.btn:not(.btn--primary) {
  display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h); padding: 0 var(--s-5);
  background: var(--action); color: var(--action-ink, var(--p-action-ink)); border: 1px solid var(--action);
  border-radius: var(--r-btn); font: 500 16px/1 var(--font-text); text-decoration: none; cursor: pointer; }

/* In-page jump links */
.sub .jump { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.sub .jump a { color: var(--ink); font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }

/* Ledger: numbered steps and capability rows, the title left and the body right, a rule closing each */
.sub .ledger { display: grid; }
.sub .ledger > article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-3);
  padding: var(--s-6) 0; border-bottom: 1px solid var(--line); }
.sub .ledger > article:first-child { padding-top: 0; }
.sub .ledger > article > h3 { grid-column: 1 / 6; }
.sub .ledger > article > :not(h3) { grid-column: 7 / -1; }
@media (max-width: 1023px) { .sub .ledger > article > * { grid-column: 1 / -1 !important; } }
.sub .row__body { display: grid; gap: var(--s-3); }
.sub .example { padding: var(--s-4) var(--s-5); background: var(--p-bg); border-radius: var(--r-md); }
.sub .band:nth-of-type(odd) .example { background: var(--p-surface); }
.sub .checks, .sub .specimen__rows { margin: 0; display: grid; gap: var(--s-2); }
.sub .checks div, .sub .specimen__rows div { display: grid; gap: 2px; }
.sub .checks dt, .sub .specimen__rows dt { font-weight: 500; }
.sub .checks dd, .sub .specimen__rows dd { margin: 0; }

/* Two-by-two blocks */
.sub .split--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gutter); }
.sub .split--2 > div { display: grid; gap: var(--s-2); align-content: start; padding-top: var(--s-4); border-top: 2px solid var(--ink); }
@media (max-width: 639px) { .sub .split--2 { grid-template-columns: 1fr; } }

/* The illustrative specimen: a surface panel */
.sub .specimen { padding: var(--s-7); background: var(--p-bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sub .specimen__status { font-size: var(--t-small); font-weight: 500; color: var(--muted); margin: 0; }
.sub .specimen__rows div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
@media (max-width: 639px) { .sub .specimen { padding: var(--s-5); } .sub .specimen__rows div { grid-template-columns: 1fr; } }

/* Questions */
.sub .qa { display: grid; gap: var(--s-2); }

/* Intake form (Discuss a situation) */
.sub .intake { row-gap: var(--s-7); }
.sub .intake__form form { display: grid; gap: var(--s-5); padding: var(--s-7); background: var(--p-surface); border-radius: var(--r-lg); }
.sub .intake__form .field :is(input, select, textarea) { background: var(--p-bg); }
.sub .field__req { color: var(--muted); font-weight: 400; }
.sub .field__help, .sub .form__notice { font-size: var(--t-small); color: var(--ink); font-weight: 400; }
.sub .form__outcome, .sub .form__status { font-size: var(--t-small); }
.sub [hidden] { display: none !important; }
.sub .form-success { display: grid; gap: var(--s-4); padding: var(--s-7); background: var(--p-surface); border-radius: var(--r-lg); }
.sub .intake__next { display: grid; gap: var(--s-4); align-content: start; }
@media (max-width: 639px) { .sub .intake__form form, .sub .form-success { padding: var(--s-5); } }

/* The footer on inner pages: the close as one head row */
.sub .footer.closing { height: auto; min-height: 0; padding-top: var(--s-9); padding-bottom: var(--s-7); }

/* Inner pages flow at their content's height (the one-section-per-screen rhythm is the homepage's) */
.sub main > section, .sub main > section.hero { height: auto !important; min-height: 0 !important; overflow: visible; }
.sub main > section.hero.hero--page { display: block; padding: var(--s-9) 0 var(--s-8); }
.sub main > section.hero.hero--page .wrap { position: static; }
@media (max-width: 639px) { .sub main > section.hero.hero--page { padding: var(--s-8) 0 var(--s-7); } }

/* the phone: the header keeps the logo and the menu; the button sits in the open menu */
@media (max-width: 639px) { .sub .nav:not(.is-open) .nav__actions { display: none; } .sub .nav:not(.is-open) .nav__toggle { margin-left: auto; } }

/* ---------------------------------------------------------------- v3: Chicago photograph behind each page's opening */
.sub main > section.hero.hero--page.has-photo {
  position: relative; display: flex; align-items: flex-end; min-height: clamp(520px, 72vh, 760px) !important;
  padding: calc(var(--s-9) + 40px) 0 var(--s-9); background: #0e1a2e; color: #f6f4ef; overflow: clip;
}
.sub .hero--page.has-photo > .sub-hero__bg { position: absolute; inset: 0; }
.sub .hero--page.has-photo > .sub-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: sub-settle 2.4s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes sub-settle { to { transform: scale(1); } }
.sub .hero--page.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,26,46,.55) 0%, rgba(14,26,46,.72) 45%, rgba(14,26,46,.94) 100%); }
.sub .hero--page.has-photo > .wrap { position: relative; z-index: 1; width: min(100% - 2 * var(--gut), 1280px); }
.sub .hero--page.has-photo :is(.h1, h1) { color: #f6f4ef; }
.sub .hero--page.has-photo :is(.h1, h1) em { color: #c9a978; font-style: italic; }
.sub .hero--page.has-photo .label { color: #c9a978; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px; display: flex; align-items: center; gap: 14px; }
.sub .hero--page.has-photo .label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.sub .hero--page.has-photo :is(.deck, p) { color: #dfe3e9; }
.sub .hero--page.has-photo a.btn:not(.btn--primary):not(.btn--secondary) { background: #c9a978; border-color: #c9a978; color: #14243e; font-weight: 700; }
.sub .hero--page.has-photo a.inline-link { color: #f6f4ef; text-decoration-color: rgba(201,169,120,.7); }
@media (prefers-reduced-motion: reduce) { .sub .hero--page.has-photo > .sub-hero__bg img { animation: none; transform: none; } }

/* the inner pages share the homepage's finish: cards on the bands, brass hairlines, the display face's weight */
.sub .h1, .sub .display, .sub .h2 { font-weight: 500; }
.sub .h1 { font-size: clamp(40px, 2.8vw + 18px, 72px); }
.sub .band { padding: clamp(88px, 9vw, 140px) 0; }
.sub .band .h2 { padding-top: 26px; border-top: 1px solid #ddd5c6; }
.sub .ledger > article { padding: var(--s-7) 0; }
.sub .ledger > article > h3 { font-family: var(--font-display); font-size: clamp(22px, .6vw + 18px, 28px); font-weight: 500; line-height: 1.25; }
.sub .split--2 > div { padding: var(--s-6); background: #fbfaf6; border-top: 3px solid #a8865a; box-shadow: 0 1px 2px rgba(20,36,62,.04), 0 12px 32px -12px rgba(20,36,62,.14); }
.sub .specimen { background: #fbfaf6; border: 0; border-top: 3px solid #a8865a; border-radius: 0; box-shadow: 0 1px 2px rgba(20,36,62,.04), 0 12px 32px -12px rgba(20,36,62,.14); }
.sub .example { border-left: 0; border-top: 1px solid #a8865a; border-radius: 0; }
.sub .intake__form form, .sub .form-success { border-radius: 0; border-top: 3px solid #a8865a; background: #fbfaf6; box-shadow: 0 1px 2px rgba(20,36,62,.04), 0 12px 32px -12px rgba(20,36,62,.14); }
.sub .intake__form .field :is(input, select, textarea) { border-radius: 0; background: #f6f4ef; }
.sub .jump a { font-weight: 600; }
.sub ::selection { background: #e2cfa9; color: #14243e; }
.sub :focus-visible { outline: 2px solid #a8865a; outline-offset: 3px; }

/* sections shared with the homepage, embedded in an inner page */
.sub .x-embed .x-sec { padding: clamp(88px, 9vw, 140px) 0; }
.sub .x-embed .x-sec > .wrap { display: block; }
