/* Nepal and UAE homepages. Scoped to .th so no other route is affected. */

.th {
  --th-ink: #0b1f1a;
  --th-body: #3f524b;
  --th-line: #d6e2db;
  --th-tint: #f1f7f3;
  --th-green: #14a24a;
  --th-green-deep: #0b7435;
  --th-teal: #083344;
  --th-teal-soft: #0f4558;
  --th-on-teal: #c3dadd;
  --th-yellow: #f8bd1c;
  --th-yellow-deep: #e5a900;
  --th-radius: 14px;
  --th-ease: cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  color: var(--th-ink);
  caret-color: var(--th-green-deep);
  overflow-x: clip;
}

.th ::selection {
  background: var(--th-yellow);
  color: var(--th-ink);
}

.th :focus-visible {
  outline: 3px solid var(--th-yellow-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.th-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.th-section {
  padding-block: clamp(64px, 9vw, 120px);
}

.th-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.th-title {
  max-width: 18ch;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.th-title span {
  color: var(--th-green-deep);
}

.th-lede {
  max-width: 46ch;
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--th-body);
}

.th-arrow {
  flex: none;
  transition: transform 0.35s var(--th-ease);
}

.th-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 6px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--th-green-deep);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s;
}

.th-link:hover {
  text-decoration-color: currentColor;
}

.th-link:hover .th-arrow,
.th-service:hover .th-arrow,
.th-company:hover .th-arrow {
  transform: translateX(4px);
}

/* Hero */

.th-hero {
  position: relative;
  isolation: isolate;
  background: var(--th-teal);
  color: #fff;
}

.th-hero__wash,
.th-quotes__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.th-hero__grid {
  display: grid;
  gap: 32px;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.th-hero__title {
  max-width: 17ch;
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 4.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.th-hero__lede {
  max-width: 38ch;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--th-on-teal);
}

.th-hero__consult {
  max-width: 680px;
  margin-top: clamp(28px, 3.5vw, 40px);
  scroll-margin-top: 24px;
}

.th-hero__consult-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.th-hero__consult-note {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--th-on-teal);
}

.th-form {
  margin-top: 16px;
}

.th-form__row {
  display: grid;
  gap: 12px;
}

.th-field {
  display: grid;
  gap: 6px;
}

.th-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: inherit;
}

.th-field :is(input, select, textarea) {
  width: 100%;
  height: 54px;
  padding-inline: 16px;
  border: 1.5px solid transparent;
  border-radius: var(--th-radius);
  background: #fff;
  color: var(--th-ink);
  font-size: 1.0625rem;
  font-weight: 500;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.th-field textarea {
  height: auto;
  min-height: 120px;
  padding-block: 14px;
  resize: vertical;
}

.th-field :is(input, select, textarea):focus-visible {
  outline: none;
  border-color: var(--th-yellow-deep);
  border-radius: var(--th-radius);
  box-shadow: 0 0 0 4px rgb(248 189 28 / 0.35);
}

.th-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding-inline: 26px;
  border-radius: var(--th-radius);
  background: var(--th-yellow);
  color: var(--th-ink);
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    transform 0.2s var(--th-ease);
}

.th-button:hover {
  background: #ffd04a;
}

.th-button:active {
  transform: translateY(1px);
}

.th-button:focus-visible {
  border-radius: var(--th-radius);
  outline-color: #fff;
}

.th-button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.th .th-form__status {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: var(--th-radius);
  font-size: 0.9375rem;
  font-weight: 600;
}

.th-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.th-hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.th-hero__proof svg {
  color: var(--th-yellow);
}

.th-hero__figure {
  display: none;
}

.th-hero__rail {
  border-top: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(4 30 40 / 0.55);
}

.th-hero__rail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 18px;
}

.th-hero__features {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--th-on-teal);
}

.th-hero__features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.th-hero__features svg {
  color: var(--th-yellow);
}

/* Partners */

.th-partners {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--th-line);
}

.th-partners__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 12px clamp(12px, 3vw, 36px);
}

.th-partners__list a {
  display: block;
  border-radius: 8px;
}

.th-partners__list img {
  width: 100%;
  max-width: 132px;
  margin-inline: auto;
  aspect-ratio: 2;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.35s var(--th-ease);
}

.th-partners__list a:hover img {
  transform: translateY(-3px);
}

/* Services */

.th-services__list {
  display: grid;
  border-top: 1px solid var(--th-line);
}

.th-services__list li {
  border-bottom: 1px solid var(--th-line);
}

.th-service {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  height: 100%;
  padding: 26px 8px;
  transition: background-color 0.25s;
}

.th-service:hover {
  background: var(--th-tint);
}

.th-service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--th-radius);
  background: var(--th-tint);
}

.th-service:hover .th-service__icon {
  background: #fff;
}

.th-service__icon img {
  width: 30px;
  height: 30px;
}

.th-service__body {
  display: grid;
  gap: 2px;
}

.th-service__name {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.th-service__nepali {
  font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--th-green-deep);
}

.th-service__text {
  max-width: 48ch;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--th-body);
}

.th-service .th-arrow {
  margin-top: 16px;
  color: var(--th-green-deep);
}

/* Why Tapasya */

.th-why {
  background: var(--th-tint);
}

.th-why__grid {
  display: grid;
  gap: 32px;
}

.th-why__list {
  border-top: 1px solid var(--th-line);
}

.th-why__item {
  border-bottom: 1px solid var(--th-line);
}

.th-why__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  list-style: none;
  cursor: pointer;
}

.th-why__item summary::-webkit-details-marker {
  display: none;
}

.th-why__item summary svg {
  flex: none;
  color: var(--th-green-deep);
}

.th-why__plus {
  transform-origin: center;
  transition: transform 0.35s var(--th-ease);
}

.th-why__item[open] .th-why__plus {
  transform: scaleY(0);
}

.th-why__item p {
  max-width: 62ch;
  padding-bottom: 26px;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--th-body);
}

/* Testimonials */

.th-quotes {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 8vw, 104px);
  background: var(--th-teal);
  color: #fff;
}

.th-head--light .th-title {
  max-width: 16ch;
}

.th-quotes__nav {
  display: flex;
  gap: 10px;
}

.th-quotes__nav button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgb(255 255 255 / 0.45);
  border-radius: 50%;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.th-quotes__nav button:focus-visible {
  border-radius: 50%;
  outline-color: var(--th-yellow);
}

.th-quotes__nav button:not(:disabled):hover {
  border-color: var(--th-yellow);
  background: var(--th-yellow);
  color: var(--th-ink);
}

.th-quotes__nav [data-testimonial-prev] svg {
  transform: rotate(180deg);
}

.th-quotes__track {
  --th-edge: max(clamp(20px, 4vw, 40px), calc((100vw - 1240px) / 2 + clamp(20px, 4vw, 40px)));
  display: flex;
  gap: 20px;
  padding-inline: var(--th-edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--th-edge);
  scrollbar-width: none;
}

.th-quotes__track::-webkit-scrollbar {
  display: none;
}

.th-quotes__track:focus-visible {
  outline-offset: -3px;
}

.th-quote {
  display: flex;
  flex: none;
  flex-direction: column;
  width: min(82vw, 380px);
  padding: 28px;
  border-radius: var(--th-radius);
  background: var(--th-teal-soft);
  scroll-snap-align: start;
}

.th-quote__stars {
  display: flex;
  gap: 3px;
  color: var(--th-yellow);
}

.th-quote__text {
  margin-top: 18px;
  margin-bottom: 24px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.55;
}

.th-quote__name {
  margin-top: auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--th-on-teal);
}

/* Articles */

.th-articles .th-title {
  max-width: 14ch;
}

.th-articles__list {
  display: grid;
  gap: 40px 28px;
}

.th-article {
  display: grid;
  gap: 6px;
}

.th-article__media {
  display: block;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: var(--th-radius);
  background: var(--th-tint);
  aspect-ratio: 16 / 10;
}

.th-article__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--th-ease);
}

.th-article:hover .th-article__media img {
  transform: scale(1.04);
}

.th-article__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--th-body);
}

.th-article__title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.th-article:hover .th-article__title {
  color: var(--th-green-deep);
}

.th-article__text {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--th-body);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

/* Group */

.th-group {
  background: var(--th-tint);
}

.th-group__grid {
  display: grid;
  gap: 36px;
}

.th-group__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.th-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  background: #fff;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  transition:
    border-color 0.2s,
    box-shadow 0.3s var(--th-ease);
}

.th-company:hover {
  border-color: var(--th-green);
  box-shadow: 0 10px 24px -14px rgb(8 51 68 / 0.45);
}

.th-company img {
  display: none;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.th-company .th-arrow {
  color: var(--th-green-deep);
}

/* Coverage */

.th-coverage__grid {
  display: grid;
  gap: 28px;
}

.th-coverage__branches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.th-branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px 18px 8px 10px;
  border: 1.5px solid var(--th-line);
  border-radius: 999px;
  font-size: 1.0625rem;
  font-weight: 600;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.th-branch:focus-visible {
  border-radius: 999px;
}

.th-branch:hover {
  border-color: var(--th-green);
}

.th .th-branch[aria-pressed="true"] {
  border-color: var(--th-green-deep);
  background: var(--th-green-deep);
  color: #fff;
  font-weight: 700;
}

.th-coverage__map {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--th-radius);
  background: var(--th-tint);
  aspect-ratio: 4 / 3;
}

/* Closing */

.th-closing {
  padding-bottom: clamp(24px, 4vw, 48px);
}

.th-closing__grid {
  display: grid;
  gap: 28px;
  max-width: calc(1240px - 2 * clamp(20px, 4vw, 40px));
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--th-radius) * 2);
  background: var(--th-green-deep);
  color: #fff;
}

.th-closing .th-title {
  max-width: 20ch;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.th-closing__note {
  max-width: 40ch;
  margin-top: 16px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  color: #d9f0e1;
}

.th-closing .th-form {
  margin-top: 0;
}

/* UAE homepage */

.th--uae {
  --th-teal: #01201b;
  --th-teal-soft: #0d3a32;
  --th-on-teal: #c4d9d3;
  --th-tint: #f1f6f4;
}

.th-hero--photo .th-hero__grid {
  min-height: min(68vh, 620px);
  align-items: center;
  padding-bottom: clamp(40px, 5vw, 72px);
}

.th-hero__backdrop,
.th-contact__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(1 32 27 / 0.82) 0%, rgb(1 32 27 / 0.6) 34%, rgb(1 32 27 / 0.14) 66%, rgb(1 32 27 / 0) 100%);
}

.th-hero--photo .th-hero__title {
  max-width: 16ch;
}

.th-hero--photo .th-hero__rail {
  border-top-color: rgb(255 255 255 / 0.22);
  background: rgb(1 32 27 / 0.62);
}

.th-hero--photo .th-hero__lede,
.th-hero--photo .th-hero__features {
  color: #fff;
}

.th-hero--photo .th-hero__title,
.th-hero--photo .th-hero__lede {
  text-shadow: 0 2px 22px rgb(1 32 27 / 0.6);
}

@media (max-width: 639px) {
  .th-hero--photo::before {
    background: linear-gradient(180deg, rgb(1 32 27 / 0.5) 0%, rgb(1 32 27 / 0.34) 100%);
  }
}

.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.5vw, 40px);
}

.th-button--ghost {
  border: 1.5px solid rgb(255 255 255 / 0.7);
  background: transparent;
  color: #fff;
}

.th-button--ghost:hover {
  border-color: #fff;
  background: rgb(255 255 255 / 0.12);
}

.th-head--split .th-lede {
  margin-top: 0;
}

.th-glyph {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--th-radius);
  background: var(--th-tint);
}

.th-glyph svg,
.th-service__icon svg {
  color: var(--th-green-deep);
}

.th-impact__list {
  display: grid;
  gap: 32px;
}

.th-impact__list li {
  padding-top: 24px;
  border-top: 2px solid var(--th-ink);
}

.th-impact__list h3,
.th-reasons__list h3,
.th-industries__list h3 {
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.th-impact__list h3 {
  margin-top: 20px;
}

.th-impact__list p,
.th-reasons__list p {
  max-width: 48ch;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--th-body);
}

.th-services--tint,
.th-industries {
  background: var(--th-tint);
}

.th-services--tint .th-service__icon,
.th-industries .th-glyph {
  background: #fff;
}

.th-services__intro {
  max-width: 68ch;
  margin-top: 0;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.th-service--static {
  grid-template-columns: auto minmax(0, 1fr);
}

.th-service--static:hover {
  background: none;
}

.th-reasons__grid {
  display: grid;
  gap: 36px;
}

.th-reasons__photo {
  width: 100%;
  height: auto;
  border-radius: calc(var(--th-radius) * 2);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.th-reasons__list {
  margin-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--th-line);
}

.th-reasons__list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding-block: 20px;
  border-bottom: 1px solid var(--th-line);
}

.th-industries {
  padding-block: clamp(64px, 9vw, 120px);
}

.th-industries__list {
  display: grid;
  gap: 0 clamp(28px, 4vw, 56px);
}

.th-industries__list > li {
  padding-block: 28px;
  border-top: 1px solid var(--th-line);
}

.th-industries__list h3 {
  margin-top: 18px;
}

.th-industries__list ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--th-body);
}

.th-industries__list ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.th-industries__list ul svg {
  flex: none;
  color: var(--th-green-deep);
  transform: translateY(2px);
}

.th-quotes--light {
  background: #fff;
  color: var(--th-ink);
}

.th-quotes--light .th-title {
  max-width: 18ch;
}

.th-quotes--light .th-quote {
  background: var(--th-tint);
}

.th-quotes--light .th-quote__stars {
  color: var(--th-yellow-deep);
}

.th-quotes--light .th-quote__name {
  color: var(--th-ink);
}

.th-quote__role {
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--th-body);
}

.th-quotes--light .th-quotes__nav button {
  border-color: rgb(11 31 26 / 0.35);
}

.th-quotes--light .th-quotes__nav button:focus-visible {
  outline-color: var(--th-yellow-deep);
}

.th-quotes--light .th-quotes__nav button:not(:disabled):hover {
  border-color: var(--th-ink);
  background: var(--th-ink);
  color: #fff;
}

.th-contact {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--th-teal);
  color: #fff;
  scroll-margin-top: 72px;
}

.th-contact__backdrop {
  z-index: -1;
  opacity: 0.14;
}

.th-contact__grid {
  display: grid;
  gap: 36px;
}

.th-contact .th-lede {
  color: var(--th-on-teal);
}

.th-contact__data {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.th-contact__data dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--th-on-teal);
}

.th-contact__data dd {
  margin-top: 2px;
  font-size: 1.125rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.th-contact__data a {
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / 0.4);
  text-underline-offset: 4px;
}

.th-contact__data a:hover {
  text-decoration-color: var(--th-yellow);
}

.th-contact__map {
  width: 100%;
  height: auto;
  margin-top: 32px;
  border: 0;
  border-radius: var(--th-radius);
  background: var(--th-teal-soft);
  aspect-ratio: 16 / 9;
}

.th-form--card {
  align-self: start;
  margin-top: 0;
  padding: clamp(22px, 4vw, 40px);
  border-radius: calc(var(--th-radius) * 2);
  background: #fff;
  color: var(--th-ink);
  box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.6);
}

.th-form__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.th-form__stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.th-form--card .th-field :is(input, select, textarea) {
  border-color: var(--th-line);
}

.th-form--card .th-field :is(input, select, textarea):focus-visible {
  border-color: var(--th-green-deep);
  box-shadow: 0 0 0 4px rgb(11 116 53 / 0.18);
}

.th-form--card .th-button:focus-visible {
  outline-color: var(--th-ink);
}

.th .th-form--card .th-form__status {
  border-color: var(--th-line);
}

/* Wider screens */

@media (min-width: 640px) {
  .th-form__stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-field--wide {
    grid-column: 1 / -1;
  }

  .th-industries__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-hero__features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-form__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }

  .th-partners__list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .th-articles__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-group__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .th-head--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
  }

  .th-impact__list,
  .th-industries__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-reasons__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }

  .th-contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(40px, 6vw, 88px);
  }

  .th-services__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 5vw, 72px);
  }

  .th-service {
    padding-inline: 12px;
  }

  .th-why__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 96px);
  }

  .th-why__head {
    position: sticky;
    top: 32px;
    align-self: start;
  }

  .th-articles__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-group__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }

  .th-group__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-coverage__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
    gap: clamp(40px, 6vw, 96px);
  }

  .th-coverage__branches {
    flex-direction: column;
    align-items: stretch;
    max-width: 280px;
  }

  .th-coverage__map {
    max-height: 560px;
    aspect-ratio: 16 / 10;
  }

  .th-closing__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }

  .th-closing .th-form__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .th-closing .th-button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .th-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    padding-bottom: 0;
  }

  .th-hero__copy {
    padding-bottom: clamp(48px, 5vw, 72px);
  }

  .th-hero__figure {
    position: relative;
    display: block;
    align-self: end;
  }

  .th-hero__figure::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: min(100%, 440px);
    height: 78%;
    border-radius: 220px 220px 0 0;
    background: var(--th-teal-soft);
  }

  .th-hero__photo {
    position: relative;
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-left: auto;
  }

  .th-hero__skribble {
    position: absolute;
    right: -24px;
    bottom: 40px;
    width: 190px;
    height: auto;
  }

  .th-group__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-company {
    align-items: end;
    padding: 20px;
  }

  .th-hero__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
  }

  .th-company img {
    display: block;
    grid-column: 1 / -1;
    margin-bottom: 20px;
  }
}

/* One authored moment: the hero settles in on load. */

@media (prefers-reduced-motion: no-preference) {
  @keyframes th-rise {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  @keyframes th-reveal {
    from {
      opacity: 0;
      clip-path: inset(100% 0 0 0);
      transform: translateY(24px);
    }
    to {
      clip-path: inset(0 0 0 0);
    }
  }

  .th-hero__title,
  .th-hero__lede,
  .th-hero__consult,
  .th-hero__actions,
  .th-hero__proof {
    animation: th-rise 0.8s var(--th-ease) backwards;
  }

  .th-hero__actions {
    animation-delay: 0.16s;
  }

  .th-hero__lede {
    animation-delay: 0.08s;
  }

  .th-hero__consult {
    animation-delay: 0.16s;
  }

  .th-hero__proof {
    animation-delay: 0.24s;
  }

  .th-hero__photo {
    animation: th-reveal 1s var(--th-ease) 0.1s backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th *,
  .th *::before,
  .th *::after {
    transition-duration: 0.01ms !important;
  }
}
