/* หน้ารวมบทความ /blog/ แบบ N "ไฟเปิดทีละร้าน" (เจ้าของอนุมัติ 13 ต.ค. 2569) · khun-frame rules (DESIGN.md, thai-type.md)
   โหลดเฉพาะหน้านี้ (blog/index.html) แทน blog.css ซึ่งยังเป็นของหน้าบทความ · markup มาจาก scripts/blog-index.js
   one night turning into morning: the featured night photo full-bleed with the H1 in its dark, every band opens with a
   full-bleed real photo that lights up once, text always sits on cream under the pictures */

:root{
  --cream:#F8F5EE;
  --cream-deep:#F0EADD;
  --white:#FFFFFF;
  --ink:#1A1A2E;
  --olive:#6B7B56;
  --olive-text:#515E40;
  --gold:#D4AF37;
  --gold-hover:#CBA733;
  --gold-active:#B8952C;
  --gold-text:#A9831E;
  --gold-soft:#F0E6CC;
  --night:#0B0B13;
  --rule:rgba(26,26,46,.12);
  --ease:cubic-bezier(.16,1,.3,1);
  --clay:cubic-bezier(.34,1.56,.64,1);
  --radius:24px;
  --gap:clamp(40px,5vw,72px);
  --thumb:200px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:96px}
body{font-family:Prompt,sans-serif;background:var(--cream);color:var(--ink);font-size:1rem;line-height:1.68;-webkit-font-smoothing:antialiased;overflow-x:clip}
img{display:block;max-width:100%}
a{color:inherit}
button{font-family:inherit}
ul{list-style:none}
figure{margin:0}
.nw{white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--ink);outline-offset:4px;border-radius:4px}

.wrap{width:min(1200px,100% - 10vw);margin-inline:auto}
/* a directory jump lands with half the opener photo above the band title, so the title and its gold underline are on screen */
.latest{scroll-margin-top:0}
.band{scroll-margin-top:calc(96px - min(100vw * 9 / 21, 72svh) / 2)}

/* ============ NAV (homepage capsule, cream logo, flat gold) ============ */
.nav{
  position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:100;
  width:min(1150px,95vw);
  padding:10px 12px 10px 26px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  background:var(--cream);
  border:1px solid rgba(26,26,46,.08);
  border-radius:99px;
  box-shadow:0 14px 44px rgba(26,26,46,.10);
}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
  .nav{
    /* frame-allow: W14 แถบเมนูติดบนแบบหน้าแรก มีพื้นครีมทึบสำรองเมื่อเบราว์เซอร์ไม่รองรับ ตาม SPEC 12 ต.ค. 2569 */
    background:rgba(248,245,238,.92);
    -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);
  }
}
.nav-logo{display:flex;align-items:center;min-height:44px;flex-shrink:0}
.nav-logo img{height:34px;width:auto}
.nav-links{display:flex;gap:28px;align-items:center;font-weight:500;font-size:.92rem}
.nav-links a{position:relative;color:var(--ink);text-decoration:none;padding:10px 0}
.nav-links a::after,.nav-login::after{content:'';position:absolute;left:0;bottom:4px;width:0;height:2px;background:var(--gold-text);transition:width .3s var(--ease)}
.nav-links a:hover::after,.nav-login:hover::after,.nav-links a[aria-current="page"]::after{width:100%}
.nav-links a[aria-current="page"]{font-weight:600}
.nav-sheet-login{display:none}
.nav-cta{display:flex;align-items:center;gap:14px}
.nav-login{position:relative;font-size:.88rem;font-weight:500;color:var(--ink);text-decoration:none;white-space:nowrap;padding:12px 0}
.nav-price{display:none;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:0 12px;border-radius:99px;font-size:1rem;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap}
.nav-price:active{background:var(--gold-soft)}
.nav-burger{display:none;width:44px;height:44px;border:none;background:transparent;cursor:pointer;border-radius:12px;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex-shrink:0}
.nav-burger span{display:block;width:20px;height:2.4px;border-radius:2px;background:var(--ink);transition:transform .35s var(--clay),opacity .25s}
.nav.menu-open .nav-burger span:nth-child(1){transform:translateY(7.4px) rotate(45deg)}
.nav.menu-open .nav-burger span:nth-child(2){opacity:0}
.nav.menu-open .nav-burger span:nth-child(3){transform:translateY(-7.4px) rotate(-45deg)}
html:not(.js) .nav-burger{display:none !important}

.btn-gold{display:inline-flex;align-items:center;justify-content:center;gap:.3em;min-height:44px;padding:13px 28px;border-radius:99px;background:var(--gold);color:var(--ink);font-weight:600;font-size:.95rem;line-height:1.3;text-decoration:none;white-space:nowrap;transition:background-color .08s linear}
.btn-gold:hover{background:var(--gold-hover)}
.btn-gold:active{background:var(--gold-active);transition-duration:0s}
.nav .btn-gold{padding:10px 22px;font-size:.88rem;transition:background-color .08s linear,opacity .2s,visibility .2s}
.nav.cta-off .btn-gold{visibility:hidden;opacity:0}

/* ============ SHARED TYPE ============ */
.meta{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.875rem;line-height:1.6;font-weight:500;color:var(--olive-text)}
.credit{display:flex;flex-wrap:wrap;gap:0 12px;font-size:.8125rem;line-height:1.6;font-weight:400;color:var(--olive-text)}
.sec-h2{font-size:clamp(1.9rem,3.2vw,2.75rem);font-weight:800;line-height:1.3;letter-spacing:-.5px;text-wrap:balance}

/* titles: headline + deck on their own lines, both ink; the " · " stays in the DOM, visually hidden */
.t{color:var(--ink);text-decoration:none}
.t-head,.t-deck{display:block;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.t-head{font-weight:700;text-wrap:balance}
.t-deck{font-weight:500;text-wrap:balance}
a.t:hover .t-head,a.t:hover .t-deck,.row-a:hover .t-head,.row-a:hover .t-deck,
.row:has(.thumb-link:hover) .t-head,.row:has(.thumb-link:hover) .t-deck,
.lead:has(.img-link:hover) .t-head,.lead:has(.img-link:hover) .t-deck,
.mid:has(.img-link:hover) .t-head,.mid:has(.img-link:hover) .t-deck,
.featured:has(.t:hover) .t-head{text-decoration-color:var(--gold-text)}
.hero:has(.img-link:hover) .featured .t-head,.hero:has(.img-link:hover) .featured .t-deck{text-decoration-color:var(--gold-text)}

/* image frames: pictures bleed to their frame, no box, no shadow */
.img-link{display:block;border-radius:var(--radius)}
.frame{position:relative;display:block;aspect-ratio:16/10;border-radius:var(--radius);overflow:hidden;background:var(--cream-deep)}
.frame img,.thumb img,.opener-frame img{width:100%;height:100%;object-fit:cover;object-position:var(--focus,50% 50%)}

/* ============ HERO: the night photo, full-bleed, H1 in its dark ============ */
.hero{padding-top:84px}
.crumbs-row{min-height:48px;display:flex;align-items:center}
.crumbs{font-size:.875rem;font-weight:500;line-height:1.5;color:var(--olive-text)}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.crumbs a:hover{text-decoration-color:var(--gold-text)}
.hero-stage{position:relative;height:max(min(86svh,860px),min(100vw / 2.2,86svh));overflow:hidden;background:var(--night)}
.hero-stage .img-link{position:absolute;inset:0;border-radius:0}
/* measured (tools/contrast.py): 58% keeps the face whole and the H1 in the black for every stage from 1.6:1 to 2.2:1;
   very wide screens get a taller stage (100vw / 2.2) instead of a thinner slice */
.hero-pic img{width:100%;height:100%;object-fit:cover;object-position:50% 58%}
@media (min-width:861px) and (max-aspect-ratio:1/1){.hero-pic img{object-position:50% 50%}}
.hero-h1-box{position:absolute;left:0;right:0;top:0;pointer-events:none;padding-top:clamp(64px,9%,110px)}
.h1{font-size:clamp(2.5rem,5.6vw,5rem);font-weight:800;line-height:1.25;letter-spacing:-.8px;color:var(--cream)}
.h1 span{display:block;white-space:nowrap}
.credit-hero{justify-content:flex-end;margin-top:12px}
/* the caption block hangs right under its photo; intro and featured share one 7/5 grid so the sub sits over the
   title and the trust line over the standfirst; the featured title is ~1.6x the next title on the page */
.hero-cap{padding:clamp(28px,3vw,40px) 0 clamp(104px,10vw,144px)}
.intro{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap);align-items:end}
.sub{font-size:clamp(1.15rem,1.6vw,1.45rem);font-weight:500;line-height:1.6;max-width:22em}
.trust{font-size:1rem;font-weight:500;line-height:1.65;color:var(--olive-text);max-width:26em;padding-bottom:.2em}
.featured{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap);align-items:start;margin-top:clamp(32px,3.5vw,48px)}
.featured-title{font-size:clamp(1.65rem,3.6vw,3.25rem);line-height:1.3;letter-spacing:-.5px}
.featured-title .t-deck{font-size:.68em;line-height:1.45;margin-top:.35em;letter-spacing:0}
.standfirst{font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.7;max-width:26em}
.featured .meta{margin-top:16px}

/* ============ DIRECTORY ============ */
.dir{background:var(--cream-deep);padding:clamp(88px,9vw,128px) 0}
.dir-grid{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--gap);align-items:start}
.dir-h2{max-width:8em}
.dir-list{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:48px}
.dir-list a{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:88px;height:100%;padding:18px 0;border-top:1px solid var(--rule);color:var(--ink);text-decoration:none}
.dir-list li:nth-last-child(-n+2) a{border-bottom:1px solid var(--rule)}
.dir-name{font-size:1.25rem;font-weight:700;line-height:1.45;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.dir-list a:hover .dir-name{text-decoration-color:var(--gold-text)}
.dir-count{flex-shrink:0;font-size:.95rem;font-weight:500;color:var(--olive-text);white-space:nowrap}

/* ============ LATEST: two rows left, one photo right (the slip band below mirrors it: photo left) ============ */
.latest{padding:clamp(96px,10vw,144px) 0 clamp(104px,10vw,152px)}
.latest-spread{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:var(--gap);margin-top:clamp(36px,4vw,56px);align-items:start}
.latest-big{grid-column:2;grid-row:1}
.latest-rows{grid-column:1;grid-row:1;align-self:start}
.latest-rows .row:first-child{border-top:none;padding-top:0}
.latest-rows .row .t{font-size:1.3rem;line-height:1.4}
.latest .meta span:first-child{color:var(--ink);font-weight:600}

/* ============ LEAD / ROWS / MIDS ============ */
.lead-fig .credit,.mid-fig .credit{margin-top:10px}
.lead-text{margin-top:22px}
.lead-title{font-size:clamp(1.45rem,2.2vw,2.1rem);line-height:1.32;letter-spacing:-.3px}
.lead-title .t-deck{font-size:.7em;line-height:1.5;margin-top:.3em;letter-spacing:0}
.lead .meta{margin-top:14px}
/* a lead without a photo: the title carries it, at the top of its column */
.lead-text-only .lead-text{margin-top:0}

.rows{display:grid;grid-template-columns:minmax(0,1fr);row-gap:0}
.row{display:grid;grid-template-columns:var(--thumb) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:24px;align-items:start;padding:24px 0;border-top:1px solid var(--rule)}
.row.no-thumb{grid-template-columns:minmax(0,1fr)}
.thumb-link{grid-column:1;grid-row:1 / span 2;display:block;border-radius:14px}
.row-a{grid-column:2;grid-row:1;display:block;color:var(--ink);text-decoration:none;border-radius:6px}
.row.no-thumb .row-a{grid-column:1}
.thumb{display:block;aspect-ratio:3/2;border-radius:14px;overflow:hidden;background:var(--cream-deep)}
.row .t{display:block;font-size:1.125rem;line-height:1.45}
.row .t-deck{font-size:.94em;margin-top:.15em}
.row .meta{display:flex;margin-top:8px}
.credit-row{grid-column:2;grid-row:2;margin-top:6px}
.rows-side{align-content:start}
.rows-side .row:first-child{border-top:none;padding-top:0}
.rows-2{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--gap);margin-top:clamp(56px,5vw,80px)}
.rows-3{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);column-gap:48px;margin-top:clamp(56px,5vw,80px)}
/* ai: a calm three column index of titles (phones get the thumb rows back) */
.rows-3 .row{grid-template-columns:minmax(0,1fr)}
.rows-3 .row-a{grid-column:1}
.rows-3 .thumb-link,.rows-3 .credit-row{display:none}

/* ============ BANDS ============ */
.band{padding-bottom:clamp(112px,11vw,168px)}
.band-alt{background:var(--cream-deep)}
.opener-frame{height:min(calc(100vw * 9 / 21),72svh);overflow:hidden;background:var(--night)}
.opener-frame img{object-position:var(--focus-w,var(--focus,50% 50%))}
.credit-opener{justify-content:flex-end;margin-top:12px}
.band-head{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap);align-items:end;margin-top:clamp(48px,5vw,80px);margin-bottom:clamp(56px,6vw,96px)}
.band-head.no-opener{margin-top:0;padding-top:clamp(112px,11vw,168px)}
/* cost: the head stacks (H2 across, poster, then line and count), the one band whose head breaks the six-band beat */
.band-head.head-stack{display:block;margin-bottom:clamp(20px,2.4vw,36px)}
.aside-under{padding-bottom:0;margin-top:clamp(28px,3vw,40px);margin-bottom:clamp(64px,6.5vw,104px)}
.band-h2{font-size:clamp(2.25rem,4.6vw,4.25rem);font-weight:800;line-height:1.3;letter-spacing:-1px;text-wrap:balance}
.band-aside{padding-bottom:.55rem}
.band-line{font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.65;max-width:24em}
.band-count{margin-top:10px;font-size:.95rem;font-weight:600;color:var(--olive-text)}
.band-h2 .mark{padding-bottom:.04em;background:linear-gradient(var(--gold),var(--gold)) no-repeat 0 100% / 0 3px;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.band.is-marked .band-h2 .mark,.band:target .band-h2 .mark{background-size:100% 3px}

/* side spread: lead 7 + rows 5 (or mirrored) */
.spread{display:grid;column-gap:var(--gap);align-items:start}
.spread-left{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.spread-right{grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.spread-right .lead{grid-column:2;grid-row:1}
.spread-right .rows-side{grid-column:1;grid-row:1}
.spread .rows-side{--thumb:168px}
/* the text-only lead in a mirrored spread sits on a quiet column */
.spread-right .lead-text-only{padding-top:4px}

/* evidence crop (money lead, owner decision 13 ต.ค. 2569): its own 3:2 window above 640px, so the page heading and both
   bank cards stay whole (16:10 cut them: content rows 39 to 783 of 800); phones use the 4:3 lead frame, which only
   trims the empty grey at the sides (content columns 210 to 975 of 1200). Light UI: a 1px inside hairline (pE) */
@media (min-width:641px){.frame.frame-crop{aspect-ratio:3/2}}
.frame.is-light::after,.thumb.is-light::after{content:'';position:absolute;inset:0;border:1px solid var(--rule);border-radius:inherit;pointer-events:none}
.thumb.is-light{position:relative}

/* wide spread: the lead photo across the whole container, title under it in two columns */
.lead-wide .frame{aspect-ratio:16/9}
.lead-wide .lead-text{max-width:46rem;margin-top:28px}

/* beside: photo 7 + title 5, title at the bottom of the photo */
.spread-beside .lead:not(.lead-text-only){display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap);align-items:end}
.spread-beside .lead:not(.lead-text-only) .lead-text{margin-top:0;padding-bottom:40px}
.spread-beside .lead-text-only{max-width:52rem}

/* line band: two 3:2 pictures side by side */
.mids{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--gap);margin-top:clamp(64px,6vw,96px)}
.mid .frame{aspect-ratio:3/2}
.mid-title{margin-top:20px;font-size:clamp(1.25rem,1.7vw,1.55rem);line-height:1.38}
.mid-title .t-deck{font-size:.78em;margin-top:.2em}
.mid .meta{margin-top:10px}

/* bank wall: typographic, 10 cells 5 by 2, no boxes */
.shelf{margin-top:clamp(88px,8vw,128px)}
.shelf-title{font-size:clamp(1.5rem,2.3vw,2.1rem);font-weight:700;line-height:1.35}
.shelf-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));column-gap:32px;margin-top:28px}
.shelf-grid li{display:flex}
.shelf-grid a{display:flex;flex-direction:column;gap:4px;width:100%;min-height:104px;padding:22px 0;border-top:1px solid var(--rule);color:var(--ink);text-decoration:none}
.shelf-name{font-size:1.35rem;font-weight:700;line-height:1.35;text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.shelf-grid a:hover .shelf-name{text-decoration-color:var(--gold-text)}
.shelf-app{font-size:.95rem;font-weight:500;line-height:1.45;color:var(--olive-text)}

/* posters: static display numbers across the container */
.poster{display:flex;flex-wrap:wrap;align-items:flex-end;gap:16px clamp(40px,5vw,80px)}
.band .poster{margin-top:clamp(88px,8vw,128px)}
.b-cost .poster{margin-top:0;margin-bottom:0}
.poster-num{font-weight:800;line-height:1.15;letter-spacing:-2px}
.poster-tel .poster-num{font-size:clamp(6rem,15vw,12.5rem);line-height:1.05}
.num-tel{display:inline-block;padding-block:.08em;color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:6px;text-underline-offset:.14em;transition:text-decoration-color .2s}
.num-tel:hover{text-decoration-color:var(--gold-text)}
.poster-cost .poster-num{font-size:clamp(2.75rem,6.6vw,6.25rem)}
.poster-cost .poster-num .nw{display:inline-block}
.poster-unit{font-size:clamp(1.3rem,2vw,1.75rem);font-weight:700;line-height:1.4}
.poster-cap{margin-top:8px;font-size:clamp(1rem,1.2vw,1.125rem);line-height:1.65;max-width:22em;padding-bottom:.6em}
.poster-tel .poster-cap{flex:0 1 22em}
.poster-side{flex:0 1 24em}

/* ============ PHONE FOLD (owner decision 13 ต.ค. 2569): a band shows its first 3 items on phones ============
   scripts/blog-index.js marks the 4th item on (and any list or tile row made only of them) .extra and puts a native
   <details class="more"> after the band's last list. Desktop and tablet show everything and never see the control;
   a browser without :has shows everything too (the control stays hidden). Opening it reveals the items in place,
   where the control was, and the control goes away (no collapse). Works without JS. */
.more{display:none}
.more summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:14px 0;border-top:1px solid var(--rule);font-size:1.05rem;font-weight:600;line-height:1.5;color:var(--ink);cursor:pointer;list-style:none}
.more summary::-webkit-details-marker{display:none}
.more-label{text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.more summary:hover .more-label{text-decoration-color:var(--gold-text)}
/* the notes chevron, pointing down: the items open in place below this line */
.more-chev{flex-shrink:0;width:11px;height:11px;margin-right:6px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-3px) rotate(45deg)}
.more[open] summary{display:none}
@supports selector(:has(*)){
  @media (max-width:640px){
    .more{display:block}
    .band:has(.more:not([open])) .extra{display:none}
  }
}

/* ============ NOTES (folded) ============ */
.notes-band{padding:clamp(72px,7vw,104px) 0}
.notes{max-width:820px;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.notes summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px;padding:14px 0;cursor:pointer;list-style:none}
.notes-h{font-size:clamp(1.25rem,1.8vw,1.5rem);font-weight:700;line-height:1.45}
.notes summary::-webkit-details-marker{display:none}
.notes-chev{flex-shrink:0;width:12px;height:12px;margin-right:6px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:translateY(-3px) rotate(45deg);transition:transform .3s var(--ease)}
.notes[open] .notes-chev{transform:translateY(3px) rotate(225deg)}
.notes summary:hover .notes-h{text-decoration:underline;text-decoration-color:var(--gold-text);text-decoration-thickness:2px;text-underline-offset:5px}
.notes-body{padding:4px 0 40px;max-width:68ch}
.notes-body p{font-size:1rem;line-height:1.7}
.notes-body p + p,.notes-body h3{margin-top:18px}
.notes-body h3{font-size:1.1rem;font-weight:700;line-height:1.5}
.notes-body a{text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:4px}
.notes-body a:hover{text-decoration-color:var(--gold-text)}

/* ============ CLOSING: morning (warm gold-soft band), Yo on a drawn floor ============ */
.closing{background:var(--gold-soft);padding:clamp(64px,7vw,104px) 0 clamp(40px,4vw,64px);overflow:hidden}
/* the floor: a 2px ink line across the container; Yo's feet touch it (the picture's empty foot room hangs over it) */
.closing-grid{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:var(--gap);align-items:end;border-bottom:2px solid var(--ink)}
.yo-stand{width:var(--yw)}
.closing-copy{padding-bottom:clamp(96px,9vw,136px)}
.closing h2{font-size:clamp(2rem,3.9vw,3.4rem);font-weight:800;line-height:1.3;letter-spacing:-.8px;text-wrap:balance}
.closing-sub{margin-top:22px;max-width:28em;font-size:clamp(1.05rem,1.4vw,1.25rem);line-height:1.65}
.closing-actions{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px 36px;margin-top:40px}
.btn-lg{min-height:56px;padding:15px 34px;font-size:1.05rem}
.closing-note{margin-top:14px;font-size:.95rem;font-weight:500;color:var(--ink)}
.text-link{display:inline-flex;align-items:center;min-height:56px;padding-inline:6px;margin-inline:-6px;font-weight:600;color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.text-link:hover{text-decoration-color:var(--gold-text)}
.closing-yo{align-self:end;display:flex;justify-content:center;--yw:min(440px,100%)}
/* the picture has ~21.5% empty space under Yo's feet: pull it down so Yo stands on the floor line */
.yo{width:100%;height:auto;margin-bottom:calc(var(--yw) * -.215)}

/* ============ FOOTER (homepage footer-mega, light) ============ */
.footer{background:var(--cream-deep);color:var(--ink);padding:72px 0 48px}
.footer-wrap{display:flex;flex-direction:column;gap:40px}
.footer-brand{max-width:400px}
.footer-logo{display:inline-flex;align-items:center;min-height:44px}
.footer-logo img{height:38px;width:auto}
.footer-brand p{margin-top:10px;font-size:.92rem;line-height:1.65;color:var(--ink)}
.footer-mega{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 32px}
.footer-col-title{font-size:.95rem;font-weight:700;line-height:1.45;margin-bottom:10px}
.footer-col-links{display:flex;flex-direction:column}
.footer-col-links a{display:inline-block;min-height:44px;padding:11px 0;font-size:.9rem;line-height:1.5;color:var(--ink);text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:2px;text-underline-offset:5px;transition:text-decoration-color .2s}
.footer-col-links a{text-wrap:balance}
.footer-col-links a:hover{text-decoration-color:var(--gold-text)}
.footer-col-links .footer-highlight{font-weight:600;text-decoration-color:var(--gold)}
.footer-contact{display:flex;flex-wrap:wrap;align-items:center;gap:4px 32px;padding-top:24px;border-top:1px solid var(--rule)}
.footer-contact a,.footer-contact span{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:.92rem;color:var(--ink);text-decoration:none}
.footer-contact a:hover{text-decoration:underline;text-decoration-color:var(--gold-text);text-decoration-thickness:2px;text-underline-offset:5px}
.footer-contact svg{width:17px;height:17px;fill:var(--olive);flex-shrink:0}
.footer-contact b{font-weight:600}
.footer-copy,.footer-legal{display:flex;flex-wrap:wrap;gap:2px 16px;font-size:.875rem;line-height:1.7;color:var(--olive-text)}
.footer-legal{margin-top:-28px}

/* ============ MOTION: each plays once, reduced motion = final state ============ */
@media (prefers-reduced-motion:no-preference){
  html{scroll-behavior:smooth}
  /* hero: the night photo settles on load (CSS only, no JS needed) */
  .hero-pic img{animation:settle 1.6s var(--ease) both}
  /* lights on: a band opener brightens once when 35% in view */
  html.js .opener-frame img{transition:filter 1.4s var(--ease)}
  html.js .opener:not(.is-in) .opener-frame img{filter:brightness(.72)}
  /* second tier, alternating by band (slip, money, cost, ai: nothing): latest photo, chat wide lead, line tiles settle */
  html.js .latest-big .frame img,html.js [data-enter] .frame img{transition:transform 1.2s var(--ease)}
  html.js .latest-big:not(.is-in) .frame img,html.js [data-enter]:not(.is-in) .frame img{transform:scale(1.04)}
  /* directory jump: the band title's gold underline draws once and stays */
  .band-h2 .mark{transition:background-size .5s var(--ease) .35s}
  /* Yo rises once */
  html.js .closing .yo{transition:transform .9s var(--clay)}
  html.js .closing .yo:not(.is-in){transform:translateY(14px)}
}
@keyframes settle{from{transform:scale(1.04)}to{transform:none}}

/* ============ TABLET ============ */
/* rows beside a lead keep a text column of 220px or more: thumbs shrink before titles fold into one-word lines
   (verify 13 ต.ค. 2569: at 900 to 1080 a 168 or 200px thumb left 95 to 170px for the title) */
@media (max-width:1280px){
  .latest-rows{--thumb:168px}
}
@media (max-width:1080px){
  .latest-spread,.spread-left,.spread-right{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .spread .rows-side,.rows-2,.latest-rows{--thumb:144px}
  .nav-links{gap:20px}
  .shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .rows-3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .footer-mega{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ============ NAV SHEET + ONE COLUMN (<=860px) ============ */
@media (max-width:860px){
  .nav{padding:8px 10px 8px 16px;top:8px}
  .nav-logo img{height:30px}
  .nav .btn-gold{padding:9px 15px;font-size:.8rem}
  .nav-cta{gap:6px}
  .nav-login{display:none}
  .nav-burger{display:flex}
  .nav-price{display:inline-flex}
  .nav-links{
    position:fixed;left:50%;top:66px;transform:translateX(-50%) translateY(-8px);
    width:min(1150px,95vw);
    flex-direction:column;align-items:stretch;gap:2px;
    background:var(--cream);
    border:1px solid rgba(26,26,46,.08);border-radius:22px;
    box-shadow:0 24px 60px rgba(26,26,46,.18);
    padding:10px;font-size:1rem;
    opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .28s,transform .28s var(--clay),visibility .28s;
  }
  .nav.menu-open .nav-links{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0);transition:opacity .28s,transform .28s var(--clay),visibility 0s}
  .nav-links a{padding:13px 16px;border-radius:14px;font-weight:600}
  .nav-links a:hover{background:var(--gold-soft)}
  .nav-links a::after{display:none}
  .nav-links a[aria-current="page"]{background:var(--gold-soft)}
  .nav-sheet-login{display:block;border-top:1px solid var(--rule);margin-top:6px;padding-top:15px;font-weight:500}
  html{scroll-padding-top:76px}

  .hero{padding-top:64px}
  .featured,.intro,.dir-grid,.latest-spread,.band-head,.spread-left,.spread-right,.closing-grid,
  .spread-beside .lead:not(.lead-text-only){grid-template-columns:minmax(0,1fr)}
  .trust{margin-top:14px;padding-bottom:0}
  .latest-big,.latest-rows{grid-column:1;grid-row:auto}
  .featured-side{margin-top:16px}
  .dir-h2{max-width:none;margin-bottom:24px}
  .latest-rows{margin-top:24px}
  .latest-rows .row:first-child{border-top:1px solid var(--rule);padding-top:18px}
  .latest-rows .row .t{font-size:1.1rem}
  .spread-right .lead,.spread-right .rows-side{grid-column:1;grid-row:auto}
  .spread .rows-side{margin-top:32px}
  .rows-side .row:first-child{border-top:1px solid var(--rule);padding-top:20px}
  .spread-beside .lead:not(.lead-text-only) .lead-text{margin-top:20px;padding-bottom:0}
  .band-aside{padding-bottom:0;margin-top:12px}
  .poster-cap{padding-bottom:0}
  .aside-under{margin-top:20px;margin-bottom:48px}
  .closing-copy{padding-bottom:28px}
  .closing-yo{justify-content:flex-start;--yw:min(300px,78vw)}
  /* one column: the floor runs under Yo only */
  .closing-grid{border-bottom:none}
  .yo-stand{border-bottom:2px solid var(--ink)}
  /* one column below 861px: the chat rows stack, thumbs at 168px beside a full-width title column */
  .rows-2{grid-template-columns:minmax(0,1fr)}
  .spread .rows-side,.rows-2,.latest-rows{--thumb:168px}
}
/* hero below 861px. Portrait: the 4:5 photo across the full width, never narrowed by max-height (verify 13 ต.ค. 2569:
   aspect-ratio + max-height shrank the stage to a 268px sliver in phone landscape and left a 63px strip on iPad).
   Landscape below 861px, and any landscape screen 540px tall or less (phones turned sideways up to 932px wide): the
   wide photo (the picture source matches min-aspect-ratio 1/1 at every width) under the desktop height rule, framed
   higher with the H1 nearer the top, so the H1 stays in the black above her face (measured 19:1 at 740x360 to 1920x540;
   58% put the second line on her forehead at 915x412, 2.2:1) */
@media (max-width:860px) and (max-aspect-ratio:1/1){
  .hero-stage{height:min(125vw,86svh)}
  .hero-pic img{object-position:50% 50%}
  .hero-h1-box{padding-top:28px}
}
@media (max-width:860px) and (min-aspect-ratio:1/1),(min-aspect-ratio:1/1) and (max-height:540px){
  .hero-pic img{object-position:50% 40%}
  .hero-h1-box{padding-top:min(9vw,12svh)}
}

/* ============ PHONE (<=640px): 16px gutters, thumb-left rows ============ */
@media (max-width:640px){
  :root{--radius:18px;--thumb:112px}
  .wrap{width:calc(100% - 32px)}
  .frame,.lead-wide .frame,.mid .frame{aspect-ratio:4/3}
  .crumbs-row{min-height:44px}
  .h1{font-size:clamp(2.25rem,10.2vw,2.6rem);letter-spacing:-.5px}
  .credit-hero,.credit-opener{justify-content:flex-start;margin-top:8px}
  .hero-cap{padding:22px 0 56px}
  .sub{font-size:1.08rem;line-height:1.6}
  .trust{font-size:.9rem;margin-top:10px}
  .featured{margin-top:36px}
  .featured-title{font-size:1.5rem}
  .standfirst{font-size:1rem}

  .dir{padding:64px 0}
  .dir-list{grid-template-columns:minmax(0,1fr)}
  .dir-list li:nth-last-child(-n+2) a{border-bottom:none}
  .dir-list li:last-child a{border-bottom:1px solid var(--rule)}
  .dir-list a{min-height:68px;padding:14px 0}
  .dir-name{font-size:1.12rem}

  .latest{padding:64px 0 64px}
  .band{padding-bottom:64px}
  .opener-frame{height:auto;aspect-ratio:4/3}
  .band{scroll-margin-top:calc(76px - 37.5vw)}
  .opener-frame img{object-position:var(--focus,50% 50%)}
  .band-head{margin-top:32px;margin-bottom:36px}
  .band-head.no-opener{padding-top:80px}
  .band-h2{font-size:clamp(2rem,9.2vw,2.3rem);letter-spacing:-.6px;line-height:1.3}
  .band-line{font-size:1.02rem}
  .lead-text{margin-top:16px}
  .lead-title,.lead-wide .lead-title,.lead-text-only .lead-title{font-size:1.4rem}
  .spread-beside .lead:not(.lead-text-only) .lead-text{margin-top:16px}

  /* second tier on phones: thumb-left rows, a square thumb sets the row height */
  .row{column-gap:14px;padding:18px 0}
  .thumb,.thumb-link{aspect-ratio:1/1;border-radius:12px}
  .row .t{font-size:1.06rem;line-height:1.42}
  .row .t-deck{font-size:.95em}
  .row .meta{margin-top:6px}
  /* the credit stays in the text column (measured 13 ต.ค. 2569: across the whole row it made the phone page 331px longer, 16,515 against 16,184);
     "/ Unsplash" is one no-wrap unit (scripts/blog-index.js credit), so a long name breaks before the slash, never after it */
  .credit-row{margin-top:4px;font-size:.8125rem}
  .rows-2,.rows-3{grid-template-columns:minmax(0,1fr);margin-top:36px}
  .rows-3 .row{grid-template-columns:var(--thumb) minmax(0,1fr)}
  .rows-3 .row.no-thumb{grid-template-columns:minmax(0,1fr)}
  .rows-3 .row-a{grid-column:2}
  .rows-3 .row.no-thumb .row-a{grid-column:1}
  .rows-3 .thumb-link{display:block}
  .rows-3 .credit-row{display:flex}
  .spread .rows-side,.rows-2,.latest-rows{--thumb:112px}
  /* on phones the rows beside a lead and the rows after it are one list (ai band) */
  .spread + .rows{margin-top:0}

  /* line tiles become rows too */
  .mids{grid-template-columns:minmax(0,1fr);margin-top:36px}
  .mids + .rows{margin-top:0}
  .mid{display:grid;grid-template-columns:var(--thumb) minmax(0,1fr);grid-template-areas:"img title" "img meta" "img credit";column-gap:14px;align-content:start;padding:18px 0;border-top:1px solid var(--rule)}
  .mid-fig{display:contents}
  .mid .img-link{grid-area:img;align-self:start}
  .mid .frame{aspect-ratio:1/1;border-radius:12px}
  .mid-fig .credit{grid-area:credit;margin-top:4px}
  .mid-title{grid-area:title;margin-top:0;font-size:1.06rem;line-height:1.42}
  .mid-title .t-deck{font-size:.95em}
  .mid .meta{grid-area:meta;margin-top:6px}

  .shelf{margin-top:56px}
  .shelf-title{font-size:1.4rem}
  .shelf-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px;margin-top:16px}
  .shelf-grid a{min-height:80px;padding:16px 0}
  .shelf-name{font-size:1.15rem}
  .shelf-app{font-size:.875rem}
  .band .poster{margin-top:56px}
  .b-cost .poster{margin-top:0;margin-bottom:0}
  .aside-under{margin-top:16px;margin-bottom:40px}
  .poster-tel .poster-num{font-size:clamp(5.5rem,30vw,7.5rem)}
  .poster-cost .poster-num{font-size:clamp(2.4rem,11.4vw,3rem);letter-spacing:-1px}
  .poster-cap{margin-top:6px}

  .notes-band{padding:48px 0}
  .closing{padding:64px 0 40px}
  .closing h2{font-size:clamp(1.8rem,8.2vw,2.15rem)}
  .closing-actions{gap:8px 28px;margin-top:28px}
  .footer{padding:56px 0 40px}
  .footer-mega{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px 20px}
  .footer-col-links a{font-size:.875rem}
  .footer-contact{gap:0 24px}
}
@media (max-width:560px){
  .cta-days{display:none}
}
@media (prefers-reduced-motion:reduce){
  .nav-links,.nav.menu-open .nav-links,.nav-burger span,.notes-chev,.nav-links a::after,.nav-login::after{transition:none}
}
