/*--------------------------------------------------------------
# Typography (shared by every page)
Sizes follow the Home page. Thai-safe: headings use
letter-spacing 0 and line-height >= 1.2 so vowel / tone marks
never collide or get clipped.
Page stylesheets must NOT set font-size / font-weight /
line-height / letter-spacing on the classes below.
--------------------------------------------------------------*/
:root {
  --font-sans: "Inter", "Noto Sans Thai", sans-serif;

  /* Headings */
  --fs-h1: clamp(36px, 6vw, 80px);
  --lh-h1: 1.2;
  --fw-h1: 900;

  --fs-h2: clamp(30px, 5.8vw, 78px);
  --lh-h2: 1.2;
  --fw-h2: 900;

  --fs-h3: clamp(26px, 4vw, 46px);
  --lh-h3: 1.25;
  --fw-h3: 900;

  --fs-h4: 22px;
  --lh-h4: 1.3;
  --fw-h4: 800;

  --ls-heading: 0;

  /* Eyebrows / labels */
  --fs-eyebrow: 12px;
  --fs-kicker: 13px;
  --fw-kicker: 900;
  --ls-kicker: .14em;

  --fs-label: 11px;
  --fw-label: 800;
  --ls-label: .1em;

  /* Text */
  --fs-lead: clamp(16px, 1.8vw, 20px);
  --lh-lead: 1.75;
  --fw-lead: 600;

  --lh-lead-lg: 1.6;
  --fw-lead-lg: 800;

  --fs-body: 17px;
  --lh-body: 1.8;
  --fw-body: 500;

  --lh-body-lg: 1.85;

  --fs-small: 15px;
  --lh-small: 1.7;

  --fw-meta: 800;

  /* UI */
  --fs-nav: 11px;
  --fw-nav: 900;
  --ls-nav: .12em;

  --fs-footer-link: 13px;

  --fw-btn: 900;

  /* Milestone timeline (About): year + milestone name */
  --fs-year: 20px;
  --fs-milestone: 17px;

  /* Numbers (Latin digits) */
  --fs-stat: clamp(34px, 4vw, 54px);
  --lh-stat: 1;
  --ls-stat: -.03em;

  /* 404 page: the big "404" (Latin digits) */
  --fs-error-code: clamp(120px, 30vw, 300px);
  --lh-error-code: 1;
  --ls-error-code: -.04em;
}

@media (max-width: 768px) {
  :root {
    --fs-nav: 12px;
    --fs-year: 17px;
  }
}

/* Small phones (<=480px): card headings and big numbers step down a size
   so long uppercase words fit narrow columns. */
@media (max-width: 480px) {
  :root {
    --fs-h4: 19px;
    --fs-stat: 32px;
    --fs-milestone: 15px;
  }
}

/* Long words / URLs in headings wrap instead of pushing the page sideways */
h1,
h2,
h3,
h4 {
  overflow-wrap: break-word;
}

body {
  font-family: var(--font-sans);
}

/*--------------------------------------------------------------
# Shared text classes
--------------------------------------------------------------*/
/* h1 */
h1,
.hero h1,
.hero-video-title {
  font-size: var(--fs-h1);
  font-weight: var(--fw-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-heading);
}

/* eyebrow */
.hero-video-eyebrow,
.hero-eyebrow,
.kicker,
.pill {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-kicker);
  letter-spacing: var(--ls-kicker);
}

/* kicker */
.section-kicker,
.milestone-kicker {
  font-size: var(--fs-kicker);
  font-weight: var(--fw-kicker);
  letter-spacing: var(--ls-kicker);
}

/* h2 */
.section-title,
.milestone-title,
.intro-card h2,
.jobs-panel h2,
.form-box h2,
.reel-panel h2,
.feature-content h2,
.project-content h2,
.activity-panel h2,
.contact-hub-intro h2,
.embed-intro-card h2,
.mission-box h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-heading);
}

/* h3 */
.cta-box .section-title,
.cta-box h2,
.cta-card h2,
.form-title,
.office-card h2,
.quick-card h3,
.hub-office h3,
.hub-routes-heading h3,
.portrait-caption h3,
.connect-content h3,
.culture-caption h3,
.banner h3,
.caption h3,
.article-content h2,
.commitment-title,
.phone-ui h3,
.image-orb-main .orb-label b,
.flow-card-text b,
.showcase-caption b,
.error-404 .nf-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-heading);
}

/* h4 */
.value-card h3,
.benefit-card h3,
.job-card h3,
.milestone-card h3,
.hero-card h3,
.step h3,
.step h4,
.news-body h3,
.case-body h3,
.related-body h3,
.feature-content h3,
.project-content h3,
.service-card h3,
.service-collapse-heading h3,
.project-info h4,
.service-card h4,
.timeline-item h3,
.block-title,
.embed-meta h3,
.video-caption h3,
#social-embeds .video-caption h3,
.article-content h3,
.expertise-item b,
.stat .stat-label {
  font-size: var(--fs-h4);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-heading);
}

/* label */
.tag,
.related-tag,
.play-badge,
.ig-badge,
.phone-pill,
.hub-office-mark,
.milestone-head,
.expanded-label,
.embed-platforms span,
.metric span,
.float-metric span,
.activity-stat span,
.embed-stats span,
.case-stats span,
.stat-bar-item span,
.ig-phone-overlay em,
.video-frame:after,
.quote-box span,
.portrait-caption small,
.float-badge small,
.bubble-text small,
.job-card small,
.milestone-card small,
.quick-link small,
.role-select-card small,
.hub-map-toolbar small,
.hub-routes-heading small,
.hub-route-card small,
.center-card small,
.floating-node small,
.mini-social-card small,
.news-body small,
.case-body small,
.mission-box small,
.video-caption small,
.embed-intro-card small,
.embed-card small,
.caption small,
.related-body small,
#social-embeds .video-caption small,
.floating-metric small,
.data-card small,
.image-orb-main .orb-label small,
.orb-badge small,
.flow-card-text small,
.flow-metrics small,
.showcase-caption small,
.showcase-stats small {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
}

/* lead */
.hero-copy,
.hero-video-copy {
  font-size: var(--fs-lead);
  font-weight: var(--fw-lead);
  line-height: var(--lh-lead);
}

/* body */
.section-copy,
.milestone-intro,
.service-collapse-panel p,
.expanded-inner {
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
}

/* small */
.news-body p,
.related-body p,
.embed-meta p,
.cta-card p,
.cta-box .section-copy,
.cta-box p,
.short-copy,
.contact-hub-intro p,
.hub-address,
.service-collapse-heading p,
.hub-routes-heading p,
.portrait-caption p {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
}

/* nav */
.menu a,
.nav-links a {
  font-size: var(--fs-nav);
  font-weight: var(--fw-nav);
  letter-spacing: var(--ls-nav);
}

/* footer */
.footer-links a {
  font-size: var(--fs-footer-link);
  font-weight: var(--fw-nav);
  letter-spacing: var(--ls-nav);
}

/* stat */
.stat b,
.metric b,
.float-metric b,
.data-card b,
.data-card .value,
.activity-stat b,
.calendar-item b,
.highlight-item b,
.case-stats b,
.embed-stats b,
.flow-metrics b,
.showcase-stats b,
.center-card b,
.mini-chart strong,
.stat-bar-item b,
.stats-3 .stat b,
.hero-panel b,
.float-badge b,
.orb-badge b,
.mini-social-card b,
.hero-card-info b,
.floating-metric b {
  font-size: var(--fs-stat);
  line-height: var(--lh-stat);
  letter-spacing: var(--ls-stat);
}



/* Portfolio case cards: the stat line ("Beauty industry", "FMCG") is a word,
   not a number, so on desktop it uses a smaller size that fits one line in a
   3-column card. Phones (<=720px) keep --fs-stat. */
@media (min-width: 721px) {
  .case-stats b {
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.15;
    letter-spacing: 0;
  }
}

/* Milestone timeline (About) */
.year {
  font-size: var(--fs-year);
  font-weight: var(--fw-h1);
  line-height: var(--lh-stat);
  letter-spacing: var(--ls-stat);
}

.milestone-name strong {
  font-size: var(--fs-milestone);
  font-weight: var(--fw-h4);
  line-height: var(--lh-h4);
  letter-spacing: var(--ls-heading);
}

/* 404 page: big error code + floating chips */
.error-code {
  font-size: var(--fs-error-code);
  font-weight: var(--fw-h1);
  line-height: var(--lh-error-code);
  letter-spacing: var(--ls-error-code);
}

.nf-chip,
.nf-hint-text {
  font-size: var(--fs-label);
  font-weight: var(--fw-label);
  letter-spacing: var(--ls-label);
}
