/* ==========================================================================
   PHEP-SEA — เว็บไซต์หลักของกลุ่มวิจัย
   CSS ธรรมดา ไม่มี framework ไม่มีขั้นตอน build

   ภาษาดีไซน์: มุมเหลี่ยมคม · หัวเรื่องใหญ่หนา · แถบเขียวคั่น · ท้ายเว็บสีเข้ม
   ปรับมาจากแนวทางของเทมเพลต Slaze โดยเขียนโค้ดขึ้นใหม่ทั้งหมด
   สีหลักยึดโลโก้ PHEP-SEA: เขียว #007C29
   ========================================================================== */

:root {
    --green:        #007C29;   /* สีจากโลโก้ */
    --green-bright: #14A03C;   /* เขียวสด ใช้เน้นและไล่เฉด */
    --green-deep:   #005C1E;
    --green-tint:   #E9F4ED;
    --green-tint-2: #CFE6D8;

    --dark:      #14211A;      /* แถบบนสุดและท้ายเว็บ */
    --dark-2:    #1C2C22;
    --ink:       #14211A;
    --ink-soft:  #445048;
    --muted:     #6B7A71;
    --line:      #E3EAE5;

    --bg:      #FFFFFF;
    --bg-soft: #F5F8F6;

    /* มุมเหลี่ยมคมตามภาษาดีไซน์ต้นแบบ — ไม่ใช่การ์ดมนอย่างที่นิยมทั่วไป */
    --r:    4px;
    --r-lg: 6px;

    --shadow-sm: 0 1px 2px rgba(20, 33, 26, .05);
    --shadow:    0 6px 22px rgba(20, 33, 26, .08);
    --shadow-lg: 0 20px 54px rgba(20, 33, 26, .14);

    --wrap: 1240px;
    --head: 78px;

    /* Plus Jakarta Sans ไม่มีอักขระไทย เบราว์เซอร์จึงหยิบ Noto Sans Thai มาใช้กับตัวไทยเอง
       ผลคือหัวเรื่องอังกฤษได้ทรงของต้นแบบ ส่วนตัวไทยยังอ่านง่าย */
    --font: 'Plus Jakarta Sans', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont,
            'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--head) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p   { margin: 0; }

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.02em;
}

/* ---- สลับภาษา ไทย / อังกฤษ ----
   ใช้สองสแปนคู่กันแล้วซ่อนฝั่งที่ไม่ได้เลือกด้วย CSS
   วิธีนี้เก็บมาร์กอัปข้างในไว้ได้ครบ (เช่น <br> กับตัวหนา)
   และถ้าปิด JS หน้าเว็บยังแสดงภาษาไทยได้ตามปกติ ไม่ใช่เห็นสองภาษาซ้อนกัน */
html[data-lang="th"] .en { display: none; }
html[data-lang="en"] .th { display: none; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(20px, 5vw, 40px);
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--green);
    color: #fff;
    padding: 12px 20px;
    font-weight: 700;
}
.skip:focus { left: 0; }

/* ==========================================================================
   ปุ่มและลิงก์
   ========================================================================== */

.btn {
    --btn-bg: var(--green);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: var(--r);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease,
                border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 124, 41, .28); }
.btn:active { transform: translateY(0); }
.btn svg {
    width: 17px; height: 17px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round;
}

.btn-lg   { min-height: 56px; padding: 0 32px; font-size: 15px; }
.btn-head { min-height: 46px; padding: 0 22px; }

.btn-white {
    --btn-bg: #fff;
    --btn-fg: var(--green-deep);
}
.btn-white:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .2); }

.btn-dark-outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: var(--ink);
}
.btn-dark-outline:hover {
    --btn-bg: var(--ink);
    --btn-fg: #fff;
    box-shadow: 0 10px 26px rgba(20, 33, 26, .22);
}

/* ลิงก์ "อ่านเพิ่ม ↗" แบบเดียวกับต้นแบบ */
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
}
.link-more:hover { gap: 12px; color: var(--green-deep); }
.link-more svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 2.4;
    stroke-linecap: round; stroke-linejoin: round;
}

:where(a, button):focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 3px;
}

/* ==========================================================================
   หัวเรื่องประจำส่วน
   ========================================================================== */

/* ป้ายนำหัวเรื่อง มีขีดเขียวนำหน้า — ลายเซ็นของภาษาดีไซน์นี้ */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1.5;
}
.eyebrow::before {
    content: '';
    width: 3px;
    height: 15px;
    flex: none;
    background: var(--green);
}
/* ภาษาไทยไม่ใช้ช่องไฟกว้างแบบอังกฤษ — ตัวอักษรจะดูกระจายและอ่านยาก
   จึงคืนค่าเป็นปกติเฉพาะตอนแสดงภาษาไทย ส่วนอังกฤษยังได้ทรงตัวพิมพ์ใหญ่แบบต้นแบบ */
html[data-lang="th"] .eyebrow { letter-spacing: .02em; }

.sec-title {
    max-width: 20ch;
    font-size: clamp(28px, 4.6vw, 54px);
}
.sec-title.center { max-width: 26ch; margin-inline: auto; text-align: center; }

.sec-head { margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head .eyebrow { justify-content: center; }

.sec-lead {
    max-width: 62ch;
    margin-top: 22px;
    color: var(--muted);
    font-size: 15.5px;
}

.sec       { padding-block: clamp(60px, 9vw, 110px); }
.sec-soft  { background: var(--bg-soft); }

/* ==========================================================================
   แถบบนสุด
   ========================================================================== */

.topbar {
    background: var(--dark);
    color: rgba(255, 255, 255, .72);
    font-size: 13.5px;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
    min-height: 46px;
    padding-block: 6px;
}
.topbar-info { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.topbar-info li { display: flex; align-items: center; gap: 8px; }
.topbar-info svg {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: var(--green-bright); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.topbar-info a { text-decoration: none; transition: color .18s ease; }
.topbar-info a:hover { color: #fff; }

.topbar-side { display: flex; align-items: center; gap: 14px; }
.topbar-label { color: rgba(255, 255, 255, .55); }
.topbar-rule  { width: 34px; height: 1px; background: rgba(255, 255, 255, .28); }
.topbar-link  {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease;
}
.topbar-link:hover { color: var(--green-bright); }

/* ==========================================================================
   แถบเมนู
   ========================================================================== */

.site-head {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-head.is-stuck { box-shadow: var(--shadow); }

.head-inner {
    display: flex;
    align-items: stretch;
    gap: 20px;
    min-height: var(--head);
}

/* โลโก้วางบนบล็อกเขียวตัดมุมล่างขวา ตามลายเซ็นของต้นแบบ */
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 0 34px 0 clamp(20px, 5vw, 40px);
    margin-left: calc(clamp(20px, 5vw, 40px) * -1);
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
}
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-inline: auto;
}
.nav a {
    padding: 10px 15px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .18s ease;
    position: relative;
}
.nav a::after {
    content: '';
    position: absolute;
    left: 15px; right: 15px; bottom: 2px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav a:hover           { color: var(--green); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active        { color: var(--green); }

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

.lang-btn {
    min-width: 48px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.lang-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-tint); }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    cursor: pointer;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    transition: transform .22s ease, opacity .22s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   ฮีโร่ — แบ่งครึ่งซ้ายเนื้อหา ขวาภาพ
   ========================================================================== */

.hero { position: relative; background: var(--bg-soft); overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: min(78vh, 660px);
}

.hero-left {
    display: flex;
    align-items: center;
    padding-block: clamp(52px, 8vw, 96px);
    /* จัดเนื้อหาให้ตรงกับ .wrap ของส่วนอื่น ทั้งที่ตัวฮีโร่กินเต็มความกว้างจอ */
    padding-left: max(clamp(20px, 5vw, 40px), calc((100vw - var(--wrap)) / 2 + clamp(20px, 5vw, 40px)));
    padding-right: clamp(24px, 4vw, 56px);
    position: relative;
}
/* ลายเส้นจาง ๆ เป็นพื้นหลัง ให้ครึ่งซ้ายไม่โล่งเกินไป */
.hero-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 124, 41, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 124, 41, .05) 1px, transparent 1px);
    background-size: 54px 54px;
    pointer-events: none;
}
.hero-copy { position: relative; max-width: 34rem; }

.hero-title {
    margin-bottom: 22px;
    font-size: clamp(38px, 6.4vw, 76px);
    line-height: 1.06;
    letter-spacing: -.035em;
}
.hero-lead {
    max-width: 44ch;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(15px, 1.6vw, 16.5px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-right { position: relative; min-height: 320px; }
.hero-panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(700px 420px at 70% 20%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(150deg, var(--green-deep) 0%, var(--green) 55%, var(--green-bright) 100%);
    overflow: hidden;
}
.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .55;
}
.hero-mark {
    position: relative;
    width: min(58%, 300px);
    opacity: .28;
    animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* การ์ดลอยคร่อมรอยต่อสองฝั่ง */
.hero-float {
    position: absolute;
    left: -46px;
    bottom: 52px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #fff;
    border-left: 4px solid var(--green);
    box-shadow: var(--shadow-lg);
}
.float-dot {
    width: 11px; height: 11px;
    flex: none;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(20, 160, 60, .5);
    animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
    70%  { box-shadow: 0 0 0 10px rgba(20, 160, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(20, 160, 60, 0); }
}
.float-label { font-size: 12px; font-weight: 700; letter-spacing: .1em;
               text-transform: uppercase; color: var(--muted); line-height: 1.6; }
.float-value { font-size: 20px; font-weight: 800; color: var(--ink); line-height: 1.3; }

/* ==========================================================================
   แถบเขียวคั่น
   ========================================================================== */

.strip {
    position: relative;
    background: linear-gradient(120deg, #004718 0%, var(--green-deep) 45%, var(--green) 100%);
    color: #fff;
    overflow: hidden;
}
.strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .5;
}
.strip-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
    padding-block: clamp(28px, 4vw, 44px);
}
.strip-name {
    font-size: clamp(16px, 2vw, 21px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.01em;
}
.strip-sub { color: rgba(255, 255, 255, .9); font-size: 14px; }

.strip-list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.strip-list li {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--r);
    background: rgba(255, 255, 255, .1);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .03em;
}

/* ==========================================================================
   เกี่ยวกับเรา
   ========================================================================== */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

.about-art { position: relative; }
.art-block {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    background:
        radial-gradient(520px 360px at 60% 25%, rgba(255, 255, 255, .16), transparent 62%),
        linear-gradient(155deg, var(--green-deep), var(--green-bright));
    overflow: hidden;
    position: relative;
}
.art-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .5;
}
.art-block img { position: relative; width: min(56%, 240px); opacity: .3; }

.art-card {
    position: absolute;
    right: clamp(-18px, -2vw, 0px);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 17rem;
    padding: 18px 22px;
    background: #fff;
    border-left: 4px solid var(--green);
    box-shadow: var(--shadow-lg);
}
.art-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px; height: 44px;
    background: var(--green-tint);
    color: var(--green);
}
.art-ico svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}
.art-card-text { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.5; }

.about-points { display: grid; gap: 12px; margin: 26px 0 32px; }
.about-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}
.about-points svg {
    width: 20px; height: 20px; flex: none;
    margin-top: 5px;
    padding: 3px;
    background: var(--green-tint);
    color: var(--green);
    fill: none; stroke: currentColor; stroke-width: 3;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   การ์ดประเด็นวิจัย
   ========================================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.card {
    position: relative;
    padding: 34px 28px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
/* ขีดเขียวไล่ขึ้นตอนชี้ */
.card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--green-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.card:hover {
    transform: translateY(-6px);
    border-color: var(--green-tint-2);
    box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p  { font-size: 14.5px; color: var(--muted); line-height: 1.8; }

.card-ico {
    display: grid;
    place-items: center;
    width: 60px; height: 60px;
    margin-bottom: 22px;
    background: linear-gradient(140deg, var(--green) 0%, var(--green-bright) 100%);
    color: #fff;
}
.card-ico svg {
    width: 28px; height: 28px;
    fill: none; stroke: currentColor; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

.card-no {
    position: absolute;
    right: 18px; top: 14px;
    color: var(--green-tint);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   แบนเนอร์เขียว
   ========================================================================== */

.sec-band { padding-block: clamp(20px, 3vw, 34px); }

.band {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px 40px;
    padding: clamp(30px, 4.5vw, 52px) clamp(26px, 4vw, 56px);
    background: linear-gradient(120deg, #004718 0%, var(--green-deep) 45%, var(--green) 100%);
    border-radius: var(--r-lg);
    color: #fff;
    overflow: hidden;
}
.band::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: .55;
}
.band-copy, .band-side { position: relative; }
.band-title { color: #fff; font-size: clamp(23px, 3.4vw, 38px); line-height: 1.25; }

.band-side { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; }
.band-contact { display: flex; align-items: center; gap: 13px; }
.band-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}
.band-ico svg {
    width: 23px; height: 23px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
}
.band-label { font-size: 13px; color: rgba(255, 255, 255, .9); line-height: 1.5; }
.band-value {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    text-underline-offset: 4px;
}
.band-value:hover { text-decoration: underline; }

/* ==========================================================================
   ระบบและแพลตฟอร์ม
   ========================================================================== */

.feature {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    padding: clamp(28px, 4vw, 52px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 7px 16px;
    border-radius: var(--r);
    background: var(--green-tint);
    color: var(--green-deep);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(20, 160, 60, .5);
    animation: pulse 2.2s ease-out infinite;
}

.feature-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.feature-sub {
    margin-bottom: 18px;
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
}
.feature-text { max-width: 58ch; color: var(--muted); font-size: 15px; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.feature-tags li {
    padding: 6px 15px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--bg-soft);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.feature-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ภาพจำลองหน้าจอมือถือ วาดด้วย CSS ล้วน ไม่ต้องโหลดรูป */
.feature-art { display: flex; justify-content: center; }
.phone {
    width: min(100%, 260px);
    aspect-ratio: 260 / 520;
    padding: 11px;
    border-radius: 32px;
    background: linear-gradient(160deg, #14211A, #0B1710);
    box-shadow: 0 28px 62px rgba(20, 33, 26, .32);
}
.phone-screen {
    height: 100%;
    padding: 16px 13px;
    border-radius: 23px;
    background: var(--bg-soft);
    overflow: hidden;
}
.ph-top {
    height: 48px;
    margin: -16px -13px 14px;
    background: linear-gradient(135deg, var(--green-deep), var(--green));
    border-radius: 23px 23px 12px 12px;
}
.ph-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    margin-bottom: 13px;
    background: linear-gradient(135deg, #047857, #10b981);
}
.ph-ring {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-right-color: #fff;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}
.ph-lines { display: grid; gap: 6px; flex: 1; }
.ph-lines i { height: 7px; background: rgba(255, 255, 255, .55); }
.ph-lines i:last-child { width: 62%; background: rgba(255, 255, 255, .35); }

.ph-row { display: flex; gap: 8px; margin-bottom: 14px; }
.ph-row i { flex: 1; height: 46px; background: #fff; border: 1px solid var(--line); }
.ph-bar {
    height: 12px;
    margin-bottom: 9px;
    background: #fff;
    border: 1px solid var(--line);
    overflow: hidden;
}
.ph-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--green-bright)); }

.more-note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ==========================================================================
   ขั้นตอนการทำงาน
   ========================================================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px 22px;
}
.step { position: relative; padding-top: 18px; text-align: center; }
/* เส้นเชื่อมระหว่างขั้น เฉพาะจอกว้าง */
.step::after {
    content: '';
    position: absolute;
    top: 76px;
    left: calc(50% + 46px);
    right: calc(-50% + 46px);
    height: 2px;
    background: repeating-linear-gradient(90deg,
        var(--green-tint-2) 0 8px, transparent 8px 16px);
}
.step:last-child::after { display: none; }

.step-tag {
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 16px;
    background: var(--green);
    border-radius: var(--r);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.step-ico {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 84px; height: 84px;
    margin: 0 auto 20px;
    border: 2px solid var(--green-tint-2);
    border-radius: 50%;
    background: #fff;
    color: var(--green);
    transition: background-color .24s ease, color .24s ease,
                border-color .24s ease, transform .24s ease;
}
.step-ico svg {
    width: 34px; height: 34px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
}
.step:hover .step-ico {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    transform: translateY(-5px);
}
.step h3 { font-size: 18px; margin-bottom: 9px; }
.step p  { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ==========================================================================
   ติดต่อ
   ========================================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}
.contact-list { display: grid; gap: 16px; }
.contact-list li {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: var(--r);
    transition: transform .2s ease, box-shadow .2s ease;
}
.contact-list li:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.ct-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 46px; height: 46px;
    background: var(--green-tint);
    color: var(--green);
}
.ct-ico svg {
    width: 22px; height: 22px;
    fill: none; stroke: currentColor; stroke-width: 1.9;
    stroke-linecap: round; stroke-linejoin: round;
}
.ct-label {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
    line-height: 1.6;
}
.ct-value {
    color: var(--ink);
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: none;
    text-underline-offset: 4px;
}
a.ct-value:hover { color: var(--green); text-decoration: underline; }

/* ==========================================================================
   ท้ายเว็บ
   ========================================================================== */

.site-foot { background: var(--dark); color: rgba(255, 255, 255, .66); }

.foot-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding-block: clamp(46px, 7vw, 70px);
}
.foot-block {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 12px 26px 12px 18px;
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}
.foot-block .brand-mark { width: 30px; height: 30px; }
.foot-block .brand-name { font-size: 20px; }
.foot-desc { font-size: 13.5px; line-height: 1.8; }

.foot-title {
    margin-bottom: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .04em;
}
.foot-links, .foot-contact { display: grid; gap: 11px; }
.foot-links a, .foot-contact a {
    font-size: 14.5px;
    text-decoration: none;
    transition: color .18s ease, padding-left .18s ease;
}
.foot-links a:hover, .foot-contact a:hover { color: var(--green-bright); padding-left: 4px; }
.foot-contact li { font-size: 14px; line-height: 1.75; }

.foot-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-block: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}
.to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color .18s ease;
}
.to-top:hover { color: var(--green-bright); }
.to-top svg {
    width: 15px; height: 15px;
    fill: none; stroke: currentColor; stroke-width: 2.2;
    stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   ค่อย ๆ ปรากฏตอนเลื่อนถึง
   ========================================================================== */

/* ซ่อนไว้ก่อนเฉพาะเมื่อ JS ทำงานได้จริง (คลาส .js ถูกติดจากสคริปต์ใน <head>)
   ถ้าสคริปต์โหลดไม่สำเร็จ กฎนี้จะไม่ถูกใช้ เนื้อหาจึงแสดงครบตามปกติ
   ไม่ใช่หน้าว่างเปล่าเพราะรอ JS ที่ไม่มีวันมา */
html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   จอเล็ก
   ========================================================================== */

@media (max-width: 1100px) {
    /* ปลด min-height ของกริด ไม่งั้นความสูง 78vh จะถูกแบ่งลงสองแถว
       แล้วแผงเขียวจะสูงจนดันเนื้อหาหลักตกไปใต้ขอบจอ */
    .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-left {
        order: 2;
        padding-inline: clamp(20px, 5vw, 40px);
    }
    .hero-right { order: 1; min-height: 0; height: clamp(190px, 34vw, 260px); }
    .hero-float { left: auto; right: clamp(20px, 5vw, 40px); bottom: -30px; }

    .about-grid,
    .feature,
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .about-art { order: 2; max-width: 30rem; }
    .art-block { aspect-ratio: 16 / 10; }
    .feature-art { order: -1; }
    .sec-title { max-width: none; }
    .foot-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step::after { display: none; }
}

@media (max-width: 860px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 8px clamp(20px, 5vw, 40px) 16px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        /* ปิดไว้ก่อน แล้วให้ JS สลับคลาส is-open */
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 13px 6px; font-size: 14px; border-bottom: 1px solid var(--line); }
    .nav a::after { display: none; }
    .nav a:last-child { border-bottom: 0; }

    .burger { display: block; }
    .head-actions .btn-head { display: none; }
    .topbar-side { display: none; }
}

@media (max-width: 620px) {
    .brand-block { padding-right: 26px; }
    .brand-name { font-size: 19px; }
    .foot-inner { grid-template-columns: minmax(0, 1fr); }
    /* ห้ามเปลี่ยนเป็น position: static — .hero-panel เป็น absolute จึงวาดทับตัวที่ไม่ได้จัดตำแหน่ง
       ผลคือการ์ดหายไปทั้งใบบนมือถือ · ให้คร่อมรอยต่อแบบเดียวกับจอกว้างแทน */
    .hero-float { left: clamp(20px, 5vw, 40px); right: clamp(20px, 5vw, 40px); bottom: -34px; }
    .hero-left { padding-top: 74px; }
    .hero-cta .btn { width: 100%; }
    .band-side { width: 100%; }
    .topbar-inner { justify-content: center; text-align: center; }
    .topbar-info { justify-content: center; }
}

/* ==========================================================================
   ผู้ใช้ที่ตั้งค่าลดการเคลื่อนไหว
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    html.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   สั่งพิมพ์
   ========================================================================== */

@media print {
    .site-head, .topbar, .hero-panel, .hero-mark, .feature-art,
    .to-top, .burger, .lang-btn, .art-block { display: none !important; }
    .hero, .strip, .band, .site-foot { background: #fff !important; color: #000 !important; }
    .band-title, .strip-name, .strip-sub { color: #000 !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; }
    body { font-size: 12pt; }
}
