/* The Alpinists — design system
   Direction: white gallery. A white page with generous margins, photos always
   shown whole at their own format (never cropped), minimal copy. */

/* Archivo (SIL OFL), self-hosted variable font: no request to Google, no visitor IP leaving the site */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 500; font-stretch: 100%; font-display: swap;
  src: url('../fonts/archivo-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 500; font-stretch: 100%; font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 300 500; font-stretch: 100%; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f5f4f0;
  --fg: #111110;
  --fg-dim: rgba(17, 17, 16, 0.72);
  --fg-faint: rgba(17, 17, 16, 0.5);
  --accent: #7a7565;
  --rule: rgba(17, 17, 16, 0.14);
  --nav-h: 96px;
  --nav-h-m: 60px;
  --max: 1800px;
  --pad: clamp(20px, 4vw, 60px);   /* page side margin, matches the nav */
  --gap: clamp(10px, 2.7vw, 40px); /* white space between photos, all directions */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

.container { max-width: var(--max); margin: 0 auto; }

/* Nav */
.site-nav {
  /* Over the home hero photo the nav is white; on white pages (.is-static) it is dark. */
  --nav-ink: #ffffff;
  --nav-accent: #d9d6c9;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
}
.site-nav.is-static { position: relative; --nav-ink: var(--fg); --nav-accent: var(--accent); }
.site-nav .logo-link { display: flex; align-items: center; height: 22px; }
.site-nav .logo-link img { height: 22px; width: auto; }
.nav-links { display: flex; gap: clamp(18px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-ink);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--nav-accent); }
.nav-toggle { display: none; }

/* Portrait screens (phones, tablets held upright): the home banner has its text baked into
   the picture, so it is shown whole instead of cropped to fill the screen, and the nav sits
   above it in dark ink like on every other page. */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .is-home .site-nav { position: relative; --nav-ink: var(--fg); --nav-accent: var(--accent); }
  .is-home .site-nav .logo-link img { filter: brightness(0); }  /* the white logo, drawn dark */
}

/* Phones: a slim white bar that stays on screen, so the menu is always one tap away. */
@media (max-width: 760px) {
  .site-nav, .site-nav.is-static, .is-home .site-nav {
    position: sticky; top: 0;
    height: var(--nav-h-m);
    background: var(--bg);
    box-shadow: 0 1px 0 var(--rule);
    --nav-ink: var(--fg); --nav-accent: var(--accent);
  }
  .site-nav .logo-link { height: 44px; padding: 0 12px; margin-left: -12px; }  /* a wider hit area, same look */
  .nav-links {
    position: fixed; inset: 0; top: var(--nav-h-m);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
    gap: 0;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }
  /* the open menu is a white panel with big touch targets */
  .nav-links li { width: 100%; border-bottom: 1px solid var(--rule); }
  .nav-links a { display: block; padding: 18px 0; font-size: 18px; letter-spacing: 0.1em; color: var(--fg); opacity: 1; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-links { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    width: 44px; height: 44px;          /* a proper touch target; the lines sit 9px inside it */
    margin: 0 -9px 0 auto;
    position: relative;
    cursor: pointer;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ""; position: absolute; left: 9px; right: 9px; height: 1px; background: var(--nav-ink);
    transition: top 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle::before { top: 14px; }
  .nav-toggle span { top: 22px; }
  .nav-toggle::after { top: 30px; }
  body.nav-open .nav-toggle::before { top: 22px; transform: rotate(45deg); }
  body.nav-open .nav-toggle span { opacity: 0; }
  body.nav-open .nav-toggle::after { top: 22px; transform: rotate(-45deg); }
}

/* Photo headers (home hero, page heroes) carry white text over a darkened image,
   so they keep white ink even though the page itself is white. */
.hero, .page-hero {
  --fg: #ffffff;
  --fg-dim: rgba(255, 255, 255, 0.78);
  --fg-faint: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 72%, rgba(0,0,0,0.6) 100%);
}
.hero-mark {
  position: relative; z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-mark img { position: static; inset: auto; height: clamp(48px, 8vw, 88px); width: auto; }
.hero-mark .cap { margin-top: 22px; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 5;
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.5);
}
.scroll-cue::after {
  content: ""; position: absolute; left: -2px; top: 0;
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: 0; opacity: 1;} 80% { top: 26px; opacity: 0; } 100% { top: 26px; opacity: 0; } }
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .hero { height: auto; min-height: 0; }
  .hero img { position: static; height: auto; }
  .hero::after, .scroll-cue { display: none; }
}

/* Captions / labels */
.cap {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Full-bleed single image band */
.band { position: relative; width: 100%; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band--tall { height: 100vh; min-height: 620px; }
.band--med { height: 78vh; min-height: 480px; }
.band--short { height: 56vh; min-height: 360px; }

/* Terrain hover effect: custom cursor over homepage imagery.
   Desktop/fine-pointer only, homepage imagery only. */
@media (hover: hover) and (pointer: fine) {
  /* Custom cursor: thin crosshair ring, replaces default pointer over homepage imagery */
  .is-home.terrain-cursor-active .hero,
  .is-home.terrain-cursor-active .band,
  .is-home.terrain-cursor-active .row > .cell,
  .is-home.terrain-cursor-active .mosaic .cell,
  .is-home.terrain-cursor-active .frow > .fcell {
    cursor: none;
  }
  .terrain-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg stroke='white' stroke-width='1.7' stroke-linecap='round'%3E%3Cline x1='12' y1='3' x2='12' y2='21'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.1s ease-out;
    mix-blend-mode: difference;
  }
  .terrain-cursor.is-visible { opacity: 1; }
}

.band-cap {
  position: absolute; left: clamp(20px, 4vw, 56px); bottom: 28px;
  z-index: 3;
}
.band-cap .cap { color: #fff; opacity: 0.9; }

/* Multi-up rows */
.row { display: flex; width: 100%; }
.row > .cell { flex: 1; position: relative; overflow: hidden; }
.row > .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row--2 .cell { height: 66vh; min-height: 420px; }
.row--3 .cell { height: 52vh; min-height: 340px; }

/* Mosaic grid */
.mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 20vh;
  gap: 6px;
  padding: 6px;
}
.mosaic .cell { position: relative; overflow: hidden; }
.mosaic .cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic .span-2 { grid-column: span 2; }
.mosaic .span-3 { grid-column: span 3; }
.mosaic .span-4 { grid-column: span 4; }
.mosaic .row-2 { grid-row: span 2; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 26vh; }
  .mosaic .span-2, .mosaic .span-3, .mosaic .span-4 { grid-column: span 2; }
  .row--2, .row--3 { flex-direction: column; }
  .row--2 .cell, .row--3 .cell { height: 46vh; min-height: 320px; }
}

/* Photo galleries (home + workshop pages): a justified "carpet".
   Content lists the photos of a gallery in order (<div class="gallery">). build.py
   reads each image file and lays them out as rows (<div class="frow">), choosing how
   many photos share a row so every row is a similar height; a photo marked
   class="feature" gets a row to itself. build.py also sets --r (width:height) and --w
   (pixel width) on each .fcell. Within a row a photo grows in proportion to --r, so
   all photos in a row share one height and the row fills the width. Every photo is
   shown whole at its own format, never cropped, and the same white gap (--gap) runs
   between photos in every direction. */
.frow {
  --hmax: 46vw;                        /* no row is taller than this (only a pair of portraits gets there); it is then centred */
  display: flex; justify-content: center; align-items: flex-start;
  gap: var(--gap);
  width: 100%;
  padding: 0 var(--pad);
  margin: var(--gap) 0;
}
.frow > .fcell {
  flex: var(--r, 1.5) 1 0px;
  aspect-ratio: var(--r, 1.5);
  /* stay under --hmax tall, and never wider than the file's own pixels */
  max-width: min(calc(var(--r, 1.5) * var(--hmax)), calc(var(--w, 4000) * 1px));
  min-width: 0; position: relative; overflow: hidden;
}
.frow > .fcell img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* A gallery of just one photo is shown as a single tile, never stretched across the page. */
.frow.lone > .fcell { flex: none; width: calc((100vw - 2 * var(--pad)) * 0.36 * var(--r, 1.5)); }

/* On phones and small tablets every photo gets its own line at full width, at its own
   format. A tall portrait is held to 80% of the screen height so it never outgrows the screen. */
@media (max-width: 800px) {
  .frow { flex-direction: column; align-items: center; }
  .frow > .fcell, .frow.lone > .fcell {
    flex: none; width: 100%;
    max-width: min(calc(var(--r, 1.5) * 80vh), calc(var(--w, 4000) * 1px));
    max-width: min(calc(var(--r, 1.5) * 80svh), calc(var(--w, 4000) * 1px));
  }
}

/* Wordmark break */
.mark-break {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  padding: clamp(60px, 10vh, 120px) 20px;
  text-align: center;
}
.mark-break img { height: clamp(28px, 4vw, 40px); width: auto; opacity: 0.92; }
.mark-break p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--fg-dim);
  font-weight: 300;
}

/* Page headers. The photo keeps its own light and colour (a scrim only where the title sits,
   not a flat veil over everything); the title is set large and light at the bottom left, on
   the page margin, under a small kicker line. The photo settles in and drifts slightly slower
   than the page on scroll (main.js); the title rises in. All motion is off for reduced-motion. */
.page-hero {
  position: relative;
  height: min(72vh, 780px);
  min-height: 440px;
  overflow: hidden;
  background: #1c1b19;
}
.page-hero img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%;   /* headroom for the scroll drift */
  object-fit: cover;
  animation: hero-settle 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  will-change: translate;
}
.page-hero.has-video img { top: 0; height: 100%; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.42) 34%, rgba(0, 0, 0, 0) 70%),
    rgba(0, 0, 0, 0.1);
}
.page-hero .page-title {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 18px; text-align: left;
  padding: 0 var(--pad) clamp(26px, 6vh, 60px);
}
.page-title h1 {
  margin: 0; max-width: 14em;
  font-weight: 300; font-size: clamp(38px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -0.025em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.page-title h1 .dim { opacity: 0.62; }
.page-title .kicker {
  display: flex; align-items: flex-start; gap: 14px; margin: 0;
  font-size: 12px; line-height: 1.5; letter-spacing: 0.18em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}
.page-title .kicker::before { content: ""; width: 36px; height: 1px; margin-top: 0.75em; background: currentColor; opacity: 0.8; flex: none; }

/* Member pages: the portrait is a square, and cropping it into a wide banner cuts the face
   off. On wider screens it is shown whole beside the name, on white. Phones keep the
   overlay header above. */
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 761px) {
  .page-hero.member {
    --fg: #111110; --fg-dim: rgba(17, 17, 16, 0.72); --fg-faint: rgba(17, 17, 16, 0.5);
    color: var(--fg);
    height: auto; min-height: 0; overflow: visible; background: none;
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: end;
    gap: clamp(36px, 7vw, 120px);
    max-width: var(--max); margin: 0 auto; padding: clamp(24px, 5vh, 56px) var(--pad) 0;
  }
  .page-hero.member img { position: static; width: 100%; height: auto; aspect-ratio: 1; animation: hero-fade 1.2s ease both; }
  .page-hero.member::after { display: none; }
  .page-hero.member .page-title { height: auto; padding: 0 0 clamp(4px, 1vh, 12px); }
  .page-hero.member .page-title h1 { text-shadow: none; }
  .page-hero.member .page-title .kicker { color: var(--fg-dim); text-shadow: none; }
}

@keyframes hero-settle { from { scale: 1.12; } to { scale: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.page-title > * { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.22s both; }
.page-title > .kicker { animation-delay: 0.1s; }
@media (prefers-reduced-motion: reduce) {
  .page-hero img, .page-title > * { animation: none; }
}
@media (max-width: 760px) {
  .page-hero img { top: 0; height: 100%; }   /* no scroll drift on phones */
  .page-title .kicker { letter-spacing: 0.14em; gap: 12px; }
  .page-title .kicker::before { width: 24px; }
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 110px) clamp(20px, 4vw, 0px);
}
.prose p { font-size: 16px; line-height: 1.75; color: var(--fg-dim); font-weight: 300; margin: 0 0 22px; }
.prose h2 { font-weight: 300; font-size: 22px; letter-spacing: 0.02em; margin: 0 0 20px; }

.section-pad { padding: clamp(50px, 8vh, 90px) clamp(20px, 4vw, 56px); }

/* Cards (members / journal / events) */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2px;
}
.card { position: relative; overflow: hidden; aspect-ratio: 4/5; display: block; text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover img { transform: scale(1.04); }
.card::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.75) 100%); }
.card .card-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  font-size: 13px; letter-spacing: 0.04em; color: #fff;
}
.card .card-label .sub { display:block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); margin-top: 4px; }

/* List rows (events / workshops) */
.list-rows { border-top: 1px solid var(--rule); }
.list-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.list-row .lr-main { display: flex; align-items: center; gap: 18px; min-width: 0; }
.list-row .lr-thumb { height: 88px; width: auto; flex-shrink: 0; display: block; }
.list-row .lr-title { font-size: 17px; font-weight: 400; }
.list-row .lr-meta { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
a.list-row { text-decoration: none; color: inherit; transition: opacity 0.2s ease; }
a.list-row:hover { opacity: 0.6; }
a.list-row .lr-arrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
@media (max-width: 640px) {
  .list-row .lr-thumb { height: 60px; }
}
/* Rows with thumbnail + title, a date and an arrow label (workshops, journal): the date and the
   label sit in fixed columns, so they line up from row to row whatever the title's length. */
.list-rows.cols .lr-thumb { aspect-ratio: 3 / 2; width: auto; object-fit: cover; }   /* same box for every photo, so titles start on one line */
@media (min-width: 761px) {
  .list-rows.cols .list-row { display: grid; grid-template-columns: minmax(0, 1fr) 13.5em 8em; gap: 0 24px; }
  .list-rows.cols .lr-arrow { text-align: right; }
}

/* Coming-soon rows (not links) and guest testimonials on the workshops page */
.eyebrow { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 12px !important; }
.list-row.is-soon .lr-thumb { opacity: 0.88; }
.list-row.is-soon .lr-arrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.guests { background: var(--bg-alt); padding: clamp(56px, 9vh, 110px) clamp(20px, 4vw, 56px); }
.guests .prose { padding-left: 0; padding-right: 0; padding-bottom: 0; margin-left: 0; max-width: var(--max); }
.guests .prose h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: clamp(28px, 5vh, 56px); }
.guest-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: var(--max); }
.guest-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; display: block; object-fit: cover; object-position: 50% 45%; }
.guest-quote { margin: 0; }
.guest-quote blockquote { margin: 0; }
.guest-quote blockquote p { font-size: clamp(18px, 1.9vw, 25px); line-height: 1.6; font-weight: 300; margin: 0 0 24px; }
.guest-quote figcaption { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.quote-grid { columns: 320px 4; column-gap: clamp(16px, 2.2vw, 32px); margin-top: clamp(40px, 7vh, 80px); max-width: var(--max); }
.quote-card { margin: 0 0 clamp(16px, 2.2vw, 32px); break-inside: avoid; background: var(--bg); padding: clamp(22px, 2.4vw, 34px); }
.quote-card figcaption { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 13px; letter-spacing: 0.1em; color: var(--fg); }
.quote-card figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-size: 15px; line-height: 1.7; color: var(--fg-dim); margin: 0 0 12px; }
.quote-card details p { margin-top: 12px; }
.quote-card summary { cursor: pointer; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); list-style: none; }
.quote-card summary::-webkit-details-marker { display: none; }
.quote-card summary:hover { color: var(--fg); }
.quote-card details[open] summary { display: none; }
@media (max-width: 760px) {
  .guest-feature { grid-template-columns: 1fr; }
  .guest-photo { }
}

/* Page-hero background video (YouTube), sized to always cover via JS */
.page-hero-video { position: absolute; inset: 0; overflow: hidden; }
.page-hero-video iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border: 0; pointer-events: none;
}

/* Workshop / event detail pages */
.w-facts {
  display: flex; flex-wrap: wrap; gap: 28px 48px; justify-content: center;
  max-width: 900px; margin: 0 auto; padding: clamp(40px, 6vh, 60px) 20px 0;
  text-align: center;
}
.w-facts div { min-width: 100px; }
.w-facts .f-label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.w-facts .f-value { font-size: 15px; color: var(--fg); }

.w-columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 900px; margin: 0 auto; padding: 0 20px;
}
.w-columns h3 { font-weight: 400; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 16px; }
.w-columns ul { list-style: none; margin: 0; padding: 0; }
.w-columns li { font-size: 15px; line-height: 1.7; color: var(--fg-dim); padding: 8px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 640px) { .w-columns { grid-template-columns: 1fr; gap: 8px; } }

/* Events page: every event is one block (date, text, facts, its own photos), blocks are separated by a rule */
.ev-section { padding: clamp(56px, 9vh, 100px) 0 0; }
.ev-section-head { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); }
.ev-section-head h2 { font-weight: 300; font-size: clamp(28px, 4vw, 44px); letter-spacing: 0.01em; margin: 0; }
.event { margin: clamp(28px, 5vh, 52px) 0 0; }
.ev-head { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 6vw, 96px); }
.ev-head::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--rule); margin-bottom: clamp(8px, 2vh, 24px); }
.ev-date { font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; color: var(--fg); margin: 0; }
.ev-date .yr { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.ev-body .eyebrow { margin-bottom: 8px !important; }
.ev-body h3 { font-weight: 300; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; letter-spacing: 0.01em; margin: 0 0 22px; }
.ev-body p { font-size: 16px; line-height: 1.75; color: var(--fg-dim); font-weight: 300; margin: 0 0 20px; }
.ev-facts { margin: 28px 0 0; border-top: 1px solid var(--rule); }
.ev-facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.6; }
.ev-facts dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); padding-top: 3px; }
.ev-facts dd { margin: 0; color: var(--fg); }
.ev-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; }
.ev-links .btn-line { margin: 0; }
.ev-photos { margin-top: clamp(32px, 5vh, 56px); }
.ev-photos .ev-caption { margin: 0; padding: 0 var(--pad); }
.ev-photos .gallery { margin-top: 18px; }
.ev-caption { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); }
.ev-end { height: clamp(56px, 9vh, 100px); }
@media (max-width: 760px) {
  .ev-head { grid-template-columns: 1fr; }
  .ev-facts div { grid-template-columns: 1fr; }
}

/* Embedded workshop video (YouTube, privacy-enhanced mode) */
.w-video { max-width: 1000px; margin: 0 auto; padding: clamp(36px, 6vh, 64px) clamp(20px, 4vw, 56px); }
.w-video .eyebrow { text-align: center; }
.w-video .ratio { position: relative; aspect-ratio: 16 / 9; background: #000; }
.w-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.w-quotes {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px;
  background: var(--rule);
}
.w-quotes blockquote {
  margin: 0; padding: clamp(28px, 4vw, 40px); background: var(--bg);
}
.w-quotes p { font-size: 14px; line-height: 1.7; color: var(--fg-dim); margin: 0 0 14px; font-style: italic; }
.w-quotes cite { font-size: 12px; letter-spacing: 0.08em; color: var(--fg-faint); font-style: normal; }

.w-faq { max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; border-top: 1px solid var(--rule); }
.w-faq details { border-bottom: 1px solid var(--rule); padding: 18px 0; }
.w-faq summary {
  cursor: pointer; font-size: 15px; color: var(--fg); list-style: none; position: relative; padding-right: 28px;
}
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after {
  content: "+"; position: absolute; right: 0; top: -2px; font-size: 18px; color: var(--fg-faint); transition: transform 0.2s ease;
}
.w-faq details[open] summary::after { transform: rotate(45deg); }
.w-faq details p { font-size: 14px; line-height: 1.7; color: var(--fg-dim); margin: 14px 0 0; }

.w-cta {
  max-width: 720px; margin: 0 auto; padding-left: 20px; padding-right: 20px; text-align: center;
}
.w-cta .price { font-size: 28px; font-weight: 300; margin: 0 0 6px; }
.w-cta .price-note { font-size: 13px; color: var(--fg-faint); margin: 0 0 4px; }

/* Forms */
.w-form { max-width: 720px; margin: 40px auto 48px; padding: 0 20px; }
.w-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.w-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.w-form .f-field { display: flex; flex-direction: column; gap: 8px; }
.w-form .f-field.full { grid-column: 1 / -1; }
.w-form .f-field.full { margin-bottom: 20px; }
.w-form label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.w-form input[type="text"],
.w-form input[type="email"],
.w-form input[type="tel"],
.w-form select,
.w-form textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--rule);
  color: var(--fg); font-family: inherit; font-size: 15px; font-weight: 300;
  padding: 8px 2px; border-radius: 0; appearance: none; -webkit-appearance: none;
}
.w-form select {
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-faint) 50%), linear-gradient(135deg, var(--fg-faint) 50%, transparent 50%);
  background-position: calc(100% - 10px) 14px, calc(100% - 4px) 14px;
  background-size: 6px 6px; background-repeat: no-repeat;
}
.w-form select option { background: var(--bg-alt); color: var(--fg); }
.w-form input:focus, .w-form select:focus, .w-form textarea:focus { outline: none; border-color: var(--fg); }
.w-form textarea { resize: vertical; min-height: 90px; }
.w-form .f-choices { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.w-form .f-choice { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-dim); }
.w-form .f-choice input { accent-color: var(--fg); }
.w-form .f-legend { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 10px; display: block; }
.w-form .f-agree { font-size: 13px; color: var(--fg-faint); margin: 0 0 24px; }
.w-form .f-agree a { color: var(--fg-dim); }
.w-form .f-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--fg-dim); margin: 0 0 16px; cursor: pointer; }
.w-form .f-consent input { accent-color: var(--fg); width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.w-form .f-consent a { color: var(--fg); }
.w-form .honey { position: absolute; left: -9999px; }
.w-form button.btn-solid {
  font-family: inherit; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--fg); color: var(--bg); border: none; padding: 14px 32px; cursor: pointer;
}
.w-form button.btn-solid:hover { background: var(--accent); }
@media (max-width: 640px) { .w-form .f-row { grid-template-columns: 1fr; } }

.figure-inline { display: flex; flex-direction: column; align-items: center; padding: clamp(30px, 5vh, 56px) 20px; }
.figure-inline img { max-width: 560px; width: 100%; height: auto; }
.figure-inline .cap { max-width: 560px; margin: 12px 0 0; text-align: center; }
.figure-inline.wide img, .figure-inline.wide .cap { max-width: 900px; }

/* Sponsor / partner logos */
.w-sponsors { text-align: center; padding: clamp(40px, 7vh, 72px) 20px; }
.w-sponsors .sp-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-faint); margin: 0 0 28px;
}
.w-sponsors .sp-row { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 64px); flex-wrap: wrap; }
.w-sponsors .sp-row img {
  height: clamp(60px, 9vw, 110px); width: auto; opacity: 0.6; filter: brightness(0);
  transition: opacity 0.3s ease;
}
.w-sponsors .sp-row img:hover { opacity: 1; }
/* A wide wordmark at the shared logo height would dominate the row, so it gets a smaller one. */
.w-sponsors .sp-row img.sp-wide { height: clamp(40px, 6.3vw, 80px); }

/* Buttons / links */
.btn-line {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.btn-line:hover { border-color: var(--fg); color: var(--accent); }
button.btn-line { background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0 0 6px; font-family: inherit; cursor: pointer; }
.stats-optout { margin: 0 0 22px; padding: 18px 22px; border: 1px solid var(--rule); }
.stats-optout p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  padding: clamp(50px, 8vh, 80px) 20px;
  text-align: center;
}
.site-footer img { height: 22px; width: auto; opacity: 0.9; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; opacity: 0.85; }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-copy { font-size: 11px; color: var(--fg-faint); margin-top: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: #fff; color: #000; padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Phones and small tablets ---------- */

/* Photo blocks that still use the older row / mosaic / band markup (journal, business,
   events) are stacked at their own format instead of being cropped to a fixed height. */
@media (max-width: 800px) {
  .row--2, .row--3, .mosaic {
    display: flex; flex-direction: column; align-items: center;
    gap: var(--gap); padding: 0 var(--pad); margin: var(--gap) 0;
  }
  .row .cell, .mosaic .cell { flex: none; width: 100%; height: auto; min-height: 0; }
  .row .cell img, .mosaic .cell img, .band img {
    height: auto; max-height: 80vh; max-height: 80svh; object-fit: contain;
  }
  .band, .band--tall, .band--med, .band--short { height: auto; min-height: 0; padding: 0 var(--pad); margin: var(--gap) 0; }
  .band-cap { position: static; padding: 10px 0 0; }
  .band-cap .cap { color: var(--fg-dim); }
}

/* Inputs at 16px, or iOS Safari zooms the page when one is focused. */
@media (max-width: 760px) {
  .w-form input[type="text"], .w-form input[type="email"], .w-form input[type="tel"],
  .w-form select, .w-form textarea { font-size: 16px; padding: 12px 2px; }
  .w-form select { background-position: calc(100% - 10px) 20px, calc(100% - 4px) 20px; }
}

@media (hover: none) {
  a.list-row:hover { opacity: 1; }
  a.list-row:active { opacity: 0.6; }
  .card:hover img { transform: none; }
  .w-sponsors .sp-row img:hover { opacity: 0.6; }
}

@media (max-width: 640px) {
  .page-hero { height: 52vh; height: 52svh; min-height: 300px; max-height: 460px; }

  .prose { padding-top: 40px; padding-bottom: 40px; }
  /* a prose block inside a padded section must not add its own side padding on top of it */
  .section-pad .prose { padding-left: 0; padding-right: 0; padding-bottom: 20px; }
  .section-pad { padding-top: 40px; padding-bottom: 40px; }

  .w-facts { gap: 22px 28px; }
  .w-facts div { min-width: 120px; }
  .w-form { margin-top: 24px; }
  .w-form .f-choice { min-height: 40px; }
  .w-form .f-choice input { width: 20px; height: 20px; flex: none; }
  .w-form button.btn-solid { width: 100%; padding: 16px 32px; }
  /* the whole question row is the tap target */
  .w-faq details { padding: 0; }
  .w-faq summary { padding: 16px 32px 16px 0; }
  .w-faq summary::after { top: 12px; }
  .w-faq details p { margin: 0 0 18px; }

  /* the team: two to a row on the same white wall as the photos */
  .grid-cards { grid-template-columns: repeat(2, 1fr); gap: var(--gap); padding: 0 var(--pad); }
  .card .card-label { left: 12px; bottom: 12px; right: 8px; }
  .card .card-label .sub { font-size: 10px; letter-spacing: 0.06em; overflow: hidden; text-overflow: ellipsis; }

  /* list rows: thumbnail + title on top, date left and the arrow right below */
  .list-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: start; padding: 16px 0; }
  .list-row .lr-main { grid-column: 1 / -1; gap: 16px; }
  .list-row .lr-meta { grid-column: 1; }
  .list-row .lr-arrow { grid-column: 2; white-space: nowrap; }
  .list-row .lr-thumb { height: 72px; }
  .list-row .lr-title { font-size: 18px; line-height: 1.3; }

  .footer-links { gap: 4px 20px; }
  .footer-links a { padding: 13px 0; }
}

/* Home: "Slow Cinema". A full-screen slideshow of the collective's photos (slow cross-fades,
   a barely visible push-in), then a statement, three doors, the photo archive and the book.
   Slides are driven by home.js; with reduced motion the first photo simply stays. */
.rv-on .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.rv-on .rv.in { opacity: 1; transform: none; }

.cin { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #111; color: #fff; }
.sl { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; transform: scale(1.02); }
.sl.on { opacity: 1; }
/* .out is the photo that is fading away. It keeps the same animation, so the push-in carries on
   through the cross-fade instead of snapping back to the start scale. home.js drops .out afterwards. */
.sl.on, .sl.out { animation: cin-push 9s ease-out forwards; }
@keyframes cin-push { from { transform: scale(1.02); } to { transform: scale(1.12) translate(-1%, -1%); } }
.cin-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent 28%, transparent 45%, rgba(0,0,0,0.72)); }
.cin-copy { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: clamp(90px, 16vh, 150px); max-width: 1100px; }
.cin-copy h1 { font-weight: 300; font-size: clamp(40px, 7.4vw, 112px); line-height: 1; letter-spacing: -0.03em; margin: 0.2em 0 0.5em; }
.kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0; opacity: 0.9; }
.kicker.dark { color: var(--accent); opacity: 1; }
.cin-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-fill, .btn-ghost { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: 1px solid #fff; transition: background 0.3s, color 0.3s; }
.btn-fill { background: #fff; color: #111; }
.btn-fill:hover { background: transparent; color: #fff; }
.btn-ghost:hover { background: #fff; color: #111; }
.cin a:focus-visible, .cin button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cin-meta { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 22px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.cin-cap, .cin-count { opacity: 0.85; white-space: nowrap; }
.cin-count b { font-weight: 400; }
.cin-bar { flex: 1; height: 1px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.cin-bar i { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.cin-bar i.run { animation: cin-bar 5.5s linear forwards; }
.cin.paused .cin-bar i.run, .cin.paused .sl.on, .cin.paused .sl.out { animation-play-state: paused; }
@keyframes cin-bar { to { transform: scaleX(1); } }
.cin-pause { font: inherit; letter-spacing: inherit; text-transform: inherit; color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.5); padding: 4px 0; cursor: pointer; }
.cin-pause:hover { border-color: #fff; }

.statement { padding: clamp(70px, 14vh, 160px) var(--pad); max-width: 1200px; margin: 0 auto; }
.statement p { font-size: clamp(24px, 3.6vw, 50px); line-height: 1.25; font-weight: 300; letter-spacing: -0.015em; margin: 0; }

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); padding: 0 var(--pad); }
.door { position: relative; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.door:hover img { transform: scale(1.06); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.72)); }
.door-t { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 22px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.02em; }
.door-t small { display: block; font-size: 12px; letter-spacing: 0.14em; opacity: 0.8; margin-bottom: 6px; }
.door-t em { display: block; font-style: normal; font-size: 15px; letter-spacing: 0; opacity: 0.85; margin-top: 6px; max-height: 0; overflow: hidden; transition: max-height 0.5s; }
.door:hover .door-t em, .door:focus-visible .door-t em { max-height: 60px; }
.door:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.archive { padding: clamp(80px, 14vh, 150px) var(--pad) 0; }
.wt-head h2 { font-weight: 300; font-size: clamp(28px, 4vw, 56px); letter-spacing: -0.02em; margin: 0; }

.book { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--gap); align-items: center; padding: clamp(80px, 14vh, 150px) var(--pad); max-width: 1600px; margin: 0 auto; }
.book img { width: 100%; height: auto; }
.book h2 { font-weight: 300; font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -0.025em; margin: 0.2em 0; }
.book p { color: var(--fg-dim); font-size: 18px; }
.book .kicker { font-size: 12px; margin: 0; }

/* Portrait screens: the nav sits above the slideshow (see above), so it fills what is left. */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .cin { height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 480px; }
}
@media (max-width: 760px) {
  .cin { height: calc(100vh - var(--nav-h-m)); height: calc(100svh - var(--nav-h-m)); }
}
@media (max-width: 800px) {
  .doors { grid-template-columns: 1fr; }
  .door { aspect-ratio: 4 / 5; }
  .door-t em { max-height: 60px; }
  .book { grid-template-columns: 1fr; }
  .cin-cap { display: none; }
  .cin-meta { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
  .sl, .sl.on, .sl.out { animation: none; transition: none; transform: none; }
  .cin-bar, .cin-pause { display: none; }
}
