/* AWS group: aws-cloud-security, well-architected-review, aws-cost-optimisation,
   book-well-architected-review. Builds on tp-hero (pages.css) and the tm-/sx-
   service sections (site-refresh.css). */

/* Hero meta strip doubles as the on-page navigation. */
.tp-aws-meta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-left: auto;
}
.tp-aws-meta-nav a {
  text-decoration: none;
}
.tp-aws-meta-nav a:hover,
.tp-aws-meta-nav a:focus-visible {
  text-decoration: underline;
}
.tp-hero .tp-hero-meta a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.tp-hero .tp-hero-title {
  overflow-wrap: anywhere;
}

/* At a glance: deliverables first, then the illustrative format. */
.tm-service-expanded .tp-aws-glance {
  padding-block: 96px 88px;
}
.tp-aws-glance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}
.tm-service-expanded .tp-aws-glance h2 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  margin: 0;
  text-wrap: balance;
}
.tp-aws-glance-note {
  margin: 20px 0 0;
  max-width: 520px;
  color: var(--tm-text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.tm-service-page .tp-aws-glance .tm-deliverables {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 36px;
  padding: 0;
  border-bottom: 0;
}
.tm-service-page .tp-aws-glance .tm-deliverable {
  gap: 18px;
  padding-block: 18px;
  border-bottom: 1px solid var(--tm-line);
}
.tm-service-page .tp-aws-glance .tm-deliverable strong {
  font: 500 1.2rem/1.3 Gellix, Arial, sans-serif;
  letter-spacing: -.01em;
}
.tm-service-page .tp-aws-glance .tm-deliverable p {
  font-size: .95rem;
  margin-top: 4px;
}
.tm-service-page .tp-aws-glance .tm-deliverable > span {
  padding-top: 6px;
}
.tp-aws-glance .tm-service-visual figcaption {
  font-family: var(--tm-mono);
  letter-spacing: .04em;
}

/* Dark ink band: why this matters for AI workloads. */
.tm-service-expanded .tp-aws-ai {
  padding-block: 112px;
  background: var(--tm-ink);
  color: #fff;
}
.tp-aws-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 72px;
  align-items: end;
}
.tp-aws-ai .tm-eyebrow {
  color: #fff;
}
.tp-aws-ai .tm-eyebrow:before {
  background: #8fa9ff;
}
.tm-service-expanded .tp-aws-ai h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 4.4vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.tp-aws-ai h2 span {
  color: rgba(255, 255, 255, .5);
}
.tp-aws-ai-copy p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  line-height: 1.7;
}
.tp-aws-ai-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  color: #fff;
  font-size: .9rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.tp-aws-ai-link:hover,
.tp-aws-ai-link:focus-visible {
  background: #fff;
  color: var(--tm-ink);
}
.tp-aws-ai-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Automatum proof as a photo card with a scrim. */
.ai-case-link.tp-aws-case {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 340px;
  background: var(--tm-ink);
}
.tp-aws-case-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.ai-case-link.tp-aws-case::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(16, 18, 24, .92) 0, rgba(16, 18, 24, .45) 55%, rgba(16, 18, 24, .15) 100%);
}
.ai-case-link.tp-aws-case:hover {
  background: var(--tm-ink);
}
.ai-case-link.tp-aws-case:hover .tp-aws-case-photo {
  transform: scale(1.04);
}
.ai-case-link.tp-aws-case:focus-visible {
  outline: 3px solid var(--tm-blue);
  outline-offset: 4px;
}
.ai-case-link.tp-aws-case > span:first-of-type {
  font: .68rem/1.6 var(--tm-mono);
  letter-spacing: .1em;
}

/* Closing: a photo panel, as on Home. */
.tm-service-expanded .tm-service-closing.tp-aws-closing {
  padding-block: 32px 96px;
  background: transparent;
}
.tm-service-closing.tp-aws-closing .tm-wrap {
  display: block;
}
.tp-aws-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 440px;
  padding: 64px;
  border-radius: 16px;
  background: var(--tm-ink);
  color: #fff;
}
.tp-aws-panel-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tp-aws-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 18, 24, .85) 0, rgba(16, 18, 24, .35) 60%, rgba(16, 18, 24, .1) 100%),
    linear-gradient(0deg, rgba(16, 18, 24, .6) 0, rgba(16, 18, 24, 0) 60%);
}
.tp-aws-panel-body {
  max-width: 560px;
}
.tp-aws-panel .tm-eyebrow {
  color: #fff;
}
.tp-aws-panel .tm-eyebrow:before {
  background: #8fa9ff;
}
.tm-service-expanded .tp-aws-panel h2,
.tp-aws-lp .tp-aws-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.tm-service-closing.tp-aws-closing .tp-aws-panel p,
.tp-aws-lp .tp-aws-panel p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, .82);
}
.tp-aws-panel .tm-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tp-aws-case-photo {
    transition: none;
  }
}
@media (max-width: 991px) {
  .tp-aws-glance-grid,
  .tp-aws-ai-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tp-aws-meta-nav {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .tm-service-expanded .tp-aws-glance {
    padding-block: 56px 48px;
  }
  .tm-service-expanded .tp-aws-ai {
    padding-block: 72px;
  }
  .tp-aws-panel {
    min-height: 420px;
    padding: 32px 24px;
  }
  .tm-service-expanded .tm-service-closing.tp-aws-closing {
    padding-block: 8px 56px;
  }
  .tp-aws-panel .tm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Booking landing page (book-well-architected-review.html). */
.tp-aws-lp .tp-hero {
  min-height: max(500px, min(62svh, 640px));
}
.tp-aws-lp-section {
  padding-block: 96px;
}
.tp-aws-lp-section + .tp-aws-lp-section {
  border-top: 1px solid var(--tm-line);
}
.tp-aws-lp-section.is-soft {
  background: var(--tm-soft);
}
.tp-aws-lp-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}
.tp-aws-lp h2 {
  margin: 0;
  color: var(--tm-ink);
  font: 500 clamp(2rem, 3.6vw, 3.2rem)/1.08 Gellix, Arial, sans-serif;
  letter-spacing: -.04em;
  text-transform: none;
  text-wrap: balance;
}
.tp-aws-lp-head > p,
.tp-aws-lp-copy p {
  margin: 0;
  color: var(--tm-text);
  font-size: 1.05rem;
  line-height: 1.7;
}
.tp-aws-lp-copy p + p {
  margin-top: 16px;
}
.tp-aws-lp-copy {
  max-width: 720px;
}
.tp-aws-lp-lead {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--tm-blue);
  color: var(--tm-ink);
  font: 500 1.35rem/1.4 Gellix, Arial, sans-serif;
  letter-spacing: -.01em;
}

/* Effort figures. */
.tp-aws-lp-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--tm-ink);
}
.tp-aws-lp-figures li {
  padding: 28px 32px 0 0;
}
.tp-aws-lp-figures li + li {
  padding-left: 32px;
  border-left: 1px solid var(--tm-line);
}
.tp-aws-lp-figure {
  display: block;
  color: var(--tm-ink);
  font: 500 clamp(2.4rem, 4vw, 3.6rem)/1 Gellix, Arial, sans-serif;
  letter-spacing: -.045em;
}
.tp-aws-lp-figures p {
  margin: 16px 0 0;
  color: var(--tm-text);
  font-size: .98rem;
  line-height: 1.65;
}

/* Itemised deliverables. */
.tp-aws-lp-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tp-aws-item;
  border-top: 1px solid var(--tm-line);
}
.tp-aws-lp-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  padding-block: 20px;
  border-bottom: 1px solid var(--tm-line);
  color: var(--tm-ink);
  font-size: 1.1rem;
  line-height: 1.5;
  counter-increment: tp-aws-item;
}
.tp-aws-lp-list li::before {
  content: counter(tp-aws-item, decimal-leading-zero) ' /';
  padding-top: 5px;
  color: var(--tm-blue);
  font: .7rem var(--tm-mono);
}
.tp-aws-lp-list-foot {
  margin: 24px 0 0;
  color: var(--tm-text);
  font-size: .95rem;
}

/* Fit / not a fit. */
.tp-aws-lp-fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tp-aws-lp-fit > div {
  padding: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--tm-line);
}
.tp-aws-lp-fit > div.is-no {
  background: var(--tm-ink);
  border-color: var(--tm-ink);
  color: #fff;
}
.tp-aws-lp-fit h3 {
  margin: 12px 0 8px;
  font: 500 1.6rem/1.2 Gellix, Arial, sans-serif;
  letter-spacing: -.02em;
  color: inherit;
}
.tp-aws-lp-fit .tm-eyebrow {
  margin: 0;
}
.tp-aws-lp-fit .is-no .tm-eyebrow {
  color: #fff;
}
.tp-aws-lp-fit ul {
  margin: 0;
  padding-left: 20px;
}
.tp-aws-lp-fit li {
  margin-top: 12px;
  line-height: 1.55;
}
.tp-aws-lp-fit .is-no li {
  color: rgba(255, 255, 255, .82);
}

/* Experience: dark band with real Automatum figures. */
.tp-aws-lp-ink {
  padding-block: 112px;
  background: var(--tm-ink);
  color: #fff;
}
.tp-aws-lp-ink h2 {
  color: #fff;
}
.tp-aws-lp-ink h2 span {
  color: rgba(255, 255, 255, .5);
}
.tp-aws-lp-ink .tm-eyebrow {
  color: #fff;
}
.tp-aws-lp-ink .tm-eyebrow:before {
  background: #8fa9ff;
}
.tp-aws-lp-ink .tp-aws-lp-head > p {
  color: rgba(255, 255, 255, .78);
}
.tp-aws-lp-ink .tp-aws-lp-figures {
  border-top-color: rgba(255, 255, 255, .5);
}
.tp-aws-lp-ink .tp-aws-lp-figures li + li {
  border-left-color: rgba(255, 255, 255, .18);
}
.tp-aws-lp-ink .tp-aws-lp-figure {
  color: #fff;
}
.tp-aws-lp-ink .tp-aws-lp-figures p {
  color: rgba(255, 255, 255, .72);
}
.tp-aws-lp-ink a {
  color: #fff;
}

/* Booking widget and FAQ. */
.tp-aws-lp .lp-book {
  padding: 24px;
  border: 1px solid var(--tm-line);
  border-radius: 16px;
  background: #fff;
}
.tp-aws-lp .lp-book p {
  margin: 0;
  font-size: 1rem;
  color: var(--tm-text);
  line-height: 1.6;
}
.tp-aws-lp .lp-faq_item {
  padding-block: 24px;
  border-bottom: 1px solid var(--tm-line);
}
.tp-aws-lp .lp-faq_q {
  color: var(--tm-ink);
  font: 500 1.2rem/1.35 Gellix, Arial, sans-serif;
}
.tp-aws-lp .lp-faq_a {
  margin: 10px 0 0;
  color: var(--tm-text);
  line-height: 1.65;
}
.tp-aws-lp .tp-aws-closing {
  padding-block: 0 96px;
}

@media (max-width: 800px) {
  .tp-aws-lp-section,
  .tp-aws-lp-ink {
    padding-block: 64px;
  }
  .tp-aws-lp-head,
  .tp-aws-lp-fit {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .tp-aws-lp-head {
    margin-bottom: 32px;
  }
  .tp-aws-lp-figures {
    grid-template-columns: 1fr;
  }
  .tp-aws-lp-figures li,
  .tp-aws-lp-figures li + li {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--tm-line);
  }
  .tp-aws-lp-ink .tp-aws-lp-figures li {
    border-bottom-color: rgba(255, 255, 255, .18);
  }
  .tp-aws-lp-fit > div {
    padding: 28px 24px;
  }
  .tp-aws-lp-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    font-size: 1rem;
  }
  .tp-aws-lp .tp-aws-closing {
    padding-block: 0 56px;
  }
}
