/* ============ ฉากหน้าห้อง: ท้องฟ้า Y2K + ชื่อ METAWIN + ห้อง 3D (WebGL) ============
   ลำดับชั้นใน .stage: ท้องฟ้า+ชื่อ (0) → ความมืดตอนค่ำ (1) → canvas ห้อง 3D โปร่ง (2) → hero/loader (5–6) → #mac (8) */
:root {
  /* ฟอนต์ชื่อ METAWIN (และหัวข้อใหญ่ที่ใช้ --font-display) — เปลี่ยนได้ที่บรรทัดนี้บรรทัดเดียว
     (โหลดจากลิงก์ Google Fonts ใน <head>; ชั่วคราว Unbounded 900 รอเจ้าของเลือกจาก debug/fonts/compare.png) */
  --font-display: "Unbounded", "Mitr", system-ui, sans-serif;
  --name-weight: 900;
  --name-size: min(16vw, 26vh);          /* intro.js วัดแล้วตั้งค่าจริงให้พอดีจอ */
  --name-top: max(12px, 2.2vh);
}

/* ---------- ท้องฟ้าโคบอลต์ไล่อ่อน + ตารางขาว ---------- */
.sky {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 0; overflow: hidden;
  background: #1450e4;
  will-change: auto;
}
.sky-bg {
  position: absolute; left: 0; right: 0; top: -14vh; bottom: -14vh;
  background:
    radial-gradient(120% 85% at 50% 48%, rgba(255, 255, 255, 0) 45%, rgba(3, 16, 110, .38) 100%),
    linear-gradient(rgba(255, 255, 255, .24) 1.5px, transparent 1.5px) center / 72px 72px,
    linear-gradient(90deg, rgba(255, 255, 255, .24) 1.5px, transparent 1.5px) center / 72px 72px,
    radial-gradient(52% 42% at 46% 64%, rgba(150, 205, 255, .55), rgba(150, 205, 255, 0) 75%),
    linear-gradient(180deg, #0a39d4 0%, #1550e6 36%, #2a78ea 68%, #58acec 100%);
  will-change: transform;
}

/* แดดบ่ายแก่: ฟ้าอุ่นขึ้นนิดตอนเปิดเว็บ (camera.js ลด --warm ตามการซูม แล้ว #dark ทำให้เป็นกรมท่า) */
.sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(80% 60% at 78% 100%, rgba(255, 170, 96, .5), rgba(255, 170, 96, 0) 70%),
    linear-gradient(180deg, rgba(255, 196, 140, 0) 30%, rgba(255, 168, 120, .28) 100%);
  opacity: var(--warm, 1);
}

/* ---------- ชื่อใหญ่ METAWIN สีขาว หนา มีมิติ เงานุ่ม (อยู่เหนือ canvas) — จัดกลางด้วย margin auto ---------- */
.sky-name {
  position: absolute; left: 0; right: 0; top: var(--name-top);
  width: max-content; max-width: none;
  margin: 0 auto;
  font-family: var(--font-display); font-weight: var(--name-weight);
  font-size: var(--name-size); line-height: 1; letter-spacing: .01em;
  white-space: nowrap;
  color: #fff;
  filter:
    drop-shadow(0 .012em 0 #dfe9ff)
    drop-shadow(0 .012em 0 #c9d9ff)
    drop-shadow(0 .012em 0 #b3c8fb)
    drop-shadow(0 .035em .04em rgba(3, 18, 110, .32))
    drop-shadow(0 .08em .12em rgba(3, 18, 110, .22));
  transform-origin: 50% 50%;
  user-select: none; pointer-events: none !important;
  will-change: transform, opacity;
}
.sky-name .k { display: inline-block; transform-origin: 50% 85%; }
/* เคอร์เซอร์กะพริบท้ายคำตอนพิมพ์ */
.sky-name .caret {
  position: absolute; left: 100%; top: .14em;
  width: .07em; height: .74em; margin-left: .05em;
  border-radius: .03em; background: #fff;
  opacity: 0;
}
.is-intro .sky-name .k { opacity: 0; }
.js .is-intro .sky-name:not(.is-split) { visibility: hidden; }   /* กันชื่อเต็มโผล่วูบก่อนแตกเป็นตัวอักษร */
.is-typing .sky-name .caret { animation: caret .52s steps(1) infinite; }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
/* เปิดหน้า: เริ่มจากจอดำ มีแค่ชื่อขาว + เคอร์เซอร์ → ยิ่งพิมพ์ ฟ้าก็ยิ่งเฟดขึ้นมา (จอดำจางลงตลอดการพิมพ์ ~0.7 วิ)
   พิมพ์เสร็จ intro.js ถอด is-boot → ตัวอักษรค่อยๆ จากขาวทึบเป็นฟ้าใสแบบเดิม และห้องลอยขึ้น */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--night); opacity: 0; visibility: hidden;
}
.js .is-boot .stage::after { visibility: visible; animation: boot-fade .64s cubic-bezier(.45, 0, .7, 1) .05s both; }
@keyframes boot-fade { from { opacity: 1; } to { opacity: 0; } }
.js .is-boot .sky-name { z-index: 7; }
.sky-name .k { transition: color .35s ease-out; }
.js .is-boot .sky-name .k { color: #fff; }
.js .is-boot .sky-name .caret { background: #fff; }

/* ชื่อ 2 แบบ (คลาสบน <html> ตั้งจาก ?title=): ตัวเดียวกัน ย้ายชั้นด้วย z-index
   - behind: อยู่หลัง canvas (ห้องเกยทับ) ฟ้าอ่อนโปร่ง/ฝ้า กลืนกับฟ้า · front: ขาวหนาเหนือห้อง (แบบเดิม) */
.sky-name { z-index: 4; }
.title-behind .sky-name { z-index: 1; top: max(10px, 1.6vh); filter: drop-shadow(0 .03em .06em rgba(3, 18, 110, .16)); }
.title-behind .sky-name .k {
  color: transparent;
  background: linear-gradient(180deg, rgba(232, 242, 255, .78) 0%, rgba(196, 222, 255, .55) 48%, rgba(160, 200, 255, .32) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.title-behind .sky-name .caret { background: rgba(225, 238, 255, .8); }
/* เรซูเม่ย่อ/ไอคอนโปรแกรม/คำใบ้ ใช้เฉพาะการ์ดจอกว้าง (จอเล็ก/มือถือไม่ให้ทับห้อง) */
.hero-cv, .hero-tools, .hero-hint { display: none; }
/* ชื่อหลังห้อง + จอกว้าง (เจ้าของ รอบ 7b): การ์ดกระจกขวา "แนะนำตัว + เรซูเม่ย่อ" — สูงเท่าเนื้อหา (ไม่มีช่องโล่ง) ปุ่มต่อท้ายเนื้อหา
   กว้างตามที่ว่างขวาของห้อง: ห้องกินถึง ~77% ของจอที่ 1180 และ ~73% ที่ 1440 → 46vw − 305px (1180: 238 · 1440: 357) ไม่ทับห้อง
   ขอบบนต่ำกว่าอิโมจิฟิล์มมุมขวาบน (wideB y 0.21) */
@media (min-width: 1100px) {
  .title-behind .hero-copy {
    top: max(27vh, 196px); bottom: auto; right: clamp(16px, 2.4vw, 44px);
    width: clamp(232px, calc(46vw - 305px), 400px);
    align-items: stretch; text-align: left; gap: 14px;
    padding: 14px 14px 16px; isolation: isolate;
  }
  /* พื้นการ์ดอยู่ในชั้น ::before → ตอนเปิดหน้ายืดลงได้โดยไม่ตัดเนื้อหา (ปุ่ม Resume ที่ลอยอยู่ก่อนไม่วูบหาย) */
  .title-behind .hero-copy::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 28px;
    background: rgba(9, 32, 150, .4);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3), 0 28px 60px -26px rgba(3, 14, 80, .75);
    transition: opacity .3s var(--ease-out);
  }
  .title-behind .hero-id { align-items: flex-start; gap: 10px; padding: 8px 6px 2px; }
  .title-behind .hero-name { font-size: clamp(22px, 2.1vw, 30px); white-space: nowrap; }
  .title-behind .hero-role { font-size: 14px; padding: 6px 14px 7px 7px; }
  /* เรซูเม่ย่อแบบไทม์ไลน์: บรรทัดเล็ก (ป้าย ซ้าย · ปี ขวา) → ตำแหน่งตัวหนา → ที่ทำงาน/สถาบันสีจาง · เส้น+จุดซ้ายมือ */
  .title-behind .hero-cv { position: relative; display: grid; gap: 12px; margin: 2px 4px 0; padding: 0 0 0 16px; list-style: none; }
  .title-behind .hero-cv::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1.5px; background: rgba(255, 255, 255, .25); transform-origin: top; }   /* เส้นสาย (แบบแผนที่รถไฟ) */
  .title-behind .hero-cv li { position: relative; }
  .title-behind .hero-cv li::before { content: ""; position: absolute; left: -20.25px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(9, 32, 150, .55); }
  .title-behind .hero-cv p { margin: 0; }
  .title-behind .cv-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .6); }
  .title-behind .cv-meta span:last-child { font-variant-numeric: tabular-nums; }
  .title-behind .cv-role { margin-top: 2px; font-weight: 600; font-size: 14.5px; line-height: 1.35; color: #fff; }
  .title-behind .cv-org { font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .72); }
  /* โปรแกรมที่ใช้: ถาดกระจกแถวเดียว ไอคอนเว้นเท่ากัน */
  .title-behind .hero-tools { display: flex; justify-content: space-between; align-items: center; margin: 0 4px; padding: 8px 12px; list-style: none; border-radius: 16px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
  .title-behind .hero-tools img { display: block; width: 30px; height: 30px; object-fit: contain; border-radius: 7px; filter: drop-shadow(0 3px 6px rgba(3, 14, 80, .35)); }
  .title-behind .hero-btns { margin: 0 4px; grid-template-columns: 1fr; gap: 10px; }
  .title-behind .hero-btns .pill, .title-behind .hero-btns #btn-enter { min-height: 50px; font-size: 16px; justify-content: center; }
  .title-behind .hero-hint { display: block; margin: -4px 0 0; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .75); }
  /* ระหว่างลำดับเปิดหน้า: การ์ดยังไม่ขึ้น (เหลือปุ่ม Resume ลอยเหมือนเดิม) */
  .js .title-behind .is-intro .hero-copy::before { opacity: 0; }
  /* การ์ดเข้า (เจ้าของ รอบ 7b: "ป๊อปเป็นแถบเล็กก่อน แล้วลากลง · จุดเชื่อมแบบ BTS · โปรแกรมเด้งแบบ Dock · ไม่ต้องเล่นเยอะ") รวม ≈ 1.2 วิ
     ตอนเปิดหน้า: การ์ดมีแค่ชื่อ+ป้าย (ยังไม่โผล่) → ปุ่ม Resume ที่ขึ้นก่อนอยู่ใต้ชื่อพอดี
     0 → แถบเล็กป๊อป → .3 เรซูเม่กางลง (การ์ดยืดจริง ปุ่ม Resume เลื่อนลงตาม) + เส้นสาย/จุดสถานีทีละจุด → .7 ไอคอนเด้งแบบ Dock → .85 ปุ่มดูผลงาน
     ใช้คลาส is-copy-in (มีอยู่ ~1.4 วิ) · กดข้าม/เลื่อนก่อน = ไม่มีคลาสนี้ → ขึ้นทันที */
  .js .title-behind .is-intro .hero-cv, .js .title-behind .is-intro .hero-tools, .js .title-behind .is-intro .hero-hint, .js .title-behind .is-intro #btn-enter { display: none; }
  .title-behind .is-copy-in .hero-copy::before { animation: card-bar .38s cubic-bezier(.34, 1.5, .5, 1) both; }
  .title-behind .is-copy-in .hero-cv, .title-behind .is-copy-in .hero-tools, .title-behind .is-copy-in .hero-btns { overflow: hidden; }
  .title-behind .is-copy-in .hero-cv { animation: unfold .48s cubic-bezier(.3, .8, .4, 1) .3s backwards; }
  .title-behind .is-copy-in .hero-id { animation: card-bar .38s cubic-bezier(.34, 1.5, .5, 1) both; }
  .title-behind .is-copy-in .hero-cv::before { animation: cv-line .5s var(--ease-out) .38s both; }
  .title-behind .is-copy-in .hero-cv li { animation: cv-stop .3s var(--ease-out) both; }
  .title-behind .is-copy-in .hero-cv li::before { animation: cv-dot .34s cubic-bezier(.34, 1.8, .5, 1) both; }
  .title-behind .is-copy-in .hero-cv li:nth-child(1), .title-behind .is-copy-in .hero-cv li:nth-child(1)::before { animation-delay: .42s; }
  .title-behind .is-copy-in .hero-cv li:nth-child(2), .title-behind .is-copy-in .hero-cv li:nth-child(2)::before { animation-delay: .56s; }
  .title-behind .is-copy-in .hero-cv li:nth-child(3), .title-behind .is-copy-in .hero-cv li:nth-child(3)::before { animation-delay: .7s; }
  .title-behind .is-copy-in .hero-tools { animation: unfold-tray .26s var(--ease-out) .7s backwards; }
  .title-behind .is-copy-in .hero-tools li { animation: dock-pop .36s cubic-bezier(.34, 1.7, .5, 1) both; }
  .title-behind .is-copy-in .hero-tools li:nth-child(1) { animation-delay: .8s; }
  .title-behind .is-copy-in .hero-tools li:nth-child(2) { animation-delay: .85s; }
  .title-behind .is-copy-in .hero-tools li:nth-child(3) { animation-delay: .9s; }
  .title-behind .is-copy-in .hero-tools li:nth-child(4) { animation-delay: .95s; }
  .title-behind .is-copy-in .hero-tools li:nth-child(5) { animation-delay: 1s; }
  .title-behind .is-copy-in #btn-enter { animation: unfold-btn .3s var(--ease-out) .86s backwards; }
  .title-behind .is-copy-in .hero-hint { animation: unfold .25s var(--ease-out) .98s backwards; }
}
/* การ์ดแคบ (จอ 1100–1299 กว้าง ~210–330): ตัว/ระยะเล็กลง · ไม่มีคำใบ้ → สูงพอดีจอ 800 */
@media (min-width: 1100px) and (max-width: 1299px) {
  .title-behind .hero-copy { padding: 12px 12px 13px; gap: 11px; }
  .title-behind .hero-id { gap: 8px; padding: 6px 4px 0; }
  .title-behind .hero-name { font-size: 19px; }
  .title-behind .hero-role { gap: 5px; font-size: 11.5px; padding: 5px 9px 6px 5px; }   /* การ์ดแคบ: ป้ายบรรทัดเดียว */
  .title-behind .hero-role .hero-dot { width: 14px; height: 14px; }
  .title-behind .hero-cv { gap: 9px; }
  .title-behind .cv-role { font-size: 13.5px; }
  .title-behind .cv-org { font-size: 12.5px; }
  .title-behind .hero-tools { padding: 7px 10px; }
  .title-behind .hero-tools img { width: 26px; height: 26px; }
  .title-behind .hero-btns { gap: 8px; }
  .title-behind .hero-btns .pill, .title-behind .hero-btns #btn-enter { min-height: 42px; font-size: 14.5px; }
  .title-behind .hero-hint { display: none; }
}
/* จอกว้างแต่เตี้ย (เช่น 1366×768): ระยะแน่นขึ้น ปุ่มเตี้ยลง ไม่มีคำใบ้ → การ์ดไม่ล้นขอบล่าง */
@media (min-width: 1300px) and (max-height: 840px) {
  .title-behind .hero-copy { gap: 11px; }
  .title-behind .hero-cv { gap: 9px; }
  .title-behind .hero-btns { gap: 8px; }
  .title-behind .hero-btns .pill, .title-behind .hero-btns #btn-enter { min-height: 44px; font-size: 15px; }
  .title-behind .hero-hint { display: none; }
}

/* กางลง: สูง 0 → เต็ม (ค่าปลายเผื่อเกินเนื้อหา · backwards = จบแล้วกลับเป็นความสูงจริง) · margin ติดลบกลบช่องไฟของ flex ตอนยังสูง 0 */
@keyframes unfold { from { max-height: 0; margin-top: -14px; opacity: 0; } to { max-height: 340px; } }
@keyframes unfold-tray { from { max-height: 0; margin-top: -14px; padding-top: 0; padding-bottom: 0; opacity: 0; } to { max-height: 70px; } }
@keyframes unfold-btn { from { min-height: 0; max-height: 0; margin-bottom: -10px; opacity: 0; } to { max-height: 60px; } }
@keyframes card-bar { from { opacity: 0; transform: translateY(10px) scale(.9); } }
@keyframes cv-line { from { transform: scaleY(0); } }
@keyframes cv-stop { from { opacity: 0; transform: translateX(-6px); } }
@keyframes cv-dot { from { transform: scale(0); } }
@keyframes dock-pop { 0% { opacity: 0; transform: translateY(12px) scale(.5); } 60% { opacity: 1; transform: translateY(-4px) scale(1.12); } }

/* ---------- ความมืดตอนค่ำ: ทับท้องฟ้าเท่านั้น ห้อง 3D คุมแสงเอง ---------- */
.dark { z-index: 1; }

/* ---------- canvas ห้อง 3D ---------- */
.scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.scene canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
/* emoji Noto เคลื่อนไหว (Lottie SVG) ลอยทับห้อง — room/main.js วางตำแหน่งจากจุดยึด 3D ทุกเฟรม */
.emo-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.emo-layer .emo { position: absolute; left: 0; top: 0; width: 160px; height: 160px; transform-origin: 80px 80px; will-change: transform; }
.emo-layer .emo svg, .emo-layer .emo img { display: block; width: 100%; height: 100%; }
.no-room .emo-layer { display: none !important; }
/* ขอบภาพมืดลงตามการซูมเข้าจอ (camera.js ตั้ง --vig) — อยู่ใต้ #mac */
.scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at 50% 46%, rgba(4, 7, 26, 0) 38%, rgba(4, 7, 26, .55) 72%, rgba(4, 7, 26, .92) 100%);
  opacity: var(--vig, 0);
}
/* ห้อง 3D เปิดไม่ได้: เข้าเดสก์ท็อปทันที ไม่มีหน้าแรก ไม่มีการสกอลล์ */
.no-room .journey { height: 100vh; height: 100dvh; }
.no-room .sky, .no-room .dark, .no-room .scene, .no-room .hero, .no-room .loader, .no-room .jump { display: none !important; }

/* ---------- hero: ชื่อใหญ่ + ตำแหน่ง/ข้อความ/ปุ่ม กระชับ ชิดขวาใต้ชื่อ (ไม่บังห้อง) ---------- */
.hero {
  left: 0; top: 0; right: 0; bottom: 0;
  width: auto;
  display: block;
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  right: clamp(16px, 3.2vw, 48px);
  top: calc(var(--name-top) + var(--name-size) * .93 + 10px);
  width: min(330px, 42vw);
  display: flex; flex-direction: column; align-items: flex-end; gap: 9px;
  text-align: right;
  pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
/* ตัวตน (เจ้าของ รอบ 7b): ชื่อตัวขาวด้านบน → ป้ายเขียวตำแหน่งแบบเดิมข้างล่าง (ลองก้อนเขียวทั้งก้อนแล้ว เจ้าของไม่ชอบ) */
.hero-id { display: flex; flex-direction: column; align-items: inherit; gap: 8px; }
.hero-name { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.15; color: #fff; text-shadow: 0 2px 12px rgba(3, 14, 80, .4); }
.hero-role {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 6px 13px 7px 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3ffc2 0%, var(--lime) 52%, #aee12a 100%);
  box-shadow: var(--puff), inset 0 0 0 1.5px rgba(255, 255, 255, .8), -2px 0 0 0 rgba(255, 79, 216, .55), 2px 0 0 0 rgba(79, 224, 255, .6);
  font-weight: 500; font-size: 13px; line-height: 1.2; white-space: nowrap; color: var(--ink);
}
.hero-dot {   /* ไม่ใช่วงกลมเหลืองแล้ว (เจ้าของไม่เอา) → จุดเขียวเข้มในวงขาว */
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #2f8a1e 0 32%, #fff 36% 100%);
  box-shadow: 0 1px 4px rgba(16, 22, 52, .3);
}
.hero-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: end; }   /* รอบ 7b: สองปุ่มกว้างเท่ากัน (= ปุ่มที่ยาวกว่า) */
.hero-btns .pill { min-height: 40px; padding: 0 17px; font-size: 14px; }

/* ---------- ลำดับเปิด (intro.js + room/main.js): ชื่อพิมพ์ → ปุ่ม "ข้ามไปดู Resume" โผล่เร็ว (กดได้ตั้งแต่วินาทีแรก)
   → ห้องหมุน/ของตก → ป้ายตำแหน่ง/ข้อความ/ปุ่มเดินเข้าห้อง เฟดเข้าท้ายสุด ---------- */
.js .is-intro .hero { animation: none; }
.hero-copy { opacity: var(--hero-o, 1); }      /* camera.js จางตามสกอลล์ผ่านตัวแปร (ไม่ทับคลาส intro) */
.is-copy-in .hero-copy > *, .is-copy-in .hero-btns > * { transition: opacity .55s var(--ease-out), translate .55s var(--ease-out); }
.js .is-intro .hero-copy > *:not(.hero-btns), .js .is-intro #btn-enter { opacity: 0; translate: 0 14px; pointer-events: none; }
.js .is-intro #btn-skip { animation: works-in .5s var(--ease-out) .72s backwards; }   /* โผล่ตอนจอดำหาย */
@keyframes works-in { from { opacity: 0; translate: 0 10px; scale: .94; } }
.js .is-intro .loader { animation: none; opacity: 0; }
/* หลอด LOADING: โผล่ด้วยการเลื่อนขึ้น + เด้งนุ่ม แล้วเรืองแสงชีพจรช้าๆ (เบา ไม่ฉูดฉาด) */
.is-copy-in .loader { animation: loader-pop .85s cubic-bezier(.34, 1.45, .5, 1) .15s backwards; }
@keyframes loader-pop { from { opacity: 0; translate: -50% 34px; scale: .94; } 60% { opacity: 1; } to { opacity: 1; translate: -50% 0; scale: 1; } }
.loader::after {
  content: ""; position: absolute; inset: -5px; border-radius: 18px; pointer-events: none;
  box-shadow: 0 0 16px 3px rgba(196, 242, 58, .5), 0 0 34px 8px rgba(110, 170, 255, .26);
  opacity: .22; animation: loader-glow 2.8s ease-in-out infinite;
}
@keyframes loader-glow { 0%, 100% { opacity: .18; } 50% { opacity: .7; } }
/* ปุ่มหลัก = "เดินเข้าห้อง" (มะนาว); ทางลัด Resume = กระจก มีลูกศร */
.hero-btns #btn-enter, .hero-btns .pill-cv { min-height: 44px; font-weight: 600; }   /* รอบ 7b เจ้าของ: สองปุ่มกล่อง/ตัวอักษรเท่ากัน */
.hero-btns #btn-enter { padding: 0 20px; }
.hero-btns .pill-cv { gap: 6px; padding: 0 13px 0 17px; }
.hero-btns .pill-cv svg { flex: none; }

/* ---------- มือถือ ---------- */
@media (max-width: 767px) {
  :root { --name-top: 54px; }
  .hero { top: 0; bottom: 0; left: 0; right: 0; width: auto; }
  .hero-copy {
    left: 16px; right: 16px; width: auto;
    top: calc(var(--name-top) + var(--name-size) * .96 + 8px);
    gap: 8px;
  }
  .hero-btns .pill { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .loader::after { animation: none; opacity: .35; }
  .is-copy-in .loader { animation: none; }
  .hero-copy { transition: none; }
  .is-typing .sky-name .caret { animation: none; }
  .is-copy-in .hero-copy *, .is-copy-in .hero-copy *::before, .is-copy-in .hero-copy::before { animation: none !important; }
}
