.index-page { background: #151515; color: #ecebea; }
.index-wrap { max-width: 90rem; margin: auto; padding: 0 var(--gutter) 3rem; }
.index-head { min-height: 4.45rem; display: flex; align-items: center; justify-content: space-between; gap: .85rem; border-bottom: 1px solid #777; font-size: .84rem; }
.index-wrap h1 { font: 400 clamp(3rem, 8.5vw, 8rem)/.89 var(--serif); letter-spacing: -.077em; margin: clamp(1.8rem, 5vw, 4rem) 0 clamp(1.6rem, 4vw, 3.4rem); }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.8rem); }
.index-grid a { border-top: 1px solid #888; display: grid; grid-template-rows: auto 1fr; text-decoration: none; }
.index-grid a:hover h2 { text-decoration: underline; text-underline-offset: .15em; }
.index-grid img { width: 100%; height: auto; aspect-ratio: 7 / 5; object-fit: cover; filter: grayscale(1) brightness(.8); transition: filter .28s ease; }
.index-grid a:hover img { filter: grayscale(1) brightness(1); }
.index-grid a:first-child img { object-position: center 39%; }
.index-grid a:nth-child(2) img { object-position: center 47%; }
.index-grid div { padding-block: .85rem 1.1rem; }
.index-grid h2 { margin-bottom: .4rem; font: 600 clamp(1.3rem, 2.4vw, 2.2rem)/1 var(--display); }
.index-grid p { color: #c1bfbc; line-height: 1.4; max-width: 29ch; }

.light-page { --bg: #0c0c0c; --ink: #f4f3ef; --soft: #c1c0bc; --line: #f1f1ef40; }
.light-stage { position: relative; isolation: isolate; overflow: clip; }
.light-camera { position: absolute; inset: -1.6rem 0 auto auto; width: clamp(26rem, 46vw, 44rem); aspect-ratio: 1072 / 1920; z-index: -2; mask-image: linear-gradient(90deg, transparent, #000 23%); }
.light-camera > div { position: absolute; inset: 0; background: url("media/multivan.webp") center top / 100% 100% no-repeat; }
.light-image { opacity: .84; filter: grayscale(1) brightness(.79) contrast(1.13); }
.light-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 24% 6% at 84% 27%, #101010db 48%, transparent 100%); }
.light-led { filter: grayscale(1) brightness(1.55); opacity: .82; }
.led-left { --delay: .17s; clip-path: polygon(28% 0,32% 0,47% 7.7%,46% 8.7%,31% 12.1%,38.8% 15.4%,37% 16.2%,27.7% 12.3%,28% 11.6%,43.3% 7.7%); }
.led-center { --delay: .48s; clip-path: polygon(44.5% 7.25%,76% 9.2%,82.3% 14.4%,65% 17.7%,36% 16.1%,36.7% 15.1%,64% 16.9%,78.7% 14.1%,74.3% 10.2%,44.4% 8.14%); }
.led-right { --delay: .79s; clip-path: polygon(74.3% 9.1%,100% 4%,100% 5.1%,78.2% 10%,81.8% 14%,100% 15.4%,100% 16.1%,80.7% 14.9%,65% 17.5%,70.7% 20.1%,85.8% 21%,100% 20%,100% 20.6%,85.8% 21.65%,69.7% 20.75%,63.4% 17.35%,79.8% 14.22%); }
.light-reflection { clip-path: polygon(47% 28%,52% 28.1%,64% 29%,68% 37.5%,54% 41.1%,39% 34.9%); filter: grayscale(1) brightness(1.25); opacity: .22; }
.light-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0c0c0c 20%,#0c0c0ceb 36%,#0c0c0c52 64%,transparent 87%), linear-gradient(0deg,#0c0c0c 1%,#0c0c0c 11%,#0c0c0c18 32%,transparent 86%,#0c0c0ca0); }
.light-stage.is-playing .light-image { animation: body-light 2.3s both; }
.light-stage.is-playing .light-led { animation: led-on .5s var(--delay) both; }
.light-stage.is-playing .light-reflection { animation: glass-light .9s .98s both; }
@keyframes body-light { 0%, 39% { opacity: .05; } 72% { opacity: .65; } 100% { opacity: .84; } }
@keyframes led-on { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .82; } }
@keyframes glass-light { 0% { opacity: 0; } 56% { opacity: .43; } 100% { opacity: .22; } }
.light-intro { padding-top: clamp(2.65rem, 5vw, 5.5rem); padding-bottom: clamp(1rem, 2vw, 2rem); }
.light-intro h1 { font: 800 clamp(3.5rem, 8.8vw, 8.6rem)/.86 var(--display); letter-spacing: -.088em; margin: .8rem 0 1.15rem -.055em; }
.light-intro .lead { color: var(--soft); margin-bottom: 1.35rem; }
.light-caption { display: flex; justify-content: flex-end; align-items: center; gap: .65rem 1.5rem; flex-wrap: wrap; color: #e5e4e0; margin-bottom: .75rem; font-size: .8rem; }
.replay { border: 1px solid #aaa; padding: .45rem .8rem; min-height: 2.75rem; background: #141414b8; color: #f4f3ef; display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.replay:hover { background: #f4f3ef; color: #141414; }
.lamp { width: .78rem; height: .78rem; background: currentColor; clip-path: polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%,25% 4%,30% 18%,13% 50%,30% 82%,70% 82%,87% 50%,70% 18%,30% 18%); }
.light-prices { display: grid; grid-template-columns: .85fr 1fr 1.2fr; padding-bottom: 1.25rem; }
.light-prices > * { border-top: 1px solid var(--line); }
.light-prices h2 { padding: .85rem .8rem .8rem 0; font: 550 clamp(1.05rem, 2vw, 1.6rem)/1.1 var(--display); }
.light-prices button { text-align: left; border-style: solid; border-color: var(--line); border-width: 1px 0 0 1px; background: #0c0c0caa; padding: .8rem clamp(.65rem, 2vw, 1.65rem); }
.light-prices button:hover { background: #333; }
.light-prices span, .light-prices strong { display: block; }
.light-prices span { color: var(--soft); font-size: .85rem; }
.light-prices strong { margin-top: .36rem; font: 650 clamp(1.23rem, 3.2vw, 2.75rem)/1.04 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.light-visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.3rem 2.4rem; align-items: end; padding-block: clamp(2rem, 5vw, 4.2rem); border-top: 1px solid var(--line); }
.light-visit h2 { margin-top: .5rem; font: 650 clamp(1.9rem, 4.2vw, 4.1rem)/1.025 var(--display); letter-spacing: -.048em; }
.light-visit p:not(.label) { line-height: 1.5; max-width: 33ch; color: var(--soft); margin-bottom: .72rem; }
.light-visit a { display: inline-flex; align-items: center; min-height: 2.75rem; }

.inspection-page { --bg: #efefed; --ink: #151515; --line: #20202055; }
.inspection-grid { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: clamp(1.6rem, 5.7vw, 6rem); padding-top: clamp(1.5rem, 4.3vw, 4.2rem); padding-bottom: clamp(1.5rem, 4.5vw, 4rem); }
.inspection-intro { grid-column: 1; align-self: start; padding-top: clamp(.2rem, 2vw, 2rem); }
.inspection-intro h1 { margin: .9rem 0 1rem; font: 700 clamp(3.1rem, 8.7vw, 8.25rem)/.85 var(--display); letter-spacing: -.085em; }
.inspection-intro .action, .works-intro .action { margin-top: 1.2rem; }
.inspection-photo { grid-column: 2; grid-row: 1 / 3; align-self: start; }
.inspection-image { --beam: 57%; position: relative; aspect-ratio: 5 / 5.15; background: #222; overflow: hidden; isolation: isolate; }
.inspection-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 47%; filter: grayscale(1) brightness(.84); }
.inspection-beam { position: absolute; inset: 0; background: radial-gradient(ellipse 38% 63% at var(--beam) 54%, transparent 6%, #0001 40%, #0007 100%); box-shadow: inset 0 0 5rem #0003; }
.inspection-beam::after { content: ""; position: absolute; top: 11%; bottom: 11%; left: var(--beam); border-left: 1px solid #ffffffc4; transform: translateX(-50%); }
.inspection-photo figcaption { padding-block: .65rem; font: .74rem/1.4 ui-monospace, Consolas, monospace; border-bottom: 1px solid var(--line); }
.beam-control { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; min-height: 3rem; font-size: .85rem; }
.beam-control input { accent-color: #181817; width: 100%; cursor: ew-resize; }
.inspection-prices { grid-column: 1; align-self: end; margin-top: clamp(1.7rem, 4.5vw, 4.25rem); }
.inspection-prices h2 { font: 600 1.25rem/1.25 var(--display); margin-bottom: .75rem; }
.inspection-row { border-top: 1px solid var(--line); }
.inspection-row button { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem .6rem; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: .7rem .18rem; }
.inspection-row button:hover { background: #1818170b; }
.inspection-row strong { font-weight: 680; white-space: nowrap; }
.inspection-row small, .inspection-prices p { font-size: .81rem; color: var(--soft); }
.inspection-row small { grid-column: 1 / -1; }
.inspection-prices p { padding-top: .72rem; }

.works-page { --bg: #e8e6e1; --ink: #24231f; --line: #24231f55; }
.works-intro { display: grid; grid-template-columns: 1.4fr .72fr; align-items: end; gap: 1rem 2rem; padding-block: clamp(1.7rem, 3.7vw, 3.6rem) clamp(1.2rem, 3vw, 2.65rem); }
.works-intro h1 { font: 400 clamp(3.5rem, 10.1vw, 9.25rem)/.783 var(--serif); letter-spacing: -.1em; margin: .8rem 0 .08em -.06em; }
.works-intro .lead { max-width: 25ch; }
.contact-sheet { display: grid; grid-template-columns: 1fr clamp(9rem, 22vw, 20rem); align-items: stretch; gap: .75rem clamp(.75rem, 2.5vw, 2.1rem); border-top: 1px solid var(--line); padding-top: .8rem; }
.work-frame { background: #222; color: #f6f5f2; overflow: hidden; position: relative; min-width: 0; }
.work-frame img { height: clamp(16rem, 43vw, 37rem); width: 100%; object-fit: cover; object-position: center 47%; filter: grayscale(1); }
.work-frame img.is-changing { animation: open-frame .42s ease-out both; }
@keyframes open-frame { from { clip-path: inset(0 12% 0 0); opacity: .55; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.work-frame figcaption { position: absolute; inset: auto 0 0; background: linear-gradient(transparent,#151515ec); padding: 1.75rem .85rem .75rem; font: .79rem/1.4 ui-monospace, Consolas, monospace; }
.work-index { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: .55rem; min-height: 0; }
.work-index button { align-items: center; display: grid; grid-template-columns: .94fr 1.15fr; gap: .8rem; border: 0; border-bottom: 1px solid var(--line); padding: .2rem 0 .46rem; text-align: left; background: transparent; }
.work-index button[aria-pressed=true] { border-bottom-color: var(--ink); font-weight: 700; }
.work-index button:hover span { text-decoration: underline; }
.work-index img { height: auto; width: 100%; aspect-ratio: 1.1; object-fit: cover; object-position: center 46%; filter: grayscale(1); }
.work-index span { font-size: clamp(.8rem, 1.4vw, 1.05rem); line-height: 1.15; }
.works-prices { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: .6rem 1.25rem; margin-block: 1.3rem; border-top: 1px solid var(--line); padding-block: .75rem; }
.works-prices h2 { align-self: center; font: 400 clamp(1.4rem, 2.3vw, 2.15rem)/1 var(--serif); letter-spacing: -.052em; }
.works-prices button { border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; padding: .45rem 0; }
.works-prices button:hover { border-bottom-color: var(--ink); }
.works-prices span, .works-prices strong { display: block; }
.works-prices span { font-size: .84rem; }
.works-prices strong { margin-top: .3rem; font-size: clamp(1rem, 2.2vw, 1.65rem); white-space: nowrap; }

@media (max-width: 680px) {
  .index-grid { grid-template-columns: 1fr; }
  .index-grid a { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; column-gap: .85rem; align-items: center; }
  .index-grid div { padding-block: .55rem; }
  .index-grid p { font-size: .88rem; }
  .light-camera { top: 3.7rem; width: min(100%, 27rem); }
  .light-stage::before { background: linear-gradient(90deg,#0c0c0cfa 0%,#0c0c0ccf 31%,#0c0c0c2e 100%), linear-gradient(0deg,#0c0c0c 4%,#0c0c0ca3 40%,transparent 66%); }
  .light-intro { padding-top: 2.9rem; padding-bottom: 1.65rem; }
  .light-intro h1 { margin-block: .6rem .85rem; }
  .light-intro .lead { max-width: 25ch; }
  .light-caption { justify-content: space-between; gap: .35rem; margin-bottom: .7rem; font-size: .73rem; }
  .light-prices, .works-prices { grid-template-columns: 1fr 1fr; }
  .light-prices h2, .works-prices h2 { grid-column: 1 / -1; }
  .light-prices h2 br { display: none; }
  .light-prices button:nth-of-type(1) { border-left-width: 0; padding-left: 0; }
  .light-visit, .inspection-grid { grid-template-columns: 1fr; }
  .inspection-photo { grid-column: 1; grid-row: auto; margin-top: 1.25rem; }
  .inspection-image { aspect-ratio: 5 / 4.3; }
  .inspection-prices { margin-top: 1.15rem; }
  .works-intro { grid-template-columns: 1fr; }
  .works-intro .lead { max-width: 34ch; }
  .contact-sheet { grid-template-columns: 1fr; }
  .work-index { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr; }
  .work-index button { grid-template-columns: 1fr; gap: .35rem; align-content: start; }
  .work-index button span br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .work-frame img.is-changing { animation: none; }
  .index-grid img { transition: none; }
}
