/* ==========================================================================
   TH Construction theme
   New design system for the public site. Everything is scoped under th-*
   classes so it can live alongside the old template CSS while pages are
   redesigned one by one.
   ========================================================================== */

:root {
  --th-navy: #27285E;
  --th-navy-deep: #17183E;
  --th-teal: #6CC4C0;
  --th-teal-dark: #1F6F6B;
  --th-teal-tint: #E3F4F3;
  --th-ink: #16161D;
  --th-body: #4A4C5C;
  --th-muted: #5B5D6B;
  --th-line: #E6E8EE;
  --th-surface: #F5F6F8;
  --th-on-navy: #C4C7DC;
  --th-font-head: "Montserrat", system-ui, sans-serif;
  --th-font-body: "Inter", system-ui, sans-serif;
  --th-radius: 10px;
  --th-container: 1200px;
}

/* ---- Base (scoped) ---------------------------------------------------- */

:is(.th-header, .th-main, .th-footer) {
  font-family: var(--th-font-body);
  color: var(--th-ink);
  line-height: 1.6;
  font-size: 16px;
}

:is(.th-header, .th-main, .th-footer) :is(h1, h2, h3, h4) {
  font-family: var(--th-font-head);
  color: var(--th-navy);
  line-height: 1.15;
  margin: 0;
}

:is(.th-header, .th-main, .th-footer) p {
  color: var(--th-body);
  margin: 0;
}

:is(.th-header, .th-main, .th-footer) a {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

:is(.th-header, .th-main, .th-footer) a:focus-visible,
:is(.th-header, .th-main, .th-footer) button:focus-visible {
  outline: 3px solid var(--th-teal);
  outline-offset: 2px;
}

.th-container {
  max-width: var(--th-container);
  margin: 0 auto;
  padding: 0 24px;
}

.th-section {
  padding: 96px 0;
}

.th-section--grey {
  background: var(--th-surface);
}

.th-eyebrow {
  display: block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-teal-dark);
}

.th-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
}

.th-lead {
  margin-top: 16px !important;
  font-size: 17px;
}

.th-section-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.th-section-head--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.th-link {
  font-weight: 600;
  color: var(--th-teal-dark);
  text-decoration: none;
}

.th-link:hover {
  color: var(--th-navy);
}

/* ---- Buttons ---------------------------------------------------------- */

.th-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  border: 1.5px solid transparent;
}

.th-btn--accent {
  background: var(--th-teal);
  color: var(--th-navy-deep);
}

.th-btn--accent:hover {
  background: #8FD4D1;
  color: var(--th-navy-deep);
}

.th-btn--primary {
  background: var(--th-teal-dark);
  color: #fff;
}

.th-btn--primary:hover {
  background: var(--th-navy);
  color: #fff;
}

.th-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.th-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---- Header ----------------------------------------------------------- */

.th-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--th-line);
}

.th-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 84px;
}

.th-header__logo img {
  display: block;
  height: 72px;
  width: auto;
}

@media (max-width: 767px) {
  .th-header__logo img {
    height: 56px;
  }
}

.th-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.th-nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-nav__link {
  color: var(--th-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.th-nav__link:hover,
.th-nav__link.is-active {
  color: var(--th-navy);
  border-bottom-color: var(--th-teal);
}

.th-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--th-line) !important;
  border-radius: 6px;
  background: #fff;
  color: var(--th-navy);
  cursor: pointer;
}

@media (max-width: 991px) {
  .th-nav__toggle {
    display: inline-flex;
  }

  .th-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--th-line);
    box-shadow: 0 12px 24px rgba(23, 24, 62, 0.08);
  }

  .th-nav.is-open {
    display: flex;
  }

  .th-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .th-nav__link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--th-line);
  }

  .th-nav__link:hover,
  .th-nav__link.is-active {
    border-bottom-color: var(--th-line);
    color: var(--th-teal-dark);
  }

  .th-nav .th-btn {
    margin-top: 18px;
    text-align: center;
  }
}

/* ---- Hero ------------------------------------------------------------- */

.th-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--th-navy);
  color: #fff;
}

.th-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
}

.th-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 24, 62, 0.93) 0%, rgba(23, 24, 62, 0.8) 45%, rgba(23, 24, 62, 0.25) 100%);
}

.th-hero__content {
  position: relative;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 56px;
}

.th-hero .th-eyebrow {
  color: var(--th-teal);
}

.th-hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.th-hero__intro {
  max-width: 560px;
  margin-top: 22px !important;
  font-size: 18px;
  color: #DADCEB !important;
}

.th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.th-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 24px;
  max-width: 820px;
  margin: 64px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.th-stats dt {
  order: 2;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--th-on-navy);
}

.th-stats dd {
  order: 1;
  margin: 0;
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  color: #fff;
}

.th-stats > div {
  display: flex;
  flex-direction: column;
}

/* ---- About ------------------------------------------------------------ */

.th-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}

.th-split p + p {
  margin-top: 14px;
}

.th-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 20px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.th-checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.th-checks svg {
  flex: none;
  margin-top: 3px;
}

.th-checks strong {
  display: block;
  color: var(--th-navy);
}

.th-checks span {
  font-size: 15px;
  color: var(--th-body);
}

.th-figure {
  position: relative;
  margin: 0;
}

.th-figure img {
  display: block;
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--th-radius);
}

.th-figure figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  color: var(--th-ink);
}

.th-figure figcaption strong {
  color: var(--th-navy);
}

/* ---- Cards ------------------------------------------------------------ */

.th-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}

.th-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
}

.th-card__img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.th-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px 30px;
  flex-grow: 1;
}

.th-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-teal-dark);
}

.th-card h3 {
  font-size: 19px;
  font-weight: 700;
}

.th-card h3 + p {
  margin-top: 4px;
  font-size: 15px;
}

.th-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.th-chips__label {
  margin-right: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-muted);
}

.th-chip {
  padding: 7px 14px;
  border: 1px solid #DADCE5;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

/* ---- Process ---------------------------------------------------------- */

.th-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-steps li {
  padding-top: 18px;
  border-top: 3px solid var(--th-navy);
}

.th-steps li:last-child {
  border-top-color: var(--th-teal);
}

.th-steps__num {
  font-family: var(--th-font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--th-teal-dark);
}

.th-steps h3 {
  margin: 6px 0 !important;
  font-size: 18px;
}

.th-steps p {
  font-size: 15px;
}

/* ---- Projects --------------------------------------------------------- */

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

.th-project {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
}

.th-project--feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.th-project__img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.th-project--feature .th-project__img {
  height: 420px;
  object-position: center 45%;
}

.th-project__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
  background: var(--th-navy);
  color: var(--th-teal);
  font-family: var(--th-font-head);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: 0.04em;
}

.th-project__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
}

.th-project--feature .th-project__body {
  justify-content: center;
  gap: 12px;
  padding: 36px;
}

.th-project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--th-muted);
}

.th-tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--th-teal-tint);
  color: #1A5F5B;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.th-tag--navy {
  background: #ECECF6;
  color: var(--th-navy);
}

.th-project h3 {
  font-size: 21px;
}

.th-project--feature h3 {
  font-size: 26px;
}

.th-project p {
  font-size: 15px;
}

.th-projects__more {
  font-size: 15px;
  color: var(--th-muted) !important;
}

/* ---- Clients ---------------------------------------------------------- */

.th-clients {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--th-line);
  border-left: 1px solid var(--th-line);
}

.th-clients li {
  padding: 22px 24px;
  border-right: 1px solid var(--th-line);
  border-bottom: 1px solid var(--th-line);
}

.th-clients__sector {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-muted);
}

.th-clients__name {
  margin-top: 4px;
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--th-navy);
}

/* ---- Call to action ---------------------------------------------------- */

.th-cta {
  background: var(--th-navy);
  color: #fff;
}

.th-cta__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.th-cta h2 {
  color: #fff;
}

.th-cta p {
  max-width: 620px;
  margin-top: 14px !important;
  font-size: 17px;
  color: var(--th-on-navy) !important;
}

.th-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.th-cta__phone {
  padding: 14px 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.th-cta__phone:hover {
  color: var(--th-teal);
}

/* ---- Footer ----------------------------------------------------------- */

.th-footer {
  background: var(--th-navy-deep);
  color: var(--th-on-navy);
  font-size: 15px;
}

.th-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 32px;
}

.th-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.th-footer__logo {
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
}

.th-footer__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.th-footer p {
  color: var(--th-on-navy);
}

.th-footer h3 {
  margin-bottom: 14px;
  font-family: var(--th-font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.th-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-footer a {
  color: var(--th-on-navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.th-footer a:hover {
  color: #fff;
}

.th-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: #9EA1BC;
}

.th-footer__bottom a {
  color: #9EA1BC;
}

/* ---- Small screens ---------------------------------------------------- */

@media (max-width: 767px) {
  .th-section {
    padding: 64px 0;
  }

  .th-hero {
    min-height: 0;
  }

  .th-hero__content {
    padding-top: 72px;
    padding-bottom: 40px;
  }

  .th-stats {
    margin-top: 40px;
  }

  .th-figure img {
    height: 380px;
  }

  .th-cta__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

/* ---- Inner page header ------------------------------------------------ */

.th-page-header {
  padding: 72px 0 64px;
  background: var(--th-navy);
  color: #fff;
}

.th-page-header h1 {
  max-width: 820px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
}

.th-page-header__intro {
  max-width: 640px;
  margin-top: 18px !important;
  font-size: 18px;
  color: #DADCEB !important;
}

.th-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--th-on-navy);
}

.th-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #8F92B3;
}

.th-crumbs a {
  color: var(--th-teal);
  text-decoration: none;
}

.th-crumbs a:hover {
  color: #fff;
}

/* ---- Key figures on a light background -------------------------------- */

.th-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 24px;
  margin: 36px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--th-line);
}

.th-figures > div {
  display: flex;
  flex-direction: column;
}

.th-figures dt {
  order: 2;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--th-muted);
}

.th-figures dd {
  order: 1;
  margin: 0;
  font-family: var(--th-font-head);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: var(--th-navy);
}

/* ---- Mission and goal ------------------------------------------------- */

.th-statements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 28px;
}

.th-statement {
  padding: 40px;
  border-radius: var(--th-radius);
  background: var(--th-navy);
}

.th-statement .th-eyebrow {
  color: var(--th-teal);
}

.th-statement p {
  font-family: var(--th-font-head);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
  color: #fff !important;
}

.th-statement--light {
  background: #fff;
  border: 1px solid var(--th-line);
}

.th-statement--light .th-eyebrow {
  color: var(--th-teal-dark);
}

.th-statement--light p {
  color: var(--th-navy) !important;
}

/* ---- Values ----------------------------------------------------------- */

.th-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-values li {
  padding: 28px;
  border-radius: var(--th-radius);
  background: #fff;
  border: 1px solid var(--th-line);
}

.th-values__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--th-teal-tint);
  color: var(--th-teal-dark);
}

.th-values h3 {
  font-size: 19px;
}

.th-values p {
  margin-top: 6px !important;
  font-size: 15px;
}

/* ---- People ----------------------------------------------------------- */

.th-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: var(--th-radius);
  background: var(--th-navy);
}

.th-person__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--th-font-head);
  font-weight: 800;
  font-size: 56px;
  letter-spacing: 0.04em;
  color: var(--th-teal);
}

.th-person__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.th-person h3 {
  font-size: 20px;
}

.th-person p {
  margin-top: 4px !important;
  font-size: 15px;
  color: var(--th-teal-dark) !important;
  font-weight: 600;
}

/* ---- Numbered reasons ------------------------------------------------- */

.th-reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-reasons li {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid #DADCE5;
}

.th-reasons__num {
  flex: none;
  font-family: var(--th-font-head);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.6;
  color: var(--th-teal-dark);
}

.th-reasons h3 {
  font-size: 19px;
}

.th-reasons p {
  margin-top: 6px !important;
  font-size: 15px;
}

@media (max-width: 767px) {
  .th-page-header {
    padding: 52px 0 44px;
  }

  .th-statement {
    padding: 28px;
  }
}

/* ---- Project cards: links and media ------------------------------------ */

.th-project__media {
  display: block;
  overflow: hidden;
}

.th-project__media img {
  transition: transform 0.4s ease;
}

.th-project:hover .th-project__media img,
.th-card--link:hover .th-card__img {
  transform: scale(1.03);
}

.th-card--link .th-card__img {
  transition: transform 0.4s ease;
}

.th-card--link > a {
  display: block;
  overflow: hidden;
}

.th-project__link {
  color: inherit !important;
  text-decoration: none;
}

.th-project__link:hover {
  color: var(--th-teal-dark) !important;
}

.th-card__more {
  margin-top: auto;
}

.th-projects__more a {
  color: var(--th-teal-dark);
  text-decoration: none;
  display: inline;
}

.th-empty {
  padding: 48px 24px;
  border: 1px dashed #DADCE5;
  border-radius: var(--th-radius);
  text-align: center;
  color: var(--th-muted) !important;
}

/* ---- Filters ---------------------------------------------------------- */

.th-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.th-filter {
  min-height: 44px;
  padding: 8px 18px !important;
  border: 1px solid #DADCE5 !important;
  border-radius: 999px;
  background: #fff;
  color: var(--th-ink);
  font-family: var(--th-font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.th-filter:hover {
  border-color: var(--th-teal-dark) !important;
}

.th-filter.is-active {
  background: var(--th-navy);
  border-color: var(--th-navy) !important;
  color: #fff;
}

[data-th-filter-items] > [hidden] {
  display: none !important;
}

/* ---- Photo wall ------------------------------------------------------- */

.th-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 14px;
}

.th-photos__item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  background: var(--th-line);
}

.th-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* ---- Detail pages (project, service) ---------------------------------- */

.th-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-start;
}

.th-detail__main {
  flex: 999 1 560px;
  min-width: 0;
}

.th-detail__side {
  flex: 1 1 300px;
  display: grid;
  gap: 24px;
}

.th-detail__hero {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--th-radius);
  margin-bottom: 40px;
}

.th-detail__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.th-detail__gallery a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.th-detail__gallery a.is-lead {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.th-detail__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-prose {
  max-width: 720px;
}

.th-prose h2 {
  margin-bottom: 18px !important;
}

.th-prose p,
.th-prose li {
  font-size: 17px;
  color: var(--th-body);
}

.th-prose p + p,
.th-prose ul,
.th-prose ol {
  margin-top: 16px;
}

.th-prose h3,
.th-prose h4 {
  margin-top: 28px !important;
  margin-bottom: 10px !important;
}

/* ---- Panels ----------------------------------------------------------- */

.th-panel {
  padding: 28px;
  border: 1px solid var(--th-line);
  border-radius: var(--th-radius);
  background: #fff;
}

.th-panel > h2 {
  margin-bottom: 16px !important;
  font-size: 20px;
}

.th-panel--navy {
  border-color: var(--th-navy);
  background: var(--th-navy);
}

.th-panel--navy > h2 {
  color: #fff;
}

.th-panel--navy p {
  margin-bottom: 20px !important;
  color: var(--th-on-navy) !important;
}

.th-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.th-facts > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--th-line);
}

.th-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.th-facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-muted);
}

.th-facts dd {
  margin: 2px 0 0;
  font-weight: 600;
  color: var(--th-navy);
}

.th-facts--inline {
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 20px;
  margin: 28px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--th-line);
  border-bottom: 1px solid var(--th-line);
}

.th-facts--inline > div {
  padding: 0;
  border: 0;
}

.th-side-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-side-links a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--th-line);
  color: var(--th-ink);
  font-weight: 500;
  text-decoration: none;
}

.th-side-links li:last-child a {
  border-bottom: 0;
}

.th-side-links a:hover {
  color: var(--th-teal-dark);
}

.th-btn--outline {
  border-color: var(--th-teal-dark);
  color: var(--th-teal-dark);
  background: #fff;
}

.th-btn--outline:hover {
  background: var(--th-teal-tint);
  color: var(--th-teal-dark);
}

/* ---- Contact ---------------------------------------------------------- */

.th-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

.th-contact__form {
  flex: 999 1 520px;
  min-width: 0;
  padding: 40px;
}

.th-contact__info {
  flex: 1 1 300px;
  display: grid;
  gap: 24px;
}

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

.th-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

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

.th-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--th-ink);
}

.th-field label span {
  color: var(--th-teal-dark);
}

.th-field input,
.th-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #C9CCD8;
  border-radius: 6px;
  background: #fff;
  font-family: var(--th-font-body);
  font-size: 16px;
  color: var(--th-ink);
}

.th-field input:focus,
.th-field textarea:focus {
  outline: none;
  border-color: var(--th-teal-dark);
  box-shadow: 0 0 0 3px rgba(108, 196, 192, 0.35);
}

.th-field [aria-invalid="true"] {
  border-color: #B42318;
}

.th-field__error {
  margin-top: 6px !important;
  font-size: 14px;
  color: #B42318 !important;
}

.th-contact__list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.th-contact__list dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--th-teal);
}

.th-contact__list dd {
  margin: 2px 0 0;
  color: #fff;
  overflow-wrap: anywhere;
}

.th-contact__list a {
  color: #fff;
  text-decoration: none;
}

.th-contact__list a:hover {
  color: var(--th-teal);
}

.th-mini-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  color: var(--th-body);
}

.th-mini-steps strong {
  color: var(--th-navy);
}

@media (max-width: 767px) {
  .th-contact__form {
    padding: 24px;
  }

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

/* ---- Page header with a background photo ------------------------------ */

.th-page-header {
  position: relative;
  overflow: hidden;
}

.th-page-header__content {
  position: relative;
}

.th-page-header--photo {
  padding: 120px 0 72px;
}

.th-page-header__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.th-page-header__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23, 24, 62, 0.94) 0%, rgba(23, 24, 62, 0.82) 50%, rgba(23, 24, 62, 0.45) 100%);
}

@media (max-width: 767px) {
  .th-page-header--photo {
    padding: 80px 0 48px;
  }

  .th-page-header__scrim {
    background: rgba(23, 24, 62, 0.86);
  }
}

/* ---- Photo strip ------------------------------------------------------ */

.th-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 14px;
}

.th-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4;
}

.th-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-muted-note {
  font-weight: 400;
  color: var(--th-muted);
}
