/* ============================================================
   PROAGO BRANDING DEPT. — inner pages, brand guide v2.
   Written for the markup the pages already have (body.interior, .page-main, .page-header ...), so a page moves to the
   new look by changing its stylesheets, its bar and its footer, and nothing in its copy.
   Loads after the page's own <style>, so it has the last word.
   ============================================================ */
body.interior { background: var(--kore); padding-bottom: 0; }
body.interior footer { position: static; }
.page-main { padding-top: 0; }

/* Emphasis inside a heading: the accent band laid under the words, in place of the old italic. */
.page-main h1 em, .page-main h2 em, .page-main h3 em, .hero h1 em {
  font-style: normal; color: inherit;
  background: linear-gradient(0deg, transparent 0.06em, var(--accute) 0.06em, var(--accute) 0.36em, transparent 0.36em);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.04em;
}

/* ---------- The head of a page ---------- */
.page-header { padding: 3.2rem var(--section-pad-x) 3.6rem; background: var(--kore); }
.breadcrumb { font-family: var(--mono); font-size: 0.74rem; font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 1.6rem; }
.breadcrumb a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accute); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.page-header h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 5.2vw, 4.5rem); line-height: 0.96; letter-spacing: -0.035em; color: var(--ink); max-width: 17ch; margin-bottom: 1.5rem; text-wrap: balance; }
.lead { font-family: var(--serif); font-size: 1.28rem; line-height: 1.55; color: var(--ink-read); max-width: 46rem; }
.lead strong { font-weight: 600; color: var(--ink); }
.head-cta { display: flex; align-items: center; gap: 1.1rem 1.6rem; flex-wrap: wrap; margin-top: 2rem; }
.cta-trust { font-family: var(--mono); font-size: 0.74rem; font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink-quiet); margin-top: 1.6rem; }

/* ---------- Buttons the pages already use ---------- */
.cta-solid, .head-cta .cta-solid { display: inline-flex; align-items: center; justify-content: center; padding: 1.05rem 1.9rem; font-family: var(--mono); font-size: 0.86rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--accute); border: 2px solid var(--accute); border-radius: var(--r-pill); transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.cta-solid:hover { background: #F6CB78; border-color: #F6CB78; }
.cta-solid:active { transform: translateY(1px); }
.cta-tel { font-family: var(--mono); font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accute); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.cta-tel:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- Sections ---------- */
.page-main section { padding: 4.4rem var(--section-pad-x); background: var(--white); }
.page-header + section { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.page-main h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.9rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); max-width: 21ch; margin-bottom: 1.2rem; text-wrap: balance; }
.page-main h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.section-tag { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.4rem; }
.section-tag::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--accute); }
.prose { font-family: var(--serif); font-size: 1.1rem; line-height: 1.65; color: var(--ink-read); max-width: 62ch; }
.prose + .prose { margin-top: 1.1rem; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a, .cta-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accute); text-decoration-thickness: 2px; text-underline-offset: 0.25em; border-bottom: 0; }
.prose a:hover, .cta-note a:hover { color: var(--ink); text-decoration-color: var(--ink); border: 0; }

/* ---------- Proof: the work, in cards ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.6rem; }
.proof-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--kore-lift); box-shadow: none; }
.proof-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.proof-cap { padding: 1.05rem 1.25rem 1.3rem; }
.proof-cap .pc-client { font-family: var(--display); font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.proof-cap .pc-desc { font-family: var(--serif); font-size: 0.98rem; line-height: 1.45; color: var(--ink-read); margin-top: 0.3rem; }

/* ---------- Steps ---------- */
.process-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
.process-row.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.process-step { background: var(--kore-lift); border-radius: var(--r-lg); padding: 1.5rem 1.45rem 1.6rem; }
.process-step .step-num { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.7rem; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 0.8rem; font-weight: 700; line-height: 1; opacity: 1; margin-bottom: 1.3rem; }
.process-step .step-title { font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.55rem; }
.process-step .step-desc { font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; color: var(--ink-read); }

/* ---------- Questions ---------- */
.page-main section.page-faq { background: var(--kore-lift); }
.faq-list { max-width: 48rem; margin-top: 2rem; border-top: 2px solid var(--ink); }
.faq-item { padding: 1.4rem 0; border-top: 0; border-bottom: 1px solid var(--hair); }
.faq-item:last-child { border-bottom: 1px solid var(--hair); }
.faq-item h3 { font-family: var(--display); font-weight: 700; font-size: 1.18rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.5rem; }
.faq-item p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; color: var(--ink-read); max-width: 62ch; }

/* ---------- The close: a rounded ink panel with the form on a white card ---------- */
.page-main section.page-cta { margin: var(--frame) var(--frame) 0; padding: 5rem calc(var(--section-pad-x) - var(--frame)); border-radius: var(--r-xl); background: var(--ink); color: var(--white); text-align: center; }
.page-cta h2 { color: var(--white); margin-left: auto; margin-right: auto; }
.page-cta .section-tag { color: var(--white); }
.page-cta .prose, .page-cta .lead { color: rgba(255, 255, 255, 0.9); margin-left: auto; margin-right: auto; }
.page-cta .cta-line { display: flex; align-items: center; justify-content: center; gap: 1.1rem 1.8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.page-cta .cta-tel { color: var(--white); }
.page-cta .cta-tel:hover { color: var(--accute); text-decoration-color: var(--accute); }
.cta-note { font-family: var(--serif); font-size: 1rem; color: rgba(255, 255, 255, 0.8); margin-top: 1.6rem; }
.page-cta .cta-note a, .page-cta .prose a, .page-cta .lead a, .page-cta p a:not(.cta-solid) { color: var(--white); }
.page-cta .prose a:hover, .page-cta p a:not(.cta-solid):hover { color: var(--accute); text-decoration-color: var(--accute); }
.page-cta .cta-trust { color: rgba(255, 255, 255, 0.72); }
.cta-logos { display: flex; align-items: center; justify-content: center; gap: 1.2rem 2.2rem; flex-wrap: wrap; margin: 2rem auto 0; max-width: 44rem; }
.cta-logos img { height: 26px; width: auto; max-width: 120px; object-fit: contain; opacity: 0.78; filter: brightness(0) invert(1); }
.page-cta .hs-form-frame { box-sizing: border-box; max-width: 40rem; margin: 2.6rem auto 0; text-align: left; background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.14); min-height: 12rem; }
.page-cta .hs-form-frame iframe { display: block; }

/* ---------- About: the roster ---------- */
.roster-list { list-style: none; padding: 0; margin-top: 2rem; max-width: 52rem; columns: 3; column-gap: 2.4rem; }
.roster-list li { font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; color: var(--ink-read); padding: 0.6rem 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }

/* ---------- Work: one piece after another ---------- */
.work-list { display: flex; flex-direction: column; gap: 4.5rem; margin-top: 3rem; }
.work-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; scroll-margin-top: calc(var(--bar-h) + 1rem); }
.work-item:nth-child(even) .work-media { order: 2; }
.work-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: var(--r-xl); box-shadow: none; }
.work-kicker { font-family: var(--mono); font-size: 0.76rem; font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.9rem; display: inline-flex; align-items: center; gap: 0.7rem; }
.work-kicker::before { content: ""; width: 28px; height: 4px; border-radius: 2px; background: var(--accute); }
.page-main .work-item h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin-bottom: 0.9rem; }
.work-item .prose { font-size: 1.06rem; }
.work-info { max-width: none; }

/* ---------- On a wide screen a plain section reads in two columns: its tag and heading on the left (gathered into
   .sec-head by the converter), its words on the right. Blocks that need the room (cards, steps, the list of work)
   run the full width beneath. On a narrower screen it is one column. ---------- */
.sec-head > h2:last-child { margin-bottom: 1.2rem; }
@media (min-width: 1025px) {
  .section-inner.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
  .section-inner.two-col > * { grid-column: 2; }
  .section-inner.two-col > .sec-head { grid-column: 1; grid-row: 1 / span 40; }
  .section-inner.two-col > .sec-head > h2:last-child { margin-bottom: 0; }
  .section-inner.two-col > .proof-grid, .section-inner.two-col > .process-row, .section-inner.two-col > .work-list { grid-column: 1 / -1; }
  .section-inner.two-col > .sec-head + .prose, .section-inner.two-col > .sec-head + p { margin-top: 0.25rem; }
  .section-inner.two-col > .roster-list { columns: 2; margin-top: 1.4rem; }
  .section-inner.two-col > .faq-list { margin-top: 0; }
}

@media (max-width: 1024px) {
  .process-row.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .proof-grid, .process-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-item { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .work-item:nth-child(even) .work-media { order: 0; }
  .work-list { gap: 3.4rem; }
}
@media (max-width: 768px) {
  body.interior { padding-bottom: 0; }
  body.interior .site-footer { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .page-header { padding: 2.2rem var(--section-pad-x) 2.6rem; }
  .page-main section { padding: 3.2rem var(--section-pad-x); }
  .page-main section.page-cta { padding: 3.4rem 1.1rem; }
  .lead { font-size: 1.16rem; }
  .proof-grid, .process-row, .process-row.steps-4 { grid-template-columns: minmax(0, 1fr); }
  .roster-list { columns: 2; column-gap: 1.6rem; }
  .head-cta .cta-solid, .page-cta .cta-solid { width: 100%; }
  .page-cta .hs-form-frame { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.14); }
}
