/*
Theme Name: EXE Advisory
Description: Bilingual EXE Advisory theme. No page builder required.
Version: 1.2.29
Requires at least: 6.4
Requires PHP: 7.4
Author: EXE Advisory
Text Domain: exe-advisory
*/
/* EXE Advisory — one layout system.
   Every section uses .container, so all content shares the same left and right edge.
   Spacing, type and motion come from the tokens below; change them here, not per section. */

:root {
  /* Colour */
  --canvas: #fefdfc;
  --surface-soft: #f6f1e9;
  --surface-strong: #e8e0d2;
  --surface-dark: #171512;
  --surface-dark-elevated: #24211c;
  --coral: #df7048;
  --coral-active: #b9492a;
  --accent: #f0582b;
  --gold: #f5b41b;
  --gold-soft: #fff0c2;
  --whatsapp: #1fb457;
  --whatsapp-active: #17964a;
  --ink: #141413;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --hairline: #e6dfd8;
  --on-dark: #faf9f5;
  --on-dark-soft: #b8b2a8;
  --on-dark-line: rgba(250, 249, 245, 0.16);

  /* Layout: one content width, one side padding, one section rhythm */
  --content: 1120px;
  --pad: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 9vw, 120px);
  --gap: 24px;
  --radius: 12px;

  /* Type */
  --font-zh-heading: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", serif;
  --font-zh-body: "Noto Sans SC", sans-serif;
  --font-en: "Noto Sans", Arial, sans-serif;
  --font-en-heading: "Noto Serif", Georgia, serif;
  --text: 17px;
  --text-small: 14px;
  --text-lead: 19px;

  /* Motion: one curve, two speeds */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fast: 180ms;
  --slow: 600ms;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-zh-body);
  font-size: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-en); font-stretch: 90%; line-height: 1.65; }

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid var(--coral-active); outline-offset: 3px; }

.container {
  width: 100%;
  max-width: calc(var(--content) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--section); }

/* ---------- Type ---------- */

h1, h2, h3, .about-timeline b, .about-next-line, .why-vs-when b, .principle-quote {
  font-family: var(--font-zh-heading);
  font-weight: 900;
  letter-spacing: 0;
}

html[lang="en"] :is(h1, h2, h3, .about-timeline b, .about-next-line, .why-vs-when b, .principle-quote) {
  font-family: var(--font-en-heading);
  font-stretch: condensed;
  font-weight: 700;
}

h1 { font-size: clamp(34px, 4.7vw, 58px); line-height: 1.24; text-wrap: balance; }
html[lang="en"] h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; }

h2 { font-size: clamp(27px, 3.3vw, 42px); line-height: 1.3; text-wrap: balance; }
html[lang="en"] h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }

h3 { font-size: 20px; line-height: 1.35; }
html[lang="en"] h3 { line-height: 1.2; }

.headline-line { display: block; }

/* The coral accent is used once, on the hero headline. Other headings stay one colour. */
h1 em { color: var(--accent); font-style: normal; }
html[lang="en"] h1 em { display: block; font-style: italic; }
html[lang="zh-Hans"] h1 em { white-space: nowrap; }
h2 em, .about-next-line em { color: inherit; font-style: normal; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--coral-active);
  font-size: var(--text-small);
  font-weight: 700;
  line-height: 1.4;
}

.section-head { max-width: 900px; margin-bottom: 56px; }
.section-head h2 + p { max-width: 620px; margin-top: 18px; color: var(--body); }

/* ---------- Buttons and links ---------- */

.primary-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--fast) var(--ease);
}

.primary-btn:hover { background: var(--whatsapp-active); }
.wa-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; }

.text-link {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: color var(--fast) var(--ease);
}

.text-link:hover { color: var(--coral-active); }

.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Navigation ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(254, 253, 252, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}

.site-nav.nav-hidden { transform: translateY(-100%); }
.site-nav.nav-scrolled { border-bottom-color: var(--hairline); }

.nav-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: auto; height: 20px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 28px; color: var(--body); font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; transition: color var(--fast) var(--ease); }
.nav-links a:hover { color: var(--coral-active); }

.nav-links a.nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--fast) var(--ease);
}

.nav-links a.nav-cta:hover { background: var(--coral-active); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.language-switch {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--fast) var(--ease);
}

.language-switch:hover { border-color: var(--ink); }
.nav-toggle { display: none; }

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

.hero { padding-block: clamp(40px, 6vw, 88px) var(--section); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 20px; color: var(--muted); font-weight: 600; }
.hero h1 { margin-bottom: 28px; }
.lead { max-width: 560px; margin-bottom: 36px; color: var(--body); font-size: var(--text-lead); }
.hero-next-note { margin-top: 18px; color: var(--muted); font-size: var(--text-small); }

.hero-reel { width: 100%; }
.hero-reel-caption,
.hero-reel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--text-small);
}
.hero-reel-caption { margin-bottom: 12px; color: var(--ink); font-weight: 700; }
.hero-reel-link { margin-top: 12px; text-decoration: none; transition: color var(--fast) var(--ease); }
.hero-reel-link:hover { color: var(--coral-active); }

/* Instagram players: rendered at a fixed width, then scaled and cropped to hide Instagram's own chrome.
   The brand mark shows until the player has loaded. */
.reel-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--surface-strong) url("assets/images/exe.png") center / 40% auto no-repeat;
}

.reel-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 400px;
  max-width: none;
  height: 1100px;
  border: 0;
  opacity: 0;
  transform-origin: top left;
  transform: scale(var(--reel-scale, 1)) translateY(-54px);
  transition: opacity 300ms var(--ease);
}

.reel-frame iframe.is-loaded { opacity: 1; }

/* ---------- Dark sections ---------- */

.dark-band,
.about-section,
.site-footer {
  background: var(--surface-dark) url("assets/images/noise-on-dark.png") 0 0 / 160px 160px;
  color: var(--on-dark);
}

.dark-band .eyebrow,
.about-section .eyebrow { color: var(--gold); }

/* ---------- Why EXE: chart and comparison ---------- */

.why-wrap { display: flex; flex-direction: column; gap: 32px; }
.why-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.why-intro { max-width: 620px; color: var(--on-dark-soft); }

.why-chart { --why-h: 220px; position: relative; height: var(--why-h); margin-block: 24px 8px; }
.why-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  clip-path: inset(-60px 100% -20px 0);
  transition: clip-path 1.4s var(--ease) 0.15s;
}
.why-chart.is-visible svg { clip-path: inset(-60px -40px -20px 0); }

.why-label,
.why-chip,
.why-dot { position: absolute; opacity: 0; transition: opacity 400ms var(--ease); }
.why-label, .why-chip { font-size: var(--text-small); white-space: nowrap; }
.why-chart.is-visible :is(.why-label, .why-chip, .why-dot) { opacity: 1; }

/* The SVG is stretched to fit, which would squash circles, so the dots are HTML. */
.why-dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--surface-dark);
  transform: translate(-50%, -50%);
}
.why-dot-1 { left: 16.64%; top: 50.33%; transition-delay: 0.45s; }
.why-dot-2 { left: 50%; top: 36.67%; transition-delay: 0.85s; }
.why-dot-3 { left: 83.36%; top: 22.67%; transition-delay: 1.25s; }

.why-chip {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  transform: translateX(-50%);
}
.why-chip-1 { left: 16.64%; top: calc(var(--why-h) * 0.505 - 48px); transition-delay: 0.45s; }
.why-chip-2 { left: 50%; top: calc(var(--why-h) * 0.365 - 48px); transition-delay: 0.85s; }
.why-chip-3 { left: 83.36%; top: calc(var(--why-h) * 0.226 - 48px); transition-delay: 1.25s; }

.why-start { left: 0; top: calc(var(--why-h) * 0.567 + 14px); color: var(--on-dark); font-weight: 700; transition-delay: 0.15s; }
.why-end-exe { right: 0; top: calc(var(--why-h) * 0.167 + 18px); color: #ff7a4f; font-weight: 700; transition-delay: 1.5s; }
.why-end-solo { left: 83.36%; top: calc(var(--why-h) * 0.893 + 12px); color: var(--on-dark-soft); font-weight: 700; transform: translateX(-50%); transition-delay: 1.5s; }
.why-gap { left: 64.3%; top: calc(var(--why-h) * 0.533 - 8px); color: var(--on-dark); font-weight: 700; transform: translateX(-50%); transition-delay: 1.5s; }

.why-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: var(--text-small); }
.why-key { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-soft); font-weight: 700; }
.why-key::before { content: ""; width: 28px; border-top: 3px dotted #8e8b82; }
.why-key-exe { color: #ff7a4f; }
.why-key-exe::before { border-top: 4px solid #ff5a2a; border-radius: 2px; }
.why-disclaimer { color: var(--on-dark-soft); }

.why-vs { display: flex; flex-direction: column; margin-top: 16px; border-top: 1px solid var(--on-dark-line); }
.why-vs-head,
.why-vs-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}
.why-vs-head { padding-block: 16px 0; font-size: var(--text-small); font-weight: 700; }
.why-vs-head span:nth-child(3) { display: none; }
.why-vs-solo-title { color: var(--on-dark-soft); }
.why-vs-exe-title { color: #ff7a4f; }
.why-vs-row { padding-block: 24px; border-bottom: 1px solid var(--on-dark-line); }
.why-vs-pair { display: contents; }
.why-vs-badge, .why-vs-tag { display: none; }

.why-vs-when { display: flex; flex-direction: column; gap: 6px; }
.why-vs-when b { color: var(--gold); font-size: 22px; line-height: 1.1; }
.why-vs-num { margin-right: 6px; font-size: 34px; line-height: 1; }
.why-vs-when strong { color: var(--on-dark-soft); font-size: var(--text-small); font-weight: 600; line-height: 1.5; }

.why-vs-solo,
.why-vs-exe { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.6; }
.why-vs-solo { color: var(--on-dark-soft); }
.why-vs-exe { color: var(--on-dark); font-weight: 600; }
.why-vs-solo::before,
.why-vs-exe::before,
.why-vs-tag::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; background: center / contain no-repeat; }
.why-vs-solo::before,
.why-vs-solo .why-vs-tag::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 4 14 14M14 4 4 14' fill='none' stroke='%238e8b82' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.why-vs-exe::before,
.why-vs-exe .why-vs-tag::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5 7.5 13.5 14.5 5' fill='none' stroke='%23f5b41b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Growth path: four even steps, then one wide panel for the fork ---------- */

.path-stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }

.path-step { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.path-step::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
}
.card-kicker { display: block; margin-bottom: 10px; color: var(--coral-active); font-size: var(--text-small); font-weight: 700; }
.path-step h3 { margin-bottom: 10px; }
.path-step p { color: var(--body); font-size: 16px; }

.path-fork {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.25fr);
  grid-template-areas: "kicker personal leader" "title personal leader" "note personal leader";
  grid-template-rows: auto auto 1fr;
  column-gap: var(--gap);
  margin-top: 24px;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface-dark);
  color: var(--on-dark);
}
.path-fork .card-kicker { grid-area: kicker; color: var(--gold); }
.path-fork h3 { grid-area: title; font-size: 30px; }
.path-fork-note { grid-area: note; margin-top: 14px; color: var(--on-dark-soft); font-size: 16px; }
.path-route { display: flex; flex-direction: column; gap: 8px; padding-left: var(--gap); border-left: 1px solid var(--on-dark-line); }
.path-route:nth-of-type(1) { grid-area: personal; }
.path-route:nth-of-type(2) { grid-area: leader; }
.route-label { color: var(--gold); font-size: var(--text-small); font-weight: 700; }
.path-route strong { font-size: 19px; line-height: 1.35; }
.path-route p, .route-ranks span { color: var(--on-dark-soft); font-size: 15px; line-height: 1.5; }
.route-ranks { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.route-ranks li { display: flex; flex-direction: column; gap: 2px; }
.route-ranks b { font-size: 15px; font-weight: 600; }
.path-note { margin-top: 24px; color: var(--muted); font-size: var(--text-small); }

/* ---------- Member stories carousel ---------- */

.stories-section { background: var(--surface-soft); }

.reels-carousel { position: relative; }
.reels-toolbar { position: relative; height: 0; }
.reels-actions .reels-toggle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; background: var(--canvas); cursor: pointer; }
.reels-actions .reels-toggle:focus-visible { top: -44px; right: 0; width: auto; height: 36px; padding: 0 12px; clip-path: none; }

.reels-track {
  --reel-card-width: 220px;
  --reel-step: 248px;
  --reel-focus: 1.12;
  position: relative;
  height: calc(var(--reel-card-height, 440px) * var(--reel-focus) + 24px);
  overflow: hidden;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.reel-card {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  display: flex;
  flex-direction: column;
  width: var(--reel-card-width);
  margin-left: calc(var(--reel-card-width) / -2);
  padding: 8px;
  border-radius: var(--radius);
  background: var(--canvas);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translate(calc(var(--reel-offset, 0) * var(--reel-step)), -50%) scale(0.94);
  transition: transform 700ms var(--ease), opacity 500ms var(--ease);
  will-change: transform, opacity;
}

.reel-card[data-distance="0"] {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
  cursor: auto;
  transform: translate(calc(var(--reel-offset, 0) * var(--reel-step)), -50%) scale(var(--reel-focus));
}
.reel-card[data-distance="1"] { z-index: 2; opacity: 0.75; pointer-events: auto; }
.reel-card[data-distance="2"] { z-index: 1; opacity: 0.4; pointer-events: auto; }
.reel-card:not([data-distance="0"]) iframe { pointer-events: none; }
.reel-card .reel-frame { aspect-ratio: 9 / 16; border-radius: 8px; }
.reel-card .reel-frame iframe { transform: scale(var(--reel-scale, 1)) translate(-60px, -54px); }

.reel-member { order: 1; padding: 14px 6px 8px; }
.reel-member h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; font-size: 18px; }
.reel-member p { color: var(--muted); font-size: 13px; line-height: 1.4; }

.member-wa {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  transition: background var(--fast) var(--ease);
}
.member-wa:hover { background: var(--whatsapp-active); }
.member-wa-icon { width: 15px; height: 15px; fill: currentColor; }

.reel-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reel-link:focus-visible { position: relative; display: block; width: auto; height: auto; padding: 10px 6px; clip-path: none; color: var(--coral-active); font-size: var(--text-small); }

.reels-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.reels-dot { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; }
.reels-dot::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #b9ad94; transition: width 300ms var(--ease), background 300ms var(--ease); }
.reels-dot[aria-current="true"]::before { width: 24px; background: var(--ink); }

/* ---------- Principles: three columns, no boxes ---------- */

.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.principle-card { display: flex; flex-direction: column; padding-top: 24px; border-top: 2px solid var(--ink); }
.principle-label { color: var(--muted); font-size: var(--text-small); font-weight: 600; }
.principle-quote { min-height: 2.9em; margin: 6px 0 24px; color: var(--muted); font-size: 19px; font-weight: 500; line-height: 1.45; }
html[lang="en"] .principle-quote { font-weight: 500; }
.principle-quote s { text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 1.5px; }
.principle-label-exe { color: var(--coral-active); font-weight: 700; }
.principle-card h3 { margin: 6px 0 10px; }
.principle-card h3 + p { color: var(--body); font-size: 16px; }
.principle-closing { max-width: 620px; margin-top: 48px; color: var(--body); }

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

.about-wrap { display: flex; flex-direction: column; gap: 56px; }
.about-wrap .section-head { margin-bottom: 0; }
.about-wrap h2 :is(span, em) { display: block; }

.about-timeline { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 26px 0 0; list-style: none; }
.about-timeline::before { content: ""; position: absolute; top: 6px; right: 0; left: 0; height: 2px; background: var(--on-dark-line); }
.about-timeline li { position: relative; display: flex; flex-direction: column; gap: 6px; padding-right: 16px; }
.about-timeline li::before { content: ""; position: absolute; top: -26px; left: 0; width: 14px; height: 14px; border: 2px solid var(--coral); border-radius: 50%; background: var(--coral); }
.about-timeline li:last-child::before { background: var(--surface-dark); }
.about-timeline b { color: #ff7a4f; font-size: 34px; line-height: 1.2; }
.about-timeline span { color: var(--on-dark-soft); font-size: 16px; }

.about-goal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.about-grid { display: grid; grid-template-columns: repeat(20, 18px); gap: 6px; }
.about-grid span { width: 18px; height: 18px; border-radius: 4px; background: rgba(250, 249, 245, 0.13); }
.about-grid .is-filled { background: var(--coral); }
.about-grid .is-next { border: 2px solid var(--gold); background: var(--gold-soft); }
.about-goal.is-visible .about-grid .is-next { animation: about-blink 1.6s var(--ease) 0.4s 3; }
@keyframes about-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 180, 27, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(245, 180, 27, 0); }
}
.about-goal-copy { display: flex; flex-direction: column; gap: 10px; }
.about-count-line { color: var(--on-dark-soft); font-size: var(--text-small); font-weight: 600; }
.about-next-line { font-size: 30px; line-height: 1.25; }
.about-vision { max-width: 520px; color: var(--on-dark-soft); font-size: 15px; }

.about-partners { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--on-dark-line); }
.about-partners-title { color: var(--on-dark-soft); font-size: var(--text-small); font-weight: 600; }
.about-partner-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.about-partner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--on-dark-soft); font-size: var(--text-small); line-height: 1.5; text-decoration: none; }
.about-partner-mark { display: flex; align-items: center; justify-content: flex-start; width: 170px; max-width: 100%; height: 64px; overflow: hidden; opacity: 0.8; transition: opacity var(--fast) var(--ease); }
a.about-partner:hover .about-partner-mark { opacity: 1; }
.about-partner-mark img { filter: grayscale(1) invert(1); }
.about-partner-mark.is-sts img { width: 50px; height: 48px; object-fit: contain; }
.about-partner-mark.is-wordmark img { width: 144px; height: auto; }
.about-partner-mark.is-jian img { width: 102px; }
.about-partner-mark.is-gat img { width: auto; height: 60px; }

/* ---------- FAQ ---------- */

.career-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.career-layout .section-head { margin-bottom: 0; }

.career-questions { border-top: 2px solid var(--ink); }
.career-questions details { border-bottom: 1px solid var(--hairline); }
.career-questions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  transition: color var(--fast) var(--ease);
}
.career-questions summary::-webkit-details-marker { display: none; }
.career-questions summary:hover { color: var(--coral-active); }
.career-questions summary::after {
  content: "";
  flex: 0 0 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 16px no-repeat;
  transition: transform 260ms var(--ease);
}
.career-questions details[open] summary::after { transform: rotate(45deg); }
.career-questions details p { max-width: 560px; padding-bottom: 22px; color: var(--body); font-size: 16px; }
.career-questions details[open] p { animation: faq-open 260ms var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Final call to action ---------- */

.final-section { padding-top: 0; }

/* The card sits on the shared content edges, not the padded container edges. */
.final-card {
  width: calc(100% - var(--pad) * 2);
  max-width: var(--content);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 88px);
  border-radius: 20px;
  background: var(--coral);
  color: #fff;
}
.final-card .eyebrow { color: rgba(255, 255, 255, 0.85); }
.final-card h2 { max-width: 820px; }
.final-card p:not(.eyebrow) { max-width: 560px; margin-block: 20px 36px; color: rgba(255, 255, 255, 0.92); }
.final-card .primary-btn { background: #fff; color: var(--ink); }
.final-card .primary-btn:hover { background: var(--gold-soft); }
.final-card .wa-icon { fill: var(--whatsapp-active); }

/* ---------- Policy review ---------- */

.policy-section { padding-block: var(--section); background: var(--surface-soft); }
.policy-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy facts" "copy action";
  grid-template-rows: auto 1fr;
  gap: 32px clamp(32px, 6vw, 96px);
  align-items: start;
}
.policy-copy { grid-area: copy; }
.policy-copy p:not(.eyebrow) { max-width: 520px; margin-top: 18px; color: var(--body); }
.policy-facts { grid-area: facts; display: flex; flex-direction: column; margin: 0; padding: 0; border-top: 2px solid var(--ink); list-style: none; }
.policy-facts li { display: flex; align-items: flex-start; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--surface-strong); font-size: 16px; line-height: 1.55; }
.policy-facts li::before {
  content: "";
  flex: 0 0 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.4 8.8 13.2 14.2 7.2' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.policy-action { grid-area: action; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.policy-note { color: var(--muted); font-size: var(--text-small); }

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

.site-footer { padding-block: 64px 32px; border-top: 1px solid var(--on-dark-line); color: var(--on-dark-soft); font-size: 15px; line-height: 1.6; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.6fr) minmax(0, 1.3fr) minmax(0, 0.9fr); gap: var(--gap) clamp(24px, 4vw, 56px); align-items: start; }
.footer-intro p { max-width: 320px; }
.site-footer strong { display: block; margin-bottom: 14px; color: var(--on-dark); font-size: 15px; font-weight: 700; }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; transition: color var(--fast) var(--ease); }
.site-footer a:hover { color: var(--gold); }
.footer-links, .footer-locations, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong, .footer-locations strong, .footer-contact strong { margin-bottom: 4px; }
.footer-locations p { font-size: var(--text-small); line-height: 1.55; }
.footer-locations b { display: block; color: var(--on-dark); font-weight: 600; }
.footer-contact a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
.contact-icon { color: var(--gold); line-height: 1.6; }
.social-links { display: flex; gap: 8px; margin-top: 20px; }
.social-icon { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--on-dark-line); border-radius: 50%; }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--on-dark-line); font-size: var(--text-small); }

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.18);
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.floating-whatsapp:hover { background: var(--whatsapp-active); transform: scale(1.05); }
.floating-whatsapp svg { width: 31px; height: 31px; fill: currentColor; }

/* ---------- Motion: one reveal, used everywhere ----------
   Content is visible by default. script.js adds .js-motion to <html> only when it can run the reveal,
   so nothing stays hidden if the script fails. */

.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
.js-motion .reveal.is-visible { opacity: 1; transform: none; }

/* Blocks that only hold other reveals, or that animate themselves, do not fade as a whole. */
.js-motion :is(.path-stairs, .why-wrap, .why-chart, .policy-band).reveal { opacity: 1; transform: none; }

/* Items in a row arrive one after another. */
.js-motion :is(.path-step, .principle-card):nth-child(2) { transition-delay: 80ms; }
.js-motion :is(.path-step, .principle-card):nth-child(3) { transition-delay: 160ms; }
.js-motion .path-step:nth-child(4) { transition-delay: 240ms; }

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a.nav-cta { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .why-vs-head, .why-vs-row { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
  .path-stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .path-fork { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "kicker kicker" "title title" "note note" "personal leader"; grid-template-rows: auto; row-gap: 0; padding: 32px; }
  .path-fork-note { margin-bottom: 28px; }
  .path-route:nth-of-type(1) { padding-left: 0; border-left: 0; }
  .career-layout, .policy-band { grid-template-columns: 1fr; grid-template-areas: "copy" "facts" "action"; }
  .about-goal { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

/* ---------- Phone ---------- */

@media (max-width: 768px) {
  :root { --text: 16px; --text-lead: 17px; --gap: 20px; }

  .nav-inner { min-height: 64px; }
  .brand-logo { height: 17px; }
  .nav-links { display: none; }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease); }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .language-switch { min-height: 44px; }

  .nav-open .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--pad) 24px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
    color: var(--ink);
    font-size: 17px;
  }
  .nav-open .nav-links a { padding: 15px 0; border-bottom: 1px solid var(--hairline); }
  .nav-open .nav-links a.nav-cta { display: inline-flex; justify-content: center; min-height: 50px; margin-top: 20px; border-bottom: 0; }

  .section-head { margin-bottom: 40px; }

  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-reel { max-width: 340px; margin-inline: auto; }
  .button-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .button-row .text-link { align-self: center; }

  .why-chart { --why-h: 170px; margin-bottom: 30px; }
  .why-label, .why-chip { font-size: 12px; }
  .why-end-exe { top: calc(var(--why-h) * 0.167 + 24px); }
  .why-vs-head { display: none; }
  .why-vs-row { grid-template-columns: 1fr; gap: 14px; }
  .why-vs-when { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .why-vs-pair { display: flex; flex-direction: column; gap: 10px; }

  .path-stairs { grid-template-columns: 1fr; row-gap: 0; }
  .path-step { padding: 0 0 32px 34px; border-top: 0; border-left: 2px solid var(--ink); }
  .path-step::before { top: 0; left: -8px; }
  .path-step .card-kicker { line-height: 1; }
  .path-fork { grid-template-columns: 1fr; grid-template-areas: "kicker" "title" "note" "personal" "leader"; margin-top: 8px; padding: 28px 24px; }
  .path-fork h3 { font-size: 26px; }
  .path-route:nth-of-type(n) { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--on-dark-line); }
  .path-route:nth-of-type(2) { margin-top: 20px; }

  .reels-track {
    --reel-card-width: min(64vw, 250px);
    --reel-step: calc(var(--reel-card-width) + 14px);
    --reel-focus: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  }

  .principle-grid { grid-template-columns: 1fr; gap: 40px; }
  .principle-quote { min-height: 0; }

  .about-wrap { gap: 44px; }
  .about-timeline { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 28px; }
  .about-timeline::before { top: 14px; right: auto; bottom: 14px; left: 6px; width: 2px; height: auto; }
  .about-timeline li { padding: 0 0 24px; }
  .about-timeline li:last-child { padding-bottom: 0; }
  .about-timeline li::before { top: 14px; left: -28px; }
  .about-timeline b { font-size: 28px; }
  .about-grid { grid-template-columns: repeat(10, minmax(0, 28px)); }
  .about-grid span { width: auto; height: auto; aspect-ratio: 1; }
  .about-next-line { font-size: 26px; }
  .about-partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }

  .career-questions summary { font-size: 17px; }

  .final-card { border-radius: 16px; }
  .final-card .primary-btn, .policy-action .primary-btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .floating-whatsapp { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- Reduced motion: show the finished state, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .why-chart svg { clip-path: none; }
  .why-label, .why-chip, .why-dot { opacity: 1; }
}

/* "EXE Tool (full page)" WordPress template: the embedded tool fills the screen, edge to edge. */
.exe-tool-page { margin: 0; padding: 0; }
.exe-tool-page > * { max-width: none; margin: 0; padding: 0; }
.exe-tool-page iframe { display: block; width: 100%; height: 100vh; height: 100dvh; border: 0; }

body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-nav { top: 0; } }

/* Keep plugin-wide backgrounds outside the EXE homepage canvas. */
html.exe-home-document, body.exe-home, body.exe-home > main#top { background: var(--canvas, #faf9f5) !important; }
