/* Layout: พื้นดำสนิทแบบสนามตอนกลางคืน + ส้มเป็นสีเน้นสีเดียว · การ์ด/ปุ่มขอบมน ป้ายหัวข้อทรงแคปซูล */
/* ธีมเดียว (ดำ-ส้ม) ตั้งใจให้เหมือนกันทั้งโหมดสว่างและมืด */
:root {
  --pitch: #0b0b0c;        /* พื้นหลัก */
  --pitch-2: #151517;      /* พื้นการ์ด / แถบสลับ */
  --pitch-3: #1d1d20;
  --chalk: #f4f1ec;        /* ตัวอักษร */
  --muted: #a19d96;
  --flood: #f08c0f;        /* ส้ม */
  --flood-soft: rgba(240, 140, 15, 0.14);
  --on-flood: #160900;
  --line: rgba(255, 255, 255, 0.09);
  --live: #ff4d3d;
  --radius: 14px;
  --font-display: "Kanit", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pitch); color: var(--chalk); font: 400 1rem/1.7 var(--font-body); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.label { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--flood); outline-offset: 3px; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--pitch) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { font: italic 800 1.2rem/1 var(--font-display); text-decoration: none; letter-spacing: 0.01em; }
.brand .dot { color: var(--flood); }
.menu { display: flex; gap: 22px; align-items: center; }
.menu a { text-decoration: none; color: var(--muted); font-size: 0.95rem; padding-block: 4px; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--chalk); }
.menu a[aria-current="page"] { color: var(--chalk); border-color: var(--flood); }
.menu a.cta { color: var(--on-flood); background: var(--flood); padding: 8px 14px; border-radius: 6px; border: 0; font-weight: 600; }
.burger { display: none; background: none; border: 1px solid var(--line); color: var(--chalk); border-radius: 6px; padding: 8px 10px; font: 600 0.9rem/1 var(--font-body); cursor: pointer; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font: 600 0.98rem/1.1 var(--font-body); text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--chalk); cursor: pointer; }
.btn.primary { background: var(--flood); color: var(--on-flood); border-color: var(--flood); }
.btn.small { padding: 8px 12px; font-size: 0.88rem; }
.btn:hover { filter: brightness(1.08); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero svg.pitch { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--line); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: 72px 56px; }
.hero h1 { font-style: italic; font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.2rem); letter-spacing: -0.01em; }
.hero h1 em { color: var(--flood); }
.hero .lead { color: var(--muted); max-width: 46ch; font-size: 1.08rem; margin: 18px 0 28px; }
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-block: 48px 36px; display: grid; gap: 10px; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
.page-hero p.muted { max-width: 60ch; }

.sheet { border: 1px solid var(--line); background: var(--pitch-2); padding: 18px 20px; }
.sheet h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.sheet dt { font: 500 0.75rem/1.6 var(--font-mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.sheet dd { margin: 0; font-weight: 500; }

/* ---------- sections ---------- */
section { padding-block: 64px; border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; }
.sec-head p { color: var(--muted); max-width: 52ch; margin-top: 6px; }

/* ---------- gallery ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font: 500 0.88rem/1 var(--font-body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--chalk); color: var(--pitch); border-color: var(--chalk); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.grid.home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumb { position: relative; aspect-ratio: 3 / 2; max-width: 100%; background: var(--pitch-2); border: 0; padding: 0; overflow: hidden; cursor: zoom-in; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.thumb:hover img { transform: scale(1.04); }
.thumb.ph { border: 1px dashed var(--line); cursor: default; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.empty { border: 1px dashed var(--line); padding: 32px; text-align: center; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(4, 10, 7, 0.94); display: grid; grid-template-rows: auto 1fr auto; padding: calc(env(safe-area-inset-top, 0px) + 10px) max(10px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(10px, env(safe-area-inset-left, 0px)); color: #eef3ec; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lightbox .stage { display: grid; place-items: center; min-height: 0; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lightbox button { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #eef3ec; border-radius: 6px; padding: 10px 14px; font: 600 1rem/1 var(--font-body); cursor: pointer; }
.lightbox .nav { display: flex; justify-content: center; gap: 12px; }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.svc { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.svc + .svc { border-left: 1px solid var(--line); }
.svc h3 { font-size: 1.3rem; font-weight: 700; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.svc .price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.svc .price b { font: 700 1.1rem/1.2 var(--font-display); }
.svc.featured { background: var(--pitch-2); }
.svc.featured h3 { color: var(--flood); }

/* ---------- workflow ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.flow li { padding: 20px 18px 0 0; border-top: 2px solid var(--line); position: relative; min-width: 0; counter-increment: step; }
.flow li::before { content: counter(step); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--pitch); border: 2px solid var(--flood); color: var(--flood); font: 700 0.8rem/22px var(--font-mono); text-align: center; }
.flow h3 { font-size: 1.05rem; font-weight: 700; margin: 8px 0 4px; }
.flow p { color: var(--muted); font-size: 0.92rem; }

/* ---------- events / find photos ---------- */
.search { display: flex; gap: 10px; margin-bottom: 24px; }
.search input { flex: 1; min-width: 0; }
.event { border: 1px solid var(--line); margin-bottom: 18px; }
.event-head { padding: 18px 20px; background: var(--pitch-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.event-head h2 { font-size: 1.35rem; font-weight: 700; }
.match { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.match .round { font: 500 0.78rem/1.4 var(--font-mono); color: var(--flood); letter-spacing: 0.04em; }
.match .title { font-weight: 600; min-width: 0; }
.match .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.soon { font-size: 0.85rem; color: var(--muted); }

/* ---------- live ---------- */
.live { display: inline-flex; align-items: center; gap: 6px; font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; color: var(--live); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.video { display: grid; gap: 8px; min-width: 0; }
.video .frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { font-size: 1rem; font-weight: 600; }

/* ---------- contact ---------- */
.book { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; }
form.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form.booking .full { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--chalk); background: var(--pitch-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; width: 100%; }
textarea { min-height: 100px; resize: vertical; }
.req { color: var(--flood); }
.contacts { display: grid; gap: 10px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.contact .v { font-weight: 600; word-break: break-all; }
.contact .acts { display: flex; gap: 8px; flex-shrink: 0; }

footer { padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero .wrap, .book { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .svc + .svc { border-left: 0; border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li { padding: 20px 0 0; }
  .grid.home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match { grid-template-columns: 1fr; gap: 6px; }
  .match .acts { justify-content: flex-start; }
  .burger { display: inline-block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--pitch); border-bottom: 1px solid var(--line); padding: 6px max(16px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px)); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu a.cta { margin-top: 10px; text-align: center; }
}
@media (max-width: 520px) { form.booking { grid-template-columns: 1fr; } .grid.home { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .live::before { animation: none; } html { scroll-behavior: auto; } .thumb img { transition: none; } }
.rounds { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rounds li { font: 500 0.8rem/1 var(--font-mono); padding: 8px 10px; border: 1px solid var(--line); }
.rounds li:last-child { border-color: var(--flood); color: var(--flood); }
@media (max-width: 860px) { #contactsWrap { order: -1; } }
.ev-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; font-size: 0.95rem; }
.ev-meta dt { font: 500 0.72rem/1.9 var(--font-mono); color: var(--muted); letter-spacing: 0.08em; }
.ev-meta dd { margin: 0; }
.event-head { align-items: flex-start; }
.ev-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 6px; }
@media (max-width: 700px) { .ev-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== v2: photo-led home ===== */
:root { --photo-ink: #f6f8f4; }
.hero-photo { position: relative; overflow: hidden; display: grid; align-items: end; min-height: clamp(440px, 74vh, 720px); color: var(--photo-ink); background: #0b1a13; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 14, 9, 0.15) 0%, rgba(5, 14, 9, 0.35) 45%, rgba(5, 14, 9, 0.92) 100%), linear-gradient(90deg, rgba(5, 14, 9, 0.55) 0%, rgba(5, 14, 9, 0) 60%); }
.hero-photo .wrap { position: relative; z-index: 1; width: 100%; padding-block: 120px 56px; }
.hero-photo .label { color: rgba(246, 248, 244, 0.8); }
.hero-photo h1 { font-style: italic; font-weight: 800; font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35); }
.hero-photo h1 em { color: #f4b942; }
.hero-photo .lead { color: rgba(246, 248, 244, 0.86); max-width: 44ch; font-size: 1.1rem; margin: 16px 0 26px; }
.hero-photo .btn.primary { background: #f4b942; border-color: #f4b942; color: #17130a; }
.btn.ghost { color: var(--photo-ink); border-color: rgba(246, 248, 244, 0.45); background: rgba(5, 14, 9, 0.25); backdrop-filter: blur(4px); }

.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 8px; }
.mosaic .thumb { aspect-ratio: 3 / 2; }
.mosaic .thumb:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

.band { background: var(--pitch-2); }
.latest { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.latest-text h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; margin: 6px 0 8px; }
.latest-text .ctas { margin-top: 22px; }
.latest-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about-photo { margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-style: italic; font-weight: 800; margin: 6px 0 16px; }
.about-text p { max-width: 46ch; font-size: 1.05rem; }

.cta-band .wrap { display: grid; justify-items: center; text-align: center; gap: 10px; padding-block: 8px; }
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; }
.cta-band .ctas { justify-content: center; margin-top: 12px; }

@media (max-width: 860px) {
  .latest, .about { grid-template-columns: 1fr; gap: 24px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .mosaic .thumb:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .hero-photo .wrap { padding-block: 96px 40px; }
}

/* ===== v3: black & orange, rounded modern ===== */
header.top { background: rgba(11, 11, 12, 0.86); }
.brand .dot, .brand { color: var(--chalk); }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--flood); color: var(--on-flood); font: italic 800 0.95rem/1 var(--font-display); margin-right: 10px; vertical-align: middle; }
.menu a { border: 0; padding: 7px 12px; border-radius: 999px; }
.menu a[aria-current="page"] { background: var(--flood-soft); color: var(--flood); }
.menu a.cta, .menu a.cta[aria-current="page"] { background: var(--flood); color: var(--on-flood); border-radius: 10px; padding: 9px 16px; }
.btn { border-radius: 10px; }
.btn.primary { background: var(--flood); border-color: var(--flood); color: var(--on-flood); }
.btn:not(.primary):hover { border-color: var(--flood); color: var(--flood); filter: none; }

/* ป้ายหัวข้อทรงแคปซูล */
.sec-head .label, .latest-text > .label, .about-text > .label, .page-hero .label, .hero-photo .label, .cta-band .label {
  display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--flood-soft); color: var(--flood);
  font: 600 0.78rem/1.2 var(--font-body); letter-spacing: 0.02em; text-transform: none; }
.hero-photo .label { background: rgba(240, 140, 15, 0.18); color: #ffc46e; backdrop-filter: blur(6px); }
.sec-head h2, .page-hero h1 { margin-top: 10px; }

/* hero */
.hero-photo { background: #000; }
.hero-photo::after { background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.35) 45%, rgba(11,11,12,0.96) 100%), linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 62%); }
.hero-photo h1 em { color: var(--flood); }
.hero-photo .btn.primary { background: var(--flood); border-color: var(--flood); color: var(--on-flood); }
.features { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.feature { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(6px); }
.feature .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--flood); color: var(--on-flood); }
.feature .ic svg { width: 20px; height: 20px; }
.feature b { display: block; font: 600 0.95rem/1.2 var(--font-body); }
.feature span { font-size: 0.8rem; color: rgba(244,241,236,0.7); }

/* รูป / การ์ด ขอบมน */
.thumb, .about-photo, .video .frame { border-radius: 12px; }
.mosaic .thumb:first-child { border-radius: 16px; }
.sheet, .event, .contact, .empty { border-radius: var(--radius); }
.event { overflow: hidden; background: var(--pitch-2); }
.event-head { background: transparent; }
.ev-photos { padding: 0 12px 12px; gap: 8px; }
.chip[aria-pressed="true"] { background: var(--flood); color: var(--on-flood); border-color: var(--flood); }
.rounds li { border-radius: 999px; }
.rounds li:last-child { border-color: var(--flood); color: var(--flood); }

/* บริการ: การ์ดแยกพร้อมไอคอน */
.services { border: 0; gap: 16px; }
.svc { background: var(--pitch-2); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: border-color .2s, transform .2s; }
.svc + .svc { border-left: 1px solid var(--line); }
.svc:hover { border-color: rgba(240,140,15,0.5); transform: translateY(-2px); }
.svc .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--flood-soft); color: var(--flood); margin-bottom: 6px; }
.svc .ic svg { width: 26px; height: 26px; }
.svc.featured { background: linear-gradient(160deg, rgba(240,140,15,0.16), var(--pitch-2) 55%); border-color: rgba(240,140,15,0.45); }
.svc.featured .ic { background: var(--flood); color: var(--on-flood); }
.svc .label { color: var(--muted); }

.band { background: var(--pitch-2); }
.cta-band { background: radial-gradient(60% 120% at 50% 0%, rgba(240,140,15,0.18), transparent 70%), var(--pitch-2); }

input, select, textarea { border-radius: 10px; background: var(--pitch-3); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--flood); outline-offset: 0; border-color: transparent; }
.req { color: var(--flood); }

/* footer หลายคอลัมน์ */
footer.site-foot { padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h3 { font: 600 1rem/1.3 var(--font-body); color: var(--chalk); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--flood); }
.foot-brand p { margin-top: 12px; max-width: 32ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--pitch-3); color: var(--chalk); }
.socials a:hover { background: var(--flood); color: var(--on-flood); }
.socials svg { width: 18px; height: 18px; }
.foot-ic { display: flex; gap: 10px; align-items: flex-start; }
.foot-ic svg { width: 18px; height: 18px; color: var(--flood); flex-shrink: 0; margin-top: 3px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; font-size: 0.85rem; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .menu a, .menu a[aria-current="page"] { border-radius: 10px; }
}
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
footer.site-foot .wrap { display: block; }

/* ===== v4: โลโก้จริง ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-style: normal; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; flex-shrink: 0; }
.brand-word { display: grid; line-height: 1; }
.brand-word .n { font: 600 1.18rem/1 var(--font-display); letter-spacing: 0.03em; color: var(--chalk); }
.brand-word .n i { font-style: normal; font-weight: 300; }
.brand-word .s { font: 500 0.56rem/1 var(--font-display); letter-spacing: 0.46em; color: var(--flood); margin-top: 5px; }
.foot-brand .brand-logo { width: 46px; height: 46px; }
@media (max-width: 400px) { .brand-word .n { font-size: 1.02rem; } .brand-logo { width: 32px; height: 32px; } }
@media (max-width: 520px) {
  .features { gap: 8px; margin-top: 22px; }
  .feature { padding: 6px 12px 6px 6px; gap: 8px; }
  .feature .ic { width: 28px; height: 28px; border-radius: 8px; }
  .feature .ic svg { width: 16px; height: 16px; }
  .feature b { font-size: 0.85rem; }
  .feature span { display: none; }
}

/* ===== v5: คลิป YouTube ===== */
.vcard { display: grid; gap: 8px; text-decoration: none; color: var(--chalk); min-width: 0; }
.vthumb { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: var(--pitch-3); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.vcard:hover .vthumb img { transform: scale(1.04); }
.vthumb .play { position: absolute; left: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--flood); color: var(--on-flood); font-size: 0.8rem; padding-left: 2px; }
.vt { font-size: 0.92rem; line-height: 1.4; }
.vcard:hover .vt { color: var(--flood); }
.ev-photos.as-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.latest-photos.as-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ev-clips { border-top: 1px solid var(--line); padding: 0 20px; }
.ev-clips summary { cursor: pointer; padding: 14px 0; color: var(--flood); font-weight: 600; list-style: none; }
.ev-clips summary::-webkit-details-marker { display: none; }
.ev-clips summary::after { content: " ▾"; }
.ev-clips[open] summary::after { content: " ▴"; }
.clip-list { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; }
.clip-list a { font-size: 0.85rem; padding: 7px 12px; border-radius: 999px; background: var(--pitch-3); color: var(--chalk); text-decoration: none; }
.clip-list a:hover { background: var(--flood); color: var(--on-flood); }
.live-ev { padding-block: 8px 36px; border: 0; }
.live-ev-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.live-ev-head h2 { font-size: 1.4rem; font-weight: 700; }
.videos { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
@media (max-width: 700px) { .ev-photos.as-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.live-latest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sec-head .label .live { font: inherit; color: inherit; margin-right: 4px; }
@media (max-width: 860px) { .live-latest { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- archive list (works) ---- */
.works-wrap{margin-top:56px}
.works-wrap .sec-head h2 .pill{font-size:.5em;vertical-align:middle;margin-left:8px;padding:4px 12px;border-radius:999px;background:var(--flood);color:#111;font-weight:600}
.wk-month{margin-top:26px}
.wk-month h3{font-size:1rem;color:var(--flood);margin:0 0 10px;letter-spacing:.02em}
.wk-list{list-style:none;margin:0;padding:0;border:1px solid rgba(255,255,255,.08);border-radius:14px;overflow:hidden}
.wk-list li{display:grid;grid-template-columns:150px 1fr auto;gap:14px;align-items:center;padding:13px 18px;border-top:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.02)}
.wk-list li:first-child{border-top:0}
.wk-list li:hover{background:rgba(240,140,15,.06)}
.wk-date{font-family:"JetBrains Mono",monospace;font-size:.85rem;opacity:.75}
.wk-name b{color:#fff;font-weight:600}
.wk-fb{color:var(--flood);text-decoration:none;font-weight:600;white-space:nowrap;font-size:.92rem}
.wk-fb:hover{text-decoration:underline}
@media (max-width:620px){.wk-list li{grid-template-columns:1fr auto;gap:4px 12px;padding:12px 14px}.wk-date{grid-column:1;font-size:.78rem}.wk-name{grid-column:1;grid-row:2}.wk-fb{grid-row:1/3;grid-column:2}}

/* works rows with cover */
.wk-list li{grid-template-columns:132px 1fr auto;gap:18px;padding:10px 18px 10px 10px}
.wk-img{display:block;width:132px;aspect-ratio:3/2;border-radius:10px;overflow:hidden;background:rgba(255,255,255,.05)}
.wk-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.wk-list li:hover .wk-img img{transform:scale(1.05)}
.wk-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.wk-text .wk-name{font-size:1.05rem}
@media (max-width:620px){.wk-list li{grid-template-columns:104px 1fr auto;gap:12px;padding:8px 12px 8px 8px}.wk-img{width:104px}.wk-date,.wk-name,.wk-fb{grid-column:auto;grid-row:auto}.wk-text .wk-name{font-size:.95rem}}
@media (min-width:621px){.wk-list li{grid-template-columns:192px 1fr auto}.wk-img{width:192px}}
/* hero: shift photo right on wide screens so text sits on a calmer area */
@media (min-width:861px){

  .hero-photo::after{background:linear-gradient(180deg,rgba(0,0,0,.1) 0%,rgba(0,0,0,.3) 45%,rgba(11,11,12,.96) 100%),linear-gradient(90deg,rgba(0,0,0,.78) 0%,rgba(0,0,0,.45) 38%,rgba(0,0,0,0) 66%)}
}

button.wk-img{border:0;padding:0;cursor:zoom-in;position:relative;font:inherit}
.wk-n{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.7);color:#fff;font-size:.72rem;padding:2px 7px;border-radius:999px}

/* ============ แอนิเมชัน ============ */
.js-anim:not(.no-anim) .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--d,0ms); }
.js-anim:not(.no-anim) .rv.in { opacity: 1; transform: none; }
.js-anim:not(.no-anim) .mosaic .thumb.rv, .js-anim:not(.no-anim) .grid .thumb.rv, .js-anim:not(.no-anim) .latest-photos .thumb.rv { transform: translateY(24px) scale(.96); }
.js-anim:not(.no-anim) .thumb.rv.in { transform: none; }
.js-anim:not(.no-anim) .about-photo.rv { transform: translateX(-36px); }
.js-anim:not(.no-anim) .about-text.rv { transform: translateX(36px); }
.js-anim:not(.no-anim) .about-photo.rv.in, .js-anim:not(.no-anim) .about-text.rv.in { transform: none; }
/* hero: เข้าทีละชิ้นตอนโหลด + รูปขยับช้า ๆ */
.hero-photo img { transform: scale(1.08); will-change: transform; transition: transform .1s linear; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo .wrap > * { animation: heroUp .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-photo .wrap > :nth-child(1) { animation-delay: .1s; }
  .hero-photo .wrap > :nth-child(2) { animation-delay: .22s; }
  .hero-photo .wrap > :nth-child(3) { animation-delay: .36s; }
  .hero-photo .wrap > :nth-child(4) { animation-delay: .48s; }
  .hero-photo .wrap > :nth-child(5) { animation-delay: .6s; }
  .hero-photo h1 em { background: linear-gradient(90deg, var(--flood), #ffc46e, var(--flood)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
  @keyframes shine { to { background-position: -200% 0; } }
  .feature .ic { transition: transform .3s; }
  .feature:hover .ic { transform: rotate(-8deg) scale(1.1); }
}
/* header โปร่ง -> ทึบตอนเลื่อน */
header.top { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
header.top.scrolled { background: rgba(11,11,12,.82) !important; backdrop-filter: blur(14px); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
/* hover ลูกเล่น */
.svc { transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s; }
.svc:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(240,140,15,.12); border-color: rgba(240,140,15,.5); }
.thumb img, .vthumb img, .wk-img img { transition: transform .5s cubic-bezier(.2,.7,.2,1), filter .4s; }
.thumb:hover img, .vcard:hover .vthumb img { transform: scale(1.06); }
.btn { transition: transform .2s, box-shadow .2s, background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(240,140,15,.35); }
.wk-list li { transition: background-color .25s, transform .25s; }
.wk-list li:hover { transform: translateX(4px); }
/* ลิงก์แอดมินซ่อน */
.foot-bottom { position: relative; }
.admin-link { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: currentColor; opacity: .18; transition: opacity .2s, color .2s; }
.admin-link svg { width: 100%; height: 100%; }
.admin-link:hover, .admin-link:focus-visible { opacity: 1; color: var(--flood); }
@media (prefers-reduced-motion: reduce) { .hero-photo img { transform: none !important; } }
.js-anim:not(.no-anim) .wk-list li.rv.in:hover { transform: translateX(4px); }
.js-anim:not(.no-anim) .svc.rv.in:hover { transform: translateY(-6px); }
