/* Hub pages (services, work, about). Classes: tp-hub-*, tp-work-*. */

/* ---------- Section rhythm and headings ---------- */
.tp-hub-section {
  padding-block: clamp(72px, 9vw, 128px);
  background: #fff;
}
.tp-hub-section--soft { background: var(--tm-soft); }
.tp-hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.tp-hub-head .tm-eyebrow { margin-bottom: 18px; }
.tp-hub-title {
  margin: 0;
  color: var(--tm-ink);
  font: 500 clamp(2.2rem, 4.6vw, 3.9rem)/1.04 Gellix, Arial, sans-serif;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.tp-hub-title span { color: #8a92a6; }
.tp-hub-intro {
  max-width: 440px;
  margin: 0;
  color: var(--tm-text);
  font-size: 1.05rem;
  line-height: 1.6;
}
.tp-hub-free {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6ecfb;
  color: var(--tm-blue);
  font: 500 .64rem/1 var(--tm-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ---------- Photo cards (shared by offers, AI work, cloud work) ---------- */
.tp-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-work-item--wide { grid-column: 1 / -1; }
.tp-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border-radius: 20px;
  background: radial-gradient(120% 100% at 85% 0%, #1d2f6b 0%, var(--tm-ink) 65%);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.tp-work-item--wide .tp-work-card { aspect-ratio: 16 / 7; }
.tp-work-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1);
}
.tp-work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 18, 24, .45) 0%, rgba(16, 18, 24, 0) 22%),
    linear-gradient(0deg, rgba(16, 18, 24, .92) 0%, rgba(16, 18, 24, .62) 34%, rgba(16, 18, 24, 0) 66%);
}
.tp-work-tag {
  position: absolute;
  top: clamp(18px, 2vw, 28px);
  left: clamp(20px, 2.4vw, 36px);
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(16, 18, 24, .35);
  font: 500 .66rem/1 var(--tm-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tp-work-body {
  position: absolute;
  inset: auto clamp(20px, 2.4vw, 36px) clamp(20px, 2.4vw, 34px);
  display: grid;
  gap: 12px;
  padding-right: 64px;
}
.tp-work-client {
  margin: 0;
  color: #fff;
  font: 600 clamp(2rem, 4.2vw, 3.4rem)/.95 Gellix, Arial, sans-serif;
  letter-spacing: -.045em;
}
.tp-work-item--wide .tp-work-client { font-size: clamp(2.3rem, 6vw, 5.2rem); }
.tp-work-result {
  max-width: 46ch;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}
.tp-work-item--wide .tp-work-result { max-width: 56ch; }
.tp-work-go {
  position: absolute;
  right: clamp(20px, 2.4vw, 36px);
  bottom: clamp(20px, 2.4vw, 34px);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: var(--tm-ink);
  font: 1.2rem/1 Arial, sans-serif;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background-color .3s, color .3s;
}
.tp-work-card:hover .tp-work-photo,
.tp-work-card:focus-visible .tp-work-photo { transform: scale(1.03); }
.tp-work-card:hover .tp-work-go,
.tp-work-card:focus-visible .tp-work-go {
  transform: translateX(4px);
  background: var(--tm-blue);
  color: #fff;
}
.tp-work-card:focus-visible {
  outline: 3px solid var(--tm-blue);
  outline-offset: 4px;
}

/* Cloud case studies: six-column bento, smaller names. */
.tp-work-grid--cloud { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tp-work-grid--cloud .tp-work-item { grid-column: span 2; }
.tp-work-grid--cloud .tp-work-item--half { grid-column: span 3; }
.tp-work-grid--cloud .tp-work-item--wide { grid-column: 1 / -1; }
.tp-work-grid--cloud .tp-work-card { aspect-ratio: 4 / 4.4; }
.tp-work-grid--cloud .tp-work-item--half .tp-work-card { aspect-ratio: 16 / 11; }
.tp-work-grid--cloud .tp-work-item--wide .tp-work-card { aspect-ratio: 16 / 6.4; }
.tp-work-grid--cloud .tp-work-client { font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.tp-work-grid--cloud .tp-work-item--wide .tp-work-client { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.tp-work-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 4px;
  font: 500 .72rem/1.4 var(--tm-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #afc3ff;
}
.tp-work-stats strong {
  color: #fff;
  font: 600 1.05rem/1 Gellix, Arial, sans-serif;
  letter-spacing: -.01em;
  margin-right: 6px;
}

/* ---------- Services: two offers ---------- */
.tp-hub-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-hub-offer .tp-work-card { aspect-ratio: 4 / 3.3; }
.tp-hub-offer .tp-work-client { font-size: clamp(2.2rem, 4.4vw, 3.8rem); }
.tp-hub-facts {
  display: grid;
  margin: 0;
  padding: 8px 4px 0;
}
.tp-hub-facts div {
  display: grid;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--tm-line);
}
.tp-hub-facts dt {
  color: var(--tm-blue);
  font: 500 .68rem/1.7 var(--tm-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tp-hub-facts dd {
  margin: 0;
  color: var(--tm-ink);
  line-height: 1.5;
}

/* ---------- Dark band (accelerators, how we work) ---------- */
.tp-hub-band {
  --tp-hub-muted: #a3abbd;
  padding-block: clamp(80px, 9vw, 140px);
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(23, 72, 199, .32), transparent 70%),
    var(--tm-ink);
}
.tp-hub-band .tm-eyebrow { color: #8fb0ff; }
.tp-hub-band .tp-hub-title { color: #fff; }
.tp-hub-band .tp-hub-title span { color: var(--tp-hub-muted); }
.tp-hub-band .tp-hub-intro { color: var(--tp-hub-muted); }
.tp-hub-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-hub-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tp-hub-step .tp-photo {
  --tp-ratio: 4 / 3;
  margin-bottom: 26px;
  border-radius: 16px;
  background: radial-gradient(120% 100% at 85% 0%, #1d2f6b 0%, #191c25 65%);
}
.tp-hub-step .tp-photo img { transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.tp-hub-step:hover .tp-photo img { transform: scale(1.03); }
.tp-hub-num {
  color: #8fb0ff;
  font: 500 .72rem/1 var(--tm-mono);
  letter-spacing: .14em;
}
.tp-hub-step-name {
  margin: 14px 0 12px;
  color: #fff;
  font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.1 Gellix, Arial, sans-serif;
  letter-spacing: -.03em;
}
.tp-hub-step-name .tp-hub-free { margin-left: 8px; background: rgba(143, 176, 255, .16); color: #afc3ff; }
.tp-hub-step-copy {
  margin: 0 0 18px;
  color: var(--tp-hub-muted);
  line-height: 1.6;
}
.tp-hub-keep {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 16px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1.45;
}
.tp-hub-keep li::before {
  content: '→';
  margin-right: 10px;
  color: #8fb0ff;
}
.tp-hub-keep-label {
  color: var(--tp-hub-muted);
  font: 500 .66rem/1.6 var(--tm-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.tp-hub-band-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font: 500 .92rem/1 Gellix, Arial, sans-serif;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tp-hub-band-link:hover,
.tp-hub-band-link:focus-visible { background: #fff; border-color: #fff; color: var(--tm-ink); }
.tp-hub-band-link:focus-visible { outline: 3px solid #8fb0ff; outline-offset: 3px; }

/* ---------- Quiet tier rows (AI on AWS) ---------- */
.tp-hub-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tm-line);
}
.tp-hub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 12px 48px;
  align-items: baseline;
  padding-block: 28px;
  border-bottom: 1px solid var(--tm-line);
}
.tp-hub-row-name {
  margin: 0;
  color: var(--tm-ink);
  font: 500 clamp(1.3rem, 1.8vw, 1.6rem)/1.2 Gellix, Arial, sans-serif;
  letter-spacing: -.02em;
}
.tp-hub-row-name .tp-hub-free { margin-left: 8px; }
.tp-hub-row p { margin: 0; color: var(--tm-text); line-height: 1.6; }
.tp-hub-note {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--tm-text);
  font-size: .92rem;
  line-height: 1.6;
}

/* ---------- Statement + stats (services proof, about story) ---------- */
.tp-hub-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px 80px;
  align-items: start;
}
.tp-hub-story-copy p {
  margin: 0 0 18px;
  color: var(--tm-text);
  font-size: 1.08rem;
  line-height: 1.7;
}
.tp-hub-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 28px;
}
.tp-hub-stat {
  padding-top: 16px;
  border-top: 2px solid var(--tm-ink);
}
.tp-hub-stat strong {
  display: block;
  color: var(--tm-blue);
  font: 500 clamp(2.2rem, 4vw, 3.2rem)/1 Gellix, Arial, sans-serif;
  letter-spacing: -.03em;
}
.tp-hub-stat span {
  display: block;
  margin-top: 10px;
  color: var(--tm-text);
  font: 500 .68rem/1.6 var(--tm-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- About: credentials, team ---------- */
.tp-hub-creds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-block: 1px solid var(--tm-line);
}
.tp-hub-cred {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 36px clamp(20px, 3vw, 44px);
}
.tp-hub-cred + .tp-hub-cred { border-left: 1px solid var(--tm-line); }
.tp-hub-cred .tp-hub-cred-mark {
  display: flex;
  align-items: center;
  min-height: 72px;
  margin: 0;
  color: var(--tm-ink);
  font: 600 2.1rem/1 Gellix, Arial, sans-serif;
  letter-spacing: -.03em;
}
.tp-hub-cred .tp-hub-cred-mark--num { color: var(--tm-blue); font-size: 3.6rem; }
.tp-hub-cred h3 {
  margin: 0;
  color: var(--tm-ink);
  font: 500 1.3rem/1.2 Gellix, Arial, sans-serif;
}
.tp-hub-cred p { margin: 0; color: var(--tm-text); line-height: 1.6; }
.tp-hub-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tp-hub-person {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--tm-line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .2s, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.tp-hub-person:hover { border-color: var(--tm-blue); transform: translateY(-2px); }
.tp-hub-initials {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(120% 120% at 80% 0%, #1d2f6b 0%, var(--tm-ink) 70%);
  color: #fff;
  font: 500 1.15rem/1 Gellix, Arial, sans-serif;
  letter-spacing: .02em;
}
.tp-hub-person h3 {
  margin: 0 0 6px;
  color: var(--tm-ink);
  font: 500 1.2rem/1.2 Gellix, Arial, sans-serif;
}
.tp-hub-person p { margin: 0; color: var(--tm-text); font-size: .95rem; line-height: 1.45; }
.tp-hub-principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.tp-hub-principle {
  min-width: 0;
  padding: 32px clamp(16px, 2vw, 32px) 0 0;
}
.tp-hub-principle + .tp-hub-principle {
  padding-left: clamp(16px, 2vw, 32px);
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.tp-hub-principle h3 {
  margin: 14px 0 10px;
  color: #fff;
  font: 500 clamp(1.4rem, 2vw, 1.8rem)/1.1 Gellix, Arial, sans-serif;
  letter-spacing: -.03em;
}
.tp-hub-principle p { margin: 0; color: var(--tp-hub-muted, #a3abbd); line-height: 1.6; }
.tp-hub-terms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.tp-hub-terms li {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.5;
}

/* ---------- Closing CTA panel ---------- */
.tp-hub-cta {
  padding-block: 40px 110px;
  background: #fff;
}
.tp-hub-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 440px;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 140% at 85% 0%, #1d2f6b 0%, var(--tm-ink) 60%);
  color: #fff;
  isolation: isolate;
}
.tp-hub-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 18, 24, .88) 0%, rgba(16, 18, 24, .6) 45%, rgba(16, 18, 24, .1) 100%);
}
.tp-hub-panel-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-hub-panel-body {
  max-width: 640px;
  padding: 64px clamp(28px, 6vw, 80px);
}
.tp-hub-panel-body .tm-eyebrow { color: #afc3ff; }
.tp-hub-panel-title {
  margin: 18px 0 32px;
  color: #fff;
  font: 500 clamp(2rem, 1.3rem + 2.4vw, 3.4rem)/1.06 Gellix, Arial, sans-serif;
  letter-spacing: -.02em;
}
.tp-hub-panel .tm-btn { background: #fff; color: var(--tm-ink); }
.tp-hub-panel .tm-btn:hover { background: #e6ecfb; }
.tp-hub-panel .tm-btn:focus-visible { outline: 3px solid #afc3ff; outline-offset: 3px; }
.tp-hub-panel-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .75);
  font-size: .86rem;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .tp-hub-head,
  .tp-hub-story { grid-template-columns: 1fr; }
  .tp-hub-steps,
  .tp-hub-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-hub-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-hub-principle:nth-child(3) { padding-left: 0; border-left: 0; }
  .tp-work-grid--cloud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-work-grid--cloud .tp-work-item,
  .tp-work-grid--cloud .tp-work-item--half { grid-column: span 1; }
  .tp-work-grid--cloud .tp-work-card,
  .tp-work-grid--cloud .tp-work-item--half .tp-work-card { aspect-ratio: 4 / 4.4; }
  .tp-hub-row { grid-template-columns: minmax(0, 1fr) auto; }
  .tp-hub-row p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 800px) {
  .tp-work-grid,
  .tp-hub-offers,
  .tp-hub-steps,
  .tp-hub-team,
  .tp-hub-creds,
  .tp-hub-terms,
  .tp-hub-principles,
  .tp-work-grid--cloud { grid-template-columns: minmax(0, 1fr); }
  .tp-work-card,
  .tp-work-item--wide .tp-work-card,
  .tp-hub-offer .tp-work-card,
  .tp-work-grid--cloud .tp-work-card,
  .tp-work-grid--cloud .tp-work-item--half .tp-work-card,
  .tp-work-grid--cloud .tp-work-item--wide .tp-work-card { aspect-ratio: 4 / 5; border-radius: 16px; }
  .tp-work-client,
  .tp-work-item--wide .tp-work-client,
  .tp-hub-offer .tp-work-client,
  .tp-work-grid--cloud .tp-work-client,
  .tp-work-grid--cloud .tp-work-item--wide .tp-work-client { font-size: clamp(2rem, 9vw, 2.6rem); }
  .tp-work-go { width: 40px; height: 40px; }
  .tp-work-body { padding-right: 52px; }
  .tp-hub-cred + .tp-hub-cred { border-left: 0; border-top: 1px solid var(--tm-line); }
  .tp-hub-cred { padding-inline: 0; }
  .tp-hub-principle,
  .tp-hub-principle + .tp-hub-principle { padding: 28px 0; border-left: 0; }
  .tp-hub-principle + .tp-hub-principle { border-top: 1px solid rgba(255, 255, 255, .14); }
  .tp-hub-facts div { grid-template-columns: minmax(0, 1fr); }
  .tp-hub-row { grid-template-columns: minmax(0, 1fr); }
  .tp-hub-row p { grid-row: auto; }
  .tp-hub-cta { padding-block: 24px 70px; }
  .tp-hub-panel { min-height: 0; align-items: flex-end; }
  .tp-hub-panel::after { background: linear-gradient(180deg, rgba(16, 18, 24, .35) 0%, rgba(16, 18, 24, .9) 70%); }
  .tp-hub-panel-body { padding: 120px 24px 32px; }
  .tp-hub-panel .tm-btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-work-photo,
  .tp-work-go,
  .tp-hub-step .tp-photo img,
  .tp-hub-person { transition: none; }
  .tp-work-card:hover .tp-work-photo,
  .tp-work-card:focus-visible .tp-work-photo,
  .tp-work-card:hover .tp-work-go,
  .tp-work-card:focus-visible .tp-work-go,
  .tp-hub-step:hover .tp-photo img,
  .tp-hub-person:hover { transform: none; }
}

/* Body copy sizes: the Webflow base enlarges bare p on small screens. */
.tp-hub-step-copy,
.tp-hub-row p,
.tp-hub-cred p,
.tp-hub-principle p { font-size: 1rem; }
.tp-hub-person p { font-size: .95rem; }
.tp-hub-intro { font-size: 1.05rem; }
.tp-hub-story-copy p { font-size: 1.08rem; }
.tp-hub-note { font-size: .92rem; }
.tp-hub-panel-note { font-size: .86rem; }

/* FAQ keeps its Webflow markup (site-ui.js enhances it); align it to the grid. */
.tp-hub-faq .section_questions-wrapper { gap: 40px 80px; }
.tp-hub-faq .section_questions-left .tm-eyebrow { margin-bottom: 18px; }
