.optic-stage {
  --optic-spread: .12;
  --optic-line: #9bb589;
  --optic-muted: #486342;
  --optic-lit: #bfff83;
  inset-block: 0;
  inset-inline: auto;
  right: max(2.2%,24px);
  width: min(38%,560px);
  height: auto;
  margin: 0;
  padding-block: 68px 32px;
  display:grid;
  align-items:center;
  background:none;
  perspective:none;
}
[dir=rtl] .optic-stage{left:max(2.2%,24px);right:auto}
.optic-panel {
  position:relative;
  width:100%;
  padding: 16px 15px 15px;
  aspect-ratio: 520/400;
  border:1px solid #8faa711f;
  border-radius:12px;
  background:radial-gradient(ellipse at 49% 49%,#13220feb 0%,#101a0ee8 48%,#0d160d9e 95%);
  box-shadow:0 22px 68px #070f0738;
  display:grid;
  align-items:center;
}
.optic-drawing{display:block;width:100%;height:auto;overflow:visible}
.optic-drawing :is(path,polygon,polyline,ellipse){stroke-width:1;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.optic-grid{fill:#a4c790;opacity:.18;pointer-events:none}
.optic-measure{stroke:#87a076;fill:none;opacity:.46}
.optic-guide-plane{fill:#79ad5710;stroke:#6787574a;stroke-dasharray:2 4}
.optic-axis{fill:none;stroke:#6c9864;stroke-dasharray:3 4}
.optic-axis-group{opacity:.58;transition:opacity .3s ease}
.optic-stage[data-optic-layer] .optic-axis-group{opacity:1}
.optic-top{fill:#253623;stroke:var(--optic-line)}
.optic-side{fill:#172719;stroke:var(--optic-line)}
.optic-front{fill:#121e13;stroke:var(--optic-line)}
.optic-grip{fill:#1a2b19;stroke:#79976d}
.optic-rim{fill:#203421;stroke:var(--optic-line)}
.optic-detail{stroke:#8ca583;fill:none}
.optic-muted{stroke:var(--optic-muted);fill:none}
.optic-glass{fill:#263e24;stroke:#85a77c}
.optic-sensor{fill:#15351e;stroke:#89a97d}
.optic-glint{fill:none;stroke:#bcf98a}
.optic-faint{fill:#82b26d;stroke:none}
.optic-live{fill:var(--optic-lit);stroke:none}
.optic-part{
  transform:translate(calc(var(--optic-spread) * var(--optic-dx)),calc(var(--optic-spread) * var(--optic-dy)));
  transition:transform 420ms cubic-bezier(.19,1,.24,1);
}
.optic-mount{--optic-dx:-21px;--optic-dy:8px}
.optic-focus{--optic-dx:-62px;--optic-dy:24px}
.optic-lens{--optic-dx:-111px;--optic-dy:43px}
.optic-part :is(.optic-front,.optic-rim,.optic-glass){transition:stroke .23s ease,fill .23s ease}
.optic-stage[data-optic-layer=mount] .optic-mount :is(.optic-front,.optic-glass),
.optic-stage[data-optic-layer=focus] .optic-focus :is(.optic-front,.optic-rim,.optic-glass),
.optic-stage[data-optic-layer=lens] .optic-lens :is(.optic-front,.optic-rim,.optic-glass){
  stroke:var(--optic-lit);
}
.optic-label,.optic-mode,.optic-note{
  position:absolute;color:#c1d5b4;
  font: 500 clamp(8px,.73vw,11px)/1.2 ui-monospace,monospace;letter-spacing:.14em;
}
.optic-label,.optic-mode{display:flex;align-items:center;gap:7px;top:16px}
.optic-label{left:15px}
.optic-mode,.optic-note{right:15px}
.optic-note{bottom:16px;opacity:.72}
.optic-label i{width:6px;height:6px;background:#9eea64;box-shadow:0 0 12px #9eea6488;border-radius:50%}
.optic-mode i{width:8px;height:8px;border:1px solid #9cc38b;border-radius:50%}
.optic-stage[data-optic-layer] .optic-mode i{background:#a1e97c}
.optic-scale{position:absolute;bottom:17px;left:15px;height:9px;display:flex;align-items:flex-end;gap:4px}
.optic-scale i{width:1px;height:4px;background:#6b8860}
.optic-scale i:nth-child(3n+1){height:8px;background:#a5c396}
[dir=rtl] :is(.optic-mode,.optic-note){font-family:inherit;letter-spacing:0}
@media(min-width:761px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  .optic-stage .optic-panel{pointer-events:auto}
}
@media(max-width:1000px){.optic-label,.optic-mode{top:10px}.optic-note{bottom:10px}.optic-scale{bottom:10px}}
@media (hover:none), (pointer:coarse), (prefers-reduced-motion:reduce){
  .optic-note{display:none}
}
.motion-paused .optic-note{display:none}

/* Viewfinder accents stay inside the cover so the card hit area never shifts. */
.portfolio-cover::after{
  content:"";position:absolute;pointer-events:none;inset:11px;
  --optic-corner:16px;--optic-color:#d7ffc1;
  background:
    linear-gradient(var(--optic-color),var(--optic-color)) top left/var(--optic-corner) 1px,
    linear-gradient(var(--optic-color),var(--optic-color)) top left/1px var(--optic-corner),
    linear-gradient(var(--optic-color),var(--optic-color)) top right/var(--optic-corner) 1px,
    linear-gradient(var(--optic-color),var(--optic-color)) top right/1px var(--optic-corner),
    linear-gradient(var(--optic-color),var(--optic-color)) bottom left/var(--optic-corner) 1px,
    linear-gradient(var(--optic-color),var(--optic-color)) bottom left/1px var(--optic-corner),
    linear-gradient(var(--optic-color),var(--optic-color)) bottom right/var(--optic-corner) 1px,
    linear-gradient(var(--optic-color),var(--optic-color)) bottom right/1px var(--optic-corner);
  background-repeat:no-repeat;
  opacity:0;transform:scale(1.045);
  transition:transform .34s cubic-bezier(.19,1,.25,1),opacity .22s ease;
}
.portfolio-slide.is-active .portfolio-cover::after{opacity:.58;transform:none}
.portfolio-slide.is-active .portfolio-featured{inset-block-start:17px;inset-inline-start:17px}
.portfolio-cover img{transition:transform .5s cubic-bezier(.19,1,.24,1)}
.portfolio-slide.is-active .portfolio-card:is(:focus-visible,:active) .portfolio-cover::after{
  transform:scale(.975);opacity:1
}
@media(hover:hover) and (pointer:fine){
  .portfolio-slide.is-active .portfolio-card:hover .portfolio-cover::after{transform:scale(.975);opacity:1}
  .portfolio-slide.is-active .portfolio-card:hover .portfolio-cover img{transform:scale(1.03)}
}
.motion-paused :is(.optic-part,.optic-axis-group,.optic-part *,.portfolio-cover img),
.motion-paused .portfolio-cover::after{
  transition:none;
}
@media(prefers-reduced-motion:reduce){
  :is(.optic-part,.optic-axis-group,.optic-part *,.portfolio-cover img), .portfolio-cover::after{
    transition:none;
  }
}
.motion-paused .portfolio-slide.is-active .portfolio-card .portfolio-cover img,
.motion-paused .portfolio-slide.is-active .portfolio-card .portfolio-cover::after{transform:none}
@media(prefers-reduced-motion:reduce){
  .portfolio-slide.is-active .portfolio-card .portfolio-cover img,
  .portfolio-slide.is-active .portfolio-card .portfolio-cover::after{transform:none}
}

@keyframes film-headline {
  from {clip-path:inset(0 -8% 100% -8%);transform:translateY(.28em);opacity:0}
  to {clip-path:inset(-12% -8% -22% -8%);transform:none;opacity:1}
}
@keyframes film-settle {
  0% {scale:.96}
  64% {scale:1.018}
  100% {scale:1}
}
@media(prefers-reduced-motion:no-preference){
  html:not(.motion-paused) .photography-hero .hero-title{animation:none}
  html:not(.motion-paused) .photography-hero .hero-title span,
  html:not(.motion-paused) .motion-headline{
    animation:film-headline .66s cubic-bezier(.22,.76,.27,1) both;
  }
  html:not(.motion-paused) .photography-hero .hero-title span:first-child{animation-delay:.09s}
  html:not(.motion-paused) .photography-hero .hero-title span+span{animation-delay:.21s}
  html:not(.motion-paused) .portfolio-track[data-slide-motion]:not(.is-dragging) .is-active .portfolio-cover{
    animation:film-settle .39s cubic-bezier(.2,.7,.3,1) backwards;
  }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html:not(.motion-paused) .portfolio-track:not(.is-dragging) .portfolio-card{
    transition:transform .34s cubic-bezier(.19,1,.25,1);
  }
  html:not(.motion-paused) .portfolio-track:not(.is-dragging):has(.is-active .portfolio-card:hover) .is-active .portfolio-card{
    transform:translateY(-3px);
  }
  html:not(.motion-paused) .portfolio-track:not(.is-dragging):has(.is-active .portfolio-card:hover) .is-preview[data-side=left] .portfolio-card{
    transform:translate(-6px,3px) rotate(-1deg);
  }
  html:not(.motion-paused) .portfolio-track:not(.is-dragging):has(.is-active .portfolio-card:hover) .is-preview[data-side=right] .portfolio-card{
    transform:translate(6px,3px) rotate(1deg);
  }
}
.motion-paused .photography-hero .hero-title{animation:none}
@media(prefers-reduced-motion:reduce){
  .photography-hero .hero-title{animation:none}
}
