/* ============================================================
   Transformation Partners — site components
   Builds on colors_and_type.css (brand tokens). Shared by all four pages.
   Concept: the working papers. Documents sit on a cool desk.
   ============================================================ */

:root {
  --night: #243146;
  --error: #A12B17;
  --highlighter: rgba(254, 183, 57, 0.5);
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  --gap: 24px;
  --sheet-shadow: 0 1px 1px rgba(47, 61, 85, 0.06), 0 18px 40px -18px rgba(47, 61, 85, 0.32);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--tp-white);
  color: var(--tp-navy-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--tp-navy-ink);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p, ol, ul, dl, dd, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--tp-orange); outline-offset: 2px; }
::selection { background: var(--highlighter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; background: var(--tp-navy-ink); color: var(--tp-white);
  font-size: 15px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

.prose { max-width: 34em; }
.prose p + p { margin-top: 1em; }
.muted { color: var(--tp-navy); }
.small { font-size: 15px; line-height: 1.55; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Type roles ---------- */
.display {
  font-size: clamp(46px, 6.1vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.028em;
}
.display .line { display: block; }
.voice {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--tp-navy);
  font-size: clamp(22px, 2.3vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; max-width: 31em; }
.h2 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.06; letter-spacing: -0.022em; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.18; }
.kicker { font-size: 15px; font-weight: 500; color: var(--tp-navy); }

/* ---------- Links and buttons ---------- */
.link {
  color: var(--tp-navy-ink);
  text-decoration: underline;
  text-decoration-color: var(--tp-navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 120ms var(--ease), text-decoration-color 120ms var(--ease);
}
.link:hover { color: var(--tp-orange-deep); text-decoration-color: currentColor; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--tp-orange); border-radius: 2px;
  background: var(--tp-orange); color: var(--tp-white);
  font: 500 16px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease), transform 80ms ease-out;
}
.btn:hover { background: var(--tp-orange-deep); border-color: var(--tp-orange-deep); }
.btn:active { transform: scale(0.96); }
.btn-quiet { background: transparent; color: var(--tp-navy-ink); border-color: var(--tp-navy-ink); }
.btn-quiet:hover { background: var(--tp-paper); border-color: var(--tp-navy-ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 10; background: var(--tp-white); border-bottom: 1px solid var(--tp-navy-line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: inline-block; flex: none; }
.brand img { width: 184px; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.site-nav a:not(.btn) { text-decoration: none; transition: color 120ms var(--ease); }
.site-nav a:not(.btn):hover { color: var(--tp-orange-deep); }
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px; border: 0; background: none;
  font: 500 15px/1 var(--font-body); color: var(--tp-navy-ink); cursor: pointer;
}
.menu-toggle .bars { display: block; width: 20px; height: 9px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

@media (max-width: 880px) {
  .brand img { width: 152px; }
  .site-header .wrap { min-height: 68px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px var(--pad) 28px; background: var(--tp-white);
    border-bottom: 1px solid var(--tp-navy-line); font-size: 18px;
  }
  .site-nav[data-open="true"] { display: flex; }
}

/* Slim header for the single-purpose pages: logo home, one action */
.site-header-slim .wrap { min-height: 76px; }
@media (max-width: 880px) {
  .site-header-slim .wrap { min-height: 64px; }
  .site-header-slim .btn-small { min-height: 40px; padding: 0 14px; font-size: 14px; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(72px, 10vw, 136px); padding-bottom: clamp(72px, 10vw, 136px); }
.desk { background: var(--tp-paper); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; row-gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head > :first-child { grid-column: 1 / span 7; }
.section-head > :nth-child(2) { grid-column: 9 / span 4; }
@media (max-width: 880px) {
  .section-head > :first-child, .section-head > :nth-child(2) { grid-column: 1 / -1; }
}

/* ---------- Documents ---------- */
.sheet {
  position: relative;
  background: var(--tp-white);
  border-radius: 2px;
  box-shadow: var(--sheet-shadow);
  padding: clamp(24px, 3.2vw, 44px);
  color: var(--tp-navy-ink);
}
/* A second sheet underneath, for a stack */
.sheet-stack {
  box-shadow: 12px 12px 0 -1px var(--tp-white), 12px 12px 0 0 var(--tp-navy-line), var(--sheet-shadow);
}
.sheet-head {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  padding-bottom: 16px; margin-bottom: 22px;
  border-bottom: 1px solid var(--tp-navy-line);
  font-size: 13px; line-height: 1.5;
}
.sheet-head dt { color: var(--tp-navy-soft); }
.sheet-head dd { color: var(--tp-navy-ink); }
.sheet-title { font-size: clamp(22px, 2vw, 27px); line-height: 1.2; margin-bottom: 18px; }
.sheet-body { font-size: 16px; line-height: 1.62; }
.sheet-body p + p { margin-top: 0.9em; }
.sheet-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--tp-navy-line); font-size: 13px; color: var(--tp-navy); }

mark, .hl {
  background: var(--highlighter);
  color: inherit;
  padding: 0.04em 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.redact {
  display: inline-block;
  width: var(--w, 5em); height: 0.95em;
  vertical-align: -0.12em;
  background: var(--tp-navy-ink);
  border-radius: 1px;
}

/* Timeline inside a document */
.sheet-timeline { list-style: none; padding: 0; }
.sheet-timeline li { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--tp-navy-line); }
.sheet-timeline li:first-child { border-top: 0; padding-top: 0; }
.sheet-timeline .when { font-family: var(--font-display); font-size: 19px; line-height: 1.35; }
@media (max-width: 520px) {
  .sheet-timeline li { grid-template-columns: 1fr; gap: 4px; }
}

/* Editing marks: a leader's pen */
del.pen {
  color: var(--tp-navy-soft);
  text-decoration: line-through;
  text-decoration-color: var(--tp-navy);
  text-decoration-thickness: 1.5px;
}
ins.pen {
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--tp-navy);
}

/* ---------- Sequences ---------- */
.path { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.path li { position: relative; padding-top: 30px; }
.path li::before { content: ""; position: absolute; top: 5px; left: 0; right: calc(-1 * var(--gap)); height: 1px; background: var(--tp-navy); }
.path li:last-child::before { right: 0; }
.path li::after { content: ""; position: absolute; top: 1px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--tp-navy-ink); }
.path li:last-child::after { background: var(--tp-white); box-shadow: inset 0 0 0 2px var(--tp-navy-ink); }
.path-where { display: block; font-family: var(--font-display); font-size: 20px; line-height: 1.3; margin-bottom: 6px; }
.path-what { display: block; font-size: 15px; line-height: 1.5; color: var(--tp-navy); }
@media (max-width: 880px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { padding: 0 0 22px 28px; }
  .path li::before { top: 6px; bottom: -6px; left: 4px; right: auto; width: 1px; height: auto; }
  .path li:last-child::before { display: none; }
  .path li::after { top: 6px; }
}

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.steps > li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--tp-navy-ink); }
.steps > li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--tp-navy); margin-bottom: 18px; }
.steps h3 { font-family: var(--font-body); font-size: 18px; font-weight: 500; letter-spacing: 0; margin-bottom: 8px; }
.steps p { font-size: 16px; color: var(--tp-navy-ink); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Editorial columns ---------- */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 48px); }
.column { padding-top: 22px; border-top: 1px solid var(--tp-navy-ink); }
.column .kicker { margin-bottom: 14px; }
.column .h3 { margin-bottom: 14px; }
.column p { font-size: 16px; }
.column .link { display: inline-block; margin-top: 18px; font-size: 15px; }
@media (max-width: 880px) { .columns { grid-template-columns: 1fr; } }

/* ---------- Reading list ---------- */
.reading { list-style: none; padding: 0; border-bottom: 1px solid var(--tp-navy-line); }
.reading a {
  display: grid; grid-template-columns: 13rem 1fr auto; gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid var(--tp-navy-line);
  text-decoration: none; transition: color 120ms var(--ease);
}
.reading a:hover { color: var(--tp-orange-deep); }
.reading .topic { font-size: 15px; color: var(--tp-navy); }
.reading .title { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.3; }
.reading .out { font-size: 18px; color: var(--tp-navy); }
@media (max-width: 720px) { .reading a { grid-template-columns: 1fr auto; gap: 6px 16px; } .reading .topic { grid-column: 1 / -1; } }

/* ---------- Client logos ---------- */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px clamp(32px, 5vw, 72px); }
.logos img { height: 30px; width: auto; filter: grayscale(1); opacity: 0.62; }
.logos-caption { font-size: 15px; color: var(--tp-navy); margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; max-width: 42rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--tp-navy-soft); border-radius: 2px;
  background: var(--tp-white); color: var(--tp-navy-ink);
  font: 400 17px/1.4 var(--font-body);
  transition: border-color 120ms var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--tp-navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tp-navy-ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--tp-navy-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--tp-navy-ink); flex: none; }
.form-note { font-size: 14px; line-height: 1.55; color: var(--tp-navy); }
.form-status { font-size: 16px; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Closing band and footer (one block) ---------- */
.closing { background: var(--night); color: var(--tp-white); }
.closing h2, .closing h3 { color: var(--tp-white); }
.closing-cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: end; padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(64px, 8vw, 104px); }
.closing-cta h2 { grid-column: 1 / span 7; font-size: clamp(40px, 5.6vw, 84px); line-height: 1.02; letter-spacing: -0.025em; }
.closing-cta > div { grid-column: 9 / span 4; }
.closing-cta p { color: var(--tp-navy-line); margin-bottom: 26px; }
@media (max-width: 880px) { .closing-cta h2, .closing-cta > div { grid-column: 1 / -1; } }

.site-footer { padding: 56px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; color: var(--tp-navy-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid img { width: 168px; margin-bottom: 20px; }
.footer-grid p + p { margin-top: 0.6em; }
.footer-col h3 { font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--tp-white); margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; padding: 3px 0; text-decoration: none; color: var(--tp-navy-line); transition: color 120ms var(--ease); }
.footer-col a:hover, .footer-base a:hover { color: var(--tp-white); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; }
.footer-base a { color: var(--tp-navy-line); text-decoration: none; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Compact footer for the single-purpose pages */
.footer-compact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-compact img { width: 160px; }
.footer-compact nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-compact a { color: var(--tp-navy-line); text-decoration: none; }
.footer-compact a:hover { color: var(--tp-white); }

/* ---------- Motion: one moment per page ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 520ms var(--ease) both; }
.rise-2 { animation-delay: 90ms; }
.rise-3 { animation-delay: 180ms; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
