/* Shared section 2 (horizontal rail) + section 3 (door reveal + info). Uses the page's --bg --text --muted --accent --display. */

/* ---------- rail: vertical scroll drives a horizontal track ---------- */
.rail { height: 340vh; position: relative; }
.rail-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.rail-head { position: absolute; z-index: 3; left: 0; right: 0; top: 4.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0 clamp(1.25rem, 6vw, 6rem); }
.rail-count { font-family: var(--display); color: var(--muted); font-size: .95rem; white-space: nowrap; }
.rail-count b { color: var(--text); font-size: 1.6rem; }
.rail-track { display: flex; height: 100%; will-change: transform; }
.slide { position: relative; width: 100vw; height: 100%; flex: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: 1rem; padding: 7rem 1.25rem 3.25rem; overflow: hidden;
  background: radial-gradient(60% 55% at 50% 32%, color-mix(in srgb, var(--glow, var(--accent)) 45%, transparent), transparent 72%), var(--bg); }
.shot { justify-self: center; align-self: center; height: 100%; max-height: 26rem; min-height: 0; aspect-ratio: 3 / 4; border-radius: 1.5rem; overflow: hidden; will-change: transform; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.copy { position: relative; text-align: center; will-change: transform, opacity; }
.big-num { position: absolute; z-index: -1; left: 50%; top: -1.6rem; transform: translateX(-50%); font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 26vw, 8rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--glow, var(--accent)) 70%, transparent); opacity: .8; pointer-events: none; }
.tag { display: inline-block; font-size: .8rem; letter-spacing: .06em; padding: .2rem .8rem; border-radius: 99px; background: color-mix(in srgb, var(--glow, var(--accent)) 22%, transparent); color: var(--glow, var(--accent)); }
.slide h3 { font-size: clamp(1.8rem, 7vw, 4.6rem); line-height: 1.2; margin-top: .4rem; }
.desc { color: var(--muted); max-width: 30rem; margin: .5rem auto 0; font-size: .98rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .9rem; }
.chips li { font-size: .8rem; padding: .25rem .75rem; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); border-radius: 99px; }
.slide .price { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6.5vw, 4.2rem); line-height: 1.1; margin-top: .9rem; }
.slide .price small { font-size: .38em; color: var(--muted); font-weight: 500; margin-left: .3em; }
.rail-dots { position: absolute; z-index: 3; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .5rem; }
.rail-dots span { width: .5rem; height: .5rem; border-radius: 99px; background: color-mix(in srgb, var(--text) 25%, transparent); transition: width .3s, background .3s; }
.rail-dots span.on { width: 1.75rem; background: var(--accent); }
@media (max-width: 899px) and (max-height: 700px) { .chips { display: none; } }
@media (max-width: 899px) { .desc { font-size: .9rem; } }
@media (min-width: 900px) {
  .slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; align-items: center; align-content: center; gap: 4vw; padding: 6rem clamp(2rem, 8vw, 8rem) 4rem;
    background: radial-gradient(45% 60% at 72% 50%, color-mix(in srgb, var(--glow, var(--accent)) 40%, transparent), transparent 72%), var(--bg); }
  .shot { order: 2; height: min(72vh, 44rem); max-height: none; }
  .copy { text-align: left; }
  .big-num { left: -1rem; top: -6rem; transform: none; font-size: clamp(6rem, 14vw, 15rem); }
  .desc { margin-left: 0; font-size: 1.1rem; }
  .chips { justify-content: flex-start; }
}

/* ---------- door: a small rounded window opens to full screen ---------- */
.door { height: 230vh; position: relative; }
.door-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); display: grid; place-items: center; }
.door-img { position: absolute; inset: 0; will-change: clip-path; clip-path: inset(22% 30% round 2rem); }
.door-img img { width: 100%; height: 100%; object-fit: cover; display: block; will-change: transform; transform: scale(1.25); }
.door-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, color-mix(in srgb, var(--bg) 88%, transparent)), radial-gradient(ellipse at center, transparent 50%, color-mix(in srgb, var(--bg) 50%, transparent)); }
.door-copy { position: relative; z-index: 2; align-self: end; text-align: center; padding: 0 1.25rem 12vh; width: min(44rem, 100%); opacity: 0; will-change: opacity, transform; }
.door-copy h2 { font-size: clamp(2.3rem, 8vw, 5.6rem); margin-top: .6rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; padding: .35rem 1rem; border-radius: 99px; background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); backdrop-filter: blur(6px); }
.status i { width: .55rem; height: .55rem; border-radius: 99px; background: #4ade80; animation: pulse 1.8s infinite; }
.status.closed i { background: #f87171; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 .6rem rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
@media (max-width: 899px) { .door-img { clip-path: inset(25% 14% round 1.5rem); } }

.info { max-width: 76rem; margin: 0 auto; padding: 5rem clamp(1.25rem, 5vw, 4rem) 6rem; }
.info-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panel { background: linear-gradient(160deg, color-mix(in srgb, var(--text) 6%, var(--bg)), var(--bg)); border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); border-radius: 1.5rem; padding: 1.75rem; }
.panel .kicker { margin-bottom: 1rem; }
.panel h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.25; }
.hours, .list { list-style: none; }
.hours li, .list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1rem; padding: .45rem .75rem; border-radius: .6rem; color: var(--muted); font-size: .95rem; }
.hours li span:first-child, .list li span:first-child { white-space: nowrap; }
.hours li span:last-child, .list li span:last-child { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.list li span:last-child { color: var(--text); }
.hours li.today { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--text); font-weight: 600; }
.hours li.today span:first-child::after { content: "วันนี้"; display: inline-block; margin-left: .4rem; padding: 0 .45rem; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .7em; vertical-align: .15em; }
.map { width: 100%; height: auto; border-radius: 1rem; display: block; }
.ping { transform-box: fill-box; transform-origin: center; animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
.addr { margin-top: 1rem; font-family: var(--display); font-size: 1.15rem; line-height: 1.5; }
.addr small { font-family: var(--sans); color: var(--muted); font-size: .75rem; }
.near { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.cta-panel { display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(90% 80% at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--text) 6%, var(--bg)), var(--bg)); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn.line { background: #06c755; color: #fff; box-shadow: 0 8px 30px rgba(6,199,85,.3); }
.info-grid .reveal:nth-child(2) { transition-delay: .1s; }
.info-grid .reveal:nth-child(3) { transition-delay: .2s; }
@media (max-width: 899px) { .panel { padding: 1.25rem; } .hours li, .list li { padding: .4rem .6rem; } }

@media (prefers-reduced-motion: reduce) {
  .rail { height: auto; } .rail-stage { position: static; height: auto; }
  .rail-track { flex-direction: column; transform: none !important; } .slide { width: 100%; min-height: 100svh; } .rail-dots { display: none; }
  .door { height: auto; } .door-stage { position: relative; min-height: 100svh; }
  .door-img { clip-path: none !important; } .door-copy { opacity: 1 !important; }
  .status i, .ping { animation: none; }
}
/* phones: keep the photo big — name + price only (the full copy is on desktop) */
@media (max-width: 899px) {
  .slide .desc, .slide .chips { display: none; }
  .slide { grid-template-rows: minmax(34svh, 1fr) auto; }
  .shot { min-height: 34svh; }
}
@media (max-width: 899px) { .slide { padding-bottom: 4.2rem; grid-template-rows: minmax(30svh, 1fr) auto; } .shot { min-height: 30svh; } }
