/* Project pages sent as HTML by deploy-wp.mjs (cover, facts, chapters, image rows, video).
   Copied from redesign/src/site.css (project section) and redesign/wp-additional.css; keep in step.
   Variables are the prototype's names, mapped to the theme.json palette. */
:root { --black: var(--wp--preset--color--black); --ink: var(--wp--preset--color--ink); --blue: var(--wp--preset--color--blue); --light: var(--wp--preset--color--light); --grey: var(--wp--preset--color--grey); --line: var(--wp--preset--color--line); --c-46: var(--wp--preset--color--concert); --f-display: var(--wp--preset--font-family--iciel); --f-label: var(--wp--preset--font-family--iciel); --f-body: var(--wp--preset--font-family--iciel); }
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: 20px; }
.label { font: 500 13px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.th-fix { font-family: "Prompt", sans-serif; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--light); }
/* Individual project page: full-bleed, cinematic, in the spirit of the G27 case study —
   one real example of what every project page could become */
/* The cover starts below the fixed 76px header and keeps its proportions. A page may trim strips off
   the top and bottom of its cover by setting aspect-ratio inline (G27 does). */
/* Cover runs the full width (never cut at the sides); title and facts sit on its lower part. */
.project-hero { position: relative; padding-top: 76px; }
.project-hero img { display: block; width: 100%; height: auto; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 76px 0 0; background: linear-gradient(to top, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .7) 22%, rgba(0, 0, 0, .2) 48%, transparent 62%); pointer-events: none; }
.project-hero .wrap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-block: 0 44px; display: grid; gap: 26px; }
.project-hero .project-meta { max-width: 1160px; }
/* On phones the cover is too short to carry the title, so the title moves underneath it */
@media (max-width: 640px) {
  .project-hero::after { display: none; }
  .project-hero .wrap { position: static; padding-block: 28px 0; }
}
.project-hero .crumbs { color: #d9dbe2; }
.project-hero h1 { margin: 0; font: 500 clamp(28px, 3.4vw, 64px)/1.05 var(--f-display); text-transform: uppercase; letter-spacing: .01em; max-width: 22ch; }
/* Everything below the hero sits in one centred ~900px column, like the G27 D9 post */
.project-col { max-width: 900px; margin-inline: auto; padding-inline: 20px; }
/* Client (or Agency) / Year / Type: on the cover under the title */
.project-meta { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 28px; }
.project-meta div { display: grid; gap: 8px; align-content: start; }
.project-meta dt { font: 500 11px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.project-meta dd { margin: 0; font: 500 15px/1.4 var(--f-body); }
@media (max-width: 640px) { .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-intro { padding-block: 72px 0; }
.project-intro h2 { margin: 0 0 20px; font: 500 clamp(22px, 2.6vw, 30px)/1.15 var(--f-display); text-transform: uppercase; }
.project-intro p { margin: 0 0 20px; font-size: 16px; line-height: 1.9; color: #d4d7e1; }
.project-film { padding: 64px max(20px, 4vw) 100px; }
.project-film .frame { aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; position: relative; }
.project-film iframe { width: 100%; height: 100%; border: 0; }
.project-credits { padding-block: 48px; border-top: 1px solid var(--line); }
.project-credits p { margin: 10px 0 0; color: var(--grey); }
/* End of a project page: 2 more of the same kind + 2 of other kinds, in one row like Contact's Recent work */
.more-work { padding-block: 72px 96px; margin-top: 72px; border-top: 1px solid var(--line); }
.more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 28px; }
.more-head .contact-sub { margin: 0; }
.more-work .port { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 820px) { .more-work .port { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }
.post-nav { padding-block: 72px 90px; }
.post-nav .project-col { display: flex; justify-content: space-between; gap: 24px; }
.post-nav a { display: grid; gap: 8px; max-width: 45%; text-decoration: none; color: var(--grey); }
.post-nav a:hover { color: var(--light); }
.post-nav-next { text-align: right; }

/* One section per song/chapter within a project page: eyebrow, full-bleed hero shot, concept + copy,
   a grid of live shots, the design frame that closes it */
.song { margin-top: 96px; }
.song-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.song-no { font: 400 15px/1 var(--f-display); color: var(--c-46); }
/* Monument's font file misreports Thai glyph coverage, so Thai runs in a Monument heading are pinned
   to the Thai body font directly instead of trusting the font stack's own fallback */
.th-fix { font-family: "Prompt", sans-serif; }
.song-head h2 { margin: 0; font: 500 clamp(22px, 2.8vw, 32px)/1.1 var(--f-display); text-transform: uppercase; }
.song-text { margin: 20px 0; color: #d4d7e1; font-size: 16px; line-height: 1.9; }
/* Project pages keep emphasis as a brighter colour only, in the regular weight (no bold) */
.song-text strong, .project-intro strong { color: var(--light); font-weight: inherit; }
/* English one-line concept per band, above the Thai write-up */
.song-concept { margin: 24px 0 0; color: #d4d7e1; font-size: 16px; line-height: 1.7; }
.song-concept .label { margin-right: 10px; }
.song-concept b { color: var(--light); font-weight: inherit; }
.song-concept + .song-text { margin-top: 12px; }
/* English summary that opens the intro: the who/what/where/when in two sentences */
.project-intro .project-summary { color: var(--light); font-size: 18px; line-height: 1.75; }
/* D9-style image rhythm: a band's photos arrive as a full-width shot, a side-by-side pair, or a 2x2
   grid — never the same composition twice in a row — closing on one full-width design frame */
.img-group { margin-bottom: 6px; }
/* No cropping, as in D9: every photo keeps its own proportions */
.img-hero { width: 100%; height: auto; display: block; border-radius: 4px; }
.img-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: start; }
.img-2 img { width: 100%; height: auto; display: block; border-radius: 4px; }
.img-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; align-items: start; }
.img-4 img { width: 100%; height: auto; display: block; border-radius: 4px; }
@media (max-width: 640px) { .img-2 { grid-template-columns: 1fr; } }

.jgrid { display: grid; gap: 6px; margin-bottom: 6px; }
.jrow { display: flex; gap: 6px; width: 100%; margin-inline: auto; }
.jitem { margin: 0; min-width: 0; }
.jitem img { display: block; width: 100%; height: 100%; border-radius: 4px; }
/* Phones: rows of 3–4 wrap into pairs (still uncropped: each item keeps its own shape) */
@media (max-width: 640px) {
  .jrow.n3, .jrow.n4 { flex-wrap: wrap; }
  .jrow.n3 .jitem, .jrow.n4 .jitem { flex: 1 1 calc(50% - 3px) !important; }
  .jrow.n3 .jitem:last-child { flex-basis: 100% !important; }
}
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
/* The theme header is in the page flow (not fixed), so the cover needs no room above it */
.project-hero { padding-top: 0; } .project-hero::after { inset: 0; }
/* Content that already brings its own cover and title: hide the template's featured image and title */
.mh-single:has(.project-hero) .mh-single-head { display: none; }
/* Fade-in used by HTML content (.reveal) works like the theme's "Fade in" style */
.mh-js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mh-js .reveal.in, .mh-js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mh-js .reveal { opacity: 1; transform: none; transition: none; } }
/* The page column is 900px wide; the cover and the facts row break out of it to the full width */
.is-layout-constrained > .project-hero { max-width: none !important; margin-inline: calc(var(--wp--style--root--padding-left, 20px) * -1) !important; }
