:root {
  --ink: #2f2b2b;
  --muted: #716a68;
  --cream: #f8f5f1;
  --paper: #fffdfb;
  --rose: #ead7d3;
  --sage: #dbe2d5;
  --lavender: #dedbea;
  --line: rgba(47, 43, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Manrope", sans-serif; line-height: 1.6; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.header { position: absolute; z-index: 10; top: 0; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 48px)); height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.logo { font-family: "Prata", serif; font-size: 20px; letter-spacing: -.5px; }
.logo span { font: 500 11px "Manrope", sans-serif; letter-spacing: 1.6px; text-transform: uppercase; margin-left: 4px; }
.nav { display: flex; gap: 32px; font-size: 13px; }
.nav a, .footer > a { transition: opacity .25s; }
.nav a:hover, .footer > a:hover { opacity: .55; }

.hero { min-height: 760px; padding: 150px max(24px, calc((100vw - 1180px) / 2)) 80px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; overflow: hidden; }
.hero__content { max-width: 690px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 24px; text-transform: uppercase; letter-spacing: 2.4px; font-size: 11px; font-weight: 600; color: var(--muted); }
h1, h2 { font-family: "Prata", serif; font-weight: 400; line-height: 1.12; letter-spacing: -1.6px; margin: 0; }
h1 { font-size: clamp(46px, 6vw, 82px); }
h2 { font-size: clamp(36px, 4.2vw, 58px); }
em { color: #9a6e68; font-weight: inherit; }
.hero__text { max-width: 610px; margin: 30px 0 38px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.button { display: inline-flex; align-items: center; gap: 38px; padding: 16px 22px; background: var(--ink); color: #fff; border-radius: 100px; font-size: 13px; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); background: #9a6e68; }
.telegram-icon { display: block; flex: 0 0 auto; width: 1.15em; height: 1.15em; fill: currentColor; }
.telegram-link { display: inline-flex; align-items: center; gap: 7px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button--outline { appearance: none; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: inherit; cursor: pointer; }
.button--outline:hover { color: #fff; border-color: #9a6e68; }

.hero__art { min-height: 500px; position: relative; }
.art-card { position: absolute; inset: 11% 5% 8% 12%; border-radius: 180px 180px 28px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(255,255,255,.8), rgba(234,215,211,.75)); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 80px rgba(89,69,64,.12); backdrop-filter: blur(4px); }
.art-card span { font: 80px "Prata", serif; color: rgba(80,60,58,.38); }
.art-card small { letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: float 7s ease-in-out infinite; }
.orb--one { width: 250px; height: 250px; right: -60px; top: -5px; background: var(--sage); }
.orb--two { width: 180px; height: 180px; left: -25px; bottom: -5px; background: var(--lavender); animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-16px) scale(1.03); } }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0; }
.about { border-top: 1px solid var(--line); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.about__grid p { margin: 0; font-size: 18px; color: var(--muted); max-width: 520px; }
.about__text { display: grid; gap: 20px; padding-top: 8px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 50px; }
.section-heading .eyebrow { margin-bottom: 10px; }

.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-card, .format-card { padding: 35px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.service-card:hover, .format-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(50,40,38,.08); }
.service-card > span, .format-card > p { font-size: 11px; color: #9a6e68; }
.service-card h3, .format-card h3 { font: 400 27px "Prata", serif; margin: 42px 0 12px; }
.service-card p, .format-card span { margin: 0; color: var(--muted); max-width: 390px; }
.service-card h4 { margin: 28px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.service-card ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.service-card li { position: relative; padding-left: 17px; }
.service-card li::before { content: "—"; position: absolute; left: 0; color: #9a6e68; }

.portfolio { width: 100%; padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); background: #efebe5; }
.case-study { width: 100%; min-width: 0; padding-top: 20px; }
.case-study__header { max-width: 820px; margin-bottom: 55px; }
.case-study__header > p { margin: 0 0 16px; color: #9a6e68; font-size: 11px; font-weight: 600; letter-spacing: 2.2px; }
.case-study__header h3 { margin: 0; font: 400 clamp(34px, 4.2vw, 56px)/1.15 "Prata", serif; letter-spacing: -1.2px; }
.case-study__story { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 40px; margin-bottom: 60px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-study__story h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; }
.case-study__story p { margin: 0; color: var(--muted); font-size: 14px; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; width: min(100%, 960px); margin: 0 auto; }
.case-photo { margin: 0; min-width: 0; }
.case-photo button { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 22px; background: var(--rose); cursor: zoom-in; }
.case-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.case-photo button:hover img { transform: scale(1.025); }
.case-photo__zoom { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 100px; background: rgba(255,253,251,.82); color: var(--ink); font: 500 10px "Manrope", sans-serif; letter-spacing: .4px; opacity: 0; transform: translateY(5px); transition: opacity .25s, transform .25s; backdrop-filter: blur(7px); }
.case-photo button:hover .case-photo__zoom, .case-photo button:focus-visible .case-photo__zoom { opacity: 1; transform: none; }
.case-photo figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.case-photo--original button { outline: 2px solid rgba(154,110,104,.5); outline-offset: -2px; }
.case-photo--original figcaption { color: #9a6e68; font-weight: 600; }
.case-photo--model button { outline: 2px solid rgba(154,110,104,.5); outline-offset: -2px; }
.case-photo--model figcaption { color: #9a6e68; font-weight: 600; }
.case-photo--contain button { background: #f5f1ec; box-shadow: inset 0 0 0 1px var(--line); }
.case-photo--contain img { object-fit: contain; }
.case-study--second { margin-top: 120px; padding-top: 120px; border-top: 1px solid var(--line); }
.case-study--third { margin-top: 120px; padding-top: 120px; border-top: 1px solid var(--line); }
.case-study__intro { max-width: 760px; margin: -22px 0 50px; color: var(--muted); font-size: 18px; }
.case-video { width: min(100%, 760px); margin: 70px auto 0; }
.case-video > h4 { margin: 0 0 24px; font: 400 30px "Prata", serif; }
.case-video__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-video__frame { position: relative; overflow: hidden; border-radius: 20px; }
.case-video video { display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; background: #302c2c; object-fit: cover; }
.case-video video:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: auto;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}
.case-video video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: auto;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}
.product-projects { display: grid; gap: 80px; width: min(100%, 960px); margin: 0 auto; }
.product-project__header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 26px; }
.product-project__header span { color: #9a6e68; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.product-project__header h4 { margin: 0; font: 400 30px "Prata", serif; }
.product-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: min(100%, 804px); margin: 0 auto; }
.product-media > figure { display: grid; grid-template-rows: auto auto; align-content: start; min-width: 0; }
.product-media__frame { display: block; width: 100%; max-width: 260px; height: auto; aspect-ratio: 7 / 10; overflow: hidden; border-radius: 22px; }
.product-media .case-photo img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.product-media .case-photo--contain img { object-fit: contain; }
.product-video { min-width: 0; margin: 0; }
.product-video video { background: #302c2c; object-fit: cover; }
.product-video .video-frame > video { display: block; width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; }
.product-project--ushatava .case-photo--contain img { object-fit: cover; }
.product-project--ushatava .product-media__frame { padding: 0; overflow: hidden; border: 0; background: transparent; box-shadow: none; }
.product-project--ushatava .case-photo button { padding: 0; border: 0; background: transparent; box-shadow: none; }
.product-project--ushatava .case-photo img,
.product-project--ushatava video { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.product-video--ushatava video { background: transparent; transform: scale(1.08); }
.product-video figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.product-video video:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: auto;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}
.product-video video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: auto;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}
.product-video--ushatava video:fullscreen,
.product-video--ushatava video:-webkit-full-screen { transform: none; }
@media (min-width: 801px) {
  .motion-video-media[data-room-crop]::-webkit-media-controls-enclosure {
    position: absolute;
    right: auto;
    bottom: 16.6667%;
    left: 0;
    width: 100%;
    transform: scale(.833333);
    transform-origin: left bottom;
  }
}
.lightbox { width: min(92vw, 900px); max-width: none; height: min(92vh, 1100px); max-height: none; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(36,31,31,.88); backdrop-filter: blur(8px); }
.lightbox img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; z-index: 2; top: -10px; right: -10px; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font: 300 28px/1 "Manrope", sans-serif; cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,.2); }

.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.format-card { min-height: 300px; display: flex; flex-direction: column; }
.format-card h3 { margin-top: auto; }
.formats-note { max-width: 720px; margin: 24px auto 0; color: var(--muted); font-size: 13px; line-height: 1.65; text-align: center; }

.cta { width: min(1180px, calc(100% - 48px)); margin: 40px auto 80px; padding: 90px max(30px, 8vw); text-align: center; border-radius: 32px; color: #f9f7f3; background: #3a3535; }
.cta .eyebrow { color: rgba(255,255,255,.55); }
.cta h2 { max-width: 800px; margin: 0 auto 38px; }
.cta em { color: #d9b9b4; }
.button--light { background: #f7f2ed; color: var(--ink); }
.button--light:hover { background: var(--rose); }

.footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 36px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); font-size: 13px; }
.footer p { text-align: right; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
}

@media (max-width: 800px) {
  .header { width: calc(100% - 36px); height: 74px; }
  .nav { display: none; }
  .hero { min-height: auto; padding: 120px 20px 80px; grid-template-columns: 1fr; gap: 30px; }
  .hero__art { min-height: 360px; order: -1; margin-top: 10px; }
  .art-card { inset: 4% 12% 3%; border-radius: 130px 130px 22px 22px; }
  .art-card span { font-size: 58px; }
  .orb--one { width: 170px; height: 170px; right: -25px; }
  .orb--two { width: 130px; height: 130px; left: 0; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  .section { width: calc(100% - 40px); padding: 85px 0; }
  .about__grid, .services-grid, .formats-grid { grid-template-columns: 1fr; gap: 14px; }
  .formats-grid { grid-auto-rows: 1fr; }
  .about__grid { gap: 24px; }
  .section-heading { display: block; margin-bottom: 35px; }
  .service-card { padding: 28px; }
  .service-card h3 { margin-top: 38px; }
  .portfolio { width: 100%; max-width: 100%; padding: 85px 20px; }
  .case-study__header { margin-bottom: 40px; }
  .case-study__story { grid-template-columns: 1fr; gap: 28px; }
  .case-study__story p { font-size: 16px; line-height: 1.65; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; width: 100%; max-width: 680px; }
  .case-photo button { border-radius: 18px; }
  .case-study--second { margin-top: 85px; padding-top: 85px; }
  .case-study--third { margin-top: 85px; padding-top: 85px; }
  .case-study__intro { margin-top: -12px; font-size: 16px; }
  .case-video { margin-top: 55px; }
  .product-projects { gap: 60px; }
  .product-media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .product-video video { border-radius: 18px; }
  .product-video--ushatava .product-media__frame { border-radius: 18px; }
  .format-card { min-height: 250px; }
  .formats-note { margin-top: 20px; text-align: left; }
  .cta { width: calc(100% - 40px); margin: 20px auto 60px; padding: 70px 24px; }
  .footer { width: calc(100% - 40px); grid-template-columns: 1fr auto; }
  .footer p { grid-column: 1 / -1; text-align: left; margin-top: 22px; }
}

@media (max-width: 450px) {
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { justify-content: center; width: 100%; }
  .portfolio { padding-right: 16px; padding-left: 16px; }
  .case-study__header h3 { font-size: 32px; }
  .case-study__header > p { line-height: 1.5; }
  .case-study__story { gap: 24px; margin-bottom: 42px; padding: 28px 0; }
  .case-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .case-photo button { border-radius: 14px; }
  .case-photo figcaption { padding: 8px 2px 0; font-size: 10px; line-height: 1.4; letter-spacing: .7px; }
  .case-photo__zoom { display: none; }
  .case-video > h4 { margin-bottom: 18px; font-size: 26px; }
  .case-video__grid { gap: 8px; }
  .case-video__frame { border-radius: 14px; }
  .case-video video { border-radius: 14px; }
  .product-project__header { gap: 12px; margin-bottom: 20px; }
  .product-project__header h4 { font-size: 25px; }
  .product-media { gap: 8px; }
  .product-media > figure:nth-child(3) { grid-column: 1 / -1; width: calc((100% - 8px) / 2); justify-self: center; }
  .product-video video { border-radius: 14px; }
  .product-video--ushatava .product-media__frame { border-radius: 14px; }
  .product-video figcaption { padding: 8px 2px 0; font-size: 10px; line-height: 1.4; letter-spacing: .7px; }
  .lightbox { width: 94vw; height: 88vh; }
  .lightbox__close { top: -6px; right: -2px; }
}

/* Case 04: styles are isolated from the existing portfolio cases. */
.motion-case { min-width: 0; margin-top: 120px; padding-top: 120px; border-top: 1px solid var(--line); }
.motion-case__header { max-width: 820px; margin-bottom: 50px; }
.motion-case__number { margin: 0 0 16px; color: #9a6e68; font-size: 12px; letter-spacing: 2px; }
.motion-case__header h3 { margin: 0; font: 400 clamp(32px, 4.2vw, 56px)/1.15 "Prata", serif; letter-spacing: -1.2px; overflow-wrap: anywhere; }
.motion-case__subtitle { margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.motion-case__story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 34px 0; margin-bottom: 60px; border-block: 1px solid var(--line); }
.motion-case__story h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 1.4px; }
.motion-case__story p { margin: 0; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.motion-case__pairs { width: min(100%, 660px); margin-inline: auto; }
.motion-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.motion-pair + .motion-pair { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.motion-card { min-width: 0; margin: 0; }
.motion-card--video { display: grid; grid-template-rows: auto auto; align-content: start; }
.motion-card__frame { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: transparent; }
button.motion-card__frame { cursor: zoom-in; }
.motion-card__frame img, .motion-card__frame video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-card:not(.motion-card--video) figcaption { margin-top: 12px; font-size: 12px; line-height: 1.5; letter-spacing: 1px; color: var(--muted); }
.motion-pair--room .motion-card__frame { aspect-ratio: 4 / 5; }
.motion-pair--room img { object-position: center top; }
.motion-video-frame { position: relative; background: #302c2c; }
.motion-video-frame .motion-video-media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.motion-video-media[data-room-crop] { object-position: left top; transform: scale(1.2); transform-origin: left top; }
.motion-video-start { display: none; }
.product-video .motion-video-media[data-room-crop]:fullscreen,
.product-video .motion-video-media[data-room-crop]:-webkit-full-screen { object-fit: cover; object-position: left top; transform: scale(1.2); transform-origin: left top; }
@media (min-width: 481px) {
  .motion-card--video .product-media__frame { max-width: none; aspect-ratio: 3 / 4; }
  .motion-pair--room .motion-card--video .product-media__frame { aspect-ratio: 4 / 5; }
}
@media (max-width: 800px) {
  .motion-case { margin-top: 85px; padding-top: 85px; }
  .motion-case__story { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .motion-pair { gap: 12px; }
  .motion-card__frame { border-radius: 18px; }
  .motion-card--video .product-media__frame { border-radius: 18px; }
  .motion-video-media[data-room-crop],
  .product-video .motion-video-media[data-room-crop]:fullscreen,
  .product-video .motion-video-media[data-room-crop]:-webkit-full-screen {
    object-fit: cover; object-position: center; transform: none;
  }
}
@media (max-width: 480px) {
  .motion-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; margin-inline: auto; }
  .motion-pair + .motion-pair { margin-top: 8px; padding-top: 0; border-top: 0; }
  .motion-card { width: 100%; justify-self: stretch; }
  .motion-card:not(.motion-card--video) .motion-card__frame { aspect-ratio: 7 / 10; }
  .motion-card:not(.motion-card--video) figcaption { margin-top: 0; padding: 8px 2px 0; font-size: 10px; line-height: 1.4; letter-spacing: .7px; }
  .motion-card__frame { border-radius: 14px; }
  .motion-card--video .product-media__frame { border-radius: 14px; }
  .motion-case .motion-video-start {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
    width: 100%; height: 100%; padding: 0; overflow: hidden;
    border: 0; border-radius: inherit; background: #302c2c; cursor: pointer;
    touch-action: manipulation;
  }
  .motion-case .motion-video-frame.is-started .motion-video-start { display: none; }
  .motion-video-start__poster {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
  }
  .motion-video-start__poster[data-room-crop] {
    object-position: center; transform: none;
  }
  .motion-video-media[data-room-crop],
  .product-video .motion-video-media[data-room-crop]:fullscreen,
  .product-video .motion-video-media[data-room-crop]:-webkit-full-screen {
    object-fit: cover; object-position: center; transform: none;
  }
  .motion-video-start__icon {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(36, 31, 31, .78); box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  }
  .motion-video-start__icon::before {
    content: ""; width: 0; height: 0; margin-left: 3px;
    border-top: 7px solid transparent; border-bottom: 7px solid transparent;
    border-left: 11px solid #fff;
  }
  .motion-case__subtitle { font-size: 16px; }
}

@media (hover: none) and (pointer: coarse) and (min-width: 801px) {
  .motion-video-media[data-room-crop],
  .product-video .motion-video-media[data-room-crop]:fullscreen,
  .product-video .motion-video-media[data-room-crop]:-webkit-full-screen {
    object-fit: cover; object-position: left top; transform: scale(1.34); transform-origin: left top;
  }
}

/* Desktop video preview: one poster and play treatment for every video card. */
.video-start { display: none; }
@media (min-width: 801px) {
  .video-frame { position: relative; overflow: hidden; }
  .video-frame .video-start {
    position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
    width: 100%; height: 100%; padding: 0; overflow: hidden;
    border: 0; border-radius: inherit; background: #302c2c; cursor: pointer;
  }
  .video-frame.is-started .video-start { display: none; }
  .video-start__poster {
    position: absolute; inset: 0; display: block; width: 100%; height: 100%;
    object-fit: cover; pointer-events: none;
  }
  .video-start__poster[data-ushatava-crop] { transform: scale(1.08); }
  .video-start__poster[data-room-crop] {
    object-position: left top; transform: scale(1.2); transform-origin: left top;
  }
  .video-start__icon {
    position: relative; z-index: 1; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(36, 31, 31, .78); box-shadow: 0 3px 14px rgba(0, 0, 0, .28);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  }
  .video-start__icon::before {
    content: ""; width: 0; height: 0; margin-left: 3px;
    border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
  }
}

/* Modal viewers only: portfolio card dimensions are unchanged. */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; margin: 0; border: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 72px) 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
  overflow: hidden; background: rgba(36,31,31,.94);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close {
  position: fixed; z-index: 10; top: calc(env(safe-area-inset-top, 0px) + 12px);
  right: calc(env(safe-area-inset-right, 0px) + 12px);
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border: 2px solid #fff; border-radius: 50%; background: #242020; color: #fff;
  font: 32px/1 sans-serif; cursor: pointer; box-shadow: 0 2px 12px #0008;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
