/* People & Expats — human-mix editorial theme */

.tl-main.tl-main--pe {
  padding: 0;
  background: #eef3e8;
}

.tl-pe {
  --pe-ink: #2a2218;
  --pe-muted: #5a5044;
  --pe-soft: #7a6e5e;
  --pe-leaf: #4f6b45;
  --pe-leaf-deep: #3a4f32;
  --pe-brown: #8b6b45;
  --pe-brown-soft: #c4a574;
  --pe-gold: #a8894a;
  --pe-gold-soft: #d4b56a;
  --pe-maroon: #7a3540;
  --pe-paper: #eef3e8;
  --pe-panel: #f7f4ee;
  --pe-mist: #e4ebe0;
  --pe-line: rgba(139, 107, 69, 0.2);
  --pe-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --pe-sans: "Bricolage Grotesque", sans-serif;
  color: var(--pe-ink);
  font-family: var(--pe-sans);
}

.tl-pe__wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* ——— Hero (uses site cover standard: 420px / 320px mobile) ——— */
.tl-hero--pe {
  overflow: hidden;
  background-color: #1a221c;
  background-position: center 28%;
}

.tl-hero--pe::before {
  background:
    linear-gradient(
      105deg,
      rgba(26, 34, 28, 0.88) 0%,
      rgba(26, 34, 28, 0.55) 42%,
      rgba(122, 53, 64, 0.22) 78%,
      rgba(26, 34, 28, 0.18) 100%
    ),
    linear-gradient(
      to top,
      rgba(26, 34, 28, 0.9) 0%,
      rgba(26, 34, 28, 0.35) 48%,
      rgba(26, 34, 28, 0.12) 100%
    );
}

.tl-hero--pe::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--pe-gold) 20%,
    var(--pe-gold-soft) 50%,
    var(--pe-gold) 80%,
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

.tl-hero--pe .tl-hero__inner {
  animation: tl-pe-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tl-hero--pe .tl-crumb a {
  color: rgba(232, 239, 233, 0.78);
}

.tl-hero--pe .tl-crumb li:last-child {
  color: var(--pe-gold-soft);
}

.tl-hero--pe .tl-kicker {
  color: var(--pe-gold-soft) !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
}

.tl-hero--pe h1 {
  max-width: 12ch;
  margin: 0 0 14px;
  color: #f7faf7;
  font-family: var(--pe-serif);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 560;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.tl-hero--pe .tl-lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(247, 250, 247, 0.9);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.5;
}

.tl-hero--pe .tl-pe-hero__hook {
  margin: 0 0 14px;
  color: rgba(212, 181, 106, 0.95);
  font-family: var(--pe-serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  font-weight: 450;
  line-height: 1.35;
}

/* ——— Intro ——— */
.tl-pe-intro {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(196, 165, 116, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(79, 107, 69, 0.14), transparent 55%),
    linear-gradient(160deg, #f2f5ec 0%, #ebe6dc 48%, #e7efe3 100%);
}

.tl-pe-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.7fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: end;
}

.tl-pe-intro__eyebrow {
  margin: 0 0 12px;
  color: var(--pe-leaf);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-pe-intro h2 {
  margin: 0 0 18px;
  max-width: 16ch;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.tl-pe-intro__lead,
.tl-pe-intro__body {
  margin: 0;
  max-width: 40rem;
  color: var(--pe-muted);
  font-size: clamp(16px, 1.55vw, 18px);
  font-weight: 300;
  line-height: 1.7;
}

.tl-pe-intro__lead + .tl-pe-intro__body {
  margin-top: 14px;
}

.tl-pe-intro__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--pe-mist);
}

.tl-pe-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Pillar jump nav ——— */
.tl-pe-jump {
  position: sticky;
  top: 0;
  z-index: 20;
  border-block: 1px solid var(--pe-line);
  background: rgba(238, 243, 232, 0.94);
  backdrop-filter: blur(10px);
}

.tl-pe-jump__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
}

.tl-pe-jump a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--pe-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease;
}

.tl-pe-jump a:hover,
.tl-pe-jump a:focus-visible {
  color: var(--pe-leaf-deep);
  background: rgba(139, 107, 69, 0.1);
  outline: none;
}

/* ——— Pillars ——— */
.tl-pe-pillars {
  padding: 64px 0 24px;
  background:
    linear-gradient(180deg, #eef3e8 0%, #ebe7df 55%, #e8efe4 100%);
}

.tl-pe-head {
  margin-bottom: 40px;
}

.tl-pe-head__eyebrow {
  display: block;
  margin: 0 0 10px;
  color: var(--pe-leaf);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-pe-head h2 {
  margin: 0 0 12px;
  max-width: 18ch;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tl-pe-head p {
  margin: 0;
  max-width: 40rem;
  color: var(--pe-muted);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-pe-pillar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin: 0 0 56px;
  padding: 0 0 56px;
  border-bottom: 1px solid var(--pe-line);
}

.tl-pe-pillar:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.tl-pe-pillar--flip {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.tl-pe-pillar--flip .tl-pe-pillar__media {
  order: 2;
}

.tl-pe-pillar--flip .tl-pe-pillar__copy {
  order: 1;
}

.tl-pe-pillar__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--pe-mist);
}

.tl-pe-pillar__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-pe-pillar:hover .tl-pe-pillar__media img {
  transform: scale(1.04);
}

.tl-pe-pillar__num {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--pe-gold);
  font-family: var(--pe-serif);
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tl-pe-pillar__copy h3 {
  margin: 0 0 8px;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tl-pe-pillar__thai {
  margin: 0 0 16px;
  color: var(--pe-soft);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.tl-pe-pillar__deck {
  margin: 0 0 18px;
  color: var(--pe-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 300;
  line-height: 1.65;
}

.tl-pe-feature {
  margin: 0 0 18px;
  padding: 18px 20px;
  border-left: 2px solid var(--pe-maroon);
  background: linear-gradient(90deg, rgba(122, 53, 64, 0.06), transparent 85%);
}

.tl-pe-feature__label {
  display: block;
  margin: 0 0 6px;
  color: var(--pe-maroon);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-pe-feature p {
  margin: 0;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.tl-pe-explore {
  margin: 0;
  color: var(--pe-soft);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-pe-explore strong {
  color: var(--pe-leaf-deep);
  font-weight: 500;
}

/* ——— Diversity band ——— */
.tl-pe-diversity {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  color: #f7f4ee;
  background:
    radial-gradient(ellipse 50% 60% at 15% 20%, rgba(196, 165, 116, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 50% at 90% 80%, rgba(79, 107, 69, 0.28), transparent 55%),
    #2a3324;
}

.tl-pe-diversity__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.tl-pe-diversity__copy .tl-pe-head__eyebrow {
  color: var(--pe-gold-soft);
}

.tl-pe-diversity__copy h2 {
  margin: 0 0 16px;
  max-width: 14ch;
  color: #f7faf7;
  font-family: var(--pe-serif);
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tl-pe-diversity__copy p {
  margin: 0 0 14px;
  max-width: 36rem;
  color: rgba(232, 239, 233, 0.82);
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  line-height: 1.7;
}

.tl-pe-diversity__copy p:last-child {
  margin-bottom: 0;
}

.tl-pe-diversity__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.tl-pe-diversity__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.tl-pe-diversity__shot:hover img {
  transform: scale(1.045);
}

.tl-pe-diversity__shot--wide {
  aspect-ratio: 16 / 10;
}

.tl-pe-diversity__shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  color: #f7faf7;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  background: linear-gradient(to top, rgba(22, 32, 25, 0.88), transparent);
}

/* ——— Formats ——— */
.tl-pe-formats {
  padding: 72px 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(139, 107, 69, 0.1), transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(79, 107, 69, 0.08), transparent 55%),
    linear-gradient(165deg, #eef3e8 0%, #ebe6dc 100%);
}

.tl-pe-format-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.tl-pe-format {
  position: relative;
  padding: 28px 24px 30px;
  background: var(--pe-panel);
  border-top: 2px solid var(--pe-brown);
  box-shadow: 0 1px 0 rgba(42, 34, 24, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.tl-pe-format:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 34, 28, 0.08);
}

.tl-pe-format__tag {
  display: block;
  margin: 0 0 12px;
  color: var(--pe-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-pe-format h3 {
  margin: 0 0 12px;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 550;
  line-height: 1.25;
}

.tl-pe-format p {
  margin: 0;
  color: var(--pe-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.tl-pe-format__example {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--pe-line);
  color: var(--pe-leaf-deep);
  font-family: var(--pe-serif);
  font-size: 15px;
  font-style: italic;
  line-height: 1.45;
}

/* ——— CTA ——— */
.tl-pe-cta {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
  color: #f7faf7;
  background:
    linear-gradient(115deg, rgba(26, 34, 28, 0.82) 0%, rgba(30, 61, 46, 0.7) 55%, rgba(122, 53, 64, 0.45) 100%),
    var(--tl-pe-cta-image) center 35% / cover no-repeat;
}

.tl-pe-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: end;
}

.tl-pe-cta__eyebrow {
  margin: 0 0 12px;
  color: var(--pe-gold-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tl-pe-cta h2 {
  margin: 0 0 14px;
  max-width: 14ch;
  color: #f7faf7;
  font-family: var(--pe-serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 550;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tl-pe-cta p {
  margin: 0;
  max-width: 34rem;
  color: rgba(247, 250, 247, 0.86);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 300;
  line-height: 1.65;
}

.tl-pe-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  color: var(--pe-ink);
  background: var(--pe-gold-soft);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.tl-pe-cta__btn:hover,
.tl-pe-cta__btn:focus-visible {
  background: #e4c98a;
  transform: translateY(-2px);
  outline: none;
}

.tl-pe-cta__btn span[aria-hidden="true"] {
  transition: transform 0.3s ease;
}

.tl-pe-cta__btn:hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

/* ——— More stories ——— */
.tl-pe-more {
  padding: 64px 0 80px;
  background:
    linear-gradient(180deg, #e4ebe0 0%, #e8e3d8 100%);
}

.tl-pe-more h2 {
  margin: 0 0 28px;
  color: var(--pe-ink);
  font-family: var(--pe-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 550;
}

.tl-pe-more__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tl-pe-more__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 24px 22px;
  color: inherit;
  background: var(--pe-panel);
  border: 1px solid transparent;
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tl-pe-more__card:hover,
.tl-pe-more__card:focus-visible {
  border-color: rgba(139, 107, 69, 0.35);
  transform: translateY(-3px);
  outline: none;
}

.tl-pe-more__card h3 {
  margin: 0;
  color: var(--pe-ink);
  font-size: 18px;
  font-weight: 500;
}

.tl-pe-more__card p {
  margin: 0;
  flex: 1;
  color: var(--pe-muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.tl-pe-more__card span {
  color: var(--pe-leaf);
  font-size: 13px;
  font-weight: 600;
}

/* ——— Motion ——— */
@media (prefers-reduced-motion: no-preference) {
  .tl-pe-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: tl-pe-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .tl-pe-reveal--2 { animation-delay: 0.1s; }
  .tl-pe-reveal--3 { animation-delay: 0.18s; }
  .tl-pe-reveal--4 { animation-delay: 0.26s; }
  .tl-pe-reveal--5 { animation-delay: 0.34s; }
}

@keyframes tl-pe-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .tl-pe-intro__grid,
  .tl-pe-pillar,
  .tl-pe-pillar--flip,
  .tl-pe-diversity__grid,
  .tl-pe-cta__inner {
    grid-template-columns: 1fr;
  }

  .tl-pe-pillar--flip .tl-pe-pillar__media,
  .tl-pe-pillar--flip .tl-pe-pillar__copy {
    order: initial;
  }

  .tl-pe-pillar__media {
    aspect-ratio: 16 / 10;
    max-height: 360px;
  }

  .tl-pe-format-list,
  .tl-pe-more__grid {
    grid-template-columns: 1fr;
  }

  .tl-pe-cta__btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .tl-pe__wrap {
    width: min(100% - 32px, 1120px);
  }

  .tl-hero--pe {
    background-position: 62% 30%;
  }

  .tl-pe-intro,
  .tl-pe-pillars,
  .tl-pe-diversity,
  .tl-pe-formats,
  .tl-pe-cta,
  .tl-pe-more {
    padding-left: 0;
    padding-right: 0;
  }

  .tl-pe-intro {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .tl-pe-jump__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tl-pe-jump__inner::-webkit-scrollbar {
    display: none;
  }

  .tl-pe-jump a {
    white-space: nowrap;
  }

  .tl-pe-diversity__shot--wide {
    aspect-ratio: 16 / 11;
  }
}
