:root {
  color-scheme: light;
  font-family: Poppins, system-ui, sans-serif;
  background: #0c1015;
}
@font-face { font-family: Poppins; src: url("./assets/fonts/Poppins-Regular.ttf") format("truetype"); font-display: swap; font-weight: 400; }
@font-face { font-family: Poppins; src: url("./assets/fonts/Poppins-Bold.ttf") format("truetype"); font-display: swap; font-weight: 700; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.gallery-page { min-height: 100svh; color: #e9eef5; background: #121922; }
.gallery { max-width: 1100px; margin: auto; padding: clamp(26px, 6vw, 76px) clamp(16px, 5vw, 54px); }
.gallery h1 { font-size: clamp(2rem, 6vw, 3.3rem); line-height: 1.12; letter-spacing: -.04em; }
.gallery header p { margin-top: 10px; color: #bdc8d7; font-size: .95rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.gallery-tile { overflow: hidden; display: block; text-decoration: none; border-radius: 14px; background: #1b2532; border: 1px solid #2b3848; }
.gallery-tile:hover { border-color: #97aec7; background: #243140; }
.gallery-tile img { display: block; width: 100%; height: auto; aspect-ratio: 2.12; object-fit: cover; }
.gallery-description { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 14px 17px; }
.gallery-description strong { display: block; font-size: 1.07rem; }
.gallery-description span span { display: block; margin-top: 4px; color: #bdc8d7; font-size: .8rem; }
.gallery-arrow { font-size: 1.35rem; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; } }

.card-page { display: grid; place-items: center; min-height: 100svh; background: #0c1015; }
.stage {
  position: relative;
  width: min(100vw, calc(100svh * var(--scene-ratio)));
  aspect-ratio: var(--scene-ratio);
  background: var(--desktop-art, var(--reference)) center / 100% 100% no-repeat;
}
.screen-slot {
  position: absolute;
  inset: var(--screen-y) auto auto var(--screen-x);
  width: var(--screen-width);
  height: var(--screen-height);
  border-radius: var(--screen-radius);
  overflow: auto;
  scrollbar-width: none;
  container-type: inline-size;
  background: var(--surface);
}
.screen-slot::-webkit-scrollbar { display: none; }
.card-screen {
  --u: calc(100cqi / var(--native-width));
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  background: var(--surface);
  color: var(--ink);
  font-size: calc(16 * var(--u));
}
.screen-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.top-controls { position: absolute; z-index: 3; pointer-events: none; inset: calc(20 * var(--u)) calc(21 * var(--u)) auto; display: flex; justify-content: space-between; }
.top-control {
  pointer-events: auto;
  display: inline-grid;
  place-items: center;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  color: var(--top-ink, var(--ink));
  background: transparent;
  border: 0;
  padding: 0;
  font-size: calc(23 * var(--u));
}
.share-control {
  border-radius: 50%;
  background: radial-gradient(ellipse at 48% 5%, #3c596d, #142f42 52%, #102332 88%);
  box-shadow: inset 0 1px 1px rgb(228 250 255 / .2);
}
.artwork { position: relative; overflow: hidden; }
.artwork::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: var(--reference);
  background-repeat: no-repeat;
  background-size: calc(var(--source-w) / var(--crop-w) * 100%) calc(var(--source-h) / var(--crop-h) * 100%);
  background-position: calc(var(--crop-x) / (var(--source-w) - var(--crop-w)) * 100%) calc(var(--crop-y) / (var(--source-h) - var(--crop-h)) * 100%);
}
.artwork[data-custom="true"]::before { display: none; }
.artwork img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--photo-focus, 50% 50%); }
.artwork[data-art="logo"] img { object-fit: contain; object-position: center; padding: var(--logo-padding, 8%); }
.identity h1 { font-weight: 700; white-space: pre-line; overflow-wrap: anywhere; }
.industry { overflow-wrap: anywhere; }
.contact-rows { min-width: 0; font-style: normal; }
.contact-row {
  display: grid;
  grid-template-columns: calc(29 * var(--u)) minmax(0,1fr);
  align-items: center;
  gap: calc(17 * var(--u));
  text-decoration: none;
  min-width: 0;
  padding-block: calc(5 * var(--u));
}
.contact-row span { overflow-wrap: anywhere; }
.contact-row i { color: var(--accent); text-align: center; font-size: calc(23 * var(--u)); }
a.contact-row:hover span { text-decoration: underline; }
.socials { display: flex; align-items: center; gap: calc(15 * var(--u)); }
.socials a {
  display: inline-grid;
  place-items: center;
  width: calc(43 * var(--u));
  height: calc(43 * var(--u));
  text-decoration: none;
  flex: none;
  font-size: calc(25 * var(--u));
}
.qr-frame {
  display: grid;
  place-items: center;
  border: 0;
  position: relative;
  padding: 0;
  background: transparent;
}
.qr-picture { display: block; background: #fff; overflow: hidden; border-radius: calc(5 * var(--u)); width: var(--qr-size); }
.qr-picture svg { display: block; width: 100%; height: auto; fill: #05090a; }
.qr-frame[data-corners]::before {
  position: absolute;
  inset: var(--qr-corner-inset, 7%);
  border-radius: calc(15 * var(--u));
  content: "";
  border: calc(3 * var(--u)) solid var(--accent);
  mask-image: conic-gradient(transparent 0deg 25deg, #000 25deg 65deg, transparent 65deg 115deg, #000 115deg 155deg, transparent 155deg 205deg, #000 205deg 245deg, transparent 245deg 295deg, #000 295deg 335deg, transparent 335deg);
  pointer-events: none;
}
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); align-items: stretch; }
.footer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(5 * var(--u));
  min-height: calc(52 * var(--u));
  padding: calc(6 * var(--u)) calc(1 * var(--u));
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: calc(11 * var(--u));
  line-height: 1.15;
  text-align: center;
}
.footer-action i, .footer-action svg { color: var(--accent); font-size: calc(24 * var(--u)); }
.footer-action svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); }
.footer-action:hover, .socials a:hover { filter: brightness(1.22); }
.card-dialog {
  color: #13242c;
  background: #fcfcfb;
  border: 1px solid #cdd9de;
  width: min(410px, calc(100vw - 26px));
  padding: 18px;
  border-radius: 14px;
}
.card-dialog::backdrop { background: rgb(7 15 21 / .66); }
.card-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-dialog h2 { font-size: 1.15rem; }
.card-dialog button, .card-dialog .dialog-action {
  border: 1px solid #cad5da; min-height: 44px; padding: 6px 12px; border-radius: 7px;
  background: #f1f5f5; color: #13242c; text-decoration: none;
}
.card-dialog header button { width: 44px; font-size: 1.25rem; }
.card-dialog .qr-image { display: block; width: min(100%, 250px); margin: 0 auto 13px; }
.card-dialog .dialog-url { overflow-wrap: anywhere; display: block; font-size: .85rem; }
.menu-actions { display: grid; gap: 7px; }
.share-input { width: 100%; border: 1px solid #b5c1c8; padding: 8px; border-radius: 6px; margin: 6px 0 10px; }
.notice { z-index: 5; position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 8px 13px; background: #142630; border: 1px solid #587581; color: white; border-radius: 8px; }
.notice:empty { display: none; }

.artwork[data-custom="true"] .logo-default { display: none; }
.screen-slot { z-index: 1; }

@media (min-width: 901px) {
  .stage[data-clean-desk] { background: var(--desktop-art, url("./assets/desk.webp")) center / cover no-repeat; }
  .stage[data-clean-desk]:not([data-custom-desk])::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--reference) center / 100% 100% no-repeat;
    mask: var(--bezel-mask) center / 100% 100% no-repeat;
  }
}
@media (max-width: 900px) {
  .card-page { display: block; }
  .stage { width: min(100%, 520px); margin-inline: auto; aspect-ratio: auto; background: none; }
  .screen-slot { position: static; width: 100%; height: auto; border-radius: 0; overflow: visible; }
  .card-screen { min-height: 100svh; }
  .top-control, .footer-action { min-height: 44px; }
  .card-page .contact-row { font-size: max(12px, calc(var(--contact-native-size, 15) * var(--u))); }
  .card-page .footer-action { font-size: max(10px, calc(var(--footer-native-size, 11) * var(--u))); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .stage { padding-block: 20px; }
  .screen-slot { border-radius: 22px; overflow: hidden; }
  .card-screen { min-height: calc(100svh - 40px); }
}