/* ─── company.css: /about และ /careers (ชุด B3) ───────────────────────────
   ระบบร่วมมาจาก site.css และ chapters.css ทั้งหมด (glass-card, ui-panel,
   icon-list, fact-list, split-grid, path-index, ch-split/ch-showcase/ch-focus)
   ไฟล์นี้เก็บเฉพาะชิ้นที่ยังไม่มีในคลังร่วม: ดัชนีเปรียบเทียบสองแบรนด์ (about),
   แผนภาพวงแหวน "สำหรับใคร" ของ careers ch-2 (คัดจาก .who-diagram ของหน้าแรกทั้งชุด)
   และการแก้กึ่งกลางแนวตั้งที่ห้ามแก้ chapters.css โดยตรง
   careers ch-2 (เจ้าของงานสั่ง 2026-09-29: "ให้วงแหวน + เนื้อหาในวงแหวนเป็นแบบเดียวกับหน้า Home เลย")
   ใช้ markup ของ .who-diagram จาก web-home-reference.html ทั้งชุด (วงกระจกซ้อนศูนย์ + ป้ายโค้ง textPath ไม่มีไอคอน)
   CSS คัดจาก home.css แล้วเปลี่ยน selector ที่ผูก .chapter[data-ch-index="5"] เป็น .page-careers .chapter[data-ch-index="2"] เท่านั้น ค่าตัวเลข/สี/เวลาเท่าเดิมทุกจุด
   ห้ามโหลด home.css ในหน้านี้ (กฎ P ของ cresive-web-page-design.md) */

/* ─── โครงสร้างแบรนด์เป็นการ์ดคู่ (about ch-5): ดัชนี editorial สองคอลัมน์เดิมถูกเจ้าของงานสั่งเปลี่ยนเป็นการ์ด 2026-09-29
   ("ทำเป็น Card เลยไม่ดีกว่าหรอ") บรรทัดระบุบริษัทแม่ (โลโก้ CresFlores เล็ก + ข้อความ) อยู่เหนือการ์ด แล้วการ์ดสองใบวางคู่กันเต็มความกว้างของ .wrap
   ใช้ .tile/.tile-lead/.hover-light ร่วมจาก chapters.css และ site.css ตรงๆ (recipe กระจกเดียวกับ tile ของหน้าแรกทุกค่า ห้ามแก้สองไฟล์นั้น)
   เพิ่มเฉพาะพื้นธีมสีต่อแบรนด์ที่ยังไม่มีในคลังร่วม: home.css มีธีม WizeHome (data-brand="wizehome") อยู่แล้วสำหรับ tile นำของบทที่ 4 หน้าแรก
   คัด recipe เดียวกันมาใส่ที่นี่ (ไม่โหลด home.css) แล้วเพิ่มธีม Cresive เองด้วยคู่สีเขียว/ทองจางกว่า WizeHome เพราะเป็น master brand ไม่ใช่ตัวเลือกที่ต้องเน้น */
.brand-parent { margin-top: var(--rhy-6); display: flex; align-items: center; gap: var(--cs-space-3); }
.brand-parent-mark { display: flex; align-items: center; height: 30px; flex: none; }
.brand-parent-mark svg { display: block; height: 100%; width: auto; }
.brand-parent-label { font-family: var(--cs-font-thai); font-size: var(--cs-size-thai-dense); color: var(--cs-content-secondary); }

.brand-cards { margin-top: var(--rhy-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--rhy-1); }
/* chapters.css ให้ .tile-lead grid-area:lead เสมอ (สำหรับ .bento ของบทอื่น) เนื้อหาที่นี่ไม่ใช้ grid-template-areas
   ต้องล้างกลับเป็น auto ไม่งั้นทั้งสองการ์ดชนกันที่ตำแหน่งเดียว */
.brand-cards .tile-lead { grid-area: auto; }
.brand-card-mark { display: flex; align-items: center; height: 30px; flex: none; }
.brand-card-mark svg { display: block; height: 100%; width: auto; }
/* ขอบซ้ายโลโก้/หัวข้อ/คำอธิบาย/ลิงก์ตรงกันเป๊ะ: ทุกอย่างอยู่ใน padding เดียวกันของ .tile-lead ไม่มีการเยื้องเพิ่ม */
.brand-card-link {
  display: inline-flex; align-items: center; gap: var(--cs-space-1); align-self: flex-start;
  margin-top: auto; padding-top: var(--rhy-4);
  font-size: var(--cs-size-thai-dense); font-weight: var(--cs-weight-medium); color: var(--cs-content-brand); text-decoration: none;
}
.brand-card-link:hover, .brand-card-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.brand-card-link .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); transition: transform var(--cs-duration-slow) var(--cs-ease-standard); }
.brand-card-link:hover .ic, .brand-card-link:focus-visible .ic { transform: translate(2px, -2px); }
/* กดได้ทั้งการ์ด (เจ้าของงานสั่งเพิ่ม): stretched link ที่ลิงก์ท้ายการ์ดแทนที่จะห่อทั้งการ์ดด้วย a
   (ห่อทั้งการ์ดจะทำให้ screen reader อ่านเนื้อหาทั้งใบเป็นชื่อลิงก์) .tile จาก chapters.css เป็น position:relative อยู่แล้ว
   จึง ::after ของลิงก์คลุมเต็ม .tile ได้ตรงๆ ส่วนแสงตามเมาส์/กรอบโฟกัสของทั้งการ์ดใช้ .tile[data-link-hover]/.tile[data-link-focus]
   ที่มีอยู่แล้วใน chapters.css (ใช้ร่วมกับ .tile h3 a ของบทอื่นอยู่แล้ว) */
.brand-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.brand-card-link:focus-visible { outline: none; }
/* บทบาทเป็นตัวเอียงตั้งแต่แรก hover/focus ทั้งการ์ดเปลี่ยนแค่สี (เจ้าของงานตัดสิน 2026-09-29) */
.brand-cards .tile h3 { font-style: italic; font-weight: var(--cs-weight-regular); transition: color var(--cs-duration-slow) var(--cs-ease-standard); }
.brand-cards .tile:hover h3, .brand-cards .tile:focus-within h3 { color: var(--cs-content-brand); }

/* พื้นกระจกธีม WizeHome: recipe คัดจาก home.css .tile-lead[data-brand="wizehome"] ทุกค่า (ทีลมุมบนซ้าย อินดิโกมุมล่างขวา จางๆ) */
.brand-cards .tile-lead[data-brand="wizehome"] {
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 10%, color-mix(in srgb, var(--cs-teal-500) 26%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 60% at 90% 95%, color-mix(in srgb, var(--cs-indigo-500) 22%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent), color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  background-origin: border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
}
/* พื้นกระจกธีม Cresive: คู่สีเขียว action-primary + ทอง gold-300 ของแบรนด์เอง จางกว่า WizeHome เพราะเป็น master brand */
.brand-cards .tile-lead[data-brand="cresive"] {
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 10%, color-mix(in srgb, var(--cs-action-primary) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 70% 60% at 90% 95%, color-mix(in srgb, var(--cs-gold-300) 14%, transparent), transparent 70%),
    linear-gradient(color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent), color-mix(in srgb, var(--cs-surface-elevated) 5%, transparent)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  background-origin: border-box;
  background-clip: padding-box, padding-box, padding-box, border-box;
}
@media (max-width: 719.98px) {
  .brand-parent { margin-top: var(--cs-space-4); }
  .brand-parent-mark { height: 26px; }
  .brand-cards { margin-top: var(--cs-space-3); grid-template-columns: 1fr; gap: var(--cs-space-3); }
  .brand-card-mark { height: 26px; }
}

/* ─── วงแหวน "ขอบเขตงาน" (careers ch-2): คัดจาก .who-diagram ของหน้าแรก ch-5 ทั้งชุด ค่าตัวเลข/สี/เวลาเท่าเดิมทุกจุด
   เปลี่ยนเฉพาะ selector ที่ผูก .chapter[data-ch-index="5"][data-active] เป็น .page-careers .chapter[data-ch-index="2"][data-active] (บทนี้คือบทที่ 2 ของหน้านี้จริง) ─────── */
.page-careers .who-diagram { position: relative; width: 100%; max-width: min(100%, 64svh, 580px); aspect-ratio: 1 / 1; margin: 0 auto; }
.page-careers .who-ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(0.9); opacity: 0;
  transition: transform 700ms var(--cs-ease-decelerate), opacity 700ms var(--cs-ease-decelerate);
}
html:not(.js) .page-careers .who-ring, html[data-motion="still"] .page-careers .who-ring, html.js:not([data-motion="still"]) .page-careers .chapter[data-ch-index="2"][data-active] .who-ring {
  transform: translate(-50%, -50%) scale(1); opacity: 1;
}
html.js:not([data-motion="still"]) .page-careers .chapter[data-ch-index="2"][data-active] .who-ring { transition-delay: calc(var(--ri, 0) * 200ms + 80ms); }
.page-careers .who-ring-3 { width: 95%; height: 95%; background: color-mix(in srgb, var(--cs-action-primary) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-action-primary) 25%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.page-careers .who-ring-2 { width: 70%; height: 70%; background: color-mix(in srgb, var(--cs-action-primary) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-action-primary) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.page-careers .who-ring-1 { width: 40%; height: 40%; background: color-mix(in srgb, var(--cs-action-primary) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cs-action-primary) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.page-careers .who-dot-center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--cs-action-primary); box-shadow: 0 0 12px 2px color-mix(in srgb, var(--cs-action-primary) 55%, transparent);
  opacity: 0; transition: opacity 420ms var(--cs-ease-decelerate);
}
html:not(.js) .page-careers .who-dot-center, html[data-motion="still"] .page-careers .who-dot-center, html.js:not([data-motion="still"]) .page-careers .chapter[data-ch-index="2"][data-active] .who-dot-center { opacity: 1; }
.page-careers .who-labels { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.page-careers .who-labels text { font-family: var(--cs-font-thai); font-weight: var(--cs-weight-medium); font-size: 14px; letter-spacing: 0.5px; fill: var(--cs-content-primary); }
.page-careers .who-labels textPath, .page-careers .who-ring { opacity: inherit; }
html.js:not([data-motion="still"]) .page-careers .who-labels text { opacity: 0; transition: opacity 500ms var(--cs-ease-decelerate); transition-delay: 680ms; }
html.js:not([data-motion="still"]) .page-careers .chapter[data-ch-index="2"][data-active] .who-labels text { opacity: 1; }
/* มือถือ: วงแหวนเต็มความกว้างจอ วางครึ่งบนโผล่จากขอบล่างของบท ครึ่งล่างจางหายเข้าแถบจุด (คัดจาก .who-diagram มือถือของหน้าแรกทั้งชุด)
   selector เฉพาะกว่ากฎ .page-careers .chapter.ch-split ทั่วไปด้านล่าง ต้องใช้ id ตรงของบท (#team) ไม่ใช่ data-ch-index:
   [data-ch-index="2"] มี specificity เท่า .ch-split (0,2,0) พอดี แพ้กฎทั่วไปที่มาทีหลังถ้าเสมอกัน id จึงยังจำเป็นตรงนี้ */
@media (max-width: 719.98px) {
  .page-careers #team { position: relative; align-items: start; align-content: start; }
  .page-careers #team > .chapter-body { position: static; }
  .page-careers .who-diagram {
    position: absolute; left: 50%; bottom: var(--mobile-dots-h); z-index: 0; pointer-events: none;
    width: min(135vw, 560px, 62svh); max-width: none; translate: -50% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent calc(50% + var(--mobile-dots-h)));
            mask-image: linear-gradient(to bottom, #000 50%, transparent calc(50% + var(--mobile-dots-h)));
  }
  .page-careers #team .split-grid > :not(.who-diagram) { position: relative; z-index: 1; }
}
@media (max-width: 719.98px) and (max-height: 750px) {
  .page-careers #team .split-grid { gap: var(--cs-space-3); }
}

/* ─── ดัชนี editorial ของหลักการทำงาน (careers ch-3): ใช้ .path-index ร่วมกับ /solutions ตรงๆ (เลขกำกับ mono + ตัวอักษร display ใหญ่ + เส้น hairline)
   แต่เป็น div ไม่ใช่ a เพราะไม่ใช่ลิงก์ไปหน้าอื่น จึงตัด hover/focus affordance ของลิงก์ออกไม่ให้ดูเหมือนกดได้ ───────────── */
.page-careers .chapter[data-ch-index="3"] .path-index-item { pointer-events: none; }

/* ทำให้ icon-list ของ about ch-3 อยู่กึ่งกลางคอลัมน์ขวาแทนการชิดซ้ายแล้วเหลือที่ว่างเปล่าทางขวาเยอะเกินไป (สมดุลแนวนอนของบท) */
@media (min-width: 720px) {
  .page-about .chapter[data-ch-index="3"] .icon-list { max-width: 320px; justify-self: center; }
}

/* ─── มือถือ (<720px): จัดกลางบทที่ใช้ ch-split/ch-showcase ระหว่างแคปซูลนำทางกับแถบจุด
   สูตรเดียวกับ chapters.css หมวด 10 (scope ด้วย .page-solutions/.page-platform) คัดมาไว้ที่นี่
   เพราะห้ามแก้ chapters.css และสองหน้านี้ใช้คลาสหน้าคนละชื่อ ─── */
@media (max-width: 719.98px) {
  .page-about .chapter.ch-split, .page-about .chapter.ch-showcase,
  .page-careers .chapter.ch-split, .page-careers .chapter.ch-showcase {
    display: grid; align-content: center; justify-items: stretch;
    padding-top: calc(env(safe-area-inset-top, 0px) + 52px + var(--cs-space-2)); padding-bottom: var(--mobile-dots-h);
  }
}

/* icon-list ของ about ch-3 (ขอบเขตสามด้าน) บนมือถือเปลี่ยนจากรายการแนวตั้งเป็นแถบป้ายแนวนอนสั้น
   (คำอธิบายซ่อนด้วย .mobile-sr ในตัว HTML แล้ว) ป้องกันบทล้นใต้แถบจุดเมื่อรวมกับย่อหน้ายาวของบทนี้ */
@media (max-width: 719.98px) {
  .page-about .chapter[data-ch-index="3"] .icon-list { flex-direction: row; flex-wrap: wrap; gap: var(--cs-space-2) var(--cs-space-4); margin-top: var(--cs-space-3); }
  .page-about .chapter[data-ch-index="3"] .icon-item { align-items: center; gap: var(--cs-space-2); }
  .page-about .chapter[data-ch-index="3"] .icon-item-icon { width: 28px; height: 28px; }
  .page-about .chapter[data-ch-index="3"] .icon-item-icon .ic { width: var(--cs-icon-sm); height: var(--cs-icon-sm); }
  .page-about .chapter[data-ch-index="3"] .icon-item strong { font-size: var(--cs-size-thai-dense); font-weight: var(--cs-weight-medium); }
}

/* จอมือถือเตี้ย (331x719, 360x640 ของเจ้าของงาน): ระยะบน fact-list ของ about ch-4 แน่นเกินไปจนล้นใต้แถบจุด ลดระยะเว้นลง
   360x640 ยังล้น 2px หลังลดรอบก่อน จึงลดระยะระหว่างการ์ดในคอลัมน์ (li margin-bottom) เพิ่มอีกชั้น */
@media (max-width: 719.98px) {
  .page-about .chapter[data-ch-index="4"] .head { margin-bottom: var(--cs-space-2); }
  .page-about .chapter[data-ch-index="4"] .fact-list { margin-top: var(--cs-space-3); }
  .page-about .chapter[data-ch-index="4"] .fact-list > li { margin-bottom: var(--cs-space-2); }
  .page-about .chapter[data-ch-index="4"] .fact { padding: var(--cs-space-3); }
}

/* การ์ดโครงสร้างแบรนด์ (about ch-5) บนมือถือ: ลดระยะเว้นให้กระชับขึ้น
   จอเตี้ย (331x719, 360x640 ของเจ้าของงาน) สองการ์ดเต็มเนื้อหาเรียงลงยังกินที่มากกว่าดัชนีเดิม
   จึงซ่อน lede ด้วยเทคนิคเดียวกับ .mobile-sr (เนื้อหายังอยู่ให้ screen reader อ่าน ไม่ใช่ display:none) เฉพาะจอเตี้ยกว่า 860px (ขยายจาก 750px 2026-09-29 เพราะ 375x812 ชนแคปซูลนำทางหลังเพิ่มบทชื่อ)
   และลดระยะ/ตัวอักษรในการ์ดอีกชั้นเพื่อให้ทั้งบทยังพอดีเหนือแถบจุด */
@media (max-width: 719.98px) {
  .page-about .chapter[data-ch-index="5"] .head { margin-bottom: var(--cs-space-2); }
}
@media (max-width: 719.98px) and (max-height: 860px) {
  .page-about .chapter[data-ch-index="5"] .head .lede {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .page-about .chapter[data-ch-index="5"] .brand-parent { margin-top: var(--cs-space-3); }
  .page-about .chapter[data-ch-index="5"] .brand-cards { margin-top: var(--cs-space-2); gap: var(--cs-space-1); }
  .page-about .chapter[data-ch-index="5"] .brand-cards .tile-lead { padding: var(--cs-space-3); }
  .page-about .chapter[data-ch-index="5"] .brand-cards .tile-lead .display { margin-top: var(--cs-space-3); font-size: clamp(18px, 5.5vw, 24px); }
  .page-about .chapter[data-ch-index="5"] .brand-card-link { padding-top: var(--cs-space-2); }
}

/* ─── ชื่อของเรา (about ch-2): ถอดชื่อ Cresive เป็นสองส่วนด้วยตัวอักษร display ขนาดใหญ่ แบบหน้านิตยสาร
   Cres ตัวเอียงสีเขียวตามกฎ em ของหัวข้อ, ive ตัวตรง, ใต้คำคือวิธีอ่านและเส้น hairline แบ่งความหมายสองส่วน
   ไม่ใช่ wordmark (wordmark เป็น path เสมอ, IBM Plex ตัวพิมพ์ใหญ่) จึงใช้ Playfair ตัวพิมพ์เล็กผสมให้เห็นว่าเป็นข้อความเล่าเรื่อง ─── */
.page-about .name-study { margin: var(--rhy-6) auto 0; max-width: 760px; text-align: center; }
.page-about .name-word { margin: 0; font-family: var(--cs-font-display); font-weight: var(--cs-weight-regular); font-size: clamp(64px, 11vw, 144px); line-height: 1; color: var(--cs-content-primary); }
.page-about .name-root { font-style: italic; color: var(--cs-action-primary); }
.page-about .name-say { margin: var(--cs-space-3) 0 0; font-size: var(--cs-size-thai-dense); color: var(--cs-content-secondary); }
.page-about .name-say strong { color: var(--cs-content-primary); font-weight: var(--cs-weight-semibold); }
.page-about .name-parts { margin: var(--rhy-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--cs-space-6); text-align: left; }
.page-about .name-part { border-top: 1px solid var(--cs-border-subtle, rgba(255, 255, 255, 0.12)); padding-top: var(--cs-space-4); }
.page-about .name-part dt { font-family: var(--cs-font-display); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; color: var(--cs-content-primary); }
.page-about .name-part dd { margin: var(--cs-space-2) 0 0; font-size: var(--cs-size-thai-dense); line-height: var(--cs-leading-relaxed); color: var(--cs-content-secondary); }
.page-about .name-part dd strong { color: var(--cs-content-primary); font-weight: var(--cs-weight-semibold); }
@media (max-width: 719.98px) {
  .page-about .name-study { margin-top: var(--cs-space-4); }
  .page-about .name-say { margin-top: var(--cs-space-2); }
  .page-about .name-parts { margin-top: var(--cs-space-4); gap: var(--cs-space-3); }
  .page-about .name-part { padding-top: var(--cs-space-2); }
}
/* จอเตี้ยมาก (360x640): การ์ดสองแบรนด์ยังสูงเกินพื้นที่ระหว่างแคปซูลนำทางกับแถบจุดไม่กี่ px ลดระยะในการ์ดอีกชั้น */
@media (max-width: 719.98px) and (max-height: 700px) {
  .page-about .chapter[data-ch-index="5"] .brand-cards .tile-lead { padding: var(--cs-space-2) var(--cs-space-3); }
  .page-about .chapter[data-ch-index="5"] .brand-cards .tile-lead .display { margin-top: var(--cs-space-2); }
  .page-about .chapter[data-ch-index="5"] .brand-parent { margin-top: var(--cs-space-2); }
}
