/* Obsidian Studio: page CSS on top of taste-skill's system. Only what the system has no class for:
   the logo lockup, the hero gallery, the guideline tiles and the studio portrait's hairlines. */

/* logo: the client's own SVG, emblem and wordmark */
.lockup { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.lockup__em { height: 26px; width: auto; fill: currentColor; }
.lockup__wm { height: 10px; width: auto; fill: currentColor; }
@media (max-width: 639px) { .nav .lockup__em { height: 22px; } .nav .lockup__wm { height: 8px; } }
footer .lockup__em { height: 34px; }
footer .lockup__wm { height: 13px; }

/* the hero holds for two more screens while the ring unrolls; its .wrap sticks (waived: hero-fold, screen-height) */
main > .hero.hero--gallery { height: 300vh; height: 300svh; padding: 0; overflow: clip; }
main > .hero.hero--gallery > .wrap {
  position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box;
  padding: calc(var(--nav) + var(--hgap)) 0 calc(var(--hpadb) + var(--bar));
}
.gal-hero { height: 100%; align-items: stretch; }
.gal { position: relative; z-index: 1; min-height: 0; height: 100%; }
.gal-hero__text { display: flex; flex-direction: column; align-self: stretch; position: relative; z-index: 2; }
.gal-hero__text .gal-facts { margin-top: auto; }
.gal-hero__text h1 { max-width: 13ch; }

/* without script: the work as a flat grid, nothing hidden */
.gal__scene { position: absolute; inset: 0; }
.gal__rig { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gal__card { margin: 0; border-radius: 6px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 10; }
.gal__card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.gal__rig > .gal__card:nth-child(n + 10) { display: none; }

/* live: one rig in CSS 3D, the cards placed by gallery.js (transform and opacity only) */
.gal-live .gal__scene { perspective: 1600px; perspective-origin: 50% 45%; }
.gal-live .gal__rig { display: block; position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.gal-live .gal__card { display: block !important; position: absolute; width: var(--cw, 220px); height: var(--ch, 136px); aspect-ratio: auto;
  left: calc(var(--cw, 220px) / -2); top: calc(var(--ch, 136px) / -2); opacity: 0; will-change: transform, opacity;
  box-shadow: 0 18px 40px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .06); }
.gal-still.hero--gallery { height: 100vh; height: 100svh; }

@media (max-width: 1023px) {
  .gal-hero { display: flex; flex-direction: column; gap: var(--s-6); }
  .gal-hero__text { order: -1; flex: none; }
  .gal-hero__text .gal-facts { display: none; }
  .gal { flex: 1 1 0; min-height: 240px; }
}

/* guideline tiles (the owner's brand-sheet references: construction, light, letters, pattern) */
.sheet { align-items: stretch; }
.tile { position: relative; margin: 0; padding: 0; border: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; max-height: 50svh; width: 100%; }
.frame.tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile__note { font: 500 8.4px var(--font-text); fill: currentColor; fill-opacity: .62; letter-spacing: .02em; }
.tile--grid { background: #e6e6e2; color: #0b0b0c; }
.tile--light { background: radial-gradient(90% 70% at 50% 0%, #26262a 0%, #0b0b0c 62%), #0b0b0c; }
.tile--light::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(to bottom, transparent, rgb(255 255 255 / .16)); }
.frame.tile--light > .tile__em { position: absolute; inset: auto; left: 50%; top: 40%; width: 12%; height: auto; translate: -50% -50%; fill: #fff; z-index: 2;
  filter: drop-shadow(0 0 14px rgb(255 255 255 / .35)); }
.frame.tile > .tile__dots { position: absolute; inset: 0; z-index: 2; }
.frame.tile > .tile__cone { position: absolute; left: 50%; top: 44%; width: 48%; height: 62%; translate: -50% 0; z-index: 1;
  background: linear-gradient(to bottom, rgb(255 255 255 / .62), rgb(255 255 255 / 0) 88%);
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); filter: blur(9px); }
.frame.tile > .tile__dots i { position: absolute; width: 4px; height: 4px; background: #fff; opacity: .75; z-index: 2; }
.tile__dots i:nth-child(1) { left: 42%; top: 27%; } .tile__dots i:nth-child(2) { left: 58%; top: 27%; }
.tile__dots i:nth-child(3) { left: 42%; top: 50%; } .tile__dots i:nth-child(4) { left: 58%; top: 50%; }
.tile--crop { background: #fff; color: #0b0b0c; box-shadow: inset 0 0 0 1px rgb(11 11 12 / .1); }
.frame.tile--crop > .tile__lock { inset: auto 5% 6% auto; width: 24%; height: auto; fill: #0b0b0c; }
.tile--pattern { background: #151517; }

.sheet-sec .group:last-child .tile { aspect-ratio: 1 / 1; max-height: calc(100svh - var(--padt) - var(--padb)); }

/* the studio portrait: the dealt picture-develops moment, then the hairlines draw across it (support, after the lead) */
.studio { align-items: start; }
.studio__pic { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--padt) - var(--padb)); border-radius: var(--r-lg); background: #000; }
.studio__pic > .studio__lines { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.studio__lines i { position: absolute; left: 0; right: 0; top: var(--y); height: 1px; background: rgb(255 255 255 / .3); transform-origin: 0 50%; }
.studio__em { position: absolute; left: 50%; top: 50%; width: 8%; translate: -50% -50%; fill: #fff; mix-blend-mode: difference; }
.studio__lines span { position: absolute; right: 5%; top: var(--y); translate: 0 calc(-100% - 8px); font-size: var(--t-label); font-weight: 500; color: rgb(255 255 255 / .82); }
.studio__rows > li { grid-template-columns: minmax(0, 1fr); }
.studio__rows > li > p { color: var(--muted); }
.studio__pic.mo-pd:not(.is-done) .studio__lines i { transform: scaleX(0); }
.studio__pic.mo-pd:not(.is-done) .studio__lines :is(span, svg) { opacity: 0; }
.studio__pic.is-done .studio__lines i { transition: transform 900ms cubic-bezier(.77, 0, .175, 1); }
.studio__pic.is-done .studio__lines i:nth-child(2) { transition-delay: 90ms; }
.studio__pic.is-done .studio__lines i:nth-child(3) { transition-delay: 150ms; }
.studio__pic.is-done .studio__lines :is(span, svg) { transition: opacity 500ms ease 700ms; }

@media (prefers-reduced-motion: reduce) {
  .studio__pic .studio__lines :is(i, span, svg) { transform: none !important; opacity: 1 !important; transition: none; }
}
.footer__lede { line-height: 1.5; }
