.service-page { margin: 0; background: var(--canvas); color: var(--text-primary); font-family: var(--font-body); line-height: 1.6; }
.service-page * { box-sizing: border-box; }
.service-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.service-nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(18px); }
.service-nav-inner { min-height: 74px; display: flex; align-items: center; gap: 30px; }
.service-logo { display: inline-flex; align-items: center; margin-right: auto; }
.service-logo-image { display: block; width: 152px; height: 48px; object-fit: contain; object-position: left center; }
.service-nav-links { display: flex; align-items: center; gap: 28px; }
.service-nav a { color: inherit; text-decoration: none; }
.service-nav-links a { color: var(--text-body); font-size: 14px; }
.service-nav-links a:hover { color: var(--text-primary); }

/* Services dropdown. Doubles as the top-of-page cross-link between service pages. */
.service-nav-menu { position: relative; }
.service-nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; border: 0; background: none; color: var(--text-body); font-family: inherit; font-size: 14px; cursor: pointer; }
.service-nav-trigger:hover, .service-nav-menu.is-open .service-nav-trigger { color: var(--text-primary); }
.service-nav-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.service-nav-menu.is-open .service-nav-trigger svg { transform: rotate(180deg); }
.service-nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  z-index: 70;
  min-width: 268px;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 2px;
  list-style: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-elev);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.service-nav-menu.is-open .service-nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.service-nav-dropdown a { display: block; padding: 10px 12px; border-radius: var(--r-md); color: var(--text-body); font-size: 14px; }
.service-nav-dropdown a:hover { background: var(--surface-elevated); color: var(--text-primary); }
/* The page you are already on: marked, still clickable, visibly inert. */
.service-nav-dropdown a[aria-current='page'] { color: var(--text-primary); background: var(--surface-elevated); }
.service-nav-dropdown a[aria-current='page']::after { content: '•'; margin-left: 8px; color: var(--accent-blue-link); }
/* Group headings separate the in-site services from the outbound licensing pages. */
.service-nav-group { margin: 10px 12px 4px; color: var(--text-muted); font-family: var(--font-label); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.service-nav-group:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }
/* Marker in CSS, not markup: applyLanguage() replaces each link's textContent wholesale. */
.service-nav-dropdown a[target='_blank']::after { content: '↗'; margin-left: 6px; font-size: 11px; opacity: .65; }
.service-button { min-height: 50px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent-ember); border-radius: var(--r-md); background: var(--accent-ember); color: var(--accent-ember-ink); font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.service-button:hover { background: var(--accent-ember-hover); transform: translateY(-1px); }
.service-button-small { min-height: 42px; padding-inline: 18px; font-size: 14px; }
.service-button-ghost { background: transparent; color: var(--text-primary); }
.service-button-ghost:hover { background: var(--surface-elevated); }
.service-hero { padding: 72px 0 48px; }
.service-hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.service-hero-copy h1 { margin: 0; max-width: 650px; font-family: var(--font-display); font-size: clamp(3.25rem, 4.3vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.service-lead { max-width: 580px; margin: 28px 0 0; color: var(--text-body); font-size: clamp(1.05rem, 1.6vw, 1.28rem); }
.service-actions { display: flex; gap: 12px; margin-top: 34px; }
.service-hero-media { margin: 0; min-height: 520px; overflow: hidden; border-radius: var(--r-xl); }
.service-hero-media img, .agenda-grid figure img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Hero variants. One shared palette across every service page — only the composition changes,
   so a visitor recognises which service they're on at a glance without the brand fragmenting.
   Each is scoped to the hero, and the 900px breakpoint below collapses them all to one column. */

/* Hackathons: mirror of the default. Photo leads, copy follows. */
.service-hero--media-left .service-hero-grid { grid-template-columns: 1.2fr 1fr; }
.service-hero--media-left .service-hero-media { order: -1; }

/* Change Management: centred copy over a wide, short banner — reads as an org-scale programme
   rather than a session. */
.service-hero--banner .service-hero-grid { grid-template-columns: 1fr; justify-items: center; gap: 44px; text-align: center; }
.service-hero--banner .service-hero-copy { display: grid; justify-items: center; }
.service-hero--banner .service-hero-copy h1 { max-width: 18ch; }
.service-hero--banner .service-lead { margin-inline: auto; }
.service-hero--banner .service-hero-media { width: 100%; min-height: 300px; }

/* AI Literacy: no photo. A readiness scorecard stands in for the image, signalling that this
   service produces a measurement rather than a session. */
.service-hero--scorecard .service-hero-grid { grid-template-columns: 1fr .9fr; }
.hero-scorecard { margin: 0; padding: 30px; border: 1px solid var(--hairline-strong); border-radius: var(--r-xl); background: var(--surface); }
.hero-scorecard figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hero-scorecard figcaption strong { font-family: var(--font-display); font-size: 20px; letter-spacing: -.02em; }
.hero-scorecard figcaption span { color: var(--accent-blue-link); font-family: var(--font-label); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.hero-scorecard dl { display: grid; gap: 18px; margin: 0; }
.hero-scorecard div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.hero-scorecard dt { color: var(--text-body); font-size: 14px; }
.hero-scorecard dd { margin: 0; color: var(--text-primary); font-family: var(--font-label); font-size: 13px; }
.hero-scorecard .score-bar { grid-column: 1 / -1; height: 6px; border-radius: var(--r-pill); background: var(--canvas-soft); overflow: hidden; }
.hero-scorecard .score-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--accent-blue); }
.service-section { padding: 88px 0; border-top: 1px solid var(--hairline); }
.service-section h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2.15rem, 3.5vw, 3.75rem); line-height: 1.08; letter-spacing: -.035em; }
.service-section h3 { margin: 0 0 8px; color: var(--text-primary); font-family: var(--font-body); font-size: 18px; line-height: 1.25; }
.service-section p { margin: 0; color: var(--text-body); }
.split-heading { display: grid; grid-template-columns: minmax(260px, .72fr) 1.3fr; gap: 72px; }
.problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.problem-list li { border-top: 2px solid var(--accent-blue); padding-top: 16px; }
.problem-list li > span, .deliverable-rail article > span, .process-rail li > span, .format-list article > span, .agenda-list span:first-child, .outcome-panel article > span { color: var(--accent-blue-link); font-family: var(--font-label); font-size: 12px; }
.problem-list h3 { margin-top: 22px; }
.deliverable-rail { position: relative; display: grid; gap: 0; border-left: 1px solid var(--accent-blue); }
.deliverable-rail article { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 0 0 28px 24px; }
.deliverable-rail article:last-child { padding-bottom: 0; }
.deliverable-rail article > span { width: 44px; height: 44px; margin-left: -47px; display: grid; place-items: center; border: 1px solid var(--accent-blue); border-radius: 50%; background: var(--canvas); }
.service-process { background: var(--canvas-soft); }
/* The timeline's geometry derives entirely from the four variables below. Every dot and every
   connecting segment is positioned relative to its OWN <li> — never a fraction of the rail's
   total width or column count — so nothing assumes 5 steps or an exact rail width. Add or
   remove a step and it still lands on every dot.

   The dots and segments are centred with translate(-50%) / translate(-50%, -50%) off a shared
   anchor point, rather than by offsetting each one by half its own measured size. That keeps
   the maths independent of the dot's border and box model: `.service-page *` does NOT match
   pseudo-elements (`*` only matches real elements), so these would silently fall back to
   content-box and a `--rail-dot / 2` centre would be off by the border width. */
.process-rail {
  --rail-dot: 20px; /* outer diameter, border included */
  --rail-dot-border: 3px;
  --rail-line: 2px;
  --rail-gap: 32px;
  --rail-offset: 28px; /* space above the items, reserved for the dot row */
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--rail-gap);
  margin: 50px 0 0;
  padding: var(--rail-offset) 0 0;
  list-style: none;
}
.process-rail li { position: relative; }
/* Anchor point (before transform) is the item's own top-left dot position. */
.process-rail li::before {
  content: '';
  position: absolute;
  box-sizing: border-box; /* so --rail-dot is the true outer diameter */
  top: calc(-1 * var(--rail-offset));
  left: 0;
  transform: translateX(0);
  width: var(--rail-dot);
  height: var(--rail-dot);
  border: var(--rail-dot-border) solid var(--surface-inverted);
  border-radius: 50%;
  background: var(--accent-blue);
  z-index: 1; /* always paints over the connecting segment below */
}
/* One segment per item (skipping the last, which has nothing to connect to), running from
   THIS item's dot centre to the NEXT item's. One column width (100%) plus one gap is, by
   construction, exactly the distance between two equal columns' same offsets — so it reaches
   the next dot regardless of the rail's rendered width. translateY(-50%) centres it on the
   dot's midline without needing to know the line's own thickness. */
.process-rail li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--rail-offset) + (var(--rail-dot) / 2));
  left: calc(var(--rail-dot) / 2);
  transform: translateY(-50%);
  width: calc(100% + var(--rail-gap));
  height: var(--rail-line);
  background: var(--accent-blue);
  z-index: 0;
}
.process-rail h3 { margin-top: 18px; }
.format-list { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline-strong); }
.format-list article { min-height: 260px; padding: 28px; border-right: 1px solid var(--hairline-strong); }
.format-list article:last-child { border-right: 0; }
.format-list h3 { margin-top: 28px; }
.format-list strong { display: block; margin-bottom: 16px; color: var(--text-primary); font-weight: 600; }
.format-custom { margin-top: 24px; padding: 24px 28px; display: grid; grid-template-columns: 38px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--hairline-strong); border-radius: var(--r-lg); background: var(--surface); }
.format-custom-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--accent-blue); color: var(--accent-blue-on); }
.format-custom h3 { margin: 0 0 4px; }
.format-custom .service-button-ghost { min-height: 44px; border-color: var(--hairline-strong); }
.agenda-section { background: var(--canvas-soft); }
.agenda-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center; }
.agenda-list { display: grid; gap: 0; margin: 34px 0 0; padding: 0; list-style: none; }
.agenda-list li { display: grid; grid-template-columns: 42px 1fr; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.agenda-grid figure { height: 430px; margin: 0; overflow: hidden; border-radius: var(--r-xl); }
.outcomes-grid { display: grid; grid-template-columns: .6fr 1.4fr; gap: 72px; align-items: center; }
.outcome-panel { display: grid; grid-template-columns: repeat(4, 1fr); padding: 34px 20px; border: 1px solid var(--hairline); border-radius: var(--r-xl); background: var(--surface); }
.outcome-panel article { min-height: 130px; padding: 8px 22px; border-right: 1px solid var(--hairline-strong); }
.outcome-panel article:last-child { border-right: 0; }
.outcome-panel h3 { margin-top: 20px; }
.why-strip { padding-block: 60px; }
.why-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px; align-items: start; }
.why-grid h2 { font-size: clamp(2rem, 2.7vw, 3rem); }
.why-grid article { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.why-grid article > span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--accent-blue); border-radius: 50%; color: var(--accent-blue-link); }
.faq-section h2 { margin-bottom: 34px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.faq-grid details { border-top: 1px solid var(--hairline-strong); }
.faq-grid details:last-child { border-bottom: 1px solid var(--hairline-strong); }
.faq-grid summary { cursor: pointer; padding: 19px 34px 19px 0; color: var(--text-primary); font-weight: 600; list-style: none; position: relative; }
.faq-grid summary::after { content: '+'; position: absolute; right: 8px; color: var(--accent-blue-link); }
.faq-grid details[open] summary::after { content: '–'; }
.faq-grid details p { padding: 0 30px 20px 0; }
/* Cross-links to the sibling services, immediately before the contact CTA. */
.service-related { padding: 88px 0; border-top: 1px solid var(--hairline); }
.service-related h2 { margin: 0 0 40px; font-family: var(--font-display); font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.1; letter-spacing: -.035em; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { display: grid; align-content: start; gap: 10px; padding: 28px; border: 1px solid var(--hairline-strong); border-radius: var(--r-xl); background: var(--surface); color: var(--text-primary); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.related-card:hover { transform: translateY(-2px); border-color: var(--accent-blue-link); background: var(--surface-elevated); }
.related-card h3 { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.3; }
.related-card p { margin: 0; color: var(--text-body); font-size: 14px; }
.related-arrow { margin-top: 8px; color: var(--accent-blue-link); }
.related-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.related-card:hover .related-arrow svg { transform: translateX(4px); }
/* Outbound: the arrow leaves the card rather than nudging along it. */
.related-card--external:hover .related-arrow svg { transform: translate(3px, -3px); }
.related-licensing { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--hairline); }
.related-eyebrow { margin: 0 0 20px; color: var(--accent-blue-link); font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.related-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-cta { padding: 30px 0 70px; }
.service-cta-inner { display: grid; grid-template-columns: 1.2fr .9fr auto 1fr; gap: 28px; align-items: center; padding: 34px 40px; border-radius: var(--r-xl); background: var(--surface-inverted); color: var(--inverted-text); }
/* With the lead form inline, the CTA becomes copy-left / form-right. The form keeps the page's
   own palette, so it sits on its own panel rather than inheriting the inverted band. */
.service-cta-inner.has-form { grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: center; padding: 40px; }
.service-cta-copy h2 { margin-bottom: 14px; }
@media (max-width: 900px) {
  .service-cta-inner.has-form { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px; }
}
.service-cta h2 { margin: 0; color: var(--inverted-text); font-family: var(--font-display); font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.service-cta p { color: color-mix(in srgb, var(--inverted-text) 72%, transparent); }
.service-email { color: var(--inverted-text); text-underline-offset: 5px; }
html:lang(th) .service-page { line-height: 1.8; }
html:lang(th) .service-hero-copy h1, html:lang(th) .service-section h2, html:lang(th) .service-cta h2 { line-height: 1.25; letter-spacing: -.2px; }
html:lang(th) .service-section h3, html:lang(th) .service-nav-links, html:lang(th) .service-button { letter-spacing: 0; }
@media (max-width: 900px) {
  /* Keep the Services menu on small screens — it is the only top-of-page way to reach a
     sibling service. The in-page anchors drop, as they did before. */
  .service-nav-links { gap: 0; }
  .service-nav-anchor { display: none; }
  .service-nav-dropdown { left: auto; right: -8px; min-width: min(80vw, 268px); }
  /* --pair is one class deeper than .related-grid, so it must be restated here to collapse. */
  .related-grid, .related-grid--pair { grid-template-columns: 1fr; }
  .service-related { padding: 64px 0; }
  .service-hero-grid, .agenda-grid, .outcomes-grid, .split-heading { grid-template-columns: 1fr; gap: 38px; }
  /* The hero variants above are scoped one class deeper, so they outrank the single-column
     rule on the line above and must be restated here at matching specificity to collapse. */
  .service-hero--media-left .service-hero-grid,
  .service-hero--banner .service-hero-grid,
  .service-hero--scorecard .service-hero-grid { grid-template-columns: 1fr; }
  .service-hero-media { min-height: 420px; }
  .service-hero--banner .service-hero-media { min-height: 260px; }
  .problem-list { grid-template-columns: 1fr; }
  .deliverable-rail { margin-left: 32px; }
  /* Stacked layout: each item's height varies with its wrapped text, so a single line spanning
     the whole rail can't reach both the first and last dot's centres — it either falls short or
     overshoots depending on content length. The per-item segment already solves that; here only
     the axis flips and two mobile-only constants are introduced. Anchors and centring are
     derived exactly as above. */
  .process-rail {
    --rail-gutter: 28px; /* left padding reserved for the marker column */
    --rail-row-gap: 28px; /* vertical gap between stacked items */
    --rail-dot-top: 3px; /* the dot's vertical offset inside its own item */
    grid-template-columns: 1fr;
    gap: var(--rail-row-gap);
    padding-left: var(--rail-gutter);
  }
  .process-rail li::before { top: var(--rail-dot-top); left: calc(-1 * var(--rail-gutter)); }
  .process-rail li:not(:last-child)::after {
    /* Starts on this dot's centre; `bottom` reaches down past the row gap to the NEXT item's
       dot centre, so it lands exactly regardless of THIS item's rendered height. */
    top: calc(var(--rail-dot-top) + (var(--rail-dot) / 2));
    left: calc(-1 * var(--rail-gutter) + (var(--rail-dot) / 2));
    bottom: calc(-1 * (var(--rail-row-gap) + var(--rail-dot-top) + (var(--rail-dot) / 2)));
    transform: translateX(-50%);
    width: var(--rail-line);
    height: auto;
  }
  .process-rail h3 { margin-top: 6px; }
  .format-list, .outcome-panel { grid-template-columns: repeat(2, 1fr); }
  .format-list article:nth-child(2), .outcome-panel article:nth-child(2) { border-right: 0; }
  .format-list article:nth-child(-n+2), .outcome-panel article:nth-child(-n+2) { border-bottom: 1px solid var(--hairline-strong); }
  .why-grid { grid-template-columns: 1fr; }
  .service-cta-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .service-container { width: min(100% - 32px, 1180px); }
  .service-nav-inner { min-height: 64px; }
  .service-logo-image { width: 122px; height: 40px; }
  .service-nav .service-button { padding-inline: 13px; font-size: 12px; }
  .service-hero { padding-top: 48px; }
  .service-hero-copy h1 { font-size: 2.8rem; }
  .service-actions { align-items: stretch; flex-direction: column; }
  .service-hero-media { min-height: 330px; }
  .service-section { padding: 64px 0; }
  .format-list, .outcome-panel, .faq-grid, .service-cta-inner { grid-template-columns: 1fr; }
  .format-list article, .outcome-panel article { border-right: 0; border-bottom: 1px solid var(--hairline-strong); }
  .format-list article:last-child, .outcome-panel article:last-child { border-bottom: 0; }
  .agenda-grid figure { height: 310px; }
  .format-custom { grid-template-columns: 38px 1fr; padding: 22px; }
  .format-custom .service-button { grid-column: 1 / -1; width: 100%; }
  .service-cta-inner { padding: 28px 24px; }
}
