/* The work, closer (work-view.js): the live site in a frame over the night, its name and the way to it beside.
   The page behind dims and blurs; the frame comes up from below; the live site fades in over its picture. */
.view { position: fixed; inset: 0; z-index: 50; }
.view[hidden] { display: none; }
.view__shade { position: absolute; inset: 0; background: rgba(6, 5, 4, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s ease; }
.view__panel { position: absolute; inset: clamp(16px, 6vh, 64px) clamp(16px, 4vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) min(21rem, 28vw); gap: clamp(1.4rem, 3.4vw, 3.6rem); align-items: center;
  opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .6s var(--ease); }
.view.is-open .view__shade, .view.is-open .view__panel { opacity: 1; }
.view.is-open .view__panel { transform: none; }

.view__device { position: relative; align-self: stretch; min-height: 0; }
.view__frame { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; overflow: hidden; border-radius: 6px; background: #0c0a09;
  box-shadow: 0 0 0 1px rgba(185, 138, 62, .55), 0 0 0 14px rgba(5, 4, 3, .9), 0 0 0 15px rgba(247, 239, 224, .1), 0 40px 120px rgba(0, 0, 0, .7); }
.view__frame[data-kind='phone'] { border-radius: 44px; box-shadow: 0 0 0 1px rgba(185, 138, 62, .55), 0 0 0 11px #0d0c0e, 0 0 0 12px rgba(247, 239, 224, .16), 0 30px 90px rgba(0, 0, 0, .6); }
.view__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.view__frame iframe { position: relative; display: block; width: 100%; height: 100%; border: 0; background: #fff; transition: opacity .45s ease; }
.view__frame iframe.is-loading { opacity: 0; }
.view__shot[hidden], .view__frame iframe[hidden] { display: none; }

.view__text { color: var(--cream); }
.view__text .eyebrow { margin-bottom: 18px; color: rgba(203, 189, 163, .7); }
#view-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 46px); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; color: #e6dccb; }
.view__line { margin-top: 16px; font-size: 15px; line-height: 1.6; color: rgba(203, 189, 163, .78); text-wrap: pretty; }
.view__text .view__go { margin-top: 28px; background: #cbbda3; border-color: #cbbda3; }
.view__step { display: flex; align-items: center; gap: 16px; margin-top: 30px; font-family: var(--serif); font-style: italic; font-size: 16px; color: rgba(203, 189, 163, .75); font-variant-numeric: tabular-nums; }
.view__step button, .view__close { display: grid; place-items: center; padding: 0; color: var(--cream); background: rgba(5, 4, 3, .5); border: 1px solid rgba(185, 138, 62, .55); border-radius: 50%; cursor: pointer; transition: background .3s, color .3s; }
.view__step button { width: 42px; height: 42px; }
.view__close { position: absolute; top: 0; right: 0; z-index: 1; width: 46px; height: 46px; }
.view__step button:hover, .view__close:hover { color: var(--ink); background: #cbbda3; }

@media (max-width: 860px) {
  .view__panel { inset: 12px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: 14px; }
  .view__device { margin-top: 56px; }
  .view__line { display: none; }
  .view__text { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 0 4px 4px; }
  .view__text .eyebrow, #view-title { grid-column: 1 / -1; margin-bottom: 0; }
  #view-title { font-size: 26px; }
  .view__text .view__go { margin-top: 8px; padding: 12px 16px; justify-self: start; }
  .view__step { margin-top: 8px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .view__panel { transform: none; } }
