  /* ═══════════════════════════════════════════════════════════
     RESET & DESIGN TOKENS
     Sampled directly from JMAC CI Branding artwork
     (Navy #233969 · Cyan #2596BE · Black #191818)
     ═══════════════════════════════════════════════════════════ */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    /* ── JMAC Brand Colors (sampled from CI artwork) ─────────── */
    --navy:        #233969;     /* PRIMARY — JMAC logo + JP tagline */
    --navy-deep:   #15244A;     /* darker shade for hover/pressed */
    --navy-soft:   #EAEEF6;     /* very light tint background */
    --cyan:        #2596BE;     /* SECONDARY — first CI dot */
    --cyan-deep:   #1A7A9E;
    --cyan-soft:   #E5F3F8;
    --jmac-black:  #191818;     /* ACCENT — third CI dot */

    /* ── Neutrals (consulting paper palette) ─────────────────── */
    --ink:         #0F1419;
    --ink-2:       #1D2530;
    --graphite:    #2B3340;
    --gray-900:    #3A424E;
    --gray-700:    #5A6270;
    --gray-500:    #8A8F9A;
    --gray-300:    #C4C8D0;
    --gray-200:    #E2E5EA;
    --gray-100:    #EEF0F4;
    --paper:       #F7F8FA;     /* off-white background */
    --bone:        #FBFBFC;
    --white:       #FFFFFF;
    --border:      #E2E5EA;
    --border-2:    #D4D8E0;

    /* ── Typography — Noto Sans Thai across the whole site (Thai & English) */
    --sans-th: 'Noto Sans Thai', system-ui, sans-serif;
    --sans-en: 'Noto Sans Thai', system-ui, sans-serif;
    --sans-jp: 'Noto Sans Thai', 'Noto Sans JP', sans-serif;
    --serif-jp:'Noto Sans Thai', 'Noto Sans JP', sans-serif;
    --display: 'Noto Sans Thai', sans-serif;

    /* ── Easings ─────────────────────────────────────────────── */
    --ease: cubic-bezier(.65,.05,.36,1);
  }

  html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  body {
    font-family: var(--sans-th);
    color: var(--ink);
    background: var(--white);
    font-size: 16px;
    line-height: 1.7;
    font-weight: 400;
  }
  a { color: inherit; }
  ::selection { background: var(--navy); color: #fff; }

  /* utility — JP tagline mark */
  .jp-tagline {
    font-family: var(--serif-jp);
    color: var(--navy);
    font-weight: 500;
    letter-spacing: .06em;
  }

  /* editorial eyebrow */
  .eyebrow {
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--cyan-deep);
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .eyebrow::before {
    content: ''; width: 30px; height: 1px; background: var(--cyan);
    display: none;
  }

  /* ═══════════════════════════════════════════════════════════
     TOP UTILITY BAR (lang switcher · contact links)
     ═══════════════════════════════════════════════════════════ */
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0 80px;
    height: 38px;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    font-family: var(--sans-en);
  }
  .top-bar-meta {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .top-bar-meta a,
  .top-bar-meta span {
    font-size: 16px;
    color: var(--gray-700);
    text-decoration: none;
    letter-spacing: .5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
  }
  .top-bar-meta a:hover { color: var(--navy); }
  .top-bar-meta i { font-size: 18px; color: var(--cyan); }
  .top-bar-divider {
    width: 1px;
    height: 14px;
    background: var(--border-2);
  }

  /* Navigation pushed down — top:38px to stack under top-bar */
  nav { top: 38px; }

  /* Body offset to compensate for fixed top-bar + nav (38 + 78 = 116) */
  body { padding-top: 116px; }

  /* ═══════════════════════════════════════════════════════════
     NAVIGATION
     ═══════════════════════════════════════════════════════════ */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    height: 78px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    left: 0;
    right: 0;
    z-index: 100;
  }

  .nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .logo-mark {
    height: 44px;
    width: auto;
    max-width: 220px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    object-position: left center;
  }
  .logo-text {
    font-family: var(--display);
    font-size: 20px; font-weight: 700;
    letter-spacing: .5px; color: var(--navy);
    line-height: 1.1;
  }
  .logo-sub {
    font-size: 16px; color: var(--gray-700);
    letter-spacing: 1.8px; text-transform: uppercase;
    margin-top: 3px;
    font-family: var(--sans-en);
    font-weight: 500;
  }
  /* Footer logo — smaller variant */
  .footer-logo {
    height: 32px;
    width: auto;
    max-width: 160px;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
    opacity: .85;
    filter: brightness(0) invert(1);
  }

  .nav-center { display: flex; align-items: center; gap: 2px; }
  .nav-item {
    position: relative;
  }
  .nav-item > a, .nav-item > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 28px 18px;
    font-size: 20px;
    color: var(--ink-2);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color .25s var(--ease);
    cursor: pointer;
    font-family: var(--sans-th);
    background: none;
    border: none;
    line-height: 1;
    user-select: none;
  }
  .nav-item > a::after, .nav-item > .nav-link::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: 22px;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--ease);
  }
  .nav-item:hover > a, .nav-item:hover > .nav-link { color: var(--navy); }
  .nav-item:hover > a::after, .nav-item:hover > .nav-link::after { transform: scaleX(1); }
  /* Active/current nav item — same navy text + persistent cyan underline as the
     hover state, so the current page's menu item matches every other item
     (no stuck blue, no missing underline). Covers both plain <a> items
     (เกี่ยวกับเรา) and dropdown .nav-link items (บริการ / กรณีศึกษา / ความรู้). */
  .nav-item.current > a,
  .nav-item.current > .nav-link { color: var(--navy); }
  .nav-item.current > a::after,
  .nav-item.current > .nav-link::after { transform: scaleX(1); }
  .nav-item.has-dropdown > .nav-link .caret {
    font-size: 16px;
    margin-left: 4px;
    display: inline-block;
    transition: transform .3s var(--ease);
    color: var(--gray-500);
  }
  .nav-item.has-dropdown:hover > .nav-link .caret { transform: rotate(180deg); color: var(--cyan); }

  /* Dropdown panel */
  .nav-dropdown {
    position: absolute;
    top: 100%; left: -20px;
    min-width: 300px;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 2px solid var(--cyan);
    box-shadow: 0 24px 60px rgba(15,20,25,.12);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    z-index: 110;
  }
  .nav-item.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 8px;
    transition: background .2s, color .2s;
    position: relative;
  }
  .nav-dropdown a:hover {
    background: var(--paper);
    color: var(--navy);
  }
  .nav-dropdown a .nav-sub-label {
    display: block;
    font-size: 16px;
    color: var(--gray-500);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
    font-family: var(--sans-en);
  }
  .nav-dropdown a:hover .nav-sub-label { color: var(--cyan-deep); }

  /* ── Services mega panel: single joined two-column layout ── */
  .nav-dropdown.svc-mega {
    min-width: 700px;
    padding: 0;
    display: grid;
    grid-template-columns: 310px 1fr;
    overflow: hidden;
  }
  .svc-col-main {
    background: var(--paper);
    padding: 12px;
    border-right: 1px solid var(--border);
  }
  .svc-col-sub {
    padding: 12px;
    position: relative;
    min-height: 100%;
  }
  /* main category buttons */
  .svc-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, color .2s;
  }
  .svc-cat .sub-caret {
    font-size: 16px;
    color: var(--gray-400, #b4bcc4);
    flex-shrink: 0;
    transition: color .2s, transform .2s var(--ease);
  }
  .svc-cat:hover,
  .svc-cat.active {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(15,20,25,.05);
  }
  .svc-cat:hover .sub-caret,
  .svc-cat.active .sub-caret { color: var(--cyan); transform: translateX(2px); }

  /* ── "กรณีศึกษา" dropdown — same box (light gray .svc-col-main background,
     white + shadow on hover) and font as the services mega-menu's category
     list, just a single column of plain links with no arrow/sub-panel. ── */
  .nav-dropdown.cases-list { padding: 0; overflow: hidden; }
  .nav-dropdown.cases-list .svc-col-main { border-right: none; }
  .nav-dropdown.cases-list .svc-col-main a {
    display: block;
    padding: 13px 16px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    border-radius: 8px;
    transition: background .2s, color .2s, box-shadow .2s;
  }
  .nav-dropdown.cases-list .svc-col-main a:hover {
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(15,20,25,.05);
  }

  /* sub-panels stacked in same box, shown on hover of matching category */
  .svc-panel { display: none; }
  .svc-panel.active { display: block; }
  .svc-panel-title {
    font-family: var(--sans-en);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cyan-deep);
    font-weight: 700;
    padding: 8px 16px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
  }
  .svc-panel a {
    display: block;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 8px;
    transition: background .2s, color .2s;
  }
  .svc-panel a:hover {
    background: var(--paper);
    color: var(--navy);
  }
  .svc-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 180px;
    color: var(--gray-500);
    font-size: 16px;
    text-align: center;
    padding: 24px;
  }
  .svc-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: var(--gray-500);
    font-family: var(--sans-th);
    font-size: 16px;
    text-align: center;
    padding: 24px;
  }
  .svc-col-sub:has(.svc-panel.active) .svc-hint { display: none; }
  /* hide the right column entirely until a category is hovered */
  .svc-col-sub { display: none; }
  .svc-mega:has(.svc-panel.active) { grid-template-columns: 310px 1fr; }
  .svc-mega:has(.svc-panel.active) .svc-col-sub { display: block; }
  .svc-mega:not(:has(.svc-panel.active)) { grid-template-columns: 310px; min-width: 0; }
  .svc-mega:not(:has(.svc-panel.active)) .svc-col-main { border-right: none; }

  /* Wider mega-dropdown for Insights (4 columns) */
  .nav-dropdown.mega {
    min-width: 700px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 18px;
  }
  .nav-dropdown.mega::before {
    content: 'INSIGHTS & KNOWLEDGE';
    grid-column: 1 / -1;
    font-size: 16px;
    letter-spacing: 2.5px;
    color: var(--gray-500);
    font-weight: 700;
    padding: 4px 14px 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    font-family: var(--sans-en);
  }

  .nav-right { display: flex; align-items: center; gap: 14px; }

  .nav-search {
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border-2);
    padding: 6px 4px 6px 8px;
    transition: border-color .25s;
  }
  .nav-search > i { color: var(--gray-500); font-size: 16px; transition: color .25s; }
  .nav-search:focus-within { border-bottom-color: var(--navy); }
  .nav-search:focus-within > i { color: var(--navy); }
  .nav-search input {
    background: none; border: none; outline: none;
    font-size: 16px; color: var(--ink); width: 160px;
    font-family: var(--sans-th);
  }
  .nav-search input::placeholder { color: var(--gray-500); }

  .lang-btns { display: flex; gap: 0; align-items: center; }
  .lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background: none;
    color: var(--gray-700);
    font-family: var(--sans-en);
    font-weight: 600;
    letter-spacing: 1.2px;
    transition: color .2s;
    position: relative;
    line-height: 1;
  }
  .lang-btn::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: var(--border-2);
  }
  .lang-btn:last-child::after { display: none; }
  .lang-btn:hover { color: var(--navy); }
  .lang-btn.active { color: var(--navy); font-weight: 700; }
  .lang-flag {
    width: 24px;
    height: 17px;
    display: inline-block;
    flex-shrink: 0;
    border: 1px solid var(--border-2);
    overflow: hidden;
    border-radius: 1px;
    filter: saturate(.92);
    transition: filter .25s, transform .25s;
  }
  .lang-btn:hover .lang-flag { filter: saturate(1.1); transform: scale(1.08); }
  .lang-btn.active .lang-flag { filter: saturate(1); }
  .lang-flag svg { display: block; width: 100%; height: 100%; }

  .btn-call {
    --btn-call-bg: #2295C4;
    --btn-call-fg: #fff;
    --btn-call-notch: 10px;
    position: relative;
    isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box;
    height: 44px;
    padding: 0 22px;
    background: var(--btn-call-bg);
    color: var(--btn-call-fg);
    border: none;
    font-size: 16px; font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--sans-th);
    letter-spacing: .3px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--btn-call-notch)),
                        calc(100% - var(--btn-call-notch)) 100%, 0 100%);
    transition: color .25s var(--ease);
  }
  /* Inner fill layer — 1px inset and re-clipped. The 1px gap to the outer
     edge IS the visible cyan ring (border on all sides, including diagonal).
     On hover the inner layer turns white, revealing the cyan ring fully. */
  .btn-call::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--btn-call-bg);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (var(--btn-call-notch) - 1px)),
                        calc(100% - (var(--btn-call-notch) - 1px)) 100%, 0 100%);
    transition: background .25s var(--ease);
    z-index: -1;
    pointer-events: none;
  }
  .btn-call:hover { color: var(--btn-call-bg); }
  .btn-call:hover::before { background: var(--btn-call-fg); }

  /* Secondary button — outlined cyan, matches btn-call notch */
  .btn-contact {
    --btn-contact-color: #2295C4;
    --btn-contact-notch: 10px;
    position: relative;
    isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-sizing: border-box;
    height: 44px;
    padding: 0 22px;
    background: transparent;
    color: var(--btn-contact-color);
    border: none;
    font-size: 16px; font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--sans-th);
    letter-spacing: .3px;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--btn-contact-notch)),
                        calc(100% - var(--btn-contact-notch)) 100%, 0 100%);
    transition: color .25s var(--ease);
  }
  /* Cyan ring via inset white fill layer */
  .btn-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--btn-contact-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--btn-contact-notch)),
                        calc(100% - var(--btn-contact-notch)) 100%, 0 100%);
    transition: background .25s var(--ease);
    z-index: -2;
    pointer-events: none;
  }
  .btn-contact::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (var(--btn-contact-notch) - 1px)),
                        calc(100% - (var(--btn-contact-notch) - 1px)) 100%, 0 100%);
    transition: background .25s var(--ease);
    z-index: -1;
    pointer-events: none;
  }
  .btn-contact:hover { color: #fff; }
  .btn-contact:hover::after { background: var(--btn-contact-color); }

  /* ═══════════════════════════════════════════════════════════
     HERO — Full-bleed video background
     ═══════════════════════════════════════════════════════════ */
  .hero {
    position: relative;
    height: calc(100vh - 116px);
    height: calc(100svh - 116px);
    max-height: none;
    min-height: calc(100vh - 116px);
    min-height: calc(100svh - 116px);
    background: var(--navy-deep);
    overflow: hidden;
    isolation: isolate;            /* keep overlays contained */
  }

  /* Video element fills hero, sits behind overlay & content */
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
  }

  /* Multi-layer overlay so text/CTAs never drown in the video.
     Layer A — left→right dark gradient anchors text on the left.
     Layer B — bottom vignette adds depth & contrast for CTAs.
     Layer C — top fade ties hero into nav.
     Layer D — subtle navy brand tint. */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(90deg,
        rgba(8,16,34,.78) 0%,
        rgba(10,22,44,.55) 32%,
        rgba(12,26,48,.22) 58%,
        rgba(15,30,55,0) 80%),
      linear-gradient(to top,
        rgba(0,0,0,.78) 0%,
        rgba(0,0,0,.45) 22%,
        rgba(0,0,0,.1) 50%,
        rgba(0,0,0,0) 70%),
      linear-gradient(135deg,
        rgba(35,57,105,.18) 0%,
        rgba(37,150,190,.08) 100%);
  }

  /* Fine grain noise/scan to keep gradients from feeling flat */
  .hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
      ellipse at 25% 90%,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,.35) 100%
    );
    mix-blend-mode: multiply;
    opacity: .55;
  }

  /* Content sits above overlay — pinned LEFT-BOTTOM, full-bleed left */
  .hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 64px 80px 64px;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 18px;
    color: #fff;
  }
  .hero-content > .hero-h1,
  .hero-content > .hero-lede,
  .hero-content > .hero-ctas { max-width: min(1200px, 85%); width: min(1200px, 85%); }

  /* JP tagline pinned at top of hero — homage to CI */
  .hero-jp-mark {
    font-family: var(--serif-jp);
    font-size: 16px;
    color: #fff;
    letter-spacing: .12em;
    font-weight: 500;
    padding-left: 14px;
    border-left: 2px solid var(--cyan);
    width: fit-content;
    line-height: 1.6;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
  }

  .hero-tag {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--cyan);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    width: fit-content;
    font-family: var(--sans-en);
  }
  .hero-tag::before {
    content: ''; width: 28px; height: 1px;
    background: var(--cyan);
  }

  .hero-h1 {
    font-family: var(--display);
    font-size: clamp(30px, 3vw,44px);
    line-height: 1.22;
    color: #fff;
    font-weight: 400;
    letter-spacing: -.015em;
    max-width: 100%;
    text-wrap: balance;
    text-shadow: 0 4px 32px rgba(0,0,0,.65), 0 2px 8px rgba(0,0,0,.4);
  }
  .hero-h1 strong { font-weight: 700; color: #fff; }
  .hero-h1 .accent {
    color: #5BCEF2;
    font-weight: 600;
    text-shadow: 0 4px 32px rgba(0,0,0,.7), 0 2px 8px rgba(0,0,0,.5), 0 0 24px rgba(91,206,242,.35);
  }

  /* Body paragraph beneath H1 */
  .hero-lede {
    font-family: var(--sans-en);
    font-size: clamp(18px, 1.4vw,22px);
    line-height: 1.65;
    color: rgba(255,255,255,.92);
    font-weight: 400;
    letter-spacing: .005em;
    max-width: 100%;
    text-wrap: pretty;
    text-shadow: 0 2px 14px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.4);
    margin: 0;
  }

  /* Small editorial eyebrow above H1 — corporate identifier */
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.92);
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .04em;
    width: fit-content;
    padding-left: 14px;
    border-left: 2px solid var(--cyan);
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
  }

  /* JP-style slogan beneath H1 — serif, calm, signature line */
  .hero-slogan {
    font-family: var(--serif-jp);
    font-size: clamp(18px, 1.6vw,22px);
    font-weight: 500;
    font-style: italic;
    color: #fff;
    letter-spacing: .04em;
    line-height: 1.5;
    max-width: 620px;
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
    position: relative;
    padding-bottom: 18px;
  }
  .hero-slogan::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 56px; height: 2px;
    background: var(--cyan);
  }

  .hero-props {
    display: flex; flex-direction: column;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.18);
    margin-top: 4px;
  }
  .prop-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.92);
    font-size: 16px;
    font-weight: 500;
  }
  .prop-dot {
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    flex-shrink: 0;
  }

  .hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
  /* Hero About JMAC button — override the unified .btn-primary width
     so it hugs content instead of stretching to 240px. Slightly larger
     padding for hero-button presence. */
  .hero-ctas .btn-primary {
    min-width: 0;
    width: fit-content;
    height: 52px;
    padding: 0 32px;
    gap: 18px;
    justify-content: flex-start;
  }
  /* Arrow sits right next to the text, not pushed to the far right */
  .hero-ctas .btn-primary::after { margin-left: 0; }

  /* ═══════════════════════════════════════════════════════════
     PRIMARY BUTTONS — สัดส่วนแบบ jmac.co.jp (ยาว, notch มุมขวา)
     พื้นฟ้า text ขาว · hover: พื้นขาว text ฟ้า
     ═══════════════════════════════════════════════════════════ */
  .btn-primary,
  .btn-download,
  .view-all,
  .wp-btn,
  .jmac01-imported .know .section-header .view-all {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 44px;
    padding: 0 22px;
    background: #2295C4;
    color: #fff;
    border: 1px solid #2295C4;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    font-family: var(--sans-th);
    text-decoration: none;
    white-space: nowrap;
    min-width: 240px;
    box-shadow: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  }
  /* Arrow (::after for btn-primary/btn-download, <i> for view-all/wp-btn) */
  .btn-primary::after,
  .btn-download::after {
    content: '→';
    font-size: 22px;
    font-weight: 400;
    margin-left: auto;
    transition: transform .3s var(--ease);
  }
  .view-all i,
  .wp-btn i,
  .jmac01-imported .know .section-header .view-all i {
    font-size: 22px;
    margin-left: auto;
    transition: transform .3s var(--ease);
  }
  /* Hover — invert: พื้นขาว text/arrow สีฟ้า */
  .btn-primary:hover,
  .btn-download:hover,
  .view-all:hover,
  .wp-btn:hover,
  .jmac01-imported .know .section-header .view-all:hover {
    background: #fff;
    color: #2295C4;
    border-color: #2295C4;
  }
  .btn-primary:hover::after,
  .btn-download:hover::after,
  .view-all:hover i,
  .wp-btn:hover i,
  .jmac01-imported .know .section-header .view-all:hover i {
    transform: translateX(6px);
  }

  /* Diagonal-clipped button.
     The fill lives on ::before (clipped to the polygon).
     The border is drawn on the button itself with 5 layered backgrounds:
     top, left, right (short), bottom (short), and a 14×14 SVG diagonal
     pinned to the bottom-right — so the border follows the clip-path exactly. */
  .btn-outline {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 44px;
    padding: 0 22px;
    background-color: transparent;
    color: #fff;
    border: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    font-family: var(--sans-th);
    text-decoration: none;
    white-space: nowrap;
    min-width: 240px;
    transition: color .25s var(--ease);
    background-image:
      linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
      linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
      linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
      linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><line x1='0' y1='14' x2='14' y2='0' stroke='white' stroke-opacity='0.55' stroke-width='1'/></svg>");
    background-position:
      0 0,        /* top */
      0 0,        /* left */
      100% 0,     /* right */
      0 100%,     /* bottom */
      100% 100%;  /* diagonal corner */
    background-size:
      100% 1px,
      1px 100%,
      1px calc(100% - 14px),
      calc(100% - 14px) 1px,
      14px 14px;
    background-repeat: no-repeat;
  }
  .btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    z-index: -1;
    transition: background .25s var(--ease);
  }
  .btn-outline::after {
    content: '→';
    font-size: 22px;
    font-weight: 400;
    margin-left: auto;
    transition: transform .3s var(--ease);
  }
  .btn-outline:hover { color: #fff; background-image: none; }
  .btn-outline:hover::before { background: var(--cyan); }
  .btn-outline:hover::after { transform: translateX(6px); }

  /* ───────────────────────────────────────────────────────────
     VIEW-ALL — outline variant on LIGHT backgrounds.
     Same diagonal-clipped silhouette as .btn-outline, but cyan
     border / cyan text by default, flipping to filled cyan +
     white text on hover. Overrides the .view-all selector that
     was unified with .btn-primary above.
     ─────────────────────────────────────────────────────────── */
  .view-all,
  .jmac01-imported .know .section-header .view-all {
    position: relative;
    /* Cancel inherited clip-path from the .btn-primary group — the fill is
       clipped on ::before, not on the element itself, so border layers can
       reach the polygon's edges (including the diagonal). */
    clip-path: none;
    /* Sizing: hug content with the requested 23px gap between text and arrow */
    min-width: 0;
    width: fit-content;
    height: 52px;
    padding: 0 32px;
    justify-content: flex-start;
    gap: 23px;
    background-color: transparent;
    color: var(--cyan);
    border: 0;
    /* 5-layer border that follows the clip-path.
       SVG stroke uses rgb() — not '#hex' — because some browsers don't decode
       %23 inside unquoted ;utf8, data URIs, which made the diagonal vanish. */
    background-image:
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><line x1='0' y1='14' x2='14' y2='0' stroke='rgb(37,150,190)' stroke-width='1'/></svg>");
    background-position: 0 0, 0 0, 100% 0, 0 100%, 100% 100%;
    background-size:
      100% 1px,
      1px 100%,
      1px calc(100% - 14px),
      calc(100% - 14px) 1px,
      14px 14px;
    background-repeat: no-repeat;
    transition: color .25s var(--ease), background-image .25s var(--ease);
  }
  .view-all::before,
  .jmac01-imported .know .section-header .view-all::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    z-index: -1;
    transition: background .25s var(--ease);
  }
  .view-all > *,
  .jmac01-imported .know .section-header .view-all > * { position: relative; z-index: 1; }
  /* Override unified-group's margin-left:auto so the arrow stays right after
     the text with the 32px gap above, instead of pushing to the far right. */
  .view-all i,
  .jmac01-imported .know .section-header .view-all i { margin-left: 0; }
  .view-all:hover,
  .jmac01-imported .know .section-header .view-all:hover {
    background-color: transparent;
    color: #fff;
    background-image: none;
    border-color: transparent;
  }
  .view-all:hover::before,
  .jmac01-imported .know .section-header .view-all:hover::before {
    background: var(--cyan);
  }
  .view-all:hover i,
  .jmac01-imported .know .section-header .view-all:hover i {
    transform: translateX(6px);
  }

  .lead-magnet {
    display: flex; align-items: center; gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    padding: 12px 14px;
    margin-top: 10px;
    transition: box-shadow .3s var(--ease);
  }
  .lead-magnet:hover { box-shadow: 0 8px 30px rgba(35,57,105,.08); }
  .lead-icon {
    width: 36px; height: 36px;
    background: var(--cyan-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan-deep); flex-shrink: 0;
    font-size: 16px;
  }
  .lead-text { flex: 1; }
  .lead-text p {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    font-weight: 600;
    font-family: var(--sans-en);
  }
  .lead-text strong {
    font-size: 16px;
    color: var(--ink);
    font-weight: 600;
  }
  /* .btn-download — see unified .btn-primary style above */

  /* ═══════════════════════════════════════════════════════════
     SECTION COMMON
     ═══════════════════════════════════════════════════════════ */
  .section { padding: 72px 64px; }

  .section-header {
    display: flex; align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }
  .section-title {
    font-family: var(--display);
    font-size: clamp(28px, 3.2vw,42px);
    font-weight: 500;
    letter-spacing: -.015em;
    line-height: 1.18;
    color: var(--navy);
  }
  .section-title span {
    color: var(--cyan);
    font-weight: 400;
  }
  /* .view-all — see unified .btn-primary style above */

  /* ═══════════════════════════════════════════════════════════
     NEWS BACKGROUND — very subtle blue gradient hints
     ═══════════════════════════════════════════════════════════ */
  .news-bg {
    position: relative;
    isolation: isolate;
    background:
      radial-gradient(ellipse 50% 50% at 12% 25%, rgba(45, 133, 194, .07) 0%, transparent 65%),
      radial-gradient(ellipse 45% 50% at 88% 20%, rgba(22, 151, 194, .06) 0%, transparent 65%),
      #fff;
  }

  /* ═══════════════════════════════════════════════════════════
     NEWS & EVENTS
     ═══════════════════════════════════════════════════════════ */
  .news-wrapper { margin: 0 56px 72px; }
  .news-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 8px;
    cursor: grab;
  }
  .news-grid.is-dragging { cursor: grabbing; user-select: none; }
  .news-grid.is-dragging * { pointer-events: none; }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-grid > .news-card {
    scroll-snap-align: start;
    min-width: 0;
  }
  /* On smaller screens show card-and-a-half so swipe is obvious */
  @media (max-width: 900px) {
    .news-grid {
      grid-auto-columns: 78%;
      grid-template-columns: 78% 78% 78%;
      padding-right: 20%;
    }
  }
  @media (max-width: 600px) {
    .news-grid {
      grid-auto-columns: 85%;
      grid-template-columns: 85% 85% 85%;
      padding-right: 12%;
    }
  }
  .news-card {
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex; flex-direction: column;
    transition: transform .35s var(--ease);
  }
  .news-card:hover { transform: translateY(-4px); }

  .news-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    transition: filter .35s var(--ease);
    /* Cut-corner bottom-right — matches JMAC brand shape language */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  }
  /* Dark overlay removed per request */
  .news-img::before {
    content: none;
  }
  .news-card:hover .news-img::before {
    content: none;
  }
  .news-card:hover .news-img {
    filter: saturate(1.1);
  }
  /* Subtle texture line overlay (kept for editorial feel) */
  .news-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,.02) 40px, rgba(255,255,255,.02) 41px);
    z-index: 0;
  }
  .news-img-label {
    position: absolute;
    bottom: 16px; left: 18px;
    color: rgba(255,255,255,.95);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: var(--sans-en);
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
  }
  .news-img-jp {
    position: absolute;
    top: 16px; right: 18px;
    color: rgba(255,255,255,.75);
    font-family: var(--serif-jp);
    font-size: 16px;
    letter-spacing: .15em;
    z-index: 1;
    text-shadow: 0 1px 8px rgba(0,0,0,.5);
  }

  .news-tag {
    display: inline-block;
    color: var(--cyan-deep);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--sans-en);
  }
  .news-card h3 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--navy);
    letter-spacing: -.005em;
    transition: color .25s;
  }
  .news-card:hover h3 { color: var(--cyan); }
  .news-card p {
    font-size: 16px;
    color: #000;
    line-height: 1.7;
  }
  .news-date {
    font-size: 16px;
    color: #000;
    display: flex; align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 600;
    font-family: var(--sans-en);
  }
  .event-badge {
    margin-top: 18px;
    display: flex; align-items: center;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }
  .event-badge i { color: var(--cyan); font-size: 16px; }
  .event-badge span {
    font-size: 16px;
    color: var(--gray-700);
    font-weight: 500;
  }

  /* ═══════════════════════════════════════════════════════════
     SERVICES — Horizontal-scroll snap, Apple-style.
     Sticky title bar tracks the active card + a thin progress
     line spans the full section width as the user scrolls.
     ═══════════════════════════════════════════════════════════ */
  .services-section {
    background:
      radial-gradient(60% 50% at 8% 10%, rgba(15, 36, 74, 0.85) 0%, rgba(15, 36, 74, 0) 60%),
      radial-gradient(55% 45% at 92% 88%, rgba(37, 150, 190, 0.18) 0%, rgba(37, 150, 190, 0) 60%),
      var(--navy);
    padding: 0 0 120px;
    position: relative;
    color: #fff;
    overflow: hidden;
  }

  /* ── Sticky bar: section title + tabs + progress ── */
  .svc-sticky {
    position: sticky;
    top: 116px; /* sit below the fixed top-bar (38px) + nav (78px) */
    z-index: 30;
    background: rgba(247, 248, 250, .88);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(35, 57, 105, .08);
  }
  .svc-sticky-inner {
    max-width: none;
    margin: 0;
    padding: 18px 80px;
    display: flex;
    align-items: center;
    gap: 40px;
  }
  .svc-sticky-eyebrow {
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--cyan);
    text-transform: uppercase;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .svc-sticky-eyebrow::after {
    content: '';
    width: 28px; height: 1px;
    background: var(--cyan);
    opacity: .5;
  }
  .svc-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-tab {
    background: none;
    border: 0;
    padding: 10px 18px;
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    border-radius: 100px;
    transition: color .25s var(--ease), background .25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .svc-tab .svc-tab-num {
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-500);
    letter-spacing: .8px;
    transition: color .25s var(--ease);
  }
  .svc-tab:hover { color: var(--navy); }
  .svc-tab:hover .svc-tab-num { color: var(--cyan); }
  .svc-tab.is-active {
    background: var(--navy);
    color: #fff;
  }
  .svc-tab.is-active .svc-tab-num { color: var(--cyan); }
  .svc-sticky-count {
    flex-shrink: 0;
    font-family: var(--sans-en);
    font-size: 16px;
    color: var(--gray-500);
    letter-spacing: .8px;
    font-feature-settings: 'tnum';
  }
  .svc-sticky-count b {
    color: var(--navy);
    font-weight: 700;
    font-size: 16px;
  }
  /* Progress bar pinned to bottom of the sticky bar */
  .svc-progress-track {
    position: relative;
    height: 2px;
    background: rgba(35,57,105,.06);
  }
  .svc-progress-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 100%);
    transition: width .35s var(--ease);
  }

  /* ── Section intro (above the scroll track) ── */
  .services-intro {
    max-width: none;
    margin: 0;
    padding: 56px 64px 32px;
  }
  .services-intro-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
  .services-intro-text { flex: 1 1 auto; min-width: 0; }
  .services-intro .eyebrow { color: var(--cyan); margin-bottom: 16px; }
  .services-intro p {
    color: var(--gray-700);
    margin-top: 24px;
    font-size: 18px;
    line-height: 1.75;
    max-width: 660px;
  }

  /* ── Horizontal scroller ── */
  /* ── ACCORDION LIST — 4 rows stacked; detail expands on click ── */
  .svc-scroll {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 80px 40px;
  }

  /* ── Individual card → accordion row ── */
  .svc-card {
    position: relative;
    background: rgba(34, 149, 196, .35);
    color: #fff;
    padding: 0;
    display: block;
    clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
    overflow: hidden;
    isolation: isolate;
    filter: none;
    transition: filter .45s var(--ease), transform .45s var(--ease);
  }
  .svc-card.is-open {
    filter: none;
  }

  /* Always-visible header row (click target) */
  .svc-row-head {
    position: relative;
    z-index: 6;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 26px 32px;
  }
  .svc-row-num {
    display: none !important;
    font-family: var(--sans-en);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #BCE2F0;
    text-shadow: 0 0 12px rgba(188, 226, 240, .5);
    flex-shrink: 0;
  }
  .svc-row-headline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .svc-row-headline .svc-card-title {
    font-size: clamp(18px, 1.3vw,22px);
    margin: 0;
    line-height: 1.25;
  }
  .svc-row-headline .svc-card-tag {
    font-size: 16px;
    letter-spacing: 2px;
  }
  /* Expand / collapse chevron — pushed to the far right */
  .svc-row-toggle {
    margin-left: auto;
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13,26,61,.55) 0%, rgba(8,18,41,.55) 100%);
    border: 1.5px solid rgba(188, 226, 240, .45);
    box-shadow: 0 0 16px rgba(34, 149, 196, .35), inset 0 1px 0 rgba(188,226,240,.18);
    transition: transform .4s var(--ease), background .3s;
  }
  .svc-row-toggle svg { width: 20px; height: 20px; color: #fff; }
  .svc-card.is-open .svc-row-toggle { transform: rotate(180deg); }

  /* Collapsible detail region — image column widened to track the title */
  .svc-row-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    /* animate open/close via max-height */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .55s var(--ease), opacity .4s var(--ease);
  }
  .svc-card.is-open .svc-row-detail {
    max-height: 720px;
    opacity: 1;
  }
  /* When OPEN: header floats over the top of the image (overlaps it),
     removing the empty band. Detail fills the card from the very top. */
  .svc-card.is-open .svc-row-head {
    position: absolute;
    inset: 0 0 auto 0;
    padding: 24px 32px;
  }
  /* readable scrim behind the floating header */
  .svc-card.is-open .svc-row-head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,14,34,.78) 0%, rgba(5,14,34,.42) 60%, rgba(5,14,34,0) 100%);
    z-index: -1;
    pointer-events: none;
  }
  .svc-card.is-open .svc-card-content {
    padding-top: 104px;
    justify-content: flex-start;
  }

  /* LEFT — image with strong cyan duotone */
  .svc-card-media {
    position: relative;
    overflow: hidden;
    background: #050e22;
    min-height: 320px;
  }
  .svc-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
    transition: transform 1.5s var(--ease), filter .6s var(--ease);
    filter: saturate(1.1) contrast(1.1) brightness(.72) hue-rotate(-8deg);
  }
  .svc-card.is-open .svc-card-media img {
    transform: scale(1.12);
    filter: saturate(1.25) contrast(1.15) brightness(.84) hue-rotate(-8deg);
  }
  /* Cyan duotone overlay — locks image into brand */
  .svc-card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 149, 196, .55) 0%, rgba(15, 84, 120, .4) 50%, rgba(5, 14, 34, .65) 100%);
    mix-blend-mode: color;
    pointer-events: none;
    z-index: 1;
  }
  /* Right-edge fade into dark content panel */
  .svc-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(95deg,
        rgba(8, 18, 41, 0) 35%,
        rgba(8, 18, 41, .35) 65%,
        rgba(8, 18, 41, .85) 90%,
        rgba(8, 18, 41, 1) 100%),
      linear-gradient(180deg,
        rgba(188, 226, 240, .08) 0%,
        rgba(188, 226, 240, 0) 40%,
        rgba(5, 14, 34, .4) 100%);
    pointer-events: none;
    z-index: 2;
  }

  /* Icon chip — now lives in the always-visible row header */
  .svc-card-head { display: contents; }
  .svc-card-head-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, #5AB3D6 0%, #2295C4 50%, #1A7AA0 100%);
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow:
      0 0 18px rgba(90, 187, 224, .85),
      0 3px 10px rgba(34, 149, 196, .6),
      inset 0 1px 0 rgba(255, 255, 255, .35);
    flex-shrink: 0;
  }
  .svc-card-head-icon svg {
    width: 19px; height: 19px;
    filter: drop-shadow(0 0 4px rgba(255,255,255,.6));
  }
  .svc-card-tag {
    font-family: var(--sans-en);
    font-size: 18px;
    font-weight: 700;
    color: #BCE2F0;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(188, 226, 240, .5);
  }

  /* RIGHT — content panel inside the expanded detail */
  .svc-card-content {
    position: relative;
    padding: 44px 56px 72px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    z-index: 3;
  }
  .svc-card-content::before {
    content: '';
    position: absolute;
    inset: -25% -15% auto auto;
    width: 75%;
    aspect-ratio: 1;
    background: radial-gradient(circle at 70% 30%, rgba(34, 149, 196, .35) 0%, rgba(34, 149, 196, 0) 60%);
    z-index: -1;
    pointer-events: none;
  }
  /* Big glowing ghost number */
  .svc-card-content::after {
    display: none;
  }
  /* Glowing vertical accent bar */
  .svc-card-content > .svc-card-accent {
    position: absolute;
    left: 0; top: 24%;
    width: 3px;
    height: 52%;
    background: linear-gradient(180deg, rgba(90,187,224,0) 0%, #2295C4 25%, #2295C4 75%, rgba(90,187,224,0) 100%);
    box-shadow: 0 0 18px rgba(34, 149, 196, .9);
  }
  .svc-card-title {
    font-family: var(--display);
    font-size: clamp(32px, 2.6vw,42px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(5, 14, 34, .5);
  }
  .svc-card-desc {
    font-size: clamp(18px, 1.25vw,20px);
    line-height: 1.75;
    color: rgba(232, 246, 251, .9);
  }
  .svc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 16px;
  }
  /* HIGHLIGHTED small chip tags — now glowing & prominent */
  .svc-card-tags span {
    position: relative;
    padding: 11px 20px;
    background: linear-gradient(135deg, rgba(47, 168, 214, .25) 0%, rgba(34, 149, 196, .35) 100%);
    border: 1.5px solid rgba(188, 226, 240, .55);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    font-family: var(--sans-en);
    text-transform: uppercase;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .04) inset,
      0 0 18px rgba(34, 149, 196, .35),
      0 4px 12px rgba(5, 14, 34, .35);
    text-shadow: 0 0 12px rgba(188, 226, 240, .5);
    transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  }
  .svc-card-tags span:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #5AB3D6 0%, #2295C4 100%);
    border-color: #BCE2F0;
    color: #fff;
    box-shadow:
      0 0 24px rgba(90, 187, 224, .9),
      0 8px 20px rgba(5, 14, 34, .45);
  }
  /* Arrow box button (Learn-more) */
  .svc-card-cta {
    display: inline-grid;
    place-items: center;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 66px;
    height: 56px;
    background: #fff;
    color: #2295C4;
    text-decoration: none;
    z-index: 4;
  }
  .svc-card-cta svg {
    width: 24px;
    height: 24px;
    transition: transform .3s var(--ease);
  }
  .svc-card-cta:hover svg { transform: translateX(5px); }

  /* ── Navigation arrows — white frame, notched bottom corners ── */
  .svc-arrows {
    display: none;
    gap: 14px;
    flex-shrink: 0;
    z-index: 20;
  }
  .svc-arrow {
    width: 72px;
    height: 56px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    position: relative;
    display: inline-grid;
    place-items: center;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  /* Frame is an SVG drawn via CSS background — now a SOLID DARK fill so the
     buttons read as filled (navy) with a white arrow on top */
  .svc-arrow {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='%230F1F45' stroke='%230F1F45' stroke-width='1.5' stroke-linejoin='miter'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
  .svc-arrow:hover {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='%231E4C7A' stroke='%231E4C7A' stroke-width='1.5' stroke-linejoin='miter'/></svg>");
  }
  .svc-arrow svg.svc-arrow-icon {
    width: 14px;
    height: 14px;
    position: relative;
    z-index: 1;
  }
  .svc-arrow:hover { transform: translateY(-2px); }
  .svc-arrow:disabled {
    opacity: .35;
    cursor: default;
    transform: none;
  }

  @media (max-width: 980px) {
    .svc-sticky-inner { padding: 14px 24px; gap: 18px; }
    .svc-sticky-eyebrow { display: none; }
    .services-intro { padding: 56px 24px 32px; }
    .svc-scroll { padding: 12px 24px 64px; gap: 16px; }
    .svc-row-head { padding: 20px 18px; gap: 14px; align-items: center; }
    .svc-row-num { display: none; }
    .svc-card-head-icon { width: 44px; height: 44px; }
    .svc-card-head-icon svg { width: 20px; height: 20px; }
    .svc-row-headline { gap: 5px; }
    .svc-row-headline .svc-card-tag { font-size: 16px; letter-spacing: 1.5px; line-height: 1.3; }
    .svc-row-headline .svc-card-title { font-size: 20px; line-height: 1.35; }
    .svc-row-headline .svc-card-title span { white-space: normal !important; }
    .svc-row-toggle { width: 42px; height: 42px; align-self: center; }
    .svc-row-toggle svg { width: 18px; height: 18px; }
    .svc-row-detail { grid-template-columns: 1fr; }
    .svc-card.is-open .svc-row-detail { max-height: 1100px; }
    .svc-card-media { min-height: 220px; }
    .svc-card.is-open .svc-card-media { padding-top: 0; }
    .svc-card-media::after {
      background: linear-gradient(180deg,
        rgba(15,31,68,0) 60%,
        rgba(15,31,68,.6) 88%,
        rgba(15,31,68,.95) 100%);
    }
    .svc-card-content { padding: 32px 28px 64px; gap: 16px; }
    .svc-card.is-open .svc-card-content { padding-top: 32px; }
    .svc-card-desc { font-size: clamp(16px, 1.15vw,18px); }
    .svc-card-tags span { padding: 10px 16px; font-size: 16px; }
    .svc-scroll-hint { display: none; }
  }
  @media (max-width: 640px) {
    .services-intro-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  }

  /* ════════ 4-UP SLIDER — show 4 cards, slide horizontally through all 8 ════════ */
  .svc-arrows { display: flex; }
  .svc-scroll {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 64px;
    padding: 8px 64px 40px;
    box-sizing: border-box;
    overflow-x: auto;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 64px;
    scroll-padding-right: 64px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .svc-scroll.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;       /* free drag, snap re-applies on release */
    scroll-behavior: auto;
    user-select: none;
  }
  .svc-scroll.is-dragging .svc-card { cursor: grabbing; }
  .svc-scroll::-webkit-scrollbar { display: none; }
  .svc-card {
    display: flex;
    flex-direction: column;
    height: auto;
    /* exactly 4 visible: track(100% content) minus 3 inner gaps, ÷4.
       side padding (64px) == gap (64px), and matches the 64px section
       margin used by titles / other sections — card 5 lands exactly at
       the right viewport edge (no peek), margins align with the rest. */
    flex: 0 0 calc((100% - 192px) / 4);
    scroll-snap-align: start;
  }
  .svc-row-toggle { display: none !important; }
  .svc-row-head {
    position: static !important;
    cursor: default;
    padding: 20px 24px 14px;
    align-items: center;
    gap: 14px;
  }
  .svc-row-head::before { display: none !important; }
  /* Detail fills remaining card height; content stretches so cards match */
  .svc-row-detail,
  .svc-card.is-open .svc-row-detail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto 1fr;
    max-height: none !important;
    opacity: 1 !important;
    overflow: visible;
    flex: 1;
  }
  .svc-card-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .svc-card-media img,
  .svc-card.is-open .svc-card-media img {
    transform: scale(1.04);
    filter: saturate(1.15) contrast(1.1) brightness(.82) hue-rotate(-8deg);
  }
  .svc-card-media::after {
    background: linear-gradient(180deg,
      rgba(8,18,41,0) 55%,
      rgba(8,18,41,.55) 85%,
      rgba(8,18,41,.9) 100%);
  }
  .svc-card-content,
  .svc-card.is-open .svc-card-content {
    padding: 22px 26px 26px 24px;
    justify-content: flex-start;
    gap: 12px;
  }
  /* Card title inside content panel — scale down for grid cell */
  .svc-card-content .svc-card-title {
    font-size: clamp(20px, 1.4vw,24px);
  }
  .svc-row-headline .svc-card-title { font-size: clamp(16px, 1.1vw,20px); }
  .svc-card-head-icon { width: 36px; height: 36px; }
  .svc-card-head-icon svg { width: 17px; height: 17px; }
  .svc-row-num { font-size: 16px; }
  .svc-row-headline .svc-card-tag { display: none !important; }
  /* Description clamped to a single line */
  .svc-card-desc {
    font-size: clamp(16px, 1.15vw,18px);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Tags sit directly under the description (same position on all cards) */
  .svc-card-tags { margin-top: 0; padding-top: 4px; gap: 8px; }
  .svc-card-tags span { padding: 6px 14px; font-size: 16px; }
  .svc-card-cta svg { width: 18px; height: 18px; }

  /* Mid screens (981–1200): keep 64px side margin so cards stay aligned with
     the section title and other sections; just tighten the card internals. */
  @media (max-width: 1200px) and (min-width: 981px) {
    .svc-row-head { padding: 16px 16px 10px; gap: 10px; }
    .svc-card-content,
    .svc-card.is-open .svc-card-content { padding: 16px 16px 18px; }
    .svc-card-content .svc-card-title { font-size: clamp(16px, 1.5vw,20px); }
    .svc-card-tags span { padding: 5px 10px; font-size: 16px; }
    .svc-card-head-icon { width: 32px; height: 32px; }
    .svc-card-head-icon svg { width: 15px; height: 15px; }
    .svc-row-num { display: none; }
  }
  /* 901–980: section margin shrinks to 24px (matches .services-intro);
     mirror it on the slider so the cards keep aligning with the title. */
  @media (max-width: 980px) and (min-width: 901px) {
    .svc-scroll {
      gap: 24px;
      padding: 8px 24px 40px;
      scroll-padding-left: 24px;
      scroll-padding-right: 24px;
    }
    .svc-card { flex: 0 0 calc((100% - 72px) / 4); }
    .svc-row-head { padding: 16px 16px 10px; gap: 10px; }
    .svc-card-content,
    .svc-card.is-open .svc-card-content { padding: 16px 16px 18px; }
    .svc-card-content .svc-card-title { font-size: clamp(16px, 1.5vw,20px); }
    .svc-card-tags span { padding: 5px 10px; font-size: 16px; }
    .svc-card-head-icon { width: 32px; height: 32px; }
    .svc-card-head-icon svg { width: 15px; height: 15px; }
    .svc-row-num { display: none; }
  }

  @media (max-width: 900px) {
    .svc-arrows { display: none !important; }
    .svc-scroll {
      display: flex !important;
      flex-direction: row !important;
      grid-template-columns: none;
      grid-auto-rows: auto;
      flex-wrap: nowrap;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-padding-left: 24px;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      gap: 14px;
      padding: 12px 24px 20px;
    }
    .svc-scroll::-webkit-scrollbar { display: none; }
    .svc-scroll { align-items: stretch !important; }
    .svc-scroll > .svc-card {
      flex: 0 0 calc(100% - 38px);
      width: calc(100% - 38px);
      height: auto !important;
      scroll-snap-align: start;
      margin: 0;
    }
    .svc-scroll > .svc-card .svc-row-detail { flex: 1; }
    .svc-scroll > .svc-card .svc-card-content { flex: 1; }
    .svc-scroll > .svc-card .svc-card-accent { display: none; }
    .svc-dots {
      display: flex !important;
      justify-content: center;
      gap: 8px;
      padding: 4px 0 4px;
    }
    .svc-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      border: none;
      padding: 0;
      background: var(--gray-300);
      cursor: pointer;
      transition: background .25s, width .25s;
    }
    .svc-dot.active { background: var(--cyan-deep); width: 22px; border-radius: 4px; }
    .svc-row-head { padding: 18px 20px 12px; }
    .svc-card-content,
    .svc-card.is-open .svc-card-content { padding: 20px 22px 24px; }
  }

  /* ════════ LIGHT THEME — easy-on-the-eyes service cards ════════ */
  .services-section {
    background: var(--paper) !important;
    color: var(--ink) !important;
  }
  .services-intro .eyebrow { color: var(--cyan-deep); }
  .services-intro .section-title { color: var(--navy); }
  /* Card: white surface, defined border, soft shadow.
     Border colour + 1px thickness matched to the .about-mini reference card
     (--border = #E2E5EA). Card SHAPE (27px notched corners) is unchanged. */
  .svc-card {
    background: var(--border) !important;
    color: var(--ink) !important;
    box-shadow: none !important;
  }
  .svc-card::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    /* Uniform 1px border on straight AND 45° edges.
       Math: outer notch 28, inset 1px → fill notch = 26 + √2 ≈ 27.41
       makes the diagonal band exactly 1px (perp. distance = |M-26|/√2). */
    clip-path: polygon(27.41px 0, 100% 0, 100% calc(100% - 27.41px), calc(100% - 27.41px) 100%, 0 100%, 0 27.41px);
    z-index: 0;
    pointer-events: none;
  }
  .svc-card > * { position: relative; z-index: 1; }
  .svc-card {
    cursor: pointer;
    transition: transform .3s var(--ease), filter .3s var(--ease), background .3s var(--ease) !important;
  }
  .svc-card:hover {
    background: var(--cyan) !important;
    filter: none !important;
    transform: translateY(-6px);
  }
  .svc-card:hover .svc-card-media img {
    transform: scale(1.1) !important;
  }
  .svc-card:hover .svc-row-head { background: var(--navy-deep) !important; border-bottom-color: rgba(255,255,255,.12); }
  .svc-card:hover .svc-row-headline .svc-card-title { color: #fff; }
  .svc-card:hover .svc-row-headline .svc-card-tag { color: #7FC4DE; }
  .svc-card:hover .svc-row-num { color: rgba(188,226,240,.55); }
  .svc-card:hover .svc-card-content .svc-card-title { color: var(--cyan-deep); }
  .svc-card:focus-visible {
    outline: 2px solid var(--cyan-deep);
    outline-offset: 3px;
  }
  /* Header row → white bar with dark text */
  .svc-row-head {
    background: #fff !important;
    position: relative;
    z-index: 2;
    margin: 1px 1px 0;
    width: calc(100% - 2px);
    clip-path: polygon(27px 0, 100% 0, 100% 100%, 0 100%, 0 27px);
    border-bottom: 1px solid var(--border);
    box-shadow: none;
  }
  .svc-row-num { color: var(--gray-500); text-shadow: none; }
  .svc-card-tag,
  .svc-row-headline .svc-card-tag {
    color: var(--cyan-deep);
    text-shadow: none;
  }
  .svc-row-headline .svc-card-title { color: var(--navy); text-shadow: none; }
  .svc-card-content .svc-card-title { color: var(--navy); text-shadow: none; }
  /* Icon chip on dark header → translucent white */
  .svc-card-head-icon {
    background: var(--navy);
    color: #fff;
    box-shadow: none;
    border-radius: 10px;
  }
  .svc-card-head-icon svg { filter: none; }
  /* Image overlay → lighter, brighter image */
  .svc-card-media img,
  .svc-card.is-open .svc-card-media img {
    filter: saturate(1.02) contrast(1.02) brightness(1);
    transform: scale(1.02);
  }
  .svc-card-media::before { display: none; }
  .svc-card-media::after { display: none; }
  /* Content panel text → readable grays on white */
  .svc-card-content::before { display: none; }
  .svc-card-content > .svc-card-accent {
    background: var(--cyan);
    box-shadow: none;
    width: 3px;
  }
  .svc-card-desc { color: #000; }
  /* Tags → light cyan pills, flat */
  .svc-card-tags span,
  .svc-card-tags span:hover {
    background: linear-gradient(135deg, #4FB3D9 0%, #2596BE 100%);
    border: 1px solid transparent;
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    text-transform: none;
    font-weight: 600;
    letter-spacing: .02em;
  }
  .svc-card-tags span:hover {
    background: linear-gradient(135deg, #2596BE 0%, #1A7A9E 100%);
    transform: translateY(-1px);
  }
  /* CTA arrow removed */
  .svc-card-cta { display: none !important; }
  .svc-dots { display: none; }

  /* ════════ UNIFORM SECTION SPACING — 80px top & bottom everywhere ════════ */
  .services-section { padding-top: 0 !important; padding-bottom: 80px !important; }
  .services-intro { padding-top: 80px !important; padding-bottom: 36px !important; }
  .stats-section { padding-top: 80px !important; padding-bottom: 80px !important; }
  #measurable-results.section { padding-top: 80px !important; padding-bottom: 80px !important; }
  .jmac01-imported .know { padding-top: 80px !important; padding-bottom: 80px !important; }
  #news.section { padding-top: 80px !important; padding-bottom: 0 !important; }
  .news-wrapper { margin-bottom: 80px !important; }
  .about-jmac { padding-top: 80px !important; padding-bottom: 80px !important; }
  .sns-section { padding-top: 80px !important; padding-bottom: 80px !important; }

  @media (max-width: 900px) {
    .services-intro { padding-top: 56px !important; padding-bottom: 28px !important; }
    .services-section { padding-bottom: 56px !important; }
    .stats-section,
    #measurable-results.section,
    .jmac01-imported .know,
    .about-jmac,
    .sns-section { padding-top: 56px !important; padding-bottom: 56px !important; }
    #news.section { padding-top: 56px !important; }
    .news-wrapper { margin-bottom: 56px !important; }
  }

  /* ════════ UNIFORM HORIZONTAL MARGIN — 24px both sides on mobile ════════ */
  @media (max-width: 900px) {
    .services-section { padding-left: 0 !important; padding-right: 0 !important; }
    .services-intro { padding-left: 24px !important; padding-right: 24px !important; }
    .svc-scroll { padding-left: 24px !important; padding-right: 24px !important; }
    .stats-section,
    #measurable-results.section,
    #news.section,
    .about-jmac,
    .sns-section { padding-left: 24px !important; padding-right: 24px !important; }
    .jmac01-imported .know { padding-left: 24px !important; padding-right: 24px !important; }
    .news-wrapper { margin-left: 24px !important; margin-right: 24px !important; }
    /* Inner intro/stats wrappers should not add extra side padding */
    .services-intro .services-intro-head,
    .stats-intro { padding-left: 0 !important; padding-right: 0 !important; }
    /* Knowledge section has nested banner padding — flatten to align at 24px */
    .jmac01-imported .know-banner-row { padding-left: 0 !important; padding-right: 0 !important; }
    .jmac01-imported .know-banner { padding-left: 0 !important; padding-right: 0 !important; }
    .jmac01-imported .know-grid { padding-left: 0 !important; padding-right: 0 !important; }
  }






  /* ════════════════════════════════════════════════════════════
     SERVICES — SOLUTIONS CAROUSEL (image cards · 3 shown, slide for 4·5)
     ════════════════════════════════════════════════════════════ */
  .svc-carousel {
    position: relative;
    padding: 0 64px 8px;
  }

  /* Keep the whole services block within 900px tall (desktop).
     Content is bounded (fixed image height + 3-line desc clamp) to ~835px,
     so this cap is just a guard. No overflow:hidden — card shadows and the
     hover lift must remain visible. */
  @media (min-width: 901px) {
    #services { max-height: 900px; }
  }

  .svc-track {
    display: flex;
    gap: 26px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 2px 14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .svc-track::-webkit-scrollbar { display: none; }
  .svc-track.dragging { scroll-behavior: auto; scroll-snap-type: none; cursor: grabbing; }
  .svc-track.dragging .sol-card { pointer-events: none; }

  /* 4 cards visible on desktop */
  .sol-card {
    position: relative;
    flex: 0 0 calc((100% - 78px) / 4);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--cyan);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 18px 50px -28px rgba(0,0,0,.45);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  }
  /* top accent bar — always on, thickens on hover */
  .sol-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 5px;
    background: var(--navy);
    transition: height .35s var(--ease);
    z-index: 3;
  }
  .sol-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px -34px rgba(0,0,0,.4);
    border-color: var(--navy);
  }
  .sol-card:hover::before { height: 8px; }

  .sol-card-img {
    position: relative;
    height: 168px;
    overflow: hidden;
    background: var(--navy-deep);
  }
  .sol-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease);
  }
  /* gradient scrim for depth */
  .sol-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21,36,74,.30) 0%, rgba(21,36,74,0) 36%, rgba(21,36,74,0) 68%, rgba(21,36,74,.34) 100%);
    pointer-events: none;
  }
  .sol-card:hover .sol-card-img img { transform: scale(1.08); }

  /* number badge — slanted tag, top-left of image */
  .sol-card-no {
    position: absolute;
    top: 0; left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 40px;
    padding: 0 16px 0 12px;
    background: var(--navy);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    box-shadow: 0 8px 18px -8px rgba(34,149,196,.6);
    transition: background .35s var(--ease);
  }
  .sol-card .sol-card-no { background: var(--navy); }
  .sol-card:hover .sol-card-no { background: var(--navy-deep); }

  .sol-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 20px;
  }
  .sol-card-title {
    position: relative;
    padding-top: 16px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 8px;
  }
  /* accent above the title — bold by default, grows on hover */
  .sol-card-title::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 52px;
    height: 4px;
    background: var(--navy);
    transition: width .35s var(--ease);
  }
  .sol-card:hover .sol-card-title::before { width: 72px; }
  .sol-card-sub {
    font-size: 13.5px;
    color: rgba(255,255,255,.72);
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .sol-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .sol-card-tags span {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.18);
    padding: 5px 12px;
    border-radius: 0;
    white-space: nowrap;
  }

  .sol-card-desc {
    font-size: 16px;
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    /* clamp to 3 lines so every card keeps the same bounded height */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* read-more button — inherits .btn-primary shape (cut corner · → arrow).
     Card is cyan, so default fill is navy (cyan would blend); hover keeps
     the .btn-primary invert to white. */
  .sol-card-btn {
    margin-top: auto;
    width: 100%;
    min-width: 0;
    gap: 16px;
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }
  .sol-card-btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
  }

  /* arrows — sit on the right of the section heading */
  .svc-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
  }
  /* same look as .view-all — white · cyan border · cut corner with diagonal line.
     Border drawn with 5 background layers so the diagonal edge keeps its line;
     fill clipped on ::before. */
  .svc-nav {
    position: relative;
    width: 62px;
    height: 44px;
    border: 0;
    background-color: transparent;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image:
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      linear-gradient(var(--cyan), var(--cyan)),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><line x1='0' y1='14' x2='14' y2='0' stroke='rgb(37,150,190)' stroke-width='1'/></svg>");
    background-position: 0 0, 0 0, 100% 0, 0 100%, 100% 100%;
    background-size:
      100% 1px,
      1px 100%,
      1px calc(100% - 14px),
      calc(100% - 14px) 1px,
      14px 14px;
    background-repeat: no-repeat;
    transition: color .25s var(--ease), background-image .25s var(--ease);
  }
  .svc-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    z-index: -1;
    transition: background .25s var(--ease);
  }
  .svc-nav i { position: relative; z-index: 1; font-size: 22px; line-height: 1; }
  .svc-nav:hover { color: #fff; background-image: none; }
  .svc-nav:hover::before { background: var(--cyan); }
  .svc-nav:disabled { opacity: .35; pointer-events: none; }

  /* dots */
  .svc-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
  }
  .svc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: var(--gray-300);
    cursor: pointer;
    transition: background .25s var(--ease), width .25s var(--ease);
  }
  .svc-dot.active {
    width: 24px;
    border-radius: 5px;
    background: var(--navy);
  }

  /* tablet → 2 cards */
  @media (max-width: 960px) {
    .svc-carousel { padding: 0 24px 8px; }
    .sol-card { flex: 0 0 calc((100% - 26px) / 2); }
    .svc-nav { display: none; }
  }
  /* mobile → ~1.15 cards peeking */
  @media (max-width: 600px) {
    .svc-track { gap: 16px; }
    .sol-card { flex: 0 0 86%; }
    .sol-card-body { padding: 20px 20px 22px; }
    .sol-card-title { font-size: 20px; }
  }


  /* ═══════════════════════════════════════════════════════════
     STATS — "ตัวเลขที่พิสูจน์ความสำเร็จ"
     Gradient + layout matched to JMAC by-the-Numbers reference
     ═══════════════════════════════════════════════════════════ */
  .stats-section {
    background: linear-gradient(135deg, #1697C2 0%, #2D85C2 50%, #4FB3D4 100%);
    color: #fff;
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
    --jmac-blue-soft: #DCF1F8;
    --jmac-blue: #FFFFFF;
    --jmac-blue-deep: #B8E4F2;
  }
  /* Diagonal sheen for premium feel */
  .stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
      rgba(255,255,255,.06) 0%,
      rgba(255,255,255,0) 35%,
      rgba(255,255,255,0) 65%,
      rgba(255,255,255,.05) 100%);
    pointer-events: none;
  }
  /* Hexagon chain watermark — removed per request */
  .stats-section::after {
    display: none;
  }
  .stats-section > * { position: relative; z-index: 1; }

  /* Section header — uses the same eyebrow/section-title pattern as other sections.
     The wrapper spans the full content width so its border-bottom matches the
     Inner text is constrained to 760px. */
  .stats-section .stats-intro {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.20);
  }
  .stats-section .stats-intro > * { max-width: 760px; }
  .stats-section .eyebrow { color: #fff; }
  .stats-section .eyebrow::before { background: #fff; }
  .stats-section .section-title { color: #fff; }
  .stats-section .section-title span { color: #DCF1F8; font-weight: 300; font-style: italic; }
  .stats-section .stats-intro p {
    color: rgba(255,255,255,.85);
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
    max-width: 620px;
  }

  /* ── Numbers grid: 4 prominent cards ── */
  .numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    z-index: 1;
  }
  .num-card {
    padding: 36px 32px 36px 32px;
    position: relative;
    /* divider is drawn via ::before for animation; no border-left */
    /* Entrance state — invisible & pushed down */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(.2,.8,.2,1),
                transform 0.9s cubic-bezier(.2,.8,.2,1);
  }
  /* Animate the divider line growing top→bottom */
  .num-card::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,.22);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.2s cubic-bezier(.2,.8,.2,1);
  }
  .num-card:first-child { border-left: none; padding-left: 0; }
  .num-card:first-child::before { display: none; }

  /* Stagger reveal — when grid is "in view" */
  .numbers-grid.is-in .num-card { opacity: 1; transform: translateY(0); }
  .numbers-grid.is-in .num-card::before { transform: scaleY(1); }
  .numbers-grid.is-in .num-card:nth-child(1) { transition-delay: 0.05s; }
  .numbers-grid.is-in .num-card:nth-child(2) { transition-delay: 0.18s; }
  .numbers-grid.is-in .num-card:nth-child(3) { transition-delay: 0.31s; }
  .numbers-grid.is-in .num-card:nth-child(4) { transition-delay: 0.44s; }
  .numbers-grid.is-in .num-card:nth-child(2)::before { transition-delay: 0.30s; }
  .numbers-grid.is-in .num-card:nth-child(3)::before { transition-delay: 0.43s; }
  .numbers-grid.is-in .num-card:nth-child(4)::before { transition-delay: 0.56s; }

  /* Hover: lift + glow */
  .num-card {
    cursor: default;
  }
  .num-card .big,
  .num-card .label,
  .num-card .desc {
    transition: transform 0.5s var(--ease), text-shadow 0.5s var(--ease), color 0.5s var(--ease);
  }
  .num-card:hover .big {
    transform: translateY(-4px);
    text-shadow: 0 4px 32px rgba(255,255,255,0.35), 0 2px 24px rgba(15,84,120,.4);
  }
  .num-card:hover .label { color: #fff; }

  .num-card .label {
    font-family: var(--sans-th);
    font-size: clamp(18px, 1.35vw,22px);
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.88);
    margin-bottom: 22px;
    font-weight: 600;
    position: relative;
    padding-left: 16px;
    line-height: 1.4;
  }
  .num-card .label::before {
    content: '';
    position: absolute;
    left: 0; top: 10px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,255,255,.18);
    animation: dotPulse 2.6s ease-in-out infinite;
  }
  /* Stagger the pulse so they don't all blink at once */
  .num-card:nth-child(2) .label::before { animation-delay: 0.4s; }
  .num-card:nth-child(3) .label::before { animation-delay: 0.8s; }
  .num-card:nth-child(4) .label::before { animation-delay: 1.2s; }

  @keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.18), 0 0 0 0 rgba(255,255,255,0.4); }
    50%      { box-shadow: 0 0 0 3px rgba(255,255,255,0.28), 0 0 0 8px rgba(255,255,255,0); }
  }

  /* The big number — thin, oversized, with delicate sup */
  .num-card .big {
    font-family: var(--display);
    font-size: clamp(64px, 7.4vw,108px);
    font-weight: 200;             /* thin to match ref */
    line-height: 0.9;
    letter-spacing: -0.045em;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 0 2px 24px rgba(15,84,120,.22);
  }
  .num-card .big-num {
    display: inline-block;
    /* font-variant-numeric helps year/integer alignment during count-up */
    font-variant-numeric: tabular-nums;
  }
  .num-card .big sup {
    font-size: 0.26em;
    vertical-align: super;
    color: rgba(255, 255, 255, 0.65);
    font-family: var(--sans-th);
    font-weight: 600;
    letter-spacing: .02em;
    line-height: 1;
    /* Reveal the suffix after the count-up settles */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: 1.4s;
  }
  .numbers-grid.is-in .num-card sup { opacity: 1; transform: translateY(0); }
  .num-card .desc {
    font-size: clamp(16px, 1.15vw,18px);
    color: rgba(255,255,255,0.86);
    line-height: 1.7;
    max-width: 260px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.16);
  }

  /* Honor reduced-motion preference */
  @media (prefers-reduced-motion: reduce) {
    .num-card,
    .num-card::before,
    .num-card .big,
    .num-card .label,
    .num-card .desc,
    .num-card sup {
      transition: none;
      animation: none;
    }
    .num-card { opacity: 1; transform: none; }
    .num-card::before { transform: scaleY(1); }
    .num-card sup { opacity: 1; transform: none; }
  }

  /* ═══════════════════════════════════════════════════════════
     IQH PILLARS (Identity · Quality · Habitant)
     "สิ่งที่เราให้ความสำคัญ" — เนื้อหาจริงจาก jmac.co.th
     ═══════════════════════════════════════════════════════════ */
  .iqh-section {
    padding: 40px 64px 56px;
    position: relative;
    isolation: isolate;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1559 900'><defs><linearGradient id='g' x1='0' y1='450' x2='1558.37' y2='450' gradientUnits='userSpaceOnUse'><stop offset='0.0476' stop-color='%230A3270'/><stop offset='0.4965' stop-color='%232D85C2'/><stop offset='0.9244' stop-color='%231697C2'/></linearGradient></defs><path d='M1558.37 225V675L1168.66 900L779.186 675.136L389.711 900L0 675V225L389.711 0L779.186 224.863L1168.66 0L1558.37 225Z' fill='url(%23g)'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: contain;     /* เห็น shape เต็มทั้งใบ ไม่ตัด ชิดขวา */
    background-color: var(--white);
  }
  .iqh-intro {
    max-width: 720px;
    margin-bottom: 32px;
    padding-bottom: 20px;
  }
  .iqh-intro p {
    color: var(--gray-700);
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.75;
    max-width: 620px;
  }
  .iqh-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
  }
  .iqh-card {
    background: var(--white);
    padding: 48px 40px 44px;
    cursor: default;
    transition: background .35s var(--ease);
    position: relative;
    display: flex; flex-direction: column;
    min-height: 360px;
    overflow: hidden;
  }
  /* Big letter — gradient cyan, sits at the TOP-LEFT of the card as the
     first block. 32px gap below it before the title. Hover deepens the
     gradient and lifts the letter slightly. */
  .iqh-card::before {
    content: attr(data-letter);
    display: block;
    font-family: var(--display);
    font-size: 120px;
    font-weight: 800;
    line-height: .85;
    letter-spacing: -.04em;
    margin-bottom: 32px;
    /* Gradient fill via background-clip: text */
    background: linear-gradient(135deg,
      rgba(37, 150, 190, .55) 0%,
      rgba(37, 150, 190, .25) 55%,
      rgba(35, 57, 105, .15) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(37, 150, 190, .08));
    transition: background .4s var(--ease), filter .4s var(--ease), transform .5s var(--ease);
    transform-origin: left center;
    pointer-events: none;
  }
  .iqh-card:hover { background: var(--paper); }
  .iqh-card:hover::before {
    background: linear-gradient(135deg,
      var(--cyan-deep) 0%,
      var(--cyan) 50%,
      rgba(37, 150, 190, .65) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 6px 18px rgba(37, 150, 190, .35));
    transform: translateY(-2px) scale(1.02);
  }

  .iqh-card h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -.015em;
  }
  .iqh-jp {
    font-family: var(--serif-jp);
    font-size: 16px;
    color: var(--cyan-deep);
    letter-spacing: .12em;
    margin-bottom: 20px;
  }
  .iqh-card p {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    flex: 1;
  }
  /* iqh-num and iqh-mark hidden per design — keep selectors for any markup leftovers */
  .iqh-num, .iqh-card .iqh-mark { display: none; }

  /* ═══════════════════════════════════════════════════════════
     TRUST · CLIENT LOGOS (ได้รับความไว้ใจจาก)
     ═══════════════════════════════════════════════════════════ */
  .trust-section {
    padding: 64px 0 72px;
    background: var(--white);
    overflow: hidden;
  }
  .trust-head {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 80px;
  }
  .trust-eyebrow {
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--cyan-deep);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }
  .trust-eyebrow::before,
  .trust-eyebrow::after {
    content: '';
    width: 32px; height: 1px;
    background: var(--cyan);
    display: inline-block;
  }
  .trust-title {
    font-family: var(--display);
    font-size: clamp(22px, 2.4vw,30px);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -.01em;
  }
  .trust-title em {
    font-style: normal;
    color: var(--cyan);
    font-weight: 600;
  }

  /* Marquee track — auto-scroll */
  .trust-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  }
  .trust-track {
    display: flex;
    gap: 0;
    animation: trust-scroll 40s linear infinite;
    width: max-content;
  }
  .trust-section:hover .trust-track { animation-play-state: paused; }
  @keyframes trust-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  /* ═══════════════════════════════════════════════════════════
     NEWS TICKER (after hero) — White editorial style
     ═══════════════════════════════════════════════════════════ */
  .news-ticker {
    background: #fff;
    color: var(--ink);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
  }
  .nt-label {
    flex-shrink: 0;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 26px;
    font-family: var(--sans-en);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
  }
  .nt-label::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #FF5252;
    animation: nt-pulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, .6);
  }
  @keyframes nt-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 82, 82, .6); }
    70%  { box-shadow: 0 0 0 9px rgba(255, 82, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
  }
  .nt-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 80px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 80px), transparent 100%);
  }
  .nt-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    animation: nt-scroll 60s linear infinite;
    width: max-content;
    padding-left: 32px;
  }
  .news-ticker:hover .nt-track { animation-play-state: paused; }
  @keyframes nt-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  .nt-item {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 13px 30px 13px 0;
    text-decoration: none;
    white-space: nowrap;
  }
  .nt-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans-en);
  }
  .nt-cat {
    color: var(--cyan-deep);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }
  .nt-date {
    color: var(--gray-500);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
  }
  .nt-title {
    font-family: var(--sans-th);
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
    transition: color .25s var(--ease);
  }
  .nt-item:hover .nt-title { color: var(--cyan); }
  .nt-sep {
    flex-shrink: 0;
    align-self: center;
    width: 1px;
    height: 34px;
    background: var(--border);
    margin: 0 30px 0 0;
  }

  @media (max-width: 720px) {
    .news-ticker { flex-direction: column; align-items: stretch; }
    .nt-label {
      width: 100%;
      justify-content: center;
      padding: 9px 15px;
      font-size: 16px;
      letter-spacing: 1.6px;
      gap: 7px;
      border-bottom: 1px solid var(--border);
    }
    .nt-viewport {
      width: 100%;
      mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
      -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
    }
    .nt-track { padding-left: 18px; }
    .nt-item { padding: 11px 22px 11px 0; }
    .nt-title { font-size: 16px; }
    .nt-sep { height: 30px; margin: 0 22px 0 0; }
  }
  .trust-logo {
    flex-shrink: 0;
    width: 200px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    transition: transform .3s var(--ease), filter .3s var(--ease), opacity .3s var(--ease);
    user-select: none;
  }
  .trust-logo img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(100%);
    opacity: .65;
    transition: filter .3s var(--ease), opacity .3s var(--ease);
  }
  .trust-logo:hover {
    transform: scale(1.08);
  }
  .trust-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }

  /* ═══════════════════════════════════════════════════════════
     OUR TEAM OVERVIEW
     ทีมที่ปรึกษาแบบ holistic — group photo + stats
     ═══════════════════════════════════════════════════════════ */
  .team-overview {
    background: var(--white);
    padding: 72px 64px 40px;
    position: relative;
    overflow: hidden;
  }
  .team-overview-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: stretch;
  }

  /* LEFT: Real team/company photo */
  .team-photo {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    background-color: var(--navy);
    display: block;
    transition: filter .4s var(--ease);
  }
  /* Dark overlay removed per request */
  .team-photo::before {
    content: none;
  }
  .team-photo:hover { filter: saturate(1.1); }
  .team-photo:hover::before {
    content: none;
  }
  .team-photo::after {
    content: none;
  }
  /* Photo corner labels */
  .photo-corner-tl {
    position: absolute;
    top: 28px; left: 28px;
    color: rgba(255,255,255,.9);
    z-index: 2;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
  }
  .photo-corner-tl .pc-num {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--cyan);
    margin-bottom: 8px;
  }
  .photo-corner-tl .pc-jp {
    font-family: var(--serif-jp);
    font-size: 18px;
    color: #fff;
    letter-spacing: .15em;
    line-height: 1.3;
  }
  .photo-corner-br {
    position: absolute;
    bottom: 28px; right: 28px;
    color: rgba(255,255,255,.7);
    font-family: var(--sans-en);
    font-size: 16px;
    letter-spacing: 2.5px;
    z-index: 2;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
  }
  /* RIGHT: Content + stats */
  .team-overview-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 0;
  }
  .team-overview-eyebrow {
    margin-bottom: 22px;
  }
  .team-overview-title {
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw,42px);
    font-weight: 500;
    line-height: 1.18;
    color: var(--navy);
    letter-spacing: -.015em;
    margin-bottom: 22px;
  }
  .team-overview-title strong { font-weight: 700; }
  .team-overview-title em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 600;
  }
  .team-overview-desc {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
  }
  .team-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 32px;
  }
  .team-stat {
    padding: 24px 20px 24px 0;
    border-right: 1px solid var(--border);
  }
  .team-stat:last-child { border-right: none; padding-right: 0; }
  .team-stat:not(:first-child) { padding-left: 24px; }
  .team-stat .ts-num {
    font-family: var(--display);
    font-size: 38px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -.02em;
  }
  .team-stat .ts-num span {
    font-size: 22px;
    color: var(--cyan);
    margin-left: 2px;
  }
  .team-stat .ts-lbl {
    font-size: 16px;
    color: var(--gray-700);
    margin-top: 10px;
    line-height: 1.55;
  }
  .team-overview-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 22px;
    background: #2295C4;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: background .25s var(--ease);
    width: fit-content;
    font-family: var(--sans-th);
  }
  .team-overview-cta::after { content: '→'; transition: transform .3s var(--ease); }
  .team-overview-cta:hover { background: #4FB3D4; }
  .team-overview-cta:hover::after { transform: translateX(5px); }

  /* ═══════════════════════════════════════════════════════════
     CASE STUDIES
     ═══════════════════════════════════════════════════════════ */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .case-card {
    background: var(--white);
    cursor: pointer;
    transition: transform .35s var(--ease);
    display: flex; flex-direction: column;
  }
  .case-card:hover { transform: translateY(-6px); }

  .case-img {
    height: 220px;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: filter .4s var(--ease);
  }

  /* Dark gradient overlays removed per request */
  .case-img::before {
    content: none;
  }
  .case-img::after {
    content: none;
  }
  .case-card:hover .case-img {
    filter: saturate(1.1);
  }
  .case-card:hover .case-img::before {
    content: none;
  }

  .case-logo {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,.5);
  }
  .case-dept {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(255,255,255,.95);
    color: var(--navy);
    font-size: 16px;
    padding: 5px 12px;
    letter-spacing: 1.8px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
    font-family: var(--sans-en);
  }
  .case-body { padding: 0 4px; display: flex; flex-direction: column; flex: 1; }
  .case-body h4 {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.35;
    color: var(--navy);
    transition: color .25s;
    letter-spacing: -.005em;
  }
  .case-card:hover h4 { color: var(--cyan); }
  .case-body p {
    font-size: 16px;
    color: #000;
    line-height: 1.75;
    margin-bottom: 20px;
  }
  .case-result {
    display: flex; align-items: center; gap: 16px;
    margin-top: auto;
    padding: 20px 0 16px;
    border-top: 1px solid var(--border);
  }
  .case-result .r-num {
    font-family: var(--display);
    font-size: 36px;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--cyan-soft);
    flex-shrink: 0;
  }
  .case-result .r-num i { font-size: 26px; color: var(--cyan-deep); }
  .case-result .r-lbl {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.55;
  }
  .case-more {
    font-size: 16px;
    color: var(--navy);
    display: inline-flex; align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-top: 16px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--navy);
    padding-bottom: 4px;
    width: fit-content;
    transition: color .25s, border-color .25s;
    font-family: var(--sans-en);
  }
  .case-more:hover { color: var(--navy-deep); border-bottom-color: var(--navy-deep); }
  .case-more i { transition: transform .3s; }
  .case-more:hover i { transform: translateX(4px); }

  /* ═══════════════════════════════════════════════════════════
     MEASURABLE RESULTS — "ผลลัพธ์ที่วัดได้" (2-up case cards)
     Uses same case-card system but 2-column with metadata row
     ═══════════════════════════════════════════════════════════ */
  .results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  /* Selected Work cards: no white card background — let the section show through */
  .results-grid .case-card {
    background: transparent;
  }
  .results-grid .case-img {
    height: 280px;
  }
  .results-grid .case-img .case-dept {
    top: 0;
    left: 0;
    padding: 18px 32px 18px 22px;
    font-size: 16px;
    letter-spacing: 1px;
    font-family: var(--sans-th);
    font-weight: 400;
    text-transform: none;
    background: linear-gradient(135deg, #1697C2 0%, #2D85C2 50%, #4FB3D4 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(45, 133, 194, .28);
  }
  .results-grid .case-img .case-dept strong {
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-right: 2px;
  }
  .results-grid .case-img .case-no {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 1px 3px rgba(0,0,0,.5);
    line-height: 1.4;
  }
  .results-grid .case-meta-row {
    display: flex;
    gap: 20px;
    font-family: var(--sans-th);
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 16px;
    letter-spacing: .02em;
  }
  .results-grid .case-meta-row b {
    color: var(--navy);
    font-weight: 700;
    margin-right: 6px;
  }
  .results-grid .case-body h4 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .results-grid .case-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
  }
  .results-grid .dept-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .results-grid .dept-tag {
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 500;
    padding: 5px 12px;
    background: var(--cyan-soft);
    color: var(--cyan-deep);
    letter-spacing: .01em;
  }

  /* ═══════════════════════════════════════════════════════════
     CONTACT
     ═══════════════════════════════════════════════════════════ */
  /* ═══════════════════════════════════════════════════════════
     ABOUT JMAC — large image tiles + mini link tiles
     ═══════════════════════════════════════════════════════════ */
  .about-jmac {
    background: var(--paper);
    color: var(--ink);
    padding: 80px 64px;
    position: relative;
    overflow: hidden;
  }
  /* Decorative background element — JMAC honeycomb chain, aligned right */
  .about-jmac::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -8%;
    transform: translateY(-50%);
    width: 880px;
    height: 508px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1559 900' fill='none'><mask id='m' fill='white'><path d='M1558.37 225V675L1168.66 900L779.186 675.136L389.711 900L0 675V225L389.711 0L779.186 224.863L1168.66 0L1558.37 225Z'/></mask><path d='M1558.37 225H1598.37V201.906L1578.37 190.359L1558.37 225ZM1558.37 675L1578.37 709.641L1598.37 698.094V675H1558.37ZM1168.66 900L1148.66 934.641L1168.66 946.188L1188.66 934.641L1168.66 900ZM779.186 675.136L799.186 640.495L779.186 628.948L759.185 640.495L779.186 675.136ZM389.711 900L369.711 934.641L389.711 946.188L409.711 934.641L389.711 900ZM0 675H-40V698.094L-20 709.641L0 675ZM0 225L-20 190.359L-40 201.906V225H0ZM389.711 0L409.711 -34.641L389.711 -46.188L369.711 -34.641L389.711 0ZM779.186 224.863L759.186 259.504L779.186 271.051L799.185 259.504L779.186 224.863ZM1168.66 0L1188.66 -34.641L1168.66 -46.188L1148.66 -34.641L1168.66 0ZM1558.37 225H1518.37V675H1558.37H1598.37V225H1558.37ZM1558.37 675L1538.37 640.359L1148.66 865.359L1168.66 900L1188.66 934.641L1578.37 709.641L1558.37 675ZM1168.66 900L1188.66 865.359L799.186 640.495L779.186 675.136L759.186 709.777L1148.66 934.641L1168.66 900ZM779.186 675.136L759.185 640.495L369.711 865.359L389.711 900L409.711 934.641L799.186 709.777L779.186 675.136ZM389.711 900L409.711 865.359L20 640.359L0 675L-20 709.641L369.711 934.641L389.711 900ZM0 675H40V225H0H-40V675H0ZM0 225L20 259.641L409.711 34.641L389.711 0L369.711 -34.641L-20 190.359L0 225ZM389.711 0L369.711 34.641L759.186 259.504L779.186 224.863L799.186 190.222L409.711 -34.641L389.711 0ZM779.186 224.863L799.185 259.504L1188.66 34.641L1168.66 0L1148.66 -34.641L759.186 190.222L779.186 224.863ZM1168.66 0L1148.66 34.641L1538.37 259.641L1558.37 225L1578.37 190.359L1188.66 -34.641L1168.66 0Z' fill='url(%23g)' mask='url(%23m)'/><defs><linearGradient id='g' x1='1558.37' y1='450' x2='0' y2='450' gradientUnits='userSpaceOnUse'><stop stop-color='%230A3270'/><stop offset='0.375' stop-color='%232D84C2'/><stop offset='0.899' stop-color='%231697C2'/></linearGradient></defs></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
  }
  .about-wrap {
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .about-head {
    margin-bottom: 48px;
  }

  /* ── TOP ROW: 4 large image tiles ── */
  .about-top-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 24px;
  }
  .about-big {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    transition: transform .35s var(--ease);
  }
  /* Frame wraps the image + the white CTA tab; provides relative anchor.
     Uses padding-bottom hack instead of aspect-ratio for cross-browser stability
     (Safari has known issues with aspect-ratio in grid/flex children that can
     cause images to grow unbounded). */
  .about-big-frame {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio (3/4 = 0.75) */
    overflow: hidden;
  }
  .about-big-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--gray-200);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
  }
  .about-big-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .about-big:hover .about-big-media img {
      transform: scale(1.05);
    }
  }
  .about-big-title {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
    margin: 0;
    transition: color .25s var(--ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .about-big:hover .about-big-title {
      color: var(--cyan-deep);
    }
  }
  /* White CTA box — sits at bottom-right corner of media frame, in the clip-path notch area */
  .about-big-cta {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56px;
    height: 48px;
    background: #fff;
    color: var(--cyan);
    display: inline-grid;
    place-items: center;
    z-index: 2;
  }
  .about-big-cta svg {
    width: 20px; height: 20px;
    transition: transform .25s var(--ease);
  }
  @media (hover: hover) and (pointer: fine) {
    .about-big:hover .about-big-cta svg {
      transform: translateX(4px);
    }
  }

  /* ── BOTTOM ROW: smaller link tiles ── */
  .about-bot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .about-mini {
    text-decoration: none;
    color: var(--ink);
    position: relative;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    isolation: isolate;
  }
  /* Border layer — colored fill in notched shape */
  .about-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--border);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
    z-index: -2;
    transition: background .25s var(--ease);
  }
  /* Fill layer — slightly inset, white background sits on top of border */
  .about-mini::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
    z-index: -1;
    transition: background .25s var(--ease);
  }
  .about-mini:hover::before { background: var(--cyan); }
  .about-mini:hover::after  { background: var(--cyan); }
  .about-mini:hover .about-mini-title { color: #fff; }
  .about-mini:hover .about-mini-arrow { color: #fff; }
  .about-mini-title {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    transition: color .25s var(--ease);
  }
  .about-mini-arrow {
    color: var(--cyan);
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    transition: color .25s var(--ease);
  }
  .about-mini-arrow svg {
    width: 22px; height: 22px;
    transition: transform .25s var(--ease);
  }
  .about-mini:hover .about-mini-arrow svg {
    transform: translateX(4px);
  }

  @media (max-width: 1100px) {
    .about-top-grid { grid-template-columns: repeat(2, 1fr); }
    .about-bot-grid { grid-template-columns: repeat(2, 1fr); }
    .about-jmac::before { width: 620px; height: 358px; right: -12%; opacity: 0.05; }
  }
  @media (max-width: 640px) {
    .about-jmac { padding: 80px 24px; }
    .about-top-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-bot-grid { grid-template-columns: 1fr; }
    .about-jmac::before { width: 460px; height: 266px; right: -25%; opacity: 0.045; }
  }

  /* ═══════════════════════════════════════════════════════════
     JMAC OFFICIAL SNS
     ═══════════════════════════════════════════════════════════ */
  .sns-section {
    background:
      radial-gradient(ellipse 50% 50% at 12% 25%, rgba(45, 133, 194, .14) 0%, transparent 65%),
      radial-gradient(ellipse 45% 50% at 88% 75%, rgba(22, 151, 194, .12) 0%, transparent 65%),
      radial-gradient(ellipse 35% 35% at 50% 50%, rgba(45, 132, 194, .08) 0%, transparent 70%),
      var(--paper);
    padding: 64px 64px 80px;
    color: var(--ink);
    position: relative;
    overflow: hidden;
  }
  /* Decorative hexagon — top right area, stroked, fully inside section */
  .sns-section::before {
    content: '';
    position: absolute;
    right: 40px;
    top: 32px;
    width: 220px;
    height: 254px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' stroke='rgb(107,197,224)' stroke-width='1.5' stroke-opacity='0.06' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
  }
  /* Decorative hexagon — bottom right, filled cyan, fully inside section */
  .sns-section::after {
    content: '';
    position: absolute;
    right: 48px;
    bottom: 48px;
    width: 260px;
    height: 300px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='rgb(107,197,224)' fill-opacity='0.035'/></svg>");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
  }
  .sns-wrap {
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
  }
  .sns-head {
    margin-bottom: 56px;
  }
  /* Two extra small hexagons — scattered for visual interest */
  .sns-section .sns-hex-small {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
  }
  .sns-section .sns-hex-small-1 {
    left: 64px;
    top: 80px;
    width: 90px;
    height: 104px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' stroke='rgb(107,197,224)' stroke-width='1.5' stroke-opacity='0.10' fill='none'/></svg>");
  }
  .sns-section .sns-hex-small-2 {
    left: 45%;
    top: 56px;
    width: 70px;
    height: 81px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='rgb(107,197,224)' fill-opacity='0.06'/></svg>");
  }
  .sns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
  .sns-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    transition: border-color .25s var(--ease), transform .25s var(--ease);
  }
  .sns-card:hover {
    border-bottom-color: var(--cyan);
    transform: translateY(-2px);
  }
  .sns-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .sns-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
  }
  .sns-icon svg {
    width: 22px;
    height: 22px;
  }
  .sns-name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -.01em;
  }
  .sns-desc {
    font-size: 18px;
    line-height: 1.75;
    color: #000;
    margin: 0;
  }

  @media (max-width: 1100px) {
    .sns-grid { grid-template-columns: repeat(3, 1fr); }
  }
  @media (max-width: 720px) {
    .sns-section { padding: 80px 24px; }
    .sns-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  }
  @media (max-width: 420px) {
    .sns-grid { grid-template-columns: 1fr; }
  }

  /* ═══════════════════════════════════════════════════════════
     CONTACT
     ═══════════════════════════════════════════════════════════ */
  .contact-section {
    padding: 80px 64px;
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .contact-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(37,150,190,.15), transparent 70%);
    pointer-events: none;
  }

  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    position: relative;
  }
  .contact-info h2 {
    font-family: var(--display);
    font-size: clamp(32px, 3.4vw,46px);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -.01em;
  }
  .contact-info h2 strong { font-weight: 700; }
  .contact-info h2 em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 600;
  }
  .contact-info > p {
    color: rgba(255,255,255,.85);
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 48px;
    max-width: 460px;
  }

  .contact-details {
    display: flex; flex-direction: column;
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .c-detail {
    display: flex; align-items: flex-start; gap: 18px;
    color: rgba(255,255,255,.88);
    font-size: 16px;
    line-height: 1.6;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .c-detail i {
    color: var(--cyan);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 18px;
  }
  .c-detail small { color: rgba(255,255,255,.45); display: block; margin-top: 4px; font-size: 16px; }

  .contact-socials {
    display: flex; gap: 12px; margin-top: 28px;
  }
  .contact-socials a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    text-decoration: none;
    font-size: 18px;
    transition: all .25s var(--ease);
  }
  .contact-socials a:hover {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
  }

  .form-col {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    padding: 44px;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .form-grid.full { grid-template-columns: 1fr; }
  .form-field { display: flex; flex-direction: column; gap: 8px; }
  .form-field label {
    font-size: 16px;
    color: rgba(255,255,255,.65);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: var(--sans-en);
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.18);
    border-radius: 0;
    padding: 14px 2px;
    color: #fff;
    font-size: 16px;
    font-family: var(--sans-th);
    outline: none;
    transition: border-color .25s;
  }
  .form-field input:focus,
  .form-field textarea:focus { border-bottom-color: var(--cyan); }
  .form-field textarea { resize: vertical; min-height: 90px; padding-top: 12px; }
  .form-field input::placeholder,
  .form-field textarea::placeholder { color: rgba(255,255,255,.28); }

  .btn-submit {
    width: 100%;
    height: 44px;
    padding: 0 22px;
    background: #fff;
    color: var(--navy);
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--sans-th);
    margin-top: 12px;
    letter-spacing: 1.2px;
    transition: background .25s var(--ease), color .25s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }
  .btn-submit::after { content: '→'; transition: transform .3s; }
  .btn-submit:hover { background: #2295C4; color: #fff; }
  .btn-submit:hover::after { transform: translateX(5px); }

  .form-note {
    margin-top: 16px;
    font-size: 16px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
    text-align: center;
  }

  /* ═══════════════════════════════════════════════════════════
     WHITEPAPER DOWNLOAD SECTION — Minimal centered, compact
     ═══════════════════════════════════════════════════════════ */
  .whitepaper-section {
    background: #fff;
    padding: 56px 32px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
  }
  .wp-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wp-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(37,150,190,.1);
    border: 1px solid rgba(37,150,190,.25);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
  }
  .wp-icon-wrap i {
    color: #2295C4;
    font-size: 24px;
  }
  .wp-eyebrow {
    font-size: 16px;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font-weight: 700;
    font-family: var(--sans-en);
    margin-bottom: 10px;
  }
  .wp-title {
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
    font-family: var(--display);
    line-height: 1.3;
    letter-spacing: -.01em;
    margin: 0 0 10px;
  }
  .wp-sub {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0 0 22px;
  }
  /* .wp-btn — see unified .btn-primary style above */
  .wp-btn i { font-size: 22px; }

  @media (max-width: 720px) {
    .whitepaper-section { padding: 44px 24px; }
    .wp-title { font-size: 20px; }
    .wp-sub { font-size: 16px; }
    .wp-btn { width: 100%; justify-content: space-between; min-width: 0; }
  }

  /* ═══════════════════════════════════════════════════════════
     FOOTER
     ═══════════════════════════════════════════════════════════ */
  footer {
    background: #2295C4;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 36px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-left { display: flex; align-items: center; gap: 18px; }
  .footer-copy {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    letter-spacing: .3px;
  }
  .footer-links { display: flex; gap: 28px; }
  .footer-links a {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    transition: color .25s;
    letter-spacing: .3px;
  }
  .footer-links a:hover { color: #fff; }

  /* ═══════════════════════════════════════════════════════════
     STICKY MOBILE / FLOATING CTA
     ═══════════════════════════════════════════════════════════ */
  .sticky-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex; flex-direction: column;
    gap: 14px;
  }
  .sticky-cta a {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    box-shadow:
      0 10px 28px rgba(0,0,0,.22),
      0 2px 6px rgba(0,0,0,.12),
      inset 0 -3px 6px rgba(0,0,0,.12);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    border: 2px solid rgba(255,255,255,.85);
  }
  .sticky-cta a:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow:
      0 16px 36px rgba(0,0,0,.28),
      0 4px 10px rgba(0,0,0,.15),
      inset 0 -3px 6px rgba(0,0,0,.12);
  }
  .sticky-cta a svg { display: block; }
  .sticky-cta .sc-phone {
    background: radial-gradient(circle at 35% 30%, #2D4884 0%, var(--navy) 55%, #1A2C57 100%);
  }
  .sticky-cta .sc-line  {
    background: radial-gradient(circle at 35% 30%, #2DD96F 0%, #06C755 55%, #04A847 100%);
  }

  /* Soft pulse to draw the eye, but not annoying */
  .sticky-cta .sc-line::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #06C755;
    opacity: 0;
    animation: scPulse 2.4s var(--ease) infinite;
    pointer-events: none;
  }
  @keyframes scPulse {
    0%   { transform: scale(.9); opacity: .6; }
    70%  { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .sticky-cta .sc-line::before { animation: none; }
  }

  /* ═══════════════════════════════════════════════════════════
     SCROLL REVEAL — sections fade & slide up as they enter view
     Slow, deliberate rhythm so each section clearly announces itself.
     ═══════════════════════════════════════════════════════════ */
  .reveal {
    opacity: 0;
    transform: translateY(64px);
    transition:
      opacity 1.4s cubic-bezier(.16,.84,.30,1),
      transform 1.4s cubic-bezier(.16,.84,.30,1);
    will-change: opacity, transform;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  /* Direction variants for visual variety */
  .reveal.reveal-left  { transform: translate3d(-56px, 40px, 0); }
  .reveal.reveal-right { transform: translate3d( 56px, 40px, 0); }
  .reveal.reveal-left.is-visible,
  .reveal.reveal-right.is-visible { transform: translate3d(0,0,0); }

  /* Stagger children inside a revealed section (cards/items animate one-by-one) */
  .reveal[data-stagger] > * {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 1s cubic-bezier(.16,.84,.30,1),
      transform 1s cubic-bezier(.16,.84,.30,1);
  }
  .reveal[data-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal[data-stagger].is-visible > *:nth-child(1) { transition-delay: .15s; }
  .reveal[data-stagger].is-visible > *:nth-child(2) { transition-delay: .30s; }
  .reveal[data-stagger].is-visible > *:nth-child(3) { transition-delay: .45s; }
  .reveal[data-stagger].is-visible > *:nth-child(4) { transition-delay: .60s; }
  .reveal[data-stagger].is-visible > *:nth-child(5) { transition-delay: .75s; }
  .reveal[data-stagger].is-visible > *:nth-child(6) { transition-delay: .90s; }
  .reveal[data-stagger].is-visible > *:nth-child(n+7) { transition-delay: 1s; }

  /* Respect reduced motion — skip animation entirely */
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-left, .reveal-right,
    .reveal[data-stagger] > * {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
  }

  /* ═══════════════════════════════════════════════════════════
     MOBILE MENU (hamburger + slide-down panel)
     ═══════════════════════════════════════════════════════════ */
  .nav-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, border-color .2s;
  }
  .nav-burger i { font-size: 22px; }
  .nav-burger:hover { background: var(--navy-soft); border-color: var(--border-2); }
  .mobile-menu {
    display: none;
    position: fixed;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(15, 36, 74, .10);
    z-index: 99;
    padding: 12px 20px 22px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu.open { display: block; }
  .mobile-menu .mm-link {
    display: block;
    padding: 14px 4px;
    font-family: var(--sans-th);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
  }
  .mm-group {
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--border);
  }
  .mm-heading {
    display: block;
    font-family: var(--sans-en);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--cyan-deep);
    margin-bottom: 8px;
    padding: 0 4px;
    text-decoration: none;
  }
  .mm-group a {
    display: block;
    padding: 10px 4px 10px 16px;
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
  }
  .mm-group a:hover { color: var(--cyan-deep); }
  .mm-group a.mm-sub {
    padding-left: 32px;
    font-size: 16px;
    color: var(--gray-500);
    border-left: 2px solid var(--border);
    margin-left: 8px;
  }
  .mm-group a.mm-sub:hover { color: var(--cyan-deep); border-left-color: var(--cyan); }
  .mm-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 20px;
  }
  .mm-call, .mm-contact {
    --mm-notch: 10px;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    font-family: var(--sans-th);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .3px;
    text-decoration: none;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--mm-notch)),
                        calc(100% - var(--mm-notch)) 100%, 0 100%);
  }
  .mm-call {
    background: #2295C4;
    color: #fff;
  }
  .mm-call i { font-size: 18px; }
  .mm-contact {
    background: transparent;
    color: #2295C4;
  }
  .mm-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #2295C4;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--mm-notch)),
                        calc(100% - var(--mm-notch)) 100%, 0 100%);
    z-index: -2;
  }
  .mm-contact::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (var(--mm-notch) - 1px)),
                        calc(100% - (var(--mm-notch) - 1px)) 100%, 0 100%);
    z-index: -1;
  }

  /* ═══════════════════════════════════════════════════════════
     RESPONSIVE
     ═══════════════════════════════════════════════════════════ */
  @media (max-width: 1100px) {
    .top-bar { padding: 0 32px; gap: 16px; }
    .top-bar-meta a:nth-of-type(2),
    .top-bar-meta .top-bar-divider { display: none; }
    nav { padding: 0 32px; }
    .hero {
      height: calc(100vh - 116px);
      height: calc(100svh - 116px);
      min-height: calc(100vh - 116px);
      min-height: calc(100svh - 116px);
      max-height: none;
    }
    .hero-content { padding: 80px 32px; }
    .hero-content > * { max-width: 100%; }
    .nav-center { display: none; }
    .nav-burger { display: inline-flex; }
    .mobile-menu { top: 116px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .iqh-section { padding: 44px 32px 56px; }
    .iqh-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .results-grid { grid-template-columns: 1fr; gap: 32px; }
    .team-overview { padding: 72px 32px; }
    .team-overview-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-photo { min-height: 380px; }
    .contact-layout { grid-template-columns: 1fr; gap: 56px; }
    .section { padding: 72px 32px; }
    .services-section, .stats-section, .contact-section { padding: 80px 32px; }
    .news-wrapper { margin: 0 32px 72px; }
    .trust-section { padding: 48px 0 56px; }
    .trust-head { padding: 0 32px; margin-bottom: 32px; }
    .trust-logo { width: 160px; height: 70px; padding: 0 24px; font-size: 16px; }
    footer { flex-direction: column; gap: 18px; text-align: center; padding: 32px; }
  }

  @media (max-width: 700px) {
    body { padding-top: 100px; }
    .hero {
      height: calc(100vh - 100px);
      height: calc(100svh - 100px);
      min-height: calc(100vh - 100px);
      min-height: calc(100svh - 100px);
      max-height: none;
    }
    .top-bar { padding: 0 12px; height: 36px; justify-content: space-between; gap: 8px; }
    .top-bar-meta { gap: 12px; min-width: 0; flex-shrink: 1; }
    .top-bar-meta a { font-size: 16px; letter-spacing: 0; }
    .top-bar-meta i { font-size: 16px; }
    .lang-btns { flex-shrink: 0; }
    .lang-btn { padding: 0 9px; font-size: 16px; gap: 5px; }
    .lang-flag { width: 16px; height: 12px; }
    nav { padding: 0 20px; height: 64px; top: 36px; }
    .nav-right { gap: 8px; }
    .logo-mark { height: 34px; max-width: 150px; }
    .btn-call, .btn-contact { display: none; }
    .logo-sub { display: none; }
    .nav-search { display: none; }
    .mobile-menu { top: 100px; }
    .services-grid { grid-template-columns: 1fr; }
    .numbers-grid { grid-template-columns: 1fr; gap: 0; }
    .num-card { padding: 32px 0; border-top: 1px solid rgba(255,255,255,.12); }
    .num-card:first-child { border-top: none; }
    .num-card::before { display: none !important; }
    .cases-grid { grid-template-columns: 1fr; }
    .hero-h1 { font-size: 34px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas button { width: 100%; justify-content: center; }
    .form-grid { grid-template-columns: 1fr; }
    .form-col { padding: 28px 22px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .trust-head { padding: 0 20px; }
    .trust-eyebrow::before, .trust-eyebrow::after { width: 20px; }
    .trust-logo { width: 140px; height: 60px; padding: 0 18px; font-size: 16px; }
    .team-photo { min-height: 320px; }
    .team-stat-row { grid-template-columns: 1fr; gap: 0; }
    .team-stat { border-right: none !important; border-bottom: 1px solid var(--border); padding: 18px 0 !important; }
    .team-stat:last-child { border-bottom: none; }
    .team-stat .ts-num { font-size: 32px; }
    .sticky-cta { right: 14px; bottom: 14px; gap: 10px; }
    .sticky-cta a { width: 52px; height: 52px; font-size: 22px; }
    .sticky-cta a svg { width: 24px; height: 24px; }
  }



/* ═══════════════ CSS VARS FOR IMPORTED JMAC-01 SECTIONS ═══════════════ */
.jmac01-imported {
  /* JMAC Brand Colors */
  --jmac-blue: #2295C4;
  --jmac-blue-deep: #0E5478;
  --jmac-blue-soft: #5BB4D9;
  --jmac-blue-pale: #EAF6FB;
  
  /* Ink scale */
  --ink: #0A0A0A;
  --ink-100: #E0E0E0;
  --ink-500: #5A5A5A;
  
  /* Paper */
  --paper: #FFFFFF;
  
  /* Typography — Noto Sans Thai across the whole site */
  --th: 'Noto Sans Thai', sans-serif;
  --sans: 'Noto Sans Thai', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --serif: 'Noto Sans Thai', sans-serif;
  --serif-jp: 'Noto Sans Thai', 'Noto Sans JP', sans-serif;
  --display: 'Noto Sans Thai', sans-serif;
  
  /* Spacing */
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-9: 4rem;
  
  /* Section rhythm */
  --section-y: clamp(4rem, 8vw, 6.25rem);
  --head-mb: clamp(2.5rem, 5vw, 3.5rem);
}

/* Wrap container — full width to allow inner .wrap to control its own padding */
.jmac01-imported {
  display: block;
  width: 100%;
}
.jmac01-imported .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 80px;
  position: relative;
}

.jmac01-imported .hero-cream-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .25s;
  min-width: 230px;
}
.jmac01-imported .hero-cream-btn svg {
  flex-shrink: 0;
}
.jmac01-imported .hero-cream-btn-primary {
  background: #2295C4;
  color: #ffffff;
  border: 1.5px solid #2295C4;
}
.jmac01-imported .hero-cream-btn-primary:hover {
  background: #4FB0D4;
  border-color: #4FB0D4;
  transform: translateY(-2px);
}
.jmac01-imported .hero-cream-btn-secondary {
  background: transparent;
  color: #2295C4;
  border: 1.5px solid #2295C4;
}
.jmac01-imported .hero-cream-btn-secondary:hover {
  background: #2295C4;
  color: #ffffff;
  transform: translateY(-2px);
}
.intro-label { display: none !important; }

.jmac01-imported .intro .wrap {
  position: relative;
}

.jmac01-imported .intro-grid {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.jmac01-imported .intro-label {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(21, 151, 194);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.intro-label::before,
.jmac01-imported .intro-label::after {
  content: '';
  width: 28px;
  height: 1.5px;
  background: rgb(21, 151, 194);
}
.jmac01-imported .know {
  padding: var(--section-y) 0;
  background: #EAF6FB;
  color: #142E58;
}
.jmac01-imported .know-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: var(--head-mb);
  align-items: end;
}
.know-head .intro-label { color: rgba(20,46,88,0.5); padding-top: 0; }
.know-head .intro-label::before { color: rgb(21, 151, 194); }
.jmac01-imported .know-head h2 {
  font-family: var(--th);
  font-size: clamp(34px, 4vw,52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #142E58;
}
.jmac01-imported .know-head h2 em {
  font-style: normal;
  color: rgb(21, 151, 194);
}
.know-head .btn-link { color: #142E58; border-bottom-color: #142E58; }
.know-head .btn-link:hover { color: rgb(21, 151, 194); border-bottom-color: rgb(21, 151, 194); }

/* Trending Filter Tabs */
.jmac01-imported .know-filter {
  display: flex;
  gap: 0;
  margin-bottom: var(--head-mb);
  border-bottom: 1px solid rgba(20,46,88,0.15);
  flex-wrap: wrap;
  overflow-x: hidden;
  scrollbar-width: none;
}
.know-filter::-webkit-scrollbar { display: none; }
.jmac01-imported .know-tab {
  background: none;
  border: 0;
  color: rgba(20,46,88,0.5);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  padding: 18px 28px 18px 0;
  margin-right: 32px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}
.know-tab:hover { color: #142E58; }
.jmac01-imported .know-tab.on {
  color: #142E58;
  border-bottom-color: rgb(21, 151, 194);
}
.jmac01-imported .know-tab .cnt {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(20,46,88,0.4);
  padding: 2px 8px;
  border: 1px solid rgba(20,46,88,0.2);
  border-radius: 2px;
}
.know-tab.on .cnt { color: rgb(21, 151, 194); border-color: rgb(21, 151, 194); }

/* Knowledge mini items (second row) */
.jmac01-imported .know-grid-second {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  margin-top: 48px;
  border-top: 1px solid rgba(20,46,88,0.15) !important;
  padding-top: 48px;
}
.jmac01-imported .know-item-mini {
  padding: 0 32px 0 0;
  border-right: 1px solid rgba(20,46,88,0.1);
  cursor: pointer;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.know-item-mini:last-child { border-right: none; padding-right: 0; }
.know-item-mini + .know-item-mini { padding-left: 32px; }
.know-item-mini:hover h4 { color: rgb(21, 151, 194); }
.jmac01-imported .know-tag-mini {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(21, 151, 194);
  margin-bottom: 16px;
}
.jmac01-imported .know-item-mini h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #142E58;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  transition: color .25s;
}
.jmac01-imported .know-item-mini p {
  font-family: var(--mono);
  font-size: 16px;
  color: rgba(20,46,88,0.5);
  letter-spacing: 0.05em;
  margin-top: auto;
}

.jmac01-imported .know-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(20,46,88,0.15);
}
.jmac01-imported .know-item {
  padding: 40px 32px 40px 0;
  border-right: 1px solid rgba(20,46,88,0.15);
  display: flex;
  flex-direction: column;
  min-height: 480px;
  cursor: pointer;
  transition: padding .3s;
}
.know-item:last-child { border-right: none; padding-right: 0; }
.know-item + .know-item { padding-left: 32px; }
.know-item:hover { padding-top: 32px; }

.jmac01-imported .know-tag {
  font-family: var(--th);
  font-size: 16px;
  letter-spacing: 0.06em;
  color: rgb(21, 151, 194);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}
.jmac01-imported .know-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(20,46,88,0.15);
}
.jmac01-imported .know-item .tag-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #142E58;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.jmac01-imported .know-item.feature .tag-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: #142E58;
  flex-shrink: 0;
}
.jmac01-imported .know-item h3 {
  font-family: var(--th);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: #142E58;
  margin-bottom: 20px;
  flex: 1;
}
.know-item.feature h3 { font-size: 20px; }
.jmac01-imported .know-item .by {
  font-size: 16px;
  color: rgba(20,46,88,0.6);
  line-height: 1.55;
  margin-bottom: 24px;
}
.know-item .by b { color: #142E58; font-weight: 500; }
.jmac01-imported .know-item .arrow {
  font-family: var(--th);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--jmac-blue);
  border-top: 1px solid rgba(34, 149, 196, 0.25);
  padding-top: 20px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .25s, gap .25s;
}
.jmac01-imported .know-item:hover .arrow {
  color: var(--jmac-blue-deep);
}
.jmac01-imported .team {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--ink-100);
}
.jmac01-imported .team-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  margin-bottom: var(--head-mb);
  align-items: end;
}
.jmac01-imported .team-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw,64px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.jmac01-imported .team-head h2 em {
  font-style: italic;
  color: var(--jmac-blue-deep);
}
.jmac01-imported .team-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: var(--head-mb);
}
.jmac01-imported .team-photo {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  filter: contrast(1.05) saturate(0.9);
}
.jmac01-imported .team-photo-jp {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 25%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%),
    url('images/team-japan.png');
}
.jmac01-imported .team-photo-th {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 25%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.85) 100%),
    url('images/team-thailand.png');
}
.jmac01-imported .team-photo-tag {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(20, 46, 88, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.15em;
  font-weight: 600;
}
.jmac01-imported .team-photo-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  color: rgba(255,255,255,0.95);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.jmac01-imported .team-photo-info b {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.85), 0 1px 3px rgba(0,0,0,0.6);
}
.jmac01-imported .team-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(20, 46, 88, 0.12);
  border-bottom: 1px solid rgba(20, 46, 88, 0.12);
  margin-top: 64px;
}
.jmac01-imported .team-stat {
  padding: 48px 32px;
  border-right: 1px solid rgba(20, 46, 88, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: background .3s;
}
.team-stat:last-child { border-right: none; }
.team-stat + .team-stat { padding-left: 32px; }
.team-stat:hover { background: rgba(34, 149, 196, 0.03); }

.jmac01-imported .team-stat .lbl {
  font-family: var(--th);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  font-weight: 500;
  order: 1;
}
.jmac01-imported .team-stat .num {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #142E58;
  margin-bottom: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  order: 2;
}
.jmac01-imported .team-stat .num sup {
  font-size: 22px;
  vertical-align: baseline;
  top: 0;
  color: var(--jmac-blue);
  font-family: var(--th);
  font-weight: 500;
  letter-spacing: 0;
  position: relative;
  align-self: flex-end;
  margin-bottom: 8px;
}
.jmac01-imported .contact {
  padding: 48px 64px 72px;
  background: #ffffff;
  position: relative;
}
.jmac01-imported.jmac01-imported .contact > .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}
.jmac01-imported.jmac01-imported .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
  max-width: none;
  margin: 0;
}

/* LEFT: sticky column with heading + info + map */
.jmac01-imported.jmac01-imported .contact-text {
  align-self: stretch;
  height: 100%;
}
.jmac01-imported.jmac01-imported .contact-text-sticky {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
}
.jmac01-imported.jmac01-imported .contact-text .eyebrow {
  color: var(--cyan-deep);
  margin-bottom: 14px;
}
.jmac01-imported.jmac01-imported .contact-text .section-title {
  font-family: var(--display);
  color: var(--navy);
  border: none;
  padding: 0;
  margin: 0 0 36px;
}
.jmac01-imported.jmac01-imported .contact-text .section-title span {
  color: var(--cyan);
}

.jmac01-imported .contact-info {
  border-top: 1px solid #E8EBF0;
}
.jmac01-imported .contact-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: 18px 0;
  border-bottom: 1px solid #E8EBF0;
  font-size: 16px;
  font-family: var(--th);
}
.jmac01-imported .contact-info dt {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(21, 151, 194);
  font-weight: 700;
  padding-top: 3px;
}
.jmac01-imported .contact-info dd {
  color: #142E58;
  line-height: 1.6;
  font-weight: 500;
}
.contact-info dd a { color: #142E58; transition: color .2s; }
.contact-info dd a:hover { color: rgb(21, 151, 194); }

.jmac01-imported .map-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-family: var(--display) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgb(21, 151, 194) !important;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1px solid rgb(21, 151, 194);
  border-radius: 100px;
  transition: all .2s;
}
.jmac01-imported .map-link:hover {
  background: rgb(21, 151, 194);
  color: #ffffff !important;
}
.map-link svg { flex-shrink: 0; }

.jmac01-imported .contact-map {
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid #E8EBF0;
  overflow: hidden;
  filter: grayscale(0.3) contrast(1.05);
  transition: filter .3s;
}
.contact-map:hover { filter: grayscale(0) contrast(1); }

/* RIGHT: FORM CARD */
.jmac01-imported .contact-form {
  background: #F9FAFB;
  border: 1px solid #E8EBF0;
  border-radius: 20px;
  padding: 40px;
  position: relative;
}
.jmac01-imported .contact-form-head {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20, 46, 88, 0.5);
  padding-bottom: 20px;
  border-bottom: 1px solid #E8EBF0;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jmac01-imported .contact-form-head b {
  color: rgb(21, 151, 194);
  font-weight: 700;
}
.jmac01-imported .field-set {
  display: grid;
  gap: 1.25rem;
}
.jmac01-imported .field {
  display: flex;
  flex-direction: column;
}
.jmac01-imported .field label {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #142E58;
  margin-bottom: 8px;
}
.field input,
.field textarea,
.jmac01-imported .field select {
  font-family: var(--th);
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid #E8EBF0;
  background: #ffffff;
  color: #142E58;
  outline: none;
  transition: all .2s;
  border-radius: 10px;
}
.field input::placeholder,
.jmac01-imported .field textarea::placeholder {
  color: rgba(20, 46, 88, 0.35);
  font-family: var(--th);
}
.field input:focus,
.field textarea:focus,
.jmac01-imported .field select:focus {
  border-color: rgb(21, 151, 194);
  box-shadow: 0 0 0 3px rgba(21, 151, 194, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.jmac01-imported .consent {
  font-family: var(--th);
  font-size: 16px;
  color: var(--ink-500);
  line-height: 1.6;
  margin-top: 4px;
}
.jmac01-imported .consent a {
  color: rgb(21, 151, 194);
  text-decoration: underline;
  font-weight: 500;
}
.jmac01-imported .form-submit {
  width: 100%;
  background: #2295C4;
  color: #ffffff;
  border: none;
  height: 44px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition: color .25s;
  cursor: pointer;
  position: relative;
  isolation: isolate;
}
/* Inner fill layer — inset by ~1.5px so the outer cyan shows as a 1.5px ring
   on every edge including the diagonal. On hover the fill flips to white. */
.jmac01-imported .form-submit::before {
  content: '';
  display: block;
  position: absolute;
  top: 1.5px; left: 1.5px; right: 1.5px; bottom: 1.5px;
  background: #2295C4;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12.5px), calc(100% - 12.5px) 100%, 0 100%);
  transition: background .25s;
  z-index: -1;
}
.form-submit > * { position: relative; z-index: 1; }
.jmac01-imported .form-submit:hover {
  color: #2295C4;
  transform: none;
}
.jmac01-imported .form-submit:hover::before {
  background: #fff;
}
.jmac01-imported .form-submit svg {
  transition: transform .25s;
}
.jmac01-imported .form-submit:hover svg {
  transform: translateX(4px);
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .contact-form { position: static; padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
}
.jmac01-imported footer {
  background: linear-gradient(180deg, var(--jmac-blue-deep) 0%, #082C42 50%, var(--ink) 100%);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 40px;
  border-top: 1px solid var(--ink);
}

/* PDF Download bar — Footer (req: every page) */
/* PDF Download bar — Footer (req: every page) */
.jmac01-imported .foot-pdf-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto var(--space-9);
  padding: 0;
}
.jmac01-imported .foot-pdf-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: rgba(34, 149, 196, 0.08);
  border: 1px solid rgba(34, 149, 196, 0.25);
  width: min(43.75rem, 90%); /* 700px max */
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.jmac01-imported .foot-pdf-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--jmac-blue);
}
.jmac01-imported .foot-pdf-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.jmac01-imported .foot-pdf-icon {
  width: 56px;
  height: 56px;
  color: var(--jmac-blue-soft);
  flex-shrink: 0;
}
.foot-pdf-icon svg { width: 100%; height: 100%; }
.jmac01-imported .foot-pdf-text b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.jmac01-imported .foot-pdf-text span {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
}
.jmac01-imported .foot-pdf-form {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color .2s;
}
.foot-pdf-form:focus-within { border-bottom-color: var(--jmac-blue-soft); }
.jmac01-imported .foot-pdf-form input {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: 0;
  color: white;
  font-family: var(--sans);
  font-size: 18px;
  outline: none;
}
.foot-pdf-form input::placeholder { color: rgba(255,255,255,0.4); }
.jmac01-imported .foot-pdf-form button {
  background: transparent;
  color: var(--jmac-blue-soft);
  font-size: 18px;
  font-weight: 500;
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: gap .25s, color .2s;
}
.foot-pdf-form button:hover { gap: 1rem; color: white; }
.jmac01-imported .foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: var(--space-8);
}

/* Brand column */
.jmac01-imported .foot-brand .brand-logo-footer {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}
.jmac01-imported .foot-desc {
  font-family: var(--th);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 16px 0 24px;
  max-width: 320px;
}

/* Contact column */
.foot-contact address { display: flex; flex-direction: column; gap: 1rem; font-style: normal; }
.jmac01-imported .contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--th);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}
.jmac01-imported .contact-line .contact-ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(34, 149, 196, 0.15);
  color: var(--jmac-blue-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.jmac01-imported .contact-line a {
  color: rgba(255,255,255,0.85);
  transition: color .2s;
}
.contact-line a:hover { color: var(--jmac-blue-soft); }
.jmac01-imported .contact-line b {
  color: white;
  font-weight: 600;
  font-family: var(--th);
  font-size: 18px;
}
.foot-brand .brand-wordmark { color: white; font-size: 38px; }
.foot-brand .brand-sub { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.15); }
.foot-brand .brand-sub b { color: white; }
.jmac01-imported .foot-tagline {
  font-family: var(--serif-jp);
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin: 20px 0 16px;
  font-weight: 400;
}
.jmac01-imported .foot-tagline em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.jmac01-imported .foot-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 16px;
}
.jmac01-imported .foot-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .25s;
}
.jmac01-imported .foot-social a:hover {
  background: var(--jmac-blue);
  border-color: var(--jmac-blue);
  color: white;
}

.foot-col h3,
.jmac01-imported .foot-col h4 {
  font-family: var(--th);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: white;
  margin-bottom: 20px;
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}
.foot-col h3::after,
.jmac01-imported .foot-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--jmac-blue-soft);
  border-radius: 2px;
}
.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 12px; }
.jmac01-imported .foot-col a {
  font-size: 18px;
  font-family: var(--th);
  color: rgba(255,255,255,0.7);
  font-style: normal;
  font-weight: 400;
  transition: color .2s, transform .2s;
  display: inline-block;
}
.foot-col a:hover { color: white; transform: translateX(4px); }
.jmac01-imported .foot-col address {
  font-style: normal;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  font-family: var(--th);
}
.jmac01-imported .foot-col address b {
  color: white;
  font-weight: 600;
  display: block;
  margin-top: 14px;
  font-family: var(--th);
  font-size: 18px;
  letter-spacing: 0;
}

.jmac01-imported .foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  font-family: var(--th);
  letter-spacing: 0;
}
.jmac01-imported .foot-bottom .meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-family: var(--th);
}
.foot-bottom .meta a { transition: color .2s; font-family: var(--th); }
.foot-bottom .meta a:hover { color: white; }
/* Responsive for imported sections */
@media (max-width: 1100px) {
  .jmac01-imported .know-grid { grid-template-columns: 1fr; gap: 32px; }
  .jmac01-imported .know-item { padding: 32px 0; border-right: none; border-bottom: 1px solid rgba(20,46,88,0.1); min-height: auto; }
  .jmac01-imported .know-item:last-child { border-bottom: none; }
  .jmac01-imported .know-item + .know-item { padding-left: 0; }
  .jmac01-imported .know-grid-second { grid-template-columns: 1fr 1fr !important; gap: 0 !important; }
  .jmac01-imported .know-item-mini { padding: 24px 16px; border-right: 1px solid rgba(20,46,88,0.1); border-bottom: 1px solid rgba(20,46,88,0.1); }
  .jmac01-imported .know-item-mini + .know-item-mini { padding-left: 16px; }
  .jmac01-imported .team-photo-row { grid-template-columns: 1fr; }
  .jmac01-imported .team-meta { grid-template-columns: 1fr; }
  .jmac01-imported .team-stat { border-right: none; border-bottom: 1px solid rgba(20,46,88,0.08); }
  .jmac01-imported .team-stat:last-child { border-bottom: none; }
  .jmac01-imported .team-stat + .team-stat { padding-left: 32px; }
  .jmac01-imported .know-head { grid-template-columns: 1fr; gap: 24px; }
  .jmac01-imported .team-head { grid-template-columns: 1fr; gap: 24px; }
  .jmac01-imported .contact-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .jmac01-imported .contact-form { position: static; padding: 28px; }
  .jmac01-imported .field-row { grid-template-columns: 1fr; }
  .jmac01-imported .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .jmac01-imported .foot-pdf-bar { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 700px) {
  .jmac01-imported .know-grid-second { grid-template-columns: 1fr !important; }
  .jmac01-imported .know-item-mini { padding: 24px 0; border-right: none; }
  .jmac01-imported .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .jmac01-imported .foot-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   KNOWLEDGE SECTION — Restyled to match JMAC-02 design system
   ═══════════════════════════════════════════════════════════ */
.jmac01-imported .know {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(91, 180, 217, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(34, 149, 196, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #FBFCFE 0%, #F4F8FB 100%);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.jmac01-imported .know::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34, 149, 196, 0.25) 50%, transparent 100%);
  pointer-events: none;
}
.jmac01-imported .know .wrap {
  max-width: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
/* Eyebrow — match other sections */
.jmac01-imported .know .section-header .eyebrow {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--cyan-deep);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.jmac01-imported .know .section-header .eyebrow::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--cyan);
}
.jmac01-imported .know .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-bottom: 30px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(15, 36, 74, 0.1);
}
.jmac01-imported .know .section-header .section-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw,42px);
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.18;
  color: var(--navy);
  margin: 0;
}
.jmac01-imported .know .section-header .section-title span {
  color: var(--cyan);
  font-weight: 400;
  font-style: normal;
}
/* .jmac01-imported view-all — uses unified .btn-primary style */

/* Filter tabs — JMAC-02 style */
.jmac01-imported .know-filter {
  display: flex;
  gap: 0;
  margin: 32px 0 48px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.jmac01-imported .know-tab {
  background: none;
  border: 0;
  color: var(--gray-700);
  font-family: var(--sans-th);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 0;
  margin-right: 32px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: all .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0;
}
.jmac01-imported .know-tab:hover { color: var(--navy); }
.jmac01-imported .know-tab.on {
  color: var(--navy);
  border-bottom-color: var(--cyan);
  font-weight: 600;
}
.jmac01-imported .know-tab .cnt {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  letter-spacing: .5px;
}
.jmac01-imported .know-tab.on .cnt {
  color: var(--cyan-deep);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

/* Knowledge cards grid */
.jmac01-imported .know-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: none;
}
.jmac01-imported .know-item {
  padding: 0;
  border: none;
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: auto;
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.jmac01-imported .know-item + .know-item { padding-left: 0; }
.jmac01-imported .know-item:hover {
  padding-top: 0;
  transform: translateY(-6px);
}
.jmac01-imported .know-item .tag-photo {
  width: 100%;
  height: 220px;
  aspect-ratio: auto;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  margin-bottom: 20px;
  order: 2;
}
.jmac01-imported .know-item.feature .tag-photo {
  aspect-ratio: auto;
}
.jmac01-imported .know-tag {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin: 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  order: 1;
  padding: 4px 0;
}
.jmac01-imported .know-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.jmac01-imported .know-item h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.005em;
  color: var(--navy);
  margin-bottom: 14px;
  order: 3;
  transition: color .25s;
}
.jmac01-imported .know-item.feature h3 {
  font-size: 20px;
}
.jmac01-imported .know-item:hover h3 { color: var(--cyan); }
.jmac01-imported .know-item .by {
  font-family: var(--sans-th);
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 18px;
  order: 4;
}
.jmac01-imported .know-item .by b {
  color: var(--navy);
  font-weight: 600;
}
.jmac01-imported .know-item .arrow {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .25s, gap .25s;
  order: 5;
}
.jmac01-imported .know-item .arrow svg { stroke: currentColor; }
.jmac01-imported .know-item:hover .arrow { color: var(--cyan); }

/* Second row — mini cards with type icons */
.jmac01-imported .know-grid-second {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  margin-top: 56px;
  border-top: 1px solid rgba(15, 36, 74, 0.08) !important;
  padding-top: 48px;
}
.jmac01-imported .know-item-mini {
  position: relative;
  padding: 28px 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFD 100%);
  border: 1px solid rgba(15, 36, 74, 0.06);
  border-right: 1px solid rgba(15, 36, 74, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.jmac01-imported .know-item-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(15, 36, 74, 0.15);
  border-color: transparent;
}
.jmac01-imported .know-item-mini:hover::before { transform: scaleX(1); }
.jmac01-imported .know-item-mini:last-child {
  border-right: 1px solid rgba(15, 36, 74, 0.06);
  padding-right: 24px;
}
.jmac01-imported .know-item-mini + .know-item-mini { padding-left: 24px; }
.jmac01-imported .know-item-mini:hover h4 { color: var(--cyan); }

/* Icon block — same gradient as case-dept badge */
.jmac01-imported .mini-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A0A0A 0%, #0E2A4A 30%, #1565A0 65%, #4FB3D4 100%);
  color: #fff;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px -4px rgba(10, 30, 60, 0.4);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  transition: transform .35s var(--ease);
}
.jmac01-imported .know-item-mini:hover .mini-icon {
  transform: scale(1.08) rotate(-2deg);
}
.jmac01-imported .mini-icon i { line-height: 1; }

/* Top accent line — same brand gradient */
.jmac01-imported .know-item-mini::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #0A0A0A 0%, #0E2A4A 30%, #1565A0 65%, #4FB3D4 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.jmac01-imported .know-tag-mini {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 12px;
}
.jmac01-imported .know-item-mini h4 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
  transition: color .25s;
}
.jmac01-imported .know-item-mini p {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 1.2px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed rgba(15, 36, 74, 0.1);
  text-transform: uppercase;
}

/* Responsive for know section */
@media (max-width: 1100px) {
  .jmac01-imported .know { padding: 80px 32px; }
  .jmac01-imported .know .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .jmac01-imported .know-grid { grid-template-columns: 1fr; gap: 32px; }
  .jmac01-imported .know-grid-second { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
  .jmac01-imported .know-item-mini { padding: 0 !important; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 24px !important; }
  .jmac01-imported .know-item-mini:nth-child(n+3) { border-bottom: none; padding-bottom: 0 !important; }
}
@media (max-width: 700px) {
  .jmac01-imported .know { padding: 56px 20px; }
  .jmac01-imported .know-grid-second { grid-template-columns: 1fr !important; }
  .jmac01-imported .know-item-mini { border-bottom: 1px solid var(--border); padding-bottom: 24px !important; }
  .jmac01-imported .know-item-mini:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT FORM — additional fields & required asterisk
   ═══════════════════════════════════════════════════════════ */
.jmac01-imported .contact-form .req {
  color: #E53935;
  font-weight: 700;
  margin-left: 2px;
  font-size: 16px;
  font-family: var(--sans-en);
}
.jmac01-imported .contact-form .field-select {
  font-family: var(--th);
  font-size: 16px;
  padding: 13px 40px 13px 16px;
  border: 1px solid #E8EBF0;
  background: #ffffff;
  color: #142E58;
  outline: none;
  transition: all .2s;
  border-radius: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8' fill='none'%3e%3cpath d='M1 1L7 7L13 1' stroke='%232295C4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 8px;
}
.jmac01-imported .contact-form .field-select:focus {
  border-color: rgb(21, 151, 194);
  box-shadow: 0 0 0 3px rgba(21, 151, 194, 0.12);
}
.jmac01-imported .contact-form .field-select option {
  font-family: var(--th);
  font-size: 16px;
  color: #142E58;
  padding: 10px;
}
.jmac01-imported .contact-form .field-select option:disabled {
  color: rgba(20, 46, 88, 0.4);
}
.jmac01-imported .contact-form textarea {
  min-height: 140px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.jmac01-imported .contact-form .form-callback {
  font-family: var(--th);
  font-size: 16px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}
.jmac01-imported .contact-form .form-callback b {
  color: rgb(21, 151, 194);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════
   ▼ Knowledge — minimal additions only (preserve editorial style)
   ═══════════════════════════════════════════════════════════════ */

/* Subtle hexagon decoration in the knowledge background */
.jmac01-imported .know {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.jmac01-imported .know::after { /* re-enabled below with new decoration */ }

/* Type icon — small inline chip beside the tag text */
.know-type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(34, 149, 196, 0.10);
  color: rgb(21, 151, 194);
  border-radius: 4px;
  flex-shrink: 0;
}
.know-type-icon i { font-size: 16px; line-height: 1; }
.know-type-icon[data-type="seminar"] { background: rgba(20, 46, 88, 0.08); color: #142E58; }
.know-type-icon[data-type="podcast"] { background: rgba(20, 46, 88, 0.08); color: #142E58; }

/* ═══════════════════════════════════════════════════════════════
   ▼ KNOWLEDGE — "Column" layout (banner + filter buttons + image-led cards)
   ═══════════════════════════════════════════════════════════════ */

/* Section background — plain white */
.jmac01-imported .know {
  background: #FFFFFF;
  padding: 0 0 56px;
  position: relative;
}
.jmac01-imported .know::before { display: none; }
/* Decorative hexagon watermark removed */
.jmac01-imported .know::after {
  content: none;
}

.jmac01-imported .know .wrap {
  max-width: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Banner row: heading on the left, view-all button on the right ── */
.know-banner-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin: 0;
  padding: 56px 80px 0;
  position: relative;
}

/* Left: heading block — plain background, no card frame, no decoration */
.know-banner {
  background: transparent;
  color: var(--ink);
  padding: 0;
  position: relative;
  overflow: visible;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Decorative hexagon watermarks removed */
.know-banner::before { content: none; }
.know-banner::after { content: none; }
.know-banner > * { position: relative; z-index: 1; }
.know-banner .eyebrow {
  color: #2596BE;
  margin-bottom: 14px;
}
.know-banner .eyebrow::before {
  background: #2596BE;
}
.know-banner .section-title {
  color: #2596BE !important;
  font-family: var(--display) !important;
  font-size: clamp(28px, 3.2vw,42px) !important;
  font-weight: 500 !important;
  line-height: 1.18 !important;
  letter-spacing: -.015em !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
}
.know-banner .section-title span {
  color: #3FA8CE !important;
  font-weight: 400 !important;
  font-style: normal !important;
  display: inline;
}
.know-banner-desc {
  font-family: var(--sans-th);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 520px;
  margin: 0;
}
/* Slice removed — only cut-corner rectangle / hexagon shapes allowed per design */
.know-banner-slice { display: none; }

/* Right: view-all button — vertically aligned with the heading */
.know-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0 0 32px;
}

/* ── Main 3-card grid: image-led, clean, no card chrome ── */
.jmac01-imported .know-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: none;
  padding: 64px 80px 0;
  position: relative;
}

.jmac01-imported .know-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform .35s var(--ease);
}
.jmac01-imported .know-item::before { display: none; }
.jmac01-imported .know-item::after { display: none; }
.jmac01-imported .know-item:hover {
  transform: translateY(-6px);
  padding-top: 0;
  box-shadow: none;
}

/* Photo — cut-corner rectangle, zooms slightly on hover */
.jmac01-imported .know-item .tag-photo {
  width: 100%;
  height: 240px;
  background-color: #142E58;
  background-size: cover;
  background-position: center;
  margin: 0 0 22px;
  order: 0;
  position: relative;
  overflow: hidden;
  /* Cut-corner rectangle — matches banner shape */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  transition: transform .8s var(--ease);
}
.jmac01-imported .know-item:hover .tag-photo {
  transform: scale(1.02);
}
.jmac01-imported .know-item.feature .tag-photo { height: 240px; }

/* Body container under the photo */
.know-item-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Date — small grey label */
.know-date {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  margin-bottom: 10px;
}

/* Topic tag — small navy/cyan label, like JMACレポート in reference */
.jmac01-imported .know-item .know-tag {
  font-family: var(--sans-th);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--cyan-deep);
  text-transform: none;
  margin: 20px 0 12px;
  padding: 0;
  display: inline;
  gap: 0;
}
.jmac01-imported .know-item .know-tag::after { display: none; }

/* Title */
.jmac01-imported .know-item h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink-2);
  margin: 0 0 22px;
  padding: 0;
  order: 3;
  /* Animated underline grown on hover via background-image trick */
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.jmac01-imported .know-item.feature h3 { font-size: 20px; }
.jmac01-imported .know-item:hover h3 {
  color: var(--cyan-deep);
  background-size: 100% 1.5px;
}

/* Author row — avatar + name/role */
.know-author {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.know-avatar {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: linear-gradient(135deg, #2D85C2 0%, #1697C2 45%, #4FB3D4 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.know-avatar i { line-height: 1; }
.know-author-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  min-width: 0;
}
.know-author-text b {
  font-family: var(--sans-th);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}
.know-author-text span {
  font-family: var(--sans-th);
  font-size: 16px;
  color: var(--gray-700);
}

/* Hide old elements no longer used in this layout */
.jmac01-imported .know-item .by,
.jmac01-imported .know-item .arrow { display: none; }

/* ── Mini cards (second row) — keep but visually simplified ── */
.jmac01-imported .know-grid-second {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 32px !important;
  margin: 56px 80px 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--border) !important;
}
.jmac01-imported .know-item-mini {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.jmac01-imported .know-item-mini::before,
.jmac01-imported .know-item-mini::after { display: none; }
.jmac01-imported .know-item-mini:hover {
  transform: translateY(-3px);
  box-shadow: none;
  border-color: transparent;
}
.jmac01-imported .know-item-mini + .know-item-mini { padding-left: 0; }
.jmac01-imported .know-item-mini:last-child { padding-right: 0; }
.jmac01-imported .mini-icon {
  width: 42px;
  height: 42px;
  font-size: 20px;
  margin-bottom: 16px;
  clip-path: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px -3px rgba(10, 30, 60, 0.30);
}
.jmac01-imported .know-item-mini:hover .mini-icon {
  transform: scale(1.05);
  box-shadow: 0 6px 16px -3px rgba(10, 30, 60, 0.40);
}
.jmac01-imported .know-tag-mini { margin-bottom: 10px; }
.jmac01-imported .know-item-mini h4 {
  font-size: 16px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.jmac01-imported .know-item-mini p {
  border-top: none;
  padding-top: 0;
}

/* Responsive — banner stacks, grid collapses */
@media (max-width: 1100px) {
  .jmac01-imported .know { padding: 0 0 48px; }
  .know-banner-row {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }
  .know-banner { padding: 40px 36px 44px; }
  .know-banner-slice { display: none; }
  .know-filters {
    justify-content: flex-start;
    padding: 24px 0 0;
  }
  .jmac01-imported .know-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 32px 0;
  }
  .jmac01-imported .know-grid-second {
    grid-template-columns: repeat(2, 1fr) !important;
    margin: 48px 32px 0;
    gap: 28px !important;
  }
  .jmac01-imported .know-item-mini {
    border: none !important;
    padding: 0 !important;
  }
  .jmac01-imported .know-item-mini:nth-child(n+3) {
    border: none !important;
    padding: 0 !important;
  }
}
@media (max-width: 700px) {
  .jmac01-imported .know { padding: 0 0 36px; }
  .know-banner-row { padding: 0 20px; }
  .know-banner { padding: 32px 24px 36px; }
  .know-banner .section-title { font-size: 32px !important; }
  .jmac01-imported .know-grid { padding: 36px 20px 0; }
  .jmac01-imported .know-grid-second {
    grid-template-columns: 1fr !important;
    margin: 36px 20px 0;
  }
  .jmac01-imported .know-item-mini { border: none !important; }
  .jmac01-imported .know-item-mini:last-child { border: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ▼ HEXAGON DECORATIONS — subtle background ornaments for sections
   ═══════════════════════════════════════════════════════════════ */
.section-decorated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-decorated::before {
  content: '';
  position: absolute;
  left: -110px;
  top: 335px;
  width: 300px;
  height: 346px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='%23155E7A'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.11;
  pointer-events: none;
  z-index: -1;
}
.section-decorated::after {
  content: '';
  position: absolute;
  right: -140px;
  top: 40px;
  width: 360px;
  height: 415px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='%23155E7A'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.20;
  pointer-events: none;
  z-index: -1;
}

/* Services section — add gentle hex decoration overlay */
.services-section {
  isolation: isolate;
}
.services-section > .services-intro,
.services-section > .svc-scroll {
  position: relative;
  z-index: 1;
}
.services-section::after {
  content: none;
  display: none;
}

/* ─── SERVICES on SOFT BLUE: light gradient panel + white cards ─── */
.ci-band .services-section#services {
  background:
    radial-gradient(135% 95% at 88% -12%, rgba(96,178,220,.42) 0%, rgba(96,178,220,0) 52%),
    radial-gradient(120% 90% at 6% 4%, rgba(150,198,235,.34) 0%, rgba(150,198,235,0) 46%),
    linear-gradient(176deg,
      #D7ECF9 0%,
      #E3F1FB 34%,
      #EFF7FD 56%,
      #F8FCFE 76%,
      #FFFFFF 100%) !important;
}
#services .services-intro .eyebrow      { color: var(--cyan-deep); }
#services .services-intro .eyebrow::before { background: var(--cyan-deep); }
#services .section-title                { color: var(--navy-deep); }
#services .section-title span           { color: var(--cyan); }
#services .services-intro p             { color: rgba(15,20,25,.66); }

/* ─── White cards · square corners · teal title banner ─── */
#services .sol-card {
  background: #ffffff;
  border: 1px solid rgba(35,57,105,.10);
  border-radius: 0;                       /* no rounded corners */
  box-shadow: 0 18px 50px -28px rgba(21,36,74,.30);
}
#services .sol-card:hover { border-color: var(--navy); }

/* image — square */
#services .sol-card-img { border-radius: 0; }

/* title → full-width teal banner: [navy number square] [white title] */
#services .sol-card-title {
  display: flex;
  align-items: stretch;
  margin: 0 0 16px 0;
  padding: 0;
  background: var(--cyan);
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: .5px;
}
#services .sol-card-title::before { display: none; }   /* drop the accent line */

/* number badge — solid navy square at the left of the banner */
#services .sol-card-no {
  position: static;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 0;
  height: auto;
  padding: 0;
  border-radius: 0;
  clip-path: none;                        /* remove slanted cut */
  box-shadow: none;
  background: var(--navy);
  color: #ffffff;
  font-size: 18px;
}
#services .sol-card:hover .sol-card-no { background: var(--navy-deep); }

/* title text — vertically centered, left-aligned on the teal banner */
#services .sct-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  min-height: 48px;
  padding: 8px 16px;
}

/* subtitle → bold dark heading */
#services .sol-card-body { padding: 0 0 22px; }
#services .sol-card-sub {
  padding: 0 22px;
  color: var(--navy-deep);
  font-weight: 700;
  font-size: 16px;
}
#services .sol-card-desc {
  padding: 0 22px;
  color: rgba(15,20,25,.66);
  font-size: 16px;
  -webkit-line-clamp: 2;          /* โชว์ 2 บรรทัดแล้วตัดด้วย ... */
  line-clamp: 2;
}

/* tags → solid blue, square */
#services .sol-card-tags { padding: 0 22px; }
#services .sol-card-tags span {
  color: var(--cyan-deep);
  background: var(--cyan-soft);
  border-radius: 0;
}

/* button → filled navy, square (no rounded / no cut corner) */
#services .sol-card-btn {
  margin: auto 22px 0;
  width: auto;
  align-self: flex-end;          /* ชิดขวา */
  background: #2295C4;            /* สี primary */
  border-color: #2295C4;
  color: #fff;
  /* ใช้ clip-path ตัดมุมแบบ primary button (ไม่ override เป็น none) */
}
#services .sol-card-btn:hover {
  background: #fff;
  border-color: #2295C4;
  color: #2295C4;
}
/* Arrow buttons: visible outline + light arrow on the navy field */
#services .svc-arrow {
  color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='rgba(255,255,255,0.06)' stroke='%234FB3D4' stroke-width='1.5' stroke-linejoin='miter'/></svg>");
}
#services .svc-arrow:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='%234FB3D4' stroke='%234FB3D4' stroke-width='1.5' stroke-linejoin='miter'/></svg>");
  color: #0B2244;
}

/* ═══════════════════════════════════════════════════════════════
   ▼ LEAD MAGNET — Free PDF download section
   ═══════════════════════════════════════════════════════════════ */
.magnet {
  padding: 80px 80px;
  background: var(--paper);
  position: relative;
}
.magnet-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.magnet-card {
  background:
    radial-gradient(60% 50% at 90% 15%, rgba(91, 184, 217, 0.30) 0%, transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(10, 31, 74, 0.50) 0%, transparent 60%),
    linear-gradient(118deg, #0A1F4A 0%, #233969 30%, #2596BE 75%, #5BB8D9 100%);
  border-radius: 24px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(10, 31, 74, 0.25);
}
/* Hexagon decoration inside the magnet card */
.magnet-card::before {
  content: '';
  position: absolute;
  right: -100px;
  bottom: -180px;
  width: 480px;
  height: 554px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' stroke='white' stroke-width='1.5' stroke-opacity='0.18' fill='none'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
}
.magnet-left, .magnet-right { position: relative; z-index: 1; }
.magnet-tag {
  display: inline-block;
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #B8E4F2;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.magnet-title {
  font-family: var(--display);
  font-size: clamp(26px, 3vw,36px);
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.magnet-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 460px;
}
.magnet-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.magnet-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}
.magnet-bullets li i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(91, 184, 217, 0.30);
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

/* Right side: mock PDF page + form */
.magnet-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.magnet-pdf-mock {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.magnet-pdf-page {
  width: 220px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(180deg, #fff 0%, #F4F8FB 100%);
  border-radius: 8px;
  padding: 28px 22px;
  box-shadow:
    0 24px 48px rgba(10, 31, 74, 0.40),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.magnet-pdf-mock:hover .magnet-pdf-page {
  transform: rotate(0deg) translateY(-4px);
}
.magnet-pdf-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--cyan-deep);
  background: rgba(37, 150, 190, 0.12);
  padding: 4px 9px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.magnet-pdf-title {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.magnet-pdf-sub {
  font-size: 16px;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  margin-bottom: auto;
}
.magnet-pdf-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.magnet-pdf-bars span {
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  border-radius: 100px;
  opacity: 0.7;
}
.magnet-pdf-bars span:nth-child(2) { width: 75%; }
.magnet-pdf-bars span:nth-child(3) { width: 50%; }

.magnet-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.magnet-label {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}
.magnet-input-row {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 100px;
  padding: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s;
}
.magnet-input-row:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.15);
}
.magnet-input-row input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #fff;
  font-family: var(--sans-th);
  font-size: 16px;
  outline: none;
}
.magnet-input-row input::placeholder { color: rgba(255, 255, 255, 0.55); }
.magnet-input-row button {
  background: #fff;
  color: var(--navy);
  border: none;
  border-radius: 100px;
  height: 44px;
  padding: 0 22px;
  font-family: var(--sans-th);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.magnet-input-row button:hover {
  background: var(--cyan);
  color: #fff;
  transform: translateY(-1px);
}
.magnet-hint {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0 0;
}

@media (max-width: 900px) {
  .magnet { padding: 56px 24px; }
  .magnet-card { grid-template-columns: 1fr; padding: 40px 28px; gap: 32px; }
  .magnet-pdf-page { width: 180px; }
}

/* ═══════════════════════════════════════════════════════════════
   ▼ MAGNET SECTION — Free Resource standalone section
   Sits between SNS (paper) and Footer (navy gradient).
   ═══════════════════════════════════════════════════════════════ */
.magnet-section {
  background: #FFFFFF;
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
}
.magnet-section::before { display: none; }
.magnet-wrap {
  max-width: none;
  margin: 0;
  padding: 0 80px;
  position: relative;
  z-index: 1;
}

.footer-magnet {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 56px;
  background: linear-gradient(135deg, #1697C2 0%, #2D85C2 50%, #4FB3D4 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
}
/* Hairline highlight on top edge — the "floating card" feel */
.footer-magnet::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Decorative hexagons — matches Knowledge banner brand language */
.footer-magnet::after {
  content: '';
  position: absolute;
  right: -120px;
  top: -90px;
  width: 360px;
  height: 415px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' stroke='white' stroke-width='1.5' stroke-opacity='0.22' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
/* Second hexagon — filled, sits at the bottom-right of the card */
.footer-magnet .footer-magnet-hex {
  position: absolute;
  right: -180px;
  bottom: -160px;
  width: 320px;
  height: 369px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='white' fill-opacity='0.08'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  display: block;
}
.footer-magnet-left, .footer-magnet-right {
  position: relative;
  z-index: 1;
}
.footer-magnet .magnet-tag {
  display: inline-block;
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #DCF1F8;
  margin: 0 0 12px;
  padding: 6px 12px;
  background: rgba(91, 184, 217, 0.15);
  border: 1px solid rgba(91, 184, 217, 0.35);
  border-radius: 0;
}
.footer-magnet .magnet-title {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw,32px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 14px;
}
.footer-magnet .magnet-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 18px;
  max-width: 580px;
}
.footer-magnet .magnet-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-magnet .magnet-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.footer-magnet .magnet-bullets li i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: #FFFFFF;
  color: #1A7AA0;
  border-radius: 50%;
}
.footer-magnet .magnet-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.footer-magnet .magnet-label {
  font-family: var(--sans-en);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 4px;
}
.footer-magnet .magnet-input-row {
  display: flex;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 0;
  padding: 0;
  gap: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.footer-magnet .magnet-input-row:focus-within {
  border-color: #FFFFFF;
  background: #FFFFFF;
}
.footer-magnet .magnet-input-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #15244A;
  font-family: var(--sans-th);
  font-size: 16px;
  border-radius: 0;
}
.footer-magnet .magnet-input-row input::placeholder {
  color: rgba(21, 36, 74, 0.45);
}
.footer-magnet .magnet-input-row button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  background: #15244A;
  border: none;
  border-radius: 0;
  color: #FFFFFF;
  font-family: var(--sans-th);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease);
  transform: none;
  /* Cut-corner bottom-right — matches JMAC brand button shape */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}
.footer-magnet .magnet-input-row button:hover {
  background: #0A1F4A;
  color: #FFFFFF;
  transform: none;
}
.footer-magnet .magnet-input-row button svg {
  stroke: currentColor;
}
.footer-magnet .magnet-hint {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.50);
  margin: 4px 0 0;
}

@media (max-width: 1100px) {
  .footer-magnet { grid-template-columns: 1fr; gap: 32px; padding: 40px 40px; }
}
@media (max-width: 900px) {
  .magnet-section { padding: 56px 0 72px; }
  .magnet-wrap { padding: 0 24px; }
  .footer-magnet { padding: 32px 24px; gap: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   ▼ FOOTER v2 — compact, blue gradient
   ═══════════════════════════════════════════════════════════════ */
.jmac01-imported footer.footer-v2,
footer.footer-v2 {
  display: block;
  background:
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(91, 184, 217, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 90%, rgba(10, 31, 74, 0.50) 0%, transparent 60%),
    linear-gradient(135deg, #0A1F4A 0%, #15244A 25%, #233969 50%, #1A5680 75%, #1F7AA8 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 24px;
  position: relative;
  overflow: hidden;
  border: none;
  border-top: none;
  width: 100%;
}
/* Hexagon stroke on right side of footer removed per design */
.footer-v2::before { display: none; }
.footer-v2::after {
  content: '';
  position: absolute;
  left: -180px;
  bottom: -200px;
  width: 480px;
  height: 554px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 780 900' fill='none'><path d='M389.711 0L779.422 225V675L389.711 900L-0.000488281 675V225L389.711 0Z' fill='%231697C2'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
.footer-v2-wrap {
  max-width: none;
  margin: 0;
  padding: 0 64px;
  position: relative;
  z-index: 1;
}
.footer-v2-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-v2-top::before { display: none; }
.footer-v2-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-v2-logo {
  height: 72px;
  width: auto;
  max-width: 320px;
  opacity: 0.95;
}
.footer-v2-desc {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 360px;
}
.footer-v2-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-v2-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s, background 0.25s, border-color 0.25s, color 0.25s;
}
.footer-v2-social a:hover {
  background: rgba(91, 184, 217, 0.25);
  border-color: rgba(91, 184, 217, 0.50);
  color: #fff;
  transform: translateY(-2px);
}
.footer-v2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 40px;
}
.footer-v2-col h4 {
  font-family: var(--sans-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
}
.footer-v2-col h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 28px;
  height: 1px;
  background: #5BB8D9;
}
.footer-v2-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-v2-col li {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.70);
}
.footer-v2-col a {
  color: rgba(255, 255, 255, 0.70);
  text-decoration: none;
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.footer-v2-col a:hover {
  color: #B8E4F2;
  transform: translateX(3px);
}
.footer-v2-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.50);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-v2-meta {
  display: flex;
  gap: 24px;
}
.footer-v2-meta a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.25s;
}
.footer-v2-meta a:hover { color: #B8E4F2; }

@media (max-width: 900px) {
  .footer-v2 { padding: 56px 0 24px; }
  .footer-v2-wrap { padding: 0 24px; }
  .footer-v2-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-v2-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-v2-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-v2-cols { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   PAGE-WIDE ELEMENT COLOR GRADIENT  (dark → light, top → bottom)
   Does NOT touch any section background.
   Only shifts TEXT / ELEMENT accent colors progressively.
   Scale: navy-deep (#15244A) → navy (#233969) → cyan-deep (#1A7A9E)
          → cyan (#2596BE) → light cyan (#4FB3D4)
   ═══════════════════════════════════════════════════════════ */

  /* Per-section accent tokens. Each section gets a primary (heading)
     + accent (highlight span / small marks) that lighten as you scroll. */

  /* Wider, evenly-spaced 6-step ramp so the descent is clearly visible:
     STEP 1  #0F1F45  navy near-black   (Services)
     STEP 2  #1E4C7A  deep blue         (Cases)
     STEP 3  #2E6FA3  mid blue          (Knowledge cards)
     STEP 4  #2596BE  brand cyan        (News)
     STEP 5  #46AAD0  light cyan        (About)
     STEP 6  #6BC5E0  bright ice cyan   (SNS)                          */

  /* 1 — SERVICES  (now a SOLID NAVY band — like STATS it is a dark
        anchor, so its heading is white + cyan accent. The detailed
        overrides live in the "SERVICES on NAVY" block above; these keep
        the values consistent within the page-wide ramp definition.) */
  #services .section-title            { color: #ffffff; }
  #services .section-title span       { color: #7FD0E8; }
  #services .eyebrow                  { color: #6FC8E6; }
  #services .eyebrow::before          { background: #6FC8E6; }

  /* 2 — STATS  (this section already has the darkest navy bg + white
        text — it is the natural "dark anchor" of the page, so we leave
        the white headings intact and only warm the big numbers very
        slightly toward light-cyan to start the descent.) */
  #results .num-card .big .big-num    { color: #DCF1F8; }
  #results .num-card .big sup         { color: #6BC5E0; }

  /* 3 — MEASURABLE RESULTS / กรณีศึกษา  (STEP 2) */
  #measurable-results .section-title       { color: #1E4C7A; }
  #measurable-results .section-title span  { color: #2E6FA3; }
  #measurable-results .eyebrow             { color: #1E4C7A; }
  #measurable-results .eyebrow::before     { background: #2E6FA3; }
  #measurable-results .case-body h4        { color: #1E4C7A; }
  #measurable-results .case-more           { color: #1E4C7A; border-bottom-color: #1E4C7A; }
  #measurable-results .results-grid .case-meta-row b { color: #1E4C7A; }

  /* 4 — KNOWLEDGE  (the .know-banner has its own DARK background with
        forced white text — like STATS it is a built-in dark band, so we
        leave its white heading alone and let the light-pages carry the
        gradient. The know CARD headings below sit on white.)  (STEP 3) */
  #knowledge .know-grid .know-item-body h3 { color: #2E6FA3; }
  #knowledge .know-grid .know-tag          { color: #2E6FA3; }

  /* 5 — NEWS & EVENTS  (STEP 4) */
  #news .section-title                { color: #2596BE; }
  #news .section-title span           { color: #3FA8CE; }
  #news .eyebrow                      { color: #2596BE; }
  #news .eyebrow::before              { background: #2596BE; }

  /* 6 — ABOUT JMAC  (STEP 5) */
  #about .section-title               { color: #46AAD0; }
  #about .section-title span          { color: #5BB8DA; }
  #about .eyebrow                     { color: #46AAD0; }
  #about .eyebrow::before             { background: #46AAD0; }

  /* 7 — SNS  (lightest, bottom of body)  (STEP 6) */
  #sns .section-title                 { color: #6BC5E0; }
  #sns .section-title span            { color: #84D2E8; }
  #sns .eyebrow                       { color: #6BC5E0; }
  #sns .eyebrow::before               { background: #6BC5E0; }

  /* ─── CASE-STUDY BADGE: chamfer (cut) the bottom-right corner ─── */
  .results-grid .case-img .case-dept {
    clip-path: polygon(0 0, 100% 0, 100% 60%, calc(100% - 18px) 100%, 0 100%);
  }

  /* ═══════════════════════════════════════════════════════════
     CONTINUOUS CI GRADIENT BAND — Services + Stats as ONE panel
     One vertical gradient flows across both sections (no seam):
     dark navy at the top → bright cyan at the bottom, on the
     JMAC navy→cyan CI axis. The sections themselves go transparent
     so the band shows through as a single sheet.
     ═══════════════════════════════════════════════════════════ */
  .ci-band {
    position: relative;
    background: linear-gradient(180deg,
      #15244A 0%,
      #233969 18%,
      #1F4E84 34%,
      #2596BE 50%,
      #7FC8E2 60%,
      #CDEAF5 70%,
      #E4F4FA 100%);
    color: #fff;
  }
  /* Subtle diagonal sheen across the whole band for a premium finish */
  .ci-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg,
      rgba(255,255,255,.06) 0%,
      rgba(255,255,255,0) 32%,
      rgba(255,255,255,0) 68%,
      rgba(255,255,255,.05) 100%);
    pointer-events: none;
    z-index: 0;
  }
  .ci-band > section { position: relative; z-index: 1; }

  /* Strip the per-section backgrounds so the band is seamless */
  .ci-band .services-section,
  .ci-band .stats-section,
  .ci-band #measurable-results {
    background: transparent !important;
  }
  /* Remove the white divider line under the Selected Work header */
  .ci-band #measurable-results .section-header {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* ═══════════════════════════════════════════════════════════
     POST-BAND FADE — Knowledge → News → About
     The band ends in light cyan (#B5E0EF). These three sections
     pick that up and keep fading down to pure white by About JMAC.
     Each section's own background is overridden; inner dark blocks
     like .know-banner are left intact (they are elements, not the
     section canvas).
     ═══════════════════════════════════════════════════════════ */
  .jmac01-imported .know {
    background: #FFFFFF !important;
  }
  .news-bg {
    background: linear-gradient(180deg, #E9F5FB 0%, #EDF7FC 100%) !important;
    overflow: hidden;
    padding-bottom: 72px;
  }
  /* The inner wrapper's bottom margin was collapsing OUT of .news-bg,
     leaving a white strip before About. Neutralize it so the tinted
     band runs flush into About JMAC. */
  .news-bg .news-wrapper { margin-bottom: 0 !important; }
  .news-bg #news { padding-bottom: 0 !important; }
  .about-jmac {
    background: linear-gradient(180deg, #EDF7FC 0%, #FFFFFF 55%, #FFFFFF 100%) !important;
    margin-top: -16px;
  }
  /* Services decorative hexagon already light-cyan stroke — keep.
     Stats sheen overlay no longer needed (band has its own). */
  .ci-band .stats-section::before { display: none; }

  /* ═══════════════════════════════════════════════════════════
     ▼▼▼  FINAL OVERRIDE — ALL SECTIONS ON PLAIN WHITE  ▼▼▼
     Every section background is forced to plain white, and any
     element that was white-on-dark is recolored to a dark tone
     from the JMAC palette so it stays legible.
     This block is last in the stylesheet, so it wins.
     ═══════════════════════════════════════════════════════════ */

  /* ---- Universal: strip section backgrounds ---- */
  .ci-band,
  .ci-band::before,
  .ci-band .services-section,
  .ci-band .stats-section,
  .ci-band #measurable-results,
  .jmac01-imported .know,
  .news-bg,
  .about-jmac,
  .sns-section,
  .iqh-section {
    background: #FFFFFF !important;
  }
  .ci-band::before { display: none !important; }

  /* ---- SERVICES (was on dark band) ---- */
  #services .section-title          { color: var(--navy) !important; }
  #services .section-title span     { color: var(--cyan-deep) !important; }
  #services .services-intro .eyebrow         { color: var(--cyan-deep) !important; }
  #services .services-intro .eyebrow::before { background: var(--cyan) !important; }
  #services .services-intro p       { color: var(--gray-700) !important; }
  /* Arrow buttons on white section: outlined cut-corner shape, fills navy on hover */
  #services .svc-arrow {
    color: var(--navy) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='none' stroke='%231E4C7A' stroke-width='1.5' stroke-linejoin='miter'/></svg>") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }
  #services .svc-arrow:hover {
    color: #fff !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 56' preserveAspectRatio='none'><path d='M0.75 0.75 H71.25 V43.25 L59.25 55.25 H12.75 L0.75 43.25 Z' fill='%231E4C7A' stroke='%231E4C7A' stroke-width='1.5' stroke-linejoin='miter'/></svg>") !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
  }

  /* ---- STATS / JMAC by the Numbers (was on cyan band) ---- */
  .stats-section .eyebrow            { color: var(--cyan-deep) !important; }
  .stats-section .eyebrow::before    { background: var(--cyan) !important; }
  .stats-section .section-title      { color: var(--navy) !important; }
  .stats-section .section-title span { color: var(--cyan-deep) !important; }
  .stats-section .stats-intro        { border-bottom-color: var(--border) !important; }
  .stats-section .stats-intro p      { color: var(--gray-700) !important; }
  .num-card::before                  { background: var(--border) !important; }
  .num-card .label                   { color: var(--graphite) !important; }
  .num-card:hover .label             { color: var(--navy) !important; }
  .num-card .label::before {
    background: var(--cyan) !important;
    box-shadow: 0 0 0 3px rgba(34,149,196,.16) !important;
    animation: none !important;
  }
  .num-card .big                     { color: var(--navy) !important; text-shadow: none !important; }
  #results .num-card .big .big-num   { color: var(--navy) !important; }
  .num-card .big sup,
  #results .num-card .big sup        { color: var(--cyan-deep) !important; }
  .num-card .desc {
    color: var(--gray-700) !important;
    border-top-color: var(--border) !important;
  }

  /* ---- IQH PILLARS (had a gradient hexagon image bg) ---- */
  .iqh-section { background-image: none !important; }

  /* ---- Keep heading tones consistent for light-page sections ---- */
  #measurable-results .section-title       { color: var(--navy) !important; }
  #measurable-results .section-title span  { color: var(--cyan-deep) !important; }
  #measurable-results .eyebrow             { color: var(--navy) !important; }
  #measurable-results .eyebrow::before     { background: var(--cyan) !important; }

  /* ---- Remove all floating decorative hexagons (per screenshots) ---- */
  .section-decorated::before,
  .section-decorated::after,
  .about-jmac::before,
  .services-section::after,
  .sns-section::before,
  .sns-section::after,
  .sns-section .sns-hex-small,
  .sns-section .sns-hex-small-1,
  .sns-section .sns-hex-small-2 {
    display: none !important;
    content: none !important;
    background-image: none !important;
  }

  /* ═══════════════════════════════════════════════════════════
     UNIFIED SECTION HEADINGS — every section uses the same 2 colors
       eyebrow  = cyan  (#2596BE)
       title    = navy  (#233969)
       title em = cyan  (#2596BE)
     ═══════════════════════════════════════════════════════════ */
  .eyebrow,
  #services .services-intro .eyebrow,
  .stats-section .eyebrow,
  #measurable-results .eyebrow,
  .know-banner .eyebrow,
  #news .eyebrow,
  #about .eyebrow,
  #sns .eyebrow,
  .contact-text .eyebrow {
    color: #2596BE !important;
  }
  .eyebrow::before,
  #services .services-intro .eyebrow::before,
  .stats-section .eyebrow::before,
  #measurable-results .eyebrow::before,
  .know-banner .eyebrow::before,
  #news .eyebrow::before,
  #about .eyebrow::before,
  #sns .eyebrow::before,
  .contact-text .eyebrow::before {
    background: #2596BE !important;
  }
  .section-title,
  #services .section-title,
  .stats-section .section-title,
  #measurable-results .section-title,
  .know-banner .section-title,
  #news .section-title,
  #about .section-title,
  #sns .section-title,
  .contact-text .section-title {
    color: #233969 !important;
  }
  .section-title span,
  #services .section-title span,
  .stats-section .section-title span,
  #measurable-results .section-title span,
  .know-banner .section-title span,
  #news .section-title span,
  #about .section-title span,
  #sns .section-title span,
  .contact-text .section-title span {
    color: #2596BE !important;
    font-style: normal !important;
    font-weight: 400 !important;
  }
  /* ▲▲▲  END FINAL OVERRIDE  ▲▲▲ */

/* ═══════════════════════════════════════════════════════════
   HERO BREADCRUMB BAR — pinned to the top of any page hero.
   Defined here (not per-page) so its position is pixel-identical
   on every page. Sits inside a position:relative hero container.
   ═══════════════════════════════════════════════════════════ */
.hero-crumb-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* override the base <nav> space-between */
  gap: 10px;
  padding: 16px 64px;
  margin: 0;
  border: 0;                     /* kill the inherited <nav> border-bottom (the white line) */
  background: linear-gradient(180deg, rgba(21,36,74,.45) 0%, rgba(21,36,74,0) 100%);
  font-family: var(--sans-en);
  font-size: 16px;
  color: rgba(255,255,255,.9);
}
.hero-crumb-bar a { color: rgba(255,255,255,.9); text-decoration: none; }
.hero-crumb-bar a:hover { color: #fff; text-decoration: underline; }
.hero-crumb-bar [aria-current] { color: #fff; font-weight: 600; }
.hero-crumb-bar .crumb-sep { opacity: .55; }

/* Dark variant — for pages whose hero has a light background (about / contact).
   Same position, dark text so it stays legible. */
.hero-crumb-bar--dark { background: none; color: rgba(20,46,88,.72); }
.hero-crumb-bar--dark a { color: rgba(20,46,88,.72); }
.hero-crumb-bar--dark a:hover { color: var(--navy); }
.hero-crumb-bar--dark [aria-current] { color: var(--navy); }

@media (max-width: 960px) { .hero-crumb-bar { padding: 14px 32px; font-size: 14px; gap: 8px; } }
/* mobile: ให้ breadcrumb อยู่บรรทัดเดียว เลื่อนแนวนอนได้ แทนที่จะตัดคำใน
   แต่ละรายการเป็นหลายบรรทัดจนดูรก */
@media (max-width: 700px) {
  .hero-crumb-bar {
    padding: 12px 24px;
    font-size: 12px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-crumb-bar::-webkit-scrollbar { display: none; }
  .hero-crumb-bar > * { flex: 0 0 auto; white-space: nowrap; }
}


/* ═══════════════════════════════════════════════════════════
   20260721 แทนไอคอน tabler ด้วยไฟล์ PNG ใน /Icons
   - navbar: โทร (call - b/w.png), อีเมล (mail.png)
   - footer social: Facebook/LinkedIn/Instagram/line .png
   ═══════════════════════════════════════════════════════════ */
.nav-ic {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  flex: 0 0 auto;
}
/* ปุ่มโทรใน navbar: พื้นฟ้า + ไอคอนขาว; hover พื้นขาว → สลับเป็นไอคอนฟ้า */
.btn-call-ic { display: inline-flex; align-items: center; }
.btn-call-ic .ic-hov { display: none; }
.btn-call:hover .ic-def { display: none; }
.btn-call:hover .ic-hov { display: inline-block; }
/* footer social icons */
.footer-social-ic {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}
