/* seo.css, boumliha.studio SEO pages (Wilson 2026-11-18). Loads after site.css + gallery.css + about.css and uses
   their tokens only (one clamp() scale: --t-*, --gutter, --sec). Covers: the longer hub intro under the H1, copy rows
   after the grid, the FAQ, the deliverables list, and the /work/<slug> case-study page. No new font sizes. */

/* ---------- hub head: H1 with the city, a real intro paragraph under it ---------- */
.page-head h1.long { max-width: 17ch; margin-inline: auto; text-wrap: balance; line-height: 1.02; text-box: none; }
.page-head .intro { max-width: 44rem; font-size: var(--t-lg); line-height: 1.55; text-wrap: pretty; }
.page-head .intro a, .rows a, .faq a, .wk-intro a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
.page-head .intro a:hover, .rows a:hover, .faq a:hover { color: var(--accent-ink); }

/* ---------- copy rows after the grid: heading left, two or three sentences right (same rhythm as /about) ---------- */
.rows { border-top: 1px solid var(--rule); }
.rows > li { display: grid; gap: .5rem 2.5rem; padding: clamp(1.25rem, 2.4vw, 1.75rem) 0; border-bottom: 1px solid var(--rule); }
.rows h2, .rows h3 { font-weight: 500; font-size: var(--t-title); line-height: 1.2; letter-spacing: -.01em; }
.rows p { color: var(--ink-dim); max-width: 40rem; }
.rows p + p { margin-top: .6rem; }
.rows .go { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin-top: .35rem; }
.rows .go a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; height: 44px; color: var(--ink); text-decoration: none; font-size: var(--t-sm);
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .35em; transition: color .2s; }
.rows .go a:hover, .rows .go a:focus-visible { color: var(--accent-ink); }
.rows .go svg { width: 14px; height: 14px; }
@media (min-width: 900px) { .rows > li { grid-template-columns: minmax(240px, .38fr) 1fr; align-items: start; } }

/* ---------- the photo + film pair as a section (couples, hotels): pair left, words right ---------- */
.duo .grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.duo .words h2 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-synthesis: none; font-size: var(--t-lead); line-height: 1.15; letter-spacing: -.005em; text-wrap: balance; max-width: 18ch; }
.duo .words p { margin-top: 1.1rem; color: var(--ink-dim); max-width: 34rem; }
.duo .words .pill { margin-top: 1.5rem; }
@media (min-width: 900px) { .duo .grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }

/* ---------- deliverables (hotels): the /about facts list, wider label column ---------- */
.deliv > div { grid-template-columns: minmax(8rem, .38fr) 1fr; }
.deliv dd { color: var(--ink-dim); }
.deliv dd b { color: var(--ink); font-weight: 500; }

/* ---------- FAQ: ruled rows, answers in the HTML (crawlable), plus sign turns to minus ---------- */
.faq { border-top: 1px solid var(--rule); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: grid; grid-template-columns: 1fr 44px; align-items: center; gap: 1rem; min-height: 64px; padding: .75rem 0; cursor: pointer;
  font-weight: 500; font-size: var(--t-lg); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; color: var(--accent-ink); transition: border-color .2s; }
.faq summary i svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.faq summary:hover i { border-color: var(--accent); }
.faq details[open] summary i svg { transform: rotate(45deg); }
.faq .a { padding: 0 3.5rem 1.4rem 0; color: var(--ink-dim); max-width: 44rem; }
.faq .a p + p { margin-top: .6rem; }

/* ---------- /work/<slug> case study ---------- */
.wk-head { padding: calc(72px + clamp(1.75rem, 4vw, 3.5rem)) 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: var(--t-sm); color: var(--ink-dim); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 .6rem; color: oklch(93.6% .008 85 / .35); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-dim); transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.wk-head .grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(1rem, 2vw, 1.5rem); }
.wk-head h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 400; font-synthesis: none; font-size: var(--t-hero); line-height: 1; letter-spacing: -.01em; text-wrap: balance; max-width: 20ch; }
.wk-intro { font-size: var(--t-lg); line-height: 1.55; color: var(--ink); max-width: 40rem; text-wrap: pretty; }
.wk-intro p + p { margin-top: .8rem; color: var(--ink-dim); font-size: var(--t-base); }
.wk-facts { border-top: 1px solid var(--rule); align-self: end; }
.wk-facts > div { grid-template-columns: 7.5rem 1fr; }
.wk-acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.25rem, 2.5vw, 1.75rem); }
@media (min-width: 900px) { .wk-head .grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); column-gap: clamp(2.5rem, 5vw, 5rem); } .wk-head h1 { grid-column: 1 / -1; } }

.wk-sec { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.wk-sec > .wrap > h2 { font-weight: 500; font-size: var(--t-title); line-height: 1.15; letter-spacing: -.015em; margin-bottom: clamp(1rem, 2vw, 1.5rem); }

/* films: justified rows at the films' true ratios, native controls, no autoplay */
.wfilms { display: flex; flex-wrap: wrap; gap: var(--pg-gap, clamp(.75rem, 1.6vw, 1.5rem)); --rh: clamp(220px, 30vw, 460px); }
.wfilms::after { content: ""; flex: 999 1 0; height: 0; }
.wfilm { flex: var(--ar) 1 calc(var(--ar) * var(--rh)); max-width: min(100%, calc(var(--ar) * var(--rh) * 1.6)); min-width: 0; margin: 0; }
.wfilm .scr { position: relative; aspect-ratio: var(--ar); background: oklch(11.5% .003 75); }
.wfilm video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: oklch(11.5% .003 75); }
.wfilm figcaption { margin-top: .65rem; font-size: var(--t-sm); color: var(--ink-dim); line-height: 1.45; }
.wfilm figcaption b { color: var(--ink); font-weight: 500; }
.wfilm figcaption .t { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wfilms.one .wfilm { max-width: 100%; }
.wfilms.one .wfilm.v { max-width: min(100%, calc(var(--ar) * var(--rh) * 1.6)); }
@media (max-width: 699px) { .wfilms { --rh: 62vw; gap: .75rem; } }

/* photos: justified rows on desktop (same rule as the grids), two masonry columns on phone */
.wphotos { --rh: clamp(150px, 22vw, 320px); }
.wphotos .tile .tile-cap b { font-size: var(--t-base); }
@media (max-width: 699px) {
  .wphotos.pgrid[data-layout] { display: block; columns: 2; column-gap: .5rem; }
  .wphotos.pgrid[data-layout]::after { display: none; }
  .wphotos.pgrid[data-layout] .tile { width: 100%; max-width: none; margin: 0 0 .5rem; break-inside: avoid; }
  .wphotos .tile-cap { display: none; }
  .wphotos .tile::after { display: none; }
}

/* credits line */
.credits { display: flex; flex-wrap: wrap; gap: .4rem 2rem; padding: 1rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--t-sm); color: var(--ink-dim); }
.credits b { color: var(--ink); font-weight: 500; }
.credits a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -.75rem; }

/* related projects + back to the hub */
.related .pgrid { padding-inline: 0; --rh: clamp(150px, 18vw, 260px); }
.related .tile-cap { opacity: 1; transform: none; }
.related .tile::after { opacity: 1; }
.related .back { margin-top: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 699px) {   /* phone: the three related projects side by side, same frame, name under the image */
  .related .pgrid[data-layout] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .related .pgrid[data-layout]::after { display: none; }
  .related .pgrid[data-layout] .tile { aspect-ratio: 4 / 5; max-width: none; }
  .related .tile-cap small { display: none; }
}

/* hub grids with a fixed, short list (couples 4, hotels 8): rows are closed by hand, so the last row may stretch like the
   others (no filler) and no tile is left alone on a row. Couples = one row of 4, hotels = two rows of 4 (order set in the HTML). */
@media (min-width: 700px) {
  .pgrid[data-list="couples"], .pgrid[data-list="hotels"] { --rh: clamp(130px, 16.5vw, 253px); }
  .pgrid[data-list="couples"]::after, .pgrid[data-list="hotels"]::after { display: none; }
}
