/* หน้าเกี่ยวกับเรา ลอกจากแบบ Stitch "Bright Daylight Gallery (Refined Lead)" ค่าตาม Tailwind เดิม */

/* ===== พื้นหน้า ===== */

body:has(.about) { background: #faf7f2; color: #2d2438; }

/* แสงฟุ้งด้านบนและมุมขวาล่างของแบบ */
body:has(.about)::before,
body:has(.about)::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body:has(.about)::before {
  top: 0;
  left: 96px;
  right: 0;
  height: 600px;
  background: linear-gradient(to bottom, #efe5f599, #f7f2fa4d, transparent);
  filter: blur(64px);
}

body:has(.about)::after {
  right: 0;
  bottom: 0;
  width: 500px;
  height: 500px;
  border-radius: 999px;
  background: #f3e8fa80;
  filter: blur(140px);
}

/* breadcrumb กับ h1 ของเทมเพลตซ้ำกับชื่อในแบบ เก็บไว้ให้โปรแกรมอ่านจอ */
.sheet:has(.about) > .crumb,
.sheet:has(.about) > h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.about {
  --p: #a86fe6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  max-width: 1280px;
  padding: 48px 0 0;
}

.about h2,
.about h3,
.about p,
.about blockquote { margin: 0; }

.about img { max-width: none; }

/* ===== 1 ฮีโร่ ===== */

.ab-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 48px;
  padding: 12px;
  border: 1px solid #a86fe633;
  border-radius: 24px;
  background: #ffffffcc;
  box-shadow: 0 20px 25px -5px #581c870d, 0 8px 10px -6px #581c870d;
}

.ab-hero-bg { position: absolute; inset: 0; z-index: 0; }

.about .ab-hero-bg img {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
}

/* ดอกเต็มความสูง แล้วค่อยจางยาวๆ เข้าหาตึก */
.ab-hero-flower {
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 26%, transparent 68%);
  mask-image: linear-gradient(to right, #000 0%, #000 26%, transparent 68%);
}

/* ตึกเต็มขอบขวา จางจากซ้ายเข้ามาให้ทับช่วงดอกแบบเนียน */
.ab-hero-build {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 76% 40%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 62%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 18%, #000 62%);
}

.ab-hero-bg::after { content: ""; position: absolute; inset: 0; z-index: 2; }

/* ฝ้าขาวบนตึก ฝั่งดอกบางกว่าเพื่อให้ช่อดอกยังเห็น */
.ab-hero-bg::after {
  background: linear-gradient(to right, #faf7f2c4 0%, #faf7f28c 32%, #faf7f28c 68%, #faf7f2c4 100%);
}

.ab-hero-in {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin-inline: auto;
  padding: 28px;
  border: 1px solid #ffffff8c;
  border-radius: 20px;
  background: #ffffff33;
  box-shadow: inset 0 1px 0 #ffffffc2;
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.ab-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }

.ab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border: 1px solid #a86fe64d;
  border-radius: 999px;
  background: #a86fe61a;
  color: var(--p);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px #0000000d;
}

.ab-pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--p);
  animation: ab-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes ab-pulse {
  50% { opacity: 0.5; }
}

.ab-sep { width: 6px; height: 6px; border-radius: 999px; background: #d6d3d1; }

.ab-mono {
  color: var(--p);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about .ab-uni {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--p);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ab-uni span { width: 24px; height: 1px; background: #a86fe680; }

.about .ab-name {
  margin-bottom: 32px;
  color: #1c1917;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.ab-name .ab-keep { white-space: nowrap; }

.ab-name .ab-royal { color: #9e5da5; }

.ab-lead {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 16px;
  max-width: none;
  margin: 24px 0;
}

.ab-lead span {
  flex-shrink: 0;
  color: #78716c;
  font-size: 13px;
  white-space: nowrap;
}

.ab-lead p { color: #2d2438; font-size: 18px; line-height: 1.625; }

.ab-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  color: #78716c;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.ab-meta span { color: #57534e; font-family: var(--mono); }

.ab-meta i { color: #d6d3d1; font-style: normal; }

/* ===== 2 พันธกิจ ===== */

.ab-mission { position: relative; z-index: 20; margin-bottom: 96px; }

.ab-mission-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 4px;
}

.ab-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ab-eyebrow-mono { color: var(--p); font-family: var(--mono); }

.about .ab-mission-head h2,
.about .ab-aims-head h2 {
  color: #1c1917;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.ab-side { display: none; color: #b4a9c4; font-size: 12px; letter-spacing: 0.1em; }

.ab-cards { display: grid; grid-template-columns: 1fr; gap: 24px; }

.ab-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e7e5e4cc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  transition: all 0.5s;
}

.ab-card:hover {
  border-color: #a86fe680;
  box-shadow: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  transform: translateY(-6px);
}

.ab-shot { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #f5f5f4; }

.ab-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
  transition: transform 0.7s, opacity 0.7s;
}

.ab-card:hover .ab-shot img { transform: scale(1.05); opacity: 1; }

.ab-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #00000066, transparent, transparent);
}

.ab-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 12px;
  border: 1px solid #a86fe633;
  border-radius: 8px;
  background: #ffffffe6;
  backdrop-filter: blur(12px);
  color: var(--p);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 2px #0000000d;
}

.ab-cap {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-top: 1px solid #f5f5f4;
  background: #fff;
}

.about .ab-cap h3 { color: #1c1917; font-size: 18px; font-weight: 700; transition: color 0.15s; }

.ab-card:hover .ab-cap h3 { color: var(--p); }

.ab-cap span { color: var(--p); font-size: 12px; opacity: 0; transition: opacity 0.15s; }

.ab-card:hover .ab-cap span { opacity: 1; }

/* ===== 3 ประวัติ วิสัยทัศน์ ===== */

.about .ab-hero-copy {
  max-width: none;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ffffff73;
  color: #1c1917;
  font-size: 16px;
  line-height: 1.7;
}

.ab-two { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 96px; }

.ab-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #e7e5e4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 15px -3px #3b07640d, 0 4px 6px -4px #3b07640d;
}

.ab-blob {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 176px;
  height: 176px;
  border-radius: 999px;
  background: #f3e8ff99;
  filter: blur(64px);
  pointer-events: none;
}

.ab-blob-r { top: -48px; right: -48px; left: auto; width: 192px; height: 192px; background: #f3e8ff80; }

.ab-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }

.ab-head-lg { margin-bottom: 32px; }

.ab-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--p); box-shadow: 0 1px 2px #0000000d; }

.about .ab-panel-head h2 { color: #1c1917; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }

.ab-mono-muted {
  margin-left: auto;
  color: #a8a29e;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ab-line-wrap { position: relative; padding-top: 24px; }

.ab-beam {
  display: none;
  position: absolute;
  top: 35px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(to right, #a86fe6, #a86fe6, #d8b4fe);
}

.ab-years { position: relative; z-index: 10; display: grid; grid-template-columns: 1fr; gap: 32px; }

.ab-year { position: relative; display: flex; flex-direction: column; }

.ab-year-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }

.ab-node {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--p);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 6px -1px #0000001a;
}

.ab-node div { width: 8px; height: 8px; border-radius: 999px; background: var(--p); }

.ab-year-label { color: var(--p); font-size: 14px; font-weight: 700; letter-spacing: 0.05em; }

.about .ab-year-point {
  margin: 4px 0 12px;
  color: #1c1917;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}

.about .ab-year p {
  padding: 16px;
  border: 1px solid #e7e5e499;
  border-radius: 12px;
  background: #faf7f2;
  color: #57534e;
  font-size: 16px;
  line-height: 1.75;
}

.ab-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #f5f5f4;
  color: #a8a29e;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.ab-foot-wrap { flex-wrap: wrap; gap: 12px; padding-top: 24px; color: #78716c; }

.ab-foot-wrap > span:first-child { display: flex; align-items: center; gap: 8px; }

.ab-faint { color: #a8a29e; }

.ab-green { width: 6px; height: 6px; border-radius: 999px; background: #10b981; }

.about blockquote {
  position: relative;
  margin: 16px 0;
  padding-left: 20px;
  border-left: 2px solid var(--p);
  color: #2d2438;
  font-size: 18px;
  line-height: 1.625;
}

/* ===== 4 เป้าหมาย ===== */

.ab-goal-wrap { margin-bottom: 96px; }

.ab-goal {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid #a86fe633;
  border-radius: 24px;
  background: linear-gradient(to right, #fff, #faf6fc, #f5eff8);
  box-shadow: 0 10px 15px -3px #581c870d, 0 4px 6px -4px #581c870d;
}

.ab-watermark {
  position: absolute;
  right: -16px;
  bottom: -40px;
  color: #ede5f2;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -0.05em;
  user-select: none;
  pointer-events: none;
}

.ab-blob-g { top: -48px; left: -48px; width: 192px; height: 192px; }

.ab-goal-in { position: relative; z-index: 10; max-width: 960px; }

.ab-goal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }

.ab-green-lg { width: 10px; height: 10px; box-shadow: 0 1px 2px #0000000d; }

.about .ab-goal-head h2 { color: #1c1917; font-size: 24px; font-weight: 700; letter-spacing: -0.025em; }

.about .ab-goal-in p { color: #2d2438; font-size: 20px; line-height: 1.625; }

/* ===== 5 วัตถุประสงค์ ===== */

.ab-aims-wrap { margin-bottom: 96px; }

.ab-aims-head { margin-bottom: 40px; }

.ab-aims { display: grid; grid-template-columns: 1fr; gap: 24px; }

.ab-aim {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e7e5e4cc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px #0000000d;
  transition: all 0.3s;
}

.ab-aim:hover {
  border-color: #a86fe666;
  box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  transform: translateY(-4px);
}

.ab-aim > span {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #a86fe633;
  border-radius: 12px;
  background: #faf5ff;
  color: var(--p);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  box-shadow: 0 1px 2px #0000000d;
  transition: transform 0.15s;
}

.ab-aim:hover > span { transform: scale(1.05); }

.ab-aim > div { flex: 1; padding-top: 8px; }

.about .ab-aim p { color: #2d2438; font-size: 16px; line-height: 1.7; transition: color 0.15s; }

.ab-aim:hover p { color: var(--p); }

/* ===== 6 ลิงก์ ===== */

.ab-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 64px;
  border-top: 1px solid #e7e5e4;
  font-size: 14px;
}

.sheet .ab-links a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid #d6d3d1;
  border-radius: 999px;
  background: #fff;
  color: #44403c;
  text-decoration: none;
  box-shadow: 0 1px 2px #0000000d;
  transition: all 0.15s;
}

.sheet .ab-links a:hover {
  border-color: var(--p);
  color: var(--p);
  box-shadow: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
}

.ab-link-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--p); }

.ab-arrow { color: var(--p); font-size: 12px; transition: transform 0.15s; }

.ab-links a:hover .ab-arrow { transform: translate(2px, -2px); }

/* ===== จุดตัดหน้าจอตาม Tailwind: sm 640 md 768 lg 1024 ===== */

@media (min-width: 640px) {
  .ab-hero { padding: 16px; }

  .ab-hero-in { padding: 28px; }

  .about .ab-name { font-size: 36px; }

  .ab-lead { gap: 32px; }

  .ab-side { display: inline; }

  .ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ab-beam { display: block; }

  .ab-years { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ab-year-head { flex-direction: column; align-items: flex-start; }

  .ab-year-label { margin-top: 16px; }
}

@media (min-width: 768px) {
  .ab-hero-in { padding: 32px; }

  .about .ab-name { font-size: 48px; }

  .ab-lead p { font-size: 20px; }

  .about .ab-uni { font-size: 16px; }

  .about .ab-mission-head h2,
  .about .ab-aims-head h2,
  .about .ab-goal-head h2 { font-size: 30px; }

  .about .ab-year p { font-size: 16px; }

  .about blockquote { font-size: 20px; }

  .ab-goal { padding: 56px; }

  .ab-watermark { font-size: 128px; }

  .about .ab-goal-in p { font-size: 24px; }

  .ab-aims { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about .ab-aim p { font-size: 18px; }

  .ab-links { justify-content: flex-start; gap: 24px; }
}

@media (min-width: 1024px) {
  .about { padding-top: 64px; }

  .ab-hero { padding: 20px; }

  .ab-hero-in { padding: 36px; }

  .about .ab-name { font-size: 54px; }

  .ab-lead p { font-size: 21px; }

  .ab-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .ab-panel { padding: 40px; }

  .about .ab-goal-in p { font-size: 27px; }
}

/* ===== มือถือ: ฮีโร่พื้นทึบ ชื่อไม่ถูกตัด ป้ายอ่านง่าย (F05 F06 F09 F13) ===== */
@media (max-width: 768px) {
  /* กระจกฝ้าบนจอเล็กทำให้ตัวหนังสือกลืนกับรูปด้านหลัง */
  .ab-hero-in,
  .ab-num {
    border: 0;
    background: #fbf8fc;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* nowrap ทำให้ "สยามบรมราชกุมารี" ล้นออกนอกกล่องบนจอแคบ */
  .ab-name .ab-keep { white-space: normal; }

  .ab-lead p { line-height: 1.7; }

  .ab-pill,
  .ab-mono,
  .ab-meta,
  .ab-num { font-size: 14px; }

  .ab-meta { flex-wrap: wrap; }
}

@media (prefers-reduced-transparency: reduce) {
  .ab-hero-in {
    background: #faf7f2f0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-pulse { animation: none; }

  .ab-card,
  .ab-card:hover,
  .ab-aim,
  .ab-aim:hover { transform: none; transition: none; }

  .ab-card:hover .ab-shot img { transform: none; }
}
