:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #8a8a8a;
  --line: #e5e5e5;
  --side: 220px;
  --gap: 12px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

.display {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  line-height: .85;
  letter-spacing: -.01em;
}
.meta, .brand-sub, nav, .btn, .back, .footer, .hero-meta { font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.muted { color: var(--muted); }

/* ---- Shell: sidebar on desktop, top bar on phones ---- */
.shell { display: grid; grid-template-columns: 1fr; }
.sidebar { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
}
.topbar .brand { font: 900 16px/1 var(--display); font-stretch: 125%; text-transform: uppercase; }
.topbar nav ul { display: flex; gap: 14px; }
main { padding: 0 16px; min-width: 0; }

@media (min-width: 1024px) {
  .shell { grid-template-columns: var(--side) minmax(0, 1fr); }
  .topbar { display: none; }
  .sidebar {
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px 32px;
  }
  .sidebar .brand { font: 900 22px/.9 var(--display); font-stretch: 125%; text-transform: uppercase; }
  .brand-sub { margin-top: 12px; line-height: 1.15; max-width: 9rem; }
  .sidebar nav ul { display: grid; gap: 8px; font-size: 13px; }
  main { padding: 0 32px 0 0; }
}
nav a:hover, .back:hover, .contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn { display: block; background: #000; color: #fff; text-align: center; padding: 12px 16px; font-size: 13px; }
.btn:hover { opacity: .85; }

/* ---- Hero ---- */
.hero { padding-top: 16px; }
/* Fallback sizes; app.js then fits [data-fit] titles to exactly one full-width line. */
.hero-title { font-size: calc((100vw - 32px) * .155); white-space: nowrap; }
@media (min-width: 1024px) { .hero { padding-top: 24px; } .hero-title { font-size: calc((100vw - var(--side) - 32px) * .155); } }
.hero-meta { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0 16px; }
.hero-photo { aspect-ratio: 16 / 9; overflow: hidden; background: #efefef; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .hero-photo { aspect-ratio: 4 / 5; } }

/* ---- Sections ---- */
.section { margin-top: 96px; scroll-margin-top: 64px; }
.section-title { font-size: 15vw; margin-bottom: 24px; }
@media (min-width: 640px) { .section-title { font-size: 84px; } }
@media (min-width: 1280px) { .section-title { font-size: 120px; } }
.lead { max-width: 38rem; font-size: 20px; line-height: 1.3; }

/* ---- Work index ---- */
.work-list { border-top: 1px solid var(--ink); }
.work-row { border-bottom: 1px solid var(--ink); }
.work-link { display: block; padding: 18px 0 20px; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.work-title { font-size: 11vw; transition: opacity .2s; }
@media (min-width: 640px) { .work-title { font-size: 64px; } }
@media (min-width: 1280px) { .work-title { font-size: 92px; } }
.work-head .meta { white-space: nowrap; padding-bottom: 6px; }
.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.work-strip .ph { aspect-ratio: 4 / 5; overflow: hidden; background: #efefef; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-link:hover .work-strip img { transform: scale(1.03); }
.work-link:hover .work-title { opacity: .55; }
@media (max-width: 639px) { .work-strip .ph:nth-child(3) { display: none; } .work-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Session page ---- */
.back { display: inline-block; margin-bottom: 16px; }
.session-title { font-size: 12vw; white-space: nowrap; }
@media (min-width: 1024px) { .session-title { font-size: calc((100vw - var(--side) - 32px) * .1); } }
[data-fit] { display: block; overflow: hidden; }
.gallery { columns: 2; column-gap: var(--gap); }
@media (min-width: 1024px) { .gallery { columns: 3; } }
.gallery li { break-inside: avoid; margin-bottom: var(--gap); }
.gallery .ph { display: block; background: #efefef; cursor: zoom-in; }
.gallery img { width: 100%; }
.next-session { display: block; margin-top: 96px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.next-title { display: block; margin-top: 8px; font-size: 13vw; }
@media (min-width: 640px) { .next-title { font-size: 84px; } }
.next-session:hover .next-title { opacity: .55; }

/* ---- Contact / footer ---- */
.contact-list { border-top: 1px solid var(--ink); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.contact-list span { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 16px; margin: 96px 0 0; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---- Lightbox ---- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.97); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; padding: 12px; font: 500 13px var(--sans); text-transform: uppercase; cursor: pointer; color: var(--ink); }
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 24px !important; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
.lb-count { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
