/* ============================================================
   S.L.A.V.É. brand, 2026-09-16. The system from the film-led redesign proposal
   (claude.ai/artifact/8JY1276qj5denohkyY1Ha8), applied to every page.
   Two typefaces, five colours, one dark, one accent, 2px corners, no shadows.
   Pages are generated by tools/build.py from content/{en,fr}.json.
   ============================================================ */

:root {
  --paper: #f2f1ed;
  --paper-2: #e6e4dd;
  --ink: #111a22;
  --night: #0b1117;
  --rust: #c0521c;
  --rust-dark: #a2441a;
  --steel: #5c6670;
  --line: rgba(17, 26, 34, .14);
  --line-night: rgba(242, 241, 237, .16);
  --paper-72: rgba(242, 241, 237, .72);
  --display: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --text: 'Literata', 'Iowan Old Style', Georgia, serif;
  --gutter: clamp(16px, 4vw, 56px);
  --header-h: 108px;
  /* Softer, rounder (Tim, 2026-09-17). One scale, used everywhere. */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --section: clamp(64px, 10vw, 128px);

  /* tokens the film player, school picker and films page read */
  --s-bg: var(--paper); --s-bg2: var(--paper-2); --s-card: var(--paper); --s-ink: var(--ink);
  --s-muted: var(--steel); --s-line: var(--line); --s-accent: var(--rust); --s-accent2: var(--rust);
  --s-espresso: var(--ink); --s-espresso2: var(--night);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -.012em; text-wrap: balance; line-height: 1.1; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.wrap { padding-inline: var(--gutter); max-width: 1320px; margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--paper); color: var(--ink); font-family: var(--display); padding: 8px 14px; }
.skip:focus { top: 12px; }
main > section, .band { padding-block: var(--section); }

/* ---------- buttons ---------- */
.btn { font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; background: none; color: inherit; white-space: nowrap; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-dark); }
.btn-line { border-color: rgba(242, 241, 237, .5); color: var(--paper); }
.btn-line:hover { border-color: var(--paper); }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--paper); padding-top: env(safe-area-inset-top, 0px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
/* The lockup: the mark, the name, and the name spelled out. */
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.brand-name { display: grid; gap: 4px; }
.brand-name b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: .1em; line-height: 1; }
.brand-name em { font-family: var(--display); font-style: normal; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 241, 237, .8); line-height: 1; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-family: var(--display); font-size: .98rem; }
.nav > a, .nav-projects > button { color: var(--paper); text-decoration: none; opacity: .9; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 0; }
.nav > a:hover, .nav-projects > button:hover, .nav a[aria-current="page"], .nav-projects.is-current > button { opacity: 1; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--rust); text-decoration-thickness: 2px; }
.nav-projects { position: relative; }
.nav-projects > button::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
/* The panel sits inside the menu's own padding, so the pointer never crosses a gap on its way from
   the button to the items and the menu cannot close under it (Tim, 2026-09-17). */
.nav-menu { position: absolute; top: 100%; left: -20px; min-width: 240px; padding-top: 14px; display: none; }
.nav-projects.open .nav-menu, .nav-projects:hover .nav-menu, .nav-projects:focus-within .nav-menu { display: block; }
.nav-panel { background: var(--night); border: 1px solid var(--line-night); border-radius: var(--r); padding: 8px; overflow: hidden; }
.nav-menu a { display: block; padding: 11px 16px; color: var(--paper); text-decoration: none; border-radius: var(--r-sm); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: rgba(242, 241, 237, .1); }
.nav-menu a[aria-current="page"] { color: var(--rust); }
.lang { display: flex; align-items: center; gap: 6px; color: var(--paper-72); }
.lang a { text-decoration: none; }
.lang a:hover { color: var(--paper); }
.lang [aria-current="true"] { color: var(--paper); font-weight: 600; }
.nav .btn-line { padding: 9px 16px; }
.burger { display: none; background: none; border: 1px solid rgba(242, 241, 237, .4); color: var(--paper); font-family: var(--display); font-size: .95rem; padding: 9px 18px; border-radius: var(--r-pill); cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 880px) {
  :root { --header-h: 88px; }
  .brand img { height: 50px; }
  .brand-name b { font-size: 1.2rem; }
  .brand-name em { font-size: .62rem; letter-spacing: .12em; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-menu { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--night); border-top: 1px solid var(--line-night); padding: 8px var(--gutter) 20px; font-family: var(--display); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 0; color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line-night); font-size: 1.05rem; }
  .mobile-menu .lang { padding-top: 14px; }
}
/* The name spelled out needs one line. Below this it crowds the menu button, so the mark and the
   name carry the header on their own. */
@media (max-width: 620px) {
  :root { --header-h: 78px; }
  .brand img { height: 46px; }
  .brand { gap: 10px; }
  .brand-name em { display: none; }
  .brand-name b { font-size: 1.15rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--night); color: var(--paper); height: clamp(520px, 72vh, 760px); overflow: hidden; padding: 0; }
.hero-home { height: clamp(580px, 90vh, 940px); }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity .8s ease; }
.hero-media video.playing { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,17,23,.72) 0%, rgba(11,17,23,.28) 16%, rgba(11,17,23,0) 30%),
              linear-gradient(0deg, rgba(11,17,23,.88) 0%, rgba(11,17,23,.38) 42%, rgba(11,17,23,0) 66%); }
.hero-copy { position: absolute; z-index: 2; inset: auto 0 0 0; padding-bottom: clamp(32px, 7vh, 72px); }
.hero-copy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.hero h1 { font-size: clamp(3rem, 8.5vw, 7.5rem); line-height: .95; letter-spacing: -.035em; }
.hero-home h1 { font-size: clamp(3.4rem, 10.5vw, 9.5rem); line-height: .92; }
.hero .lede { font-style: italic; font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 40ch; margin-top: 18px; color: rgba(242, 241, 237, .9); }
.credit { font-family: var(--display); font-size: .85rem; text-align: right; color: rgba(242, 241, 237, .72); line-height: 1.4; min-width: 14ch; }
.credit strong { display: block; font-weight: 500; color: var(--paper); font-size: 1.05rem; }
.credit button { margin-top: 10px; font: inherit; color: inherit; background: none; border: 1px solid rgba(242, 241, 237, .35); padding: 5px 16px; cursor: pointer; border-radius: var(--r-pill); }
.credit button:hover { color: var(--paper); border-color: var(--paper); }
@media (max-width: 700px) { .hero-copy .wrap { grid-template-columns: 1fr; } .credit { text-align: left; } }

/* ---------- section heads ---------- */
.head { display: flex; justify-content: space-between; align-items: end; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.head h2, .h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; }
.head p { color: var(--steel); max-width: 80ch; margin-top: 14px; text-wrap: pretty; }
.band-2 { background: var(--paper-2); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .head p { color: rgba(242, 241, 237, .7); }

/* ---------- intro: About the Project, association text ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.intro .lead { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.45; max-width: 34ch; }
.intro .body { display: grid; gap: 18px; }
.intro .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; color: var(--steel); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro .cols { grid-template-columns: 1fr; } }

/* ---------- numbered items (objectives) ---------- */
.numbered { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.numbered li { border-top: 2px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.numbered .n { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--rust); font-variant-numeric: tabular-nums; line-height: 1; }
.numbered h3 { font-size: 1.3rem; }
.numbered p { color: var(--steel); }
@media (max-width: 960px) { .numbered { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .numbered { grid-template-columns: 1fr; } }

/* ---------- outline phases ---------- */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(28px, 5vw, 72px); }
.phase { border-top: 2px solid var(--ink); padding-top: 22px; display: grid; gap: 14px; align-content: start; }
.phase .label { font-family: var(--display); color: var(--steel); font-size: .95rem; }
.phase h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.phase blockquote { font-style: italic; border-left: 2px solid var(--rust); padding-left: 16px; }
.phase h4 { font-size: .95rem; color: var(--steel); margin-top: 6px; }
.plain-list { list-style: none; padding: 0; margin: 0; font-family: var(--display); }
.plain-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .phases { grid-template-columns: 1fr; } }

/* ---------- people ---------- */
.group + .group { margin-top: clamp(40px, 5vw, 64px); }
.group h3 { font-size: 1.35rem; margin-bottom: 20px; }
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 34px 24px; }
/* EVERY photo on the site is mounted the same way: paper mat, one hairline, soft corners. The mat is
   what stops a dozen different backgrounds and phone cameras from fighting each other, and it is the
   same frame on a portrait, a project card and a gallery picture (Tim, 2026-09-17). */
.plate { display: block; background: var(--paper-2); border: 1px solid var(--line); padding: clamp(5px, .5vw, 9px); border-radius: var(--r); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 7px); background: var(--paper-2); }
.band-ink .plate, .site-footer .plate { background: rgba(242, 241, 237, .07); border-color: var(--line-night); }
.person .plate { aspect-ratio: 4 / 5; }
.person b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.25; margin-top: 12px; }
.person span { display: block; color: var(--steel); font-size: .92rem; line-height: 1.45; margin-top: 4px; text-wrap: pretty; }
.band-ink .person span { color: rgba(242, 241, 237, .66); }

/* ---------- partner logos ---------- */
/* In colour, each on its own soft tile, on a strip that moves slowly and endlessly. The track holds
   the set twice and slides by exactly one set, so the loop has no seam. Multiply lets a logo drawn
   on a white box (IAE) take the tile's colour instead of showing the box. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-set { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; gap: 20px; }
.logo-set a { display: flex; align-items: center; justify-content: center; height: clamp(104px, 10vw, 136px); padding: 0 clamp(28px, 3vw, 44px); background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s ease; }
.band-2 .logo-set a { background: var(--paper); }
.logo-set a:hover, .logo-set a:focus-visible { border-color: var(--ink); }
.logo-set img { height: clamp(48px, 5vw, 68px); width: auto; max-width: 300px; object-fit: contain; mix-blend-mode: multiply; }
.partners .head { margin-bottom: 32px; }
.partners .head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- call to action band ---------- */
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; }
.cta p { margin-top: 18px; max-width: 52ch; color: rgba(242, 241, 237, .78); font-size: 1.1rem; }
.cta .mark { width: clamp(140px, 16vw, 220px); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } .cta .mark { order: -1; width: 120px; } }

/* ---------- asso: about + history ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.about-grid .body { display: grid; gap: 18px; }
.about-grid .body p:first-of-type { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }
.about-grid figure .plate { aspect-ratio: 16 / 9; }
figcaption { font-family: var(--display); font-size: .9rem; color: var(--steel); margin-top: 10px; text-align: center; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.history { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.history summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding: 22px 0; align-items: center; }
.history summary::-webkit-details-marker { display: none; }
.history summary b { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); grid-column: 1; }
.history summary span { grid-column: 1; color: var(--steel); font-size: .98rem; }
.history summary::after { content: "+"; grid-column: 2; grid-row: 1 / span 2; font-family: var(--display); font-size: 2rem; line-height: 1; color: var(--rust); }
.history[open] summary::after { content: "\2212"; }
.history .body { columns: 2 22rem; column-gap: 48px; padding-bottom: 32px; }
.history .body p { break-inside: avoid; margin-bottom: 16px; color: var(--steel); }

/* ---------- asso: pillars ---------- */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; }
.pillars li { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
/* One word, two sizes: the initial in rust at about two and a half times the rest, both in the
   display face, on one baseline, the initial pulled in so the pair reads as a single word. */
.pillars h3.initial { font-size: clamp(1.3rem, 1.7vw, 1.55rem); font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.pillars h3.initial .letter { font-size: 2.5em; line-height: .8; color: var(--rust); margin-right: .015em; letter-spacing: -.03em; }
.pillars p { color: var(--steel); font-size: .98rem; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- asso: featured projects, dignity: ongoing projects ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(28px, 5vw, 64px); align-items: start; }
.duo article { display: grid; gap: 14px; align-content: start; }
.duo .plate { aspect-ratio: 16 / 10; margin-bottom: 8px; }
.duo h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.duo p { color: var(--steel); max-width: 52ch; }
.band-ink .duo p { color: rgba(242, 241, 237, .72); }
.duo .btn { justify-self: start; margin-top: 6px; }
.band-ink .btn-ink { border-color: rgba(242, 241, 237, .5); color: var(--paper); }
.band-ink .btn-ink:hover { background: var(--paper); color: var(--ink); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ---------- dignity: areas of action ----------
   The layout the page had before the rebrand, in the new frames (Tim, 2026-09-29: "bigger picture
   accompanied by a smaller one, the next section is mirrored"): a large photo with a smaller one
   mounted over its lower corner, the text beside it, and every other row flipped left to right. */
.rows { display: grid; gap: clamp(56px, 8vw, 112px); }
.row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.row:nth-child(even) .pics { order: 2; }
.row .pics { position: relative; padding: 0 12% 11% 0; }
.row:nth-child(even) .pics { padding: 0 0 11% 12%; }
.row .pics.one { padding: 0; }
.row .pics .plate:first-child { aspect-ratio: 4 / 3; }
.row .pics .plate + .plate { position: absolute; right: 0; bottom: 0; width: 36%; aspect-ratio: 4 / 5; padding: clamp(6px, .7vw, 10px); border-color: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.row:nth-child(even) .pics .plate + .plate { right: auto; left: 0; }
.row h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.row p { color: var(--steel); margin-top: 10px; }
.row .plain-list { margin-top: 20px; font-family: var(--text); }
@media (max-width: 820px) {
  .row, .row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; }
  .row:nth-child(even) .pics { order: 0; }
}

/* ---------- figures: restoration ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio .plate { aspect-ratio: 4 / 3; }
.trio figcaption { font-size: 1rem; color: var(--ink); }
@media (max-width: 700px) { .trio { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.gal-nav { display: flex; gap: 10px; }
.gal-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(242, 241, 237, .32); background: transparent; color: var(--paper); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease, border-color .2s ease, opacity .2s ease; }
.gal-nav button:hover:not([disabled]) { background: rgba(242, 241, 237, .1); border-color: rgba(242, 241, 237, .7); }
.gal-nav button[disabled] { opacity: .3; cursor: default; }
.gal-nav button:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
.gal-nav svg { width: 20px; height: 20px; }
/* Where you are in the strip: a rust thumb on a faint rail, sized to the share of the strip in view. */
.gal-bar { position: relative; height: 3px; margin-top: 22px; border-radius: var(--r-pill); background: rgba(242, 241, 237, .14); overflow: hidden; }
.gal-bar span { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: var(--rust); transition: transform .15s linear; }
.strip .plate { flex: 0 0 auto; height: clamp(240px, 36vw, 440px); scroll-snap-align: start; }
.strip .plate img { width: auto; max-width: none; height: 100%; }
.strip-note { font-family: var(--display); font-size: .9rem; color: rgba(242, 241, 237, .6); margin-top: 10px; }

/* ---------- scope ---------- */
.scope .body p:not(.lead) { color: var(--steel); max-width: 62ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-grid h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 24px; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--display); font-size: .98rem; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper-2); border: 1px solid rgba(17, 26, 34, .2); border-radius: var(--r-sm); padding: 14px 16px; width: 100%; }
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f7780; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: inset 0 0 0 1px var(--rust); }
.form .btn { justify-self: start; }
.form-note { font-family: var(--display); font-size: .95rem; color: var(--steel); min-height: 1.4em; }
.facts { margin: 0 0 clamp(36px, 4vw, 48px); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); color: var(--steel); }
.facts dd { font-family: var(--display); font-size: 1.05rem; }
.facts dd a { text-decoration: none; border-bottom: 1px solid var(--rust); }
.since { background: var(--paper-2); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; }
.since h3 { font-size: 1.4rem; }
.since p { color: var(--steel); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- films page hero, 404 ---------- */
.page-top { background: var(--night); color: var(--paper); padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(48px, 7vw, 88px); }
.page-top h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.03em; }
.page-top p { margin-top: 18px; max-width: 52ch; color: rgba(242, 241, 237, .8); font-size: 1.12rem; }
.page-top .films-count { font-family: var(--display); color: var(--paper); font-size: 1rem; min-height: 1.5em; }
.notfound { min-height: 100vh; display: grid; align-content: center; }
.notfound .mark { width: 120px; margin-bottom: 36px; }
.notfound h1 { font-size: clamp(5rem, 16vw, 11rem); }
.notfound h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: rgba(242, 241, 237, .78); padding-block: 64px 40px; font-family: var(--display); font-size: .98rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.site-footer .logo { width: 104px; margin-bottom: 20px; }
.site-footer .tag { color: var(--rust); font-size: .92rem; margin-bottom: 14px; }
.site-footer .about { font-family: var(--text); max-width: 40ch; }
.site-footer h4 { margin: 0 0 14px; color: var(--paper); font-weight: 500; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { line-height: 1.9; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 5px; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line-night); padding-top: 22px; font-size: .88rem; color: rgba(242, 241, 237, .55); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }
.site-footer .legal span + span { margin-left: 20px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } .site-footer .legal span + span { margin-left: 0; display: block; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .hero-media video { display: none; }
  /* The strip stands still and scrolls by hand; the hidden copy goes. */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; }
  .logo-set[aria-hidden="true"] { display: none; }
}

/* ---------- phones (2026-09-29, Tim: "optimize mobile version") ----------
   Measured at 390px before this block: the Asso page ran 10,100px, most of it portraits two
   across. What changes on a phone, and why:
   - people three across with tighter captions, so a group reads as a group;
   - a darker scrim under hero copy, because a phone crop puts the headline on the busiest part
     of the photo (the projected text on the Asso header);
   - the CTA mark is dropped: the footer shows the same logo one screen further down;
   - footer link columns side by side;
   - pillars two across, the fifth (É) spanning the row. */
@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(180deg, rgba(11,17,23,.72) 0%, rgba(11,17,23,.2) 18%, rgba(11,17,23,0) 30%),
                linear-gradient(0deg, rgba(11,17,23,.94) 0%, rgba(11,17,23,.76) 50%, rgba(11,17,23,.34) 76%, rgba(11,17,23,0) 92%);
  }
  .credit button { min-height: 40px; padding: 8px 20px; }
  /* A portrait crop of the Contact still keeps the handshake in frame. */
  .hero-contact .hero-media img { object-position: 78% 50%; }
}
@media (max-width: 760px) {
  .cta .mark { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .logo-set { gap: 12px; padding-left: 12px; }
  .logo-set a { height: 84px; padding: 0 22px; border-radius: var(--r); }
  .logo-set img { height: 40px; max-width: 200px; }
  .marquee-track { animation-duration: 32s; }
}
@media (max-width: 600px) and (min-width: 341px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .pillars li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .person .plate { padding: 4px; border-radius: var(--r-sm); }
  .person .plate img { border-radius: calc(var(--r-sm) - 3px); }
  .person b { font-size: .9rem; margin-top: 8px; }
  .person span { font-size: .78rem; line-height: 1.4; margin-top: 2px; }
  .group h3 { font-size: 1.15rem; margin-bottom: 14px; }
}
/* Contact: the still is widened on its left (tools/film-stills.py) so the handshake sits right of the headline. */
@media (min-width: 701px) { .hero-contact .hero-media img { object-position: 100% 40%; } }
/* A strip that fits on screen has nothing to navigate. */
.gal-static .gal-nav, .gal-static .gal-bar { display: none; }

/* ---------- phone audit, 2026-10-06 (Tim: "grand audit" of the phone version) ----------
   All phone-only (max-width or a short landscape screen), so desktop is unchanged.
   - tap targets: footer links, Contact's phone and email, the menu button and the EN / FR switch
     were 23-42px tall; links get a larger invisible hit area (::after), so nothing visible moves;
   - the EN / FR switch in the open menu inherited the menu's row underline, a stray line under FR;
   - the menu button sits over the hero photo; a light backing keeps it readable on bright photos
     (Right to Dignity's bookshelf);
   - a phone held sideways is ~390px tall, and the 520-580px minimum hero hid the headline below
     the fold. */
@media (max-width: 880px) {
  .burger { min-height: 44px; align-items: center; background: rgba(11, 17, 23, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .mobile-menu .lang a { display: inline-block; border-bottom: 0; padding: 12px 8px; }
  .mobile-menu .lang a:first-child { padding-left: 0; }
}
@media (max-width: 760px) {
  .site-footer li { line-height: 2.8; }
  .site-footer li:not(:has(a)) { line-height: 1.5; padding-top: 10px; }  /* the two-line address stays one item */
  .site-footer li a, .facts dd a { position: relative; }
  .site-footer li a::after { content: ""; position: absolute; inset: -10.5px -6px; }
  .facts dd a::after { content: ""; position: absolute; inset: -10px -6px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero, .hero-home { height: max(340px, 100vh); height: max(340px, 100svh); }
  .hero-copy { padding-bottom: 20px; }
}
