/* ==========================================================================
   Inner pages: Projektowanie oświetlenia, Realizacje and each project.
   Same language as the home page: hairlines instead of boxes, 2px images lit
   from above, Cormorant for titles and numerals, the brass pendant and its beam.
   ========================================================================== */

main figure {
  margin: 0;
}
.num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent);
}
.caption {
  margin: 14px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Photographs: 2px corners, lit from above like the portrait */
.panel,
.gallery-item img,
.tech-item img,
.doc-item,
.sim-media {
  border-radius: 2px;
  box-shadow:
    0 2px 4px rgb(4 10 22 / 0.18),
    0 30px 50px -26px rgb(2 6 16 / 0.6);
}
.panel {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 232 190 / 0.8), transparent);
  pointer-events: none;
}
.panel img.cover,
.panel > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel img.fit-contain {
  object-fit: contain;
  padding: 5%;
}
.zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 300ms var(--ease);
}
.text-link:hover {
  border-color: var(--accent);
}
.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms var(--ease);
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* The brass pendant and its beam, as on the home page and the contact panel */
.lamp {
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  --cable: 64px;
}
.lamp-cable {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: var(--cable);
  background: linear-gradient(transparent, #5a4a35);
}
.lamp-fixture {
  position: absolute;
  top: calc(var(--cable) - 2px);
  left: -13px;
  width: 26px;
  height: 36px;
  border-radius: 3px 3px 5px 5px;
  background: linear-gradient(90deg, #241d14, #5e4729 22%, #c09257 46%, #8a6a3c 58%, #3b2f1f 82%, #1d1710);
}
.lamp-fixture::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: -2px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff 0%, #fff4dc 40%, #ffd28a 75%, #e9a24e 100%);
  box-shadow:
    0 0 2px 1px #fff,
    0 0 8px 3px rgb(255 240 214 / 0.95),
    0 0 24px 9px rgb(255 214 150 / 0.5),
    0 0 64px 22px rgb(232 172 92 / 0.2);
}
/* Same light as the contact panel: a soft scallop wash under the fixture,
   and a faint cone that fades out long before its edges could read as a shape. */
.lamp-scallop {
  position: absolute;
  top: calc(var(--cable) + 30px);
  left: -280px;
  width: 560px;
  height: 520px;
  background: radial-gradient(
    ellipse 46% 70% at 50% 0%,
    rgb(255 236 200 / calc(var(--lamp-k) * 1.3)) 0%,
    rgb(232 172 92 / calc(var(--lamp-k) * 0.55)) 28%,
    rgb(232 172 92 / calc(var(--lamp-k) * 0.16)) 55%,
    rgb(232 172 92 / 0) 80%
  );
  -webkit-mask-image: radial-gradient(ellipse 52% 150% at 50% 100%, #000 60%, transparent 66%);
  mask-image: radial-gradient(ellipse 52% 150% at 50% 100%, #000 60%, transparent 66%);
  filter: blur(4px);
  mix-blend-mode: var(--light-blend);
}
.lamp-beam {
  position: absolute;
  top: calc(var(--cable) + 34px);
  left: -490px;
  width: 980px;
  height: 900px;
  filter: blur(9px);
  mix-blend-mode: var(--light-blend);
}
.lamp-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(48.8% 0, 51.2% 0, 100% 100%, 0 100%);
  background: linear-gradient(
    to bottom,
    rgb(255 222 168 / calc(var(--lamp-k) * 1.04)) 0%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.72)) 5%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.48)) 12%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.3)) 22%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.19)) 34%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.12)) 48%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.07)) 64%,
    rgb(255 222 168 / calc(var(--lamp-k) * 0.03)) 82%,
    rgb(255 222 168 / 0) 100%
  );
}
.lamp {
  --lamp-k: 0.5;
}
:root[data-theme="light"] .lamp {
  --lamp-k: 0.42;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .lamp {
    --lamp-k: 0.42;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lamp-fixture::after {
    animation: switch-on 1100ms ease-out 200ms both;
  }
  .lamp-beam,
  .lamp-scallop {
    animation:
      warm-up 1800ms var(--ease) 700ms both,
      breathe 9s ease-in-out 2.6s infinite;
  }
}

/* Page heads */
.page-head {
  position: relative;
  overflow: hidden;
  padding: 168px 0 clamp(48px, 6vw, 80px);
  text-align: center;
}
.page-head .container {
  position: relative;
}
.page-head .page-subtitle,
.page-head .page-lead {
  margin-left: auto;
  margin-right: auto;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}
.page-title em {
  font-style: italic;
  color: var(--accent);
}
.page-subtitle {
  max-width: 30ch;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  color: var(--ink);
}
.page-lead {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
}

/* Section heads and blocks */
.block-head {
  max-width: 760px;
  margin: 0 auto clamp(44px, 5vw, 64px);
  text-align: center;
}
.block-head-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px;
  align-items: end;
  max-width: none;
  text-align: left;
}
.block-head-split > :last-child {
  justify-self: end;
  max-width: 46ch;
}
.block-lead {
  max-width: 60ch;
  margin: 22px auto 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.block-head-split .block-lead {
  margin: 0;
}
.block-note {
  max-width: 62ch;
  margin: 44px auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
}
.sub-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.05;
}
.card-heading {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.15;
}
.card p {
  color: var(--muted);
}
.card p:last-child {
  margin-bottom: 0;
}
.card {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
/* A wall of hairline cells, like the credentials on the home page */
.cards {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.cards > .card {
  padding: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px);
  border-top: 0;
  background: var(--bg);
}
.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cards .card .num + .card-heading {
  margin-top: 18px;
}
.card-wide {
  grid-column: span 2;
}
.approach {
  max-width: 820px;
  margin: clamp(72px, 9vw, 112px) auto 0;
  text-align: center;
}
.approach .pull-quote {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.approach figcaption {
  margin-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.approach figcaption a {
  color: var(--ink);
  text-decoration: none;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.two-col p {
  margin: 0;
}

/* Lighting design page: audiences on one line under the title */
.audience-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 36px auto 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  color: var(--ink);
}
.audience-line li + li::before {
  content: "·";
  margin: 0 16px;
  color: var(--accent);
}
.audience-more {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* See the light before installation: one image, two readings, a draggable seam */
.see {
  padding-bottom: var(--section);
}
.slider {
  margin: 0;
}
.slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 1672 / 1045;
  background: var(--bg-raised);
  box-shadow:
    0 2px 4px rgb(4 10 22 / 0.18),
    0 40px 70px -34px rgb(2 6 16 / 0.7);
}
.slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-over {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 1px;
  background: rgb(255 236 204 / 0.9);
  box-shadow: 0 0 12px 2px rgb(var(--glow) / 0.55);
  pointer-events: none;
}
.slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 1px solid rgb(255 236 204 / 0.95);
  border-radius: 50%;
  background: rgb(10 18 32 / 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff6e6;
  transition:
    transform 300ms var(--ease),
    border-color 300ms var(--ease);
}
.slider-knob svg {
  width: 26px;
  height: 26px;
}
.slider-frame:hover .slider-knob,
.slider-frame:has(.slider-range:focus-visible) .slider-knob {
  transform: scale(1.08);
  border-color: var(--accent);
}
/* The invitation: a hand sweeping left and right under the knob, and a soft
   ring breathing out of it, until the visitor first moves the seam. */
.slider-hint {
  position: absolute;
  top: calc(50% + 34px);
  left: var(--pos);
  width: 38px;
  height: 38px;
  margin-left: -10px;
  color: #fff6e6;
  filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.6));
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
.slider-hint svg {
  width: 100%;
  height: 100%;
}
.slider[data-touched] .slider-hint {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .slider-hint {
    animation: hint-swipe 2.2s ease-in-out infinite;
  }
  .slider:not([data-touched]) .slider-knob {
    animation: knob-ring 2.2s ease-out infinite;
  }
}
@keyframes hint-swipe {
  0%,
  100% {
    transform: translateX(-16px) rotate(-8deg);
  }
  50% {
    transform: translateX(16px) rotate(8deg);
  }
}
@keyframes knob-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(240 176 106 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px rgb(240 176 106 / 0);
  }
}
.slider-tag {
  position: absolute;
  bottom: 16px;
  padding: 4px 10px;
  border-radius: 2px;
  background: rgb(10 18 32 / 0.7);
  color: #e8edf5;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.slider-tag-left {
  left: 16px;
}
.slider-tag-right {
  right: 16px;
}
.slider-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.slider-range:focus-visible + .slider-handle,
.slider-frame:has(.slider-range:focus-visible) .slider-handle::after {
  border-color: var(--accent);
}
.slider figcaption {
  max-width: 820px;
  margin: clamp(48px, 6vw, 72px) auto 0;
  text-align: center;
}
.slider figcaption .two-col {
  text-align: left;
}
.two-col strong {
  color: var(--ink);
  font-weight: 600;
}

/* Who I design for: an index of rows */
.index-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.index-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: baseline;
  gap: 12px 48px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.index-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
}
.index-row p {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-soft);
}

/* Stages: a sticky aside beside a lit vertical sequence */
.split-sticky {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(48px, 7vw, 112px);
  align-items: start;
}
.split-aside {
  position: sticky;
  top: 120px;
}
.split-aside .block-lead {
  margin: 22px 0 0;
}
.aside-note {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--ink);
}
.stages {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stages::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 1px;
  background: linear-gradient(to bottom, rgb(var(--glow) / 0.9), rgb(var(--glow) / 0.15));
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 28px;
  padding: 0 0 44px;
}
.stage:last-child {
  padding-bottom: 0;
}
.stage-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--accent);
}
.stage-title {
  margin: 6px 0 8px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1.15;
}
.stage p {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
}

/* Documentation */
.dot-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  max-width: 980px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.35;
  text-align: center;
}
.dot-list li + li::before {
  content: "·";
  margin: 0 14px;
  color: var(--accent);
}
.doc-plates {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.doc-side {
  display: grid;
  gap: 24px;
}
.doc-item {
  overflow: hidden;
  padding: 6px;
  background: #f4f6fa;
}
.doc-item img {
  width: 100%;
}

/* Lighting scenes */
.scene-stage {
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.scene-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.37, 0, 0.63, 1);
}
.scene-layer[data-active] {
  opacity: 1;
}
.scene-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0s 250ms;
}
.scene-layer[data-active] img {
  transform: scale(1.04);
  transition: transform 1500ms linear;
}
.scene-tabs {
  display: flex;
  gap: 24px;
  margin-top: 18px;
}
.scene-tabs[hidden] {
  display: none;
}
.scene-bar {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.scene-label {
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  transition: color 300ms;
}
.scene-label .short {
  display: none;
}
.scene-bar[aria-current] .scene-label,
.scene-bar:hover .scene-label {
  color: var(--ink);
}
.scene-track {
  position: relative;
  display: block;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}
.scene-track::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}
.scene-bar[data-done] .scene-track::after {
  transform: scaleX(1);
}
.scene-bar[data-active] .scene-track::after {
  animation: scene-fill 1250ms linear forwards;
}
.scene-switcher[data-paused] .scene-bar[data-active] .scene-track::after {
  animation-play-state: paused;
}
@keyframes scene-fill {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-layer[data-active] img {
    transform: none;
  }
}

/* Simulations: a glossary, then one filmstrip per design */
.glossary {
  margin: 0;
  border-top: 1px solid var(--line);
}
.glossary-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 12px 48px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.glossary dt {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.15;
}
.glossary dd {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
}
.sim-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 32px;
  margin: clamp(80px, 10vw, 120px) 0 32px;
}
.sim-intro p {
  max-width: 44ch;
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.sim-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sim-row {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.sim-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 18px;
}
.sim-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.1;
}
.sim-summary {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.filmstrip {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 24vw, 300px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.filmstrip:focus-visible {
  outline-offset: 6px;
}
.sim-tile {
  scroll-snap-align: start;
}
.sim-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-raised);
}
.sim-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease);
}
.sim-tile:hover .sim-media img {
  transform: scale(1.03);
}
.sim-tile figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 72px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band p {
  max-width: 44ch;
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  color: var(--ink);
}

/* Help choosing luminaires: two alternating rows, like the projects */
.support-rows {
  display: grid;
  gap: clamp(64px, 9vw, 120px);
}
.support-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.support-row:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.support-row:nth-child(even) .support-media {
  order: 2;
}
.support-media {
  aspect-ratio: 4 / 3;
}
.support-text p {
  max-width: 48ch;
  color: var(--ink-soft);
}
.support-text .row-title {
  margin-bottom: 18px;
}
.support-text strong {
  color: var(--ink);
  font-weight: 600;
}

/* Closing: centred, like the contact panel on the home page */
.closing {
  text-align: center;
}
.closing-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 64px;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}
.closing-cols p {
  margin: 0;
  color: var(--ink-soft);
}
.closing-action {
  margin-top: 48px;
}
.closing-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}
.closing-meta li + li::before {
  content: "·";
  margin: 0 14px;
  color: var(--accent);
}
.closing-meta a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

/* Realizacje list */
.project-filter {
  padding-bottom: clamp(88px, 12vw, 160px);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 32px;
  margin-bottom: 56px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.choice {
  position: relative;
  padding: 10px 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 300ms var(--ease);
}
.choice::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.choice:hover,
.choice:has(input:checked) {
  color: var(--ink);
}
.choice:has(input:checked)::after {
  transform: scaleX(1);
}
.choice:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.project-rows {
  display: grid;
  gap: clamp(80px, 11vw, 150px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.project-link {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  text-decoration: none;
}
.project-row:nth-child(even) .project-link {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}
.project-row:nth-child(even) .row-media {
  order: 2;
}
.row-media {
  aspect-ratio: 4 / 3;
}
.row-media img {
  transition: transform 1200ms var(--ease);
}
.project-link:hover .row-media img {
  transform: scale(1.025);
}
.row-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  text-wrap: balance;
  transition: color 300ms var(--ease);
}
.project-link:hover .row-title {
  color: var(--accent);
}
.row-meta {
  margin: 12px 0 0;
  color: var(--muted);
}
.row-description {
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.row-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.95rem;
  transition: border-color 300ms var(--ease);
}
.row-more svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms var(--ease);
}
.project-link:hover .row-more {
  border-color: var(--accent);
}
.project-link:hover .row-more svg {
  transform: translateX(3px);
}

/* Signature: photographs switch on as they reach the light, with the brief
   flicker of a lamp. Visible (dimmed, never hidden) until pages.js lights them. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .row-media img,
  .gallery-item img,
  .support-media img {
    filter: brightness(0.45) saturate(0.7);
  }
  .is-lit img {
    animation: lamp-on 1500ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}
@keyframes lamp-on {
  0% {
    filter: brightness(0.45) saturate(0.7);
  }
  10% {
    filter: brightness(1.08) saturate(1);
  }
  18% {
    filter: brightness(0.62) saturate(0.85);
  }
  30% {
    filter: brightness(1) saturate(1);
  }
  100% {
    filter: none;
  }
}
/* Material kinds as a dotted line of small capitals */
.kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.kinds li + li::before {
  content: "·";
  margin: 0 10px;
  color: var(--accent);
}

/* One project */
.project-head {
  padding-bottom: 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb [aria-current] {
  color: var(--ink-soft);
}
.project-city {
  margin: 16px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: clamp(40px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.credits > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 24px 14px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.credits > div:last-child {
  border-right: 0;
}
.credits dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.credits dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}
.project-text {
  max-width: 64ch;
  margin: clamp(40px, 5vw, 56px) auto 0;
}
.project-description {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
}
.project-body {
  margin-top: 28px;
  text-align: left;
  color: var(--ink-soft);
}
.project {
  padding-bottom: clamp(88px, 12vw, 144px);
}
.section-tabs {
  margin: 64px 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-tabs ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.section-tabs a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 300ms var(--ease);
}
.section-tabs a .num {
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
}
.section-tabs a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms var(--ease);
}
.section-tabs a:hover,
.section-tabs a[aria-current="true"] {
  color: var(--ink);
}
.section-tabs a[aria-current="true"]::after {
  transform: scaleX(1);
}
.material {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.material:first-child {
  padding-top: 0;
  border-top: 0;
}
.material-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  text-align: center;
}
.gallery {
  display: grid;
  gap: 32px;
}
.gallery-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.gallery-cell {
  flex: var(--ratio) 1 0%;
}
.gallery-item img {
  width: 100%;
}
.tech {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 48px 48px;
}
.tech-figure {
  grid-column: 1;
}
.tech-item img {
  max-width: 100%;
}
.tech-aside {
  grid-column: 2;
  grid-row: 1 / span var(--rows);
  align-self: start;
  position: sticky;
  top: 112px;
}
.project-actions {
  justify-content: center;
  margin-top: 96px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8edf5;
}
.lightbox::backdrop {
  background: rgb(5 10 20 / 0.95);
}
.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 56px;
  touch-action: pan-y pinch-zoom;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 2px;
  object-fit: contain;
}
.lightbox-caption {
  position: absolute;
  inset: auto 64px 14px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: rgb(232 237 245 / 0.65);
}
.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(232 237 245 / 0.2);
  border-radius: 50%;
  background: transparent;
  color: #e8edf5;
  cursor: pointer;
  transition: border-color 300ms var(--ease);
}
.lightbox-btn:hover {
  border-color: #f0b06a;
}
.lightbox-btn svg {
  width: 18px;
  height: 18px;
}
.lightbox-close {
  top: 12px;
  right: 12px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 12px;
}
.lightbox-next {
  right: 12px;
}
.lightbox-btn[hidden] {
  display: none;
}

/* Responsive */
@media (max-width: 1023px) {
  .block-head-split,
  .split-sticky,
  .doc-plates {
    grid-template-columns: minmax(0, 1fr);
  }
  .block-head-split > :last-child {
    justify-self: start;
  }
  .split-aside {
    position: static;
  }
  .doc-side {
    grid-template-columns: 1fr 1fr;
  }
  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-wide {
    grid-column: span 2;
  }
  .tech {
    grid-template-columns: minmax(0, 1fr);
  }
  .tech-aside {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
  .credits {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .credits > div {
    border-bottom: 1px solid var(--line);
  }
  .credits > div:nth-child(2n) {
    border-right: 0;
  }
}
@media (max-width: 767px) {
  .cards-3,
  .two-col,
  .closing-cols,
  .index-row,
  .glossary-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .card-wide {
    grid-column: auto;
  }
  .project-link,
  .project-row:nth-child(even) .project-link,
  .support-row,
  .support-row:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .project-row:nth-child(even) .row-media,
  .support-row:nth-child(even) .support-media {
    order: 0;
  }
  .page-head {
    padding-top: 150px;
  }
  .audience-line {
    flex-direction: column;
    align-items: center;
  }
  .audience-line li + li::before {
    content: none;
  }
  .closing-meta {
    flex-direction: column;
    gap: 4px;
  }
  .closing-meta li + li::before {
    content: none;
  }
  .slider-frame {
    aspect-ratio: 4 / 3;
  }
  .slider-knob {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
  }
  .gallery,
  .gallery-row {
    gap: 20px;
  }
  .gallery-row {
    flex-direction: column;
  }
  .gallery-cell {
    flex: none;
    width: 100%;
  }
  .scene-stage {
    aspect-ratio: 4 / 3;
  }
  .scene-tabs {
    gap: 10px;
  }
  .scene-label .short {
    display: inline;
  }
  .scene-label .long {
    display: none;
  }
  .lightbox-stage {
    padding: 16px;
  }
  .section-tabs ol {
    gap: 0 22px;
  }
  .credits dd {
    font-size: 1.25rem;
  }
}

/* Inline links keep their line, but get a taller hit area for fingers */
.breadcrumb a,
.closing-meta a,
.approach figcaption a {
  padding-block: 10px;
}
