:root {
  --bg: #030306;
  --bg-soft: #08080f;
  --panel: rgba(255,255,255,0.065);
  --panel-strong: rgba(255,255,255,0.11);
  --line: rgba(255,255,255,0.13);
  --line-strong: rgba(255,255,255,0.28);
  --text: #f8f8ff;
  --muted: #aaaabd;
  --muted-2: #737386;
  --accent: #8f8cff;
  --accent-2: #36d8ff;
  --accent-3: #ffffff;
  --danger: #ff4f9a;
  --radius: 28px;
  --radius-lg: 44px;
  --shadow: 0 34px 120px rgba(0,0,0,0.68);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(143,140,255,0.38); color: white; }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 5000;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), white);
  box-shadow: 0 0 22px rgba(143,140,255,0.8);
}

.site-bg { position: fixed; inset: 0; z-index: -10; overflow: hidden; background: radial-gradient(circle at top, #0b0b16, #030306 58%); }
.mesh { position: absolute; width: 48vw; height: 48vw; min-width: 420px; min-height: 420px; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 12s ease-in-out infinite alternate; }
.mesh-a { left: -15%; top: -8%; background: rgba(143,140,255,.30); }
.mesh-b { right: -12%; top: 12%; background: rgba(54,216,255,.20); animation-delay: -4s; }
.mesh-c { left: 35%; bottom: -24%; background: rgba(255,79,154,.14); animation-delay: -7s; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 74px 74px; mask-image: radial-gradient(circle at center, black 0%, transparent 74%); animation: gridFloat 18s linear infinite; }
.noise-layer { position: absolute; inset: 0; opacity: .065; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1; opacity: .32; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(143,140,255,.26), transparent 66%); filter: blur(14px); transition: opacity .25s ease; }

@keyframes drift { to { transform: translate3d(5vw, -4vh, 0) scale(1.12); } }
@keyframes gridFloat { to { background-position: 74px 74px; } }

.header {
  position: fixed;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  z-index: 2000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(8,8,15,.62);
  backdrop-filter: blur(24px);
  border-radius: 999px;
  box-shadow: 0 20px 80px rgba(0,0,0,.34);
  transition: .35s ease;
}
.header.scrolled { background: rgba(8,8,15,.88); border-color: rgba(255,255,255,.23); transform: translateX(-50%) translateY(-3px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: #06060a; font-size: .95rem; background: linear-gradient(135deg, #fff, #aeadff 56%, #63e6ff); box-shadow: 0 0 34px rgba(143,140,255,.45); }
.brand-name { font-size: 1.05rem; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); font-size: .92rem; padding: 10px 14px; border-radius: 999px; transition: .25s ease; }
.nav a:hover, .nav a.active { color: white; background: rgba(255,255,255,.095); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.08); }
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: white; border-radius: 99px; transition: .25s ease; }

.hero, .page-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 54px;
  padding: 135px 8% 85px;
  overflow: hidden;
}
.page-hero { min-height: 66vh; grid-template-columns: 1fr; place-items: center; text-align: center; }
.small-page { min-height: 62vh; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -4; opacity: .8; }
.hero-rings { position: absolute; right: 6%; top: 20%; width: 520px; height: 520px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; opacity: .7; animation: spin 24s linear infinite; }
.hero-rings::before, .hero-rings::after { content: ""; position: absolute; inset: 14%; border-radius: inherit; border: 1px dashed rgba(143,140,255,.24); }
.hero-rings::after { inset: 30%; border-color: rgba(54,216,255,.24); animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 800; }
.kicker span { width: 34px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent-2); }
.hero-title, .page-hero h1 { max-width: 900px; margin-top: 20px; font-size: clamp(3.25rem, 8vw, 7.8rem); line-height: .86; letter-spacing: -.08em; text-transform: uppercase; text-wrap: balance; }
.hero-title::after { content: ""; display: block; width: 180px; height: 2px; margin-top: 28px; background: linear-gradient(90deg, white, var(--accent), transparent); box-shadow: 0 0 22px rgba(143,140,255,.7); }
.hero-text, .page-hero p, .section-head p, .section-copy p, .print-info p, .upload-panel p { color: var(--muted); line-height: 1.75; font-size: 1.02rem; }
.hero-text { max-width: 650px; margin-top: 24px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; overflow: hidden; font-weight: 850; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.button::before { content: ""; position: absolute; inset: 0; transform: translateX(-115%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent); transition: .65s ease; }
.button:hover::before { transform: translateX(115%); }
.button:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.38); }
.button-main { color: #040408; border: 0; background: linear-gradient(135deg, #fff, #c7c6ff 52%, #67e6ff); box-shadow: 0 18px 52px rgba(143,140,255,.30); }
.button-ghost { color: white; background: rgba(255,255,255,.065); }
.full { width: 100%; }
.text-link { display: inline-flex; margin-top: 22px; color: white; font-weight: 850; }
.hero-metrics { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics div { min-width: 116px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.05); backdrop-filter: blur(18px); }
.hero-metrics strong { display: block; color: white; font-size: 1.35rem; }
.hero-metrics span { color: var(--muted); font-size: .85rem; }

.hero-showcase { position: relative; min-height: 620px; display: grid; place-items: center; perspective: 1200px; }
.device-frame { position: relative; width: min(430px, 85vw); aspect-ratio: .75; padding: 13px; border-radius: 44px; border: 1px solid rgba(255,255,255,.22); background: linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.035)); box-shadow: var(--shadow), inset 0 0 30px rgba(255,255,255,.055); transform-style: preserve-3d; }
.device-frame::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, transparent, rgba(255,255,255,.65), transparent, rgba(54,216,255,.35)); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: borderFlow 4.5s linear infinite; }
@keyframes borderFlow { to { filter: hue-rotate(90deg); } }
.device-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; filter: saturate(1.05) contrast(1.08); }
.device-frame::after { content: ""; position: absolute; inset: 13px; border-radius: 34px; background: linear-gradient(120deg, rgba(255,255,255,.18), transparent 38%, rgba(255,255,255,.08)); pointer-events: none; }
.glass-caption { position: absolute; left: 30px; right: 30px; bottom: 30px; padding: 16px 18px; border-radius: 22px; border: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.42); backdrop-filter: blur(18px); }
.glass-caption span { display: block; color: var(--muted); font-size: .82rem; }
.glass-caption strong { font-size: 1.3rem; letter-spacing: .08em; }
.holo-card { position: absolute; z-index: 3; min-width: 130px; padding: 18px; border-radius: 24px; border: 1px solid rgba(255,255,255,.16); background: rgba(10,10,18,.55); backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0,0,0,.36); animation: float 4s ease-in-out infinite; }
.holo-card span { font-size: 2rem; font-weight: 950; color: white; }
.holo-card p { color: var(--muted); }
.holo-a { top: 96px; left: 4%; }
.holo-b { bottom: 112px; right: 4%; animation-delay: -1.6s; }
.orbit-dot { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: white; box-shadow: 0 0 34px 10px rgba(54,216,255,.35); animation: orbit 8s linear infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes orbit { from { transform: rotate(0deg) translateX(292px) rotate(0deg); } to { transform: rotate(360deg) translateX(292px) rotate(-360deg); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,.035); }
.marquee-track { display: flex; width: max-content; gap: 42px; padding: 18px 0; animation: marquee 24s linear infinite; }
.marquee span { color: rgba(255,255,255,.72); font-weight: 900; text-transform: uppercase; letter-spacing: .16em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { padding: 100px 8%; }
.section-head { max-width: 820px; margin: 0 auto 46px; text-align: center; }
.section-head h2, .section-copy h2, .print-info h2, .upload-panel h2 { margin: 12px 0 16px; font-size: clamp(2.1rem, 5vw, 4.25rem); line-height: .96; letter-spacing: -.06em; text-wrap: balance; }
.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; padding-top: 0; padding-bottom: 0; border-block: 1px solid var(--line); background: rgba(255,255,255,.045); }
.stats-strip div { padding: 30px; min-height: 128px; display: grid; align-content: center; background: rgba(3,3,6,.48); }
.stats-strip strong { font-size: 1.15rem; }
.stats-strip span { color: var(--muted); margin-top: 6px; }
.split-section { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.glass-card, .price-card, .print-panel, .upload-panel, .photo-card { position: relative; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); border-radius: var(--radius); box-shadow: 0 24px 90px rgba(0,0,0,.28); overflow: hidden; }
.glass-card::before, .price-card::before, .print-panel::before, .upload-panel::before, .photo-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.18), transparent 28%); opacity: 0; transition: opacity .3s ease; }
.glass-card:hover::before, .price-card:hover::before, .print-panel:hover::before, .upload-panel:hover::before, .photo-card:hover::before { opacity: 1; }
.glass-card { min-height: 225px; padding: 28px; }
.card-number { color: var(--accent-2); font-size: .82rem; font-weight: 950; letter-spacing: .18em; }
.glass-card h3 { margin-top: 42px; margin-bottom: 10px; font-size: 1.25rem; }
.glass-card p { color: var(--muted); line-height: 1.7; }

.preview-grid { display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-auto-rows: 250px; gap: 18px; }
.preview-item { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #08080f; }
.preview-item.tall { grid-row: span 2; }
.preview-item.wide { grid-column: span 2; }
.preview-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.preview-item:hover img { transform: scale(1.08); }
.preview-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.70)); }
.preview-item span { position: absolute; left: 18px; bottom: 18px; z-index: 2; font-size: .82rem; font-weight: 950; letter-spacing: .16em; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card { padding: 30px; min-height: 450px; display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(143,140,255,.52); background: linear-gradient(145deg, rgba(143,140,255,.16), rgba(255,255,255,.055)); transform: translateY(-16px); }
.badge { position: absolute; right: 22px; top: 22px; padding: 8px 12px; border-radius: 999px; font-size: .72rem; font-weight: 950; color: #050507; background: white; }
.package-top h3 { font-size: 1.55rem; }
.package-top strong { display: block; margin-top: 16px; font-size: 3.4rem; letter-spacing: -.06em; background: linear-gradient(135deg, white, var(--accent-2)); -webkit-background-clip: text; color: transparent; }
ul { list-style: none; margin: 25px 0; display: grid; gap: 12px; color: var(--muted); }
li { display: flex; align-items: center; gap: 10px; }
li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.price-card .button { margin-top: auto; }

.print-panel { display: grid; grid-template-columns: .82fr 1.18fr; gap: 34px; padding: 34px; }
.print-highlights { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.print-highlights span { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.04); }
.print-form, .contact-form, .upload-panel { display: grid; gap: 16px; }
.form-row, .upload-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { color: rgba(255,255,255,.78); font-size: .9rem; font-weight: 700; }
input, select, textarea { width: 100%; margin-top: 8px; padding: 15px 15px; color: white; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; outline: none; background: rgba(0,0,0,.28); transition: .25s ease; }
input:focus, select:focus, textarea:focus { border-color: rgba(54,216,255,.55); box-shadow: 0 0 0 4px rgba(54,216,255,.08); }
textarea { min-height: 150px; resize: vertical; }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: 17px 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(0,0,0,.22); color: var(--muted); }
.total-line strong { color: white; font-size: 1.35rem; }
.contact-form { max-width: 820px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.045); }

.page-hero-content { max-width: 920px; position: relative; z-index: 2; }
.gallery-tools { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.gallery-tools h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); letter-spacing: -.06em; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.filter-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); cursor: pointer; background: rgba(255,255,255,.055); transition: .25s ease; }
.filter-button:hover, .filter-button.active { color: #040408; background: white; border-color: white; }
.gallery-grid.uniform { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-card { padding: 10px; transform-origin: center; transition: opacity .25s ease, transform .25s ease; }
.photo-card.is-hidden { display: none; }
.photo-open { display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; background: #06060a; position: relative; }
.photo-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, filter .7s ease; }
.photo-card:hover img { transform: scale(1.075); filter: saturate(1.08) contrast(1.1); }
.photo-shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.22), transparent 48%); transform: translateX(-120%); transition: .75s ease; }
.photo-card:hover .photo-shine { transform: translateX(120%); }
.photo-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 6px 4px; }
.photo-meta span { font-weight: 950; letter-spacing: .12em; font-size: .8rem; }
.photo-meta p { color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .14em; }
.lightbox { position: fixed; inset: 0; display: none; place-items: center; z-index: 6000; padding: 28px; background: rgba(0,0,0,.88); backdrop-filter: blur(18px); }
.lightbox.active { display: grid; }
.lightbox img { max-width: min(1050px, 88vw); max-height: 82vh; border-radius: 24px; border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow); }
#lightboxClose { position: absolute; right: 30px; top: 24px; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; color: white; font-size: 2rem; cursor: pointer; background: rgba(255,255,255,.08); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); color: white; font-size: 2.6rem; cursor: pointer; background: rgba(255,255,255,.08); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }
#lightboxText { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0,0,0,.56); color: white; letter-spacing: .12em; font-weight: 950; }

.upload-section { padding-top: 60px; }
.upload-panel { max-width: 980px; margin: 0 auto 40px; padding: 34px; }
.file-drop { min-height: 190px; display: grid; place-items: center; text-align: center; border: 1px dashed rgba(255,255,255,.28); border-radius: 24px; background: rgba(255,255,255,.035); cursor: pointer; transition: .25s ease; }
.file-drop:hover { border-color: rgba(54,216,255,.65); background: rgba(54,216,255,.055); }
.file-drop input { display: none; }
.file-drop span { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 10px; border-radius: 50%; color: #050507; background: white; font-size: 2rem; font-weight: 900; }
.file-drop small { display: block; margin-top: 6px; color: var(--muted); }
.upload-preview .photo-card { animation: popIn .4s ease both; }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

.footer { margin: 30px 8% 34px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; background: rgba(255,255,255,.045); color: var(--muted); }
.footer strong { display: block; color: white; margin-bottom: 6px; }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.footer a { color: white; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .14s; }
.tilt { transform-style: preserve-3d; will-change: transform; }
.magnetic { will-change: transform; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-showcase { min-height: 540px; }
  .split-section, .print-panel { grid-template-columns: 1fr; }
  .gallery-grid.uniform { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .header { top: 12px; width: calc(100% - 22px); }
  .nav-toggle { display: block; }
  .nav { position: fixed; left: 11px; right: 11px; top: 76px; flex-direction: column; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 24px; background: rgba(8,8,15,.96); backdrop-filter: blur(22px); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: .25s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { text-align: center; padding: 14px; }
  .hero, .page-hero { padding: 125px 5% 70px; }
  .hero-title, .page-hero h1 { font-size: clamp(3rem, 14vw, 5.2rem); line-height: .9; }
  .hero-text { font-size: 1rem; }
  .hero-showcase { min-height: 470px; }
  .holo-a { left: 0; top: 72px; }
  .holo-b { right: 0; bottom: 74px; }
  .section { padding: 78px 5%; }
  .stats-strip { grid-template-columns: 1fr; }
  .feature-grid, .pricing-grid, .form-row, .upload-form-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .preview-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .preview-item.tall, .preview-item.wide { grid-row: auto; grid-column: auto; }
  .gallery-tools { display: grid; align-items: start; }
  .filter-buttons { justify-content: flex-start; }
  .gallery-grid.uniform { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .photo-card { padding: 8px; }
  .photo-meta { display: block; }
  .photo-meta p { margin-top: 4px; }
  .footer { margin-inline: 5%; display: grid; }
  .footer-links { justify-content: flex-start; }
  .cursor-glow { display: none; }
  .orbit-dot, .hero-rings { display: none; }
}
@media (max-width: 520px) {
  .gallery-grid.uniform { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .device-frame { width: min(360px, 92vw); }
  .holo-card { display: none; }
  .lightbox-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Final launch polish */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.025) 50%, transparent 100%);
  background-size: 100% 9px;
  opacity: .23;
  animation: scanMove 7s linear infinite;
}
@keyframes scanMove { to { background-position: 0 180px; } }
.photo-card { min-width: 0; }
.hero-title, .page-hero h1, .section-head h2, .section-copy h2, .print-info h2, .upload-panel h2 {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 820px) {
  .hero, .page-hero { padding: 120px 5% 68px; gap: 32px; }
  .hero-title, .page-hero h1 {
    font-size: clamp(2.65rem, 12vw, 4.85rem);
    line-height: .95;
    letter-spacing: -.065em;
  }
  .section-head h2, .section-copy h2, .print-info h2, .upload-panel h2 {
    font-size: clamp(2rem, 9vw, 3.35rem);
    line-height: 1;
  }
  .print-panel, .contact-form, .upload-panel { padding: 24px; border-radius: 24px; }
  .price-card { min-height: auto; }
  .package-top strong { font-size: 2.75rem; }
}

@media (max-width: 520px) {
  .header { width: calc(100% - 18px); padding: 10px; }
  .brand-mark { width: 38px; height: 38px; font-size: .85rem; }
  .brand-name { font-size: .98rem; }
  .nav { top: 72px; }
  .hero, .page-hero { padding: 112px 4.5% 58px; }
  .hero-title, .page-hero h1 {
    font-size: clamp(2.35rem, 12.6vw, 3.65rem);
    line-height: 1;
    letter-spacing: -.052em;
  }
  .hero-title::after { width: 125px; margin-top: 20px; }
  .hero-text, .page-hero p, .section-head p, .section-copy p, .print-info p, .upload-panel p {
    font-size: .96rem;
    line-height: 1.65;
  }
  .section { padding: 66px 4.5%; }
  .gallery-grid.uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-card { padding: 7px; border-radius: 20px; }
  .photo-open { border-radius: 16px; aspect-ratio: 3 / 4; }
  .photo-meta { padding: 10px 3px 2px; }
  .photo-meta span { font-size: .68rem; letter-spacing: .08em; }
  .photo-meta p { font-size: .63rem; letter-spacing: .1em; }
  .gallery-tools { gap: 18px; }
  .filter-buttons { gap: 8px; }
  .filter-button { min-height: 39px; padding: 0 12px; font-size: .82rem; }
  .preview-grid { grid-auto-rows: 230px; }
  .print-panel, .contact-form, .upload-panel { padding: 20px; border-radius: 22px; }
  input, select, textarea { padding: 14px 13px; border-radius: 14px; }
  .footer { padding: 22px; }
  .footer-links a { padding: 5px 0; }
  .device-frame { width: min(330px, 90vw); border-radius: 34px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
  .hero-title, .page-hero h1 { font-size: 2.25rem; }
  .gallery-grid.uniform { grid-template-columns: 1fr; }
}


/* V7 gallery image handling */
.photo-open img,
.preview-item img,
.device-frame img {
  object-fit: cover;
  object-position: center;
  background: #07070d;
}
.photo-card[data-category="portrait"] .photo-open { aspect-ratio: 4 / 5; }
.photo-card[data-category="event"] .photo-open { aspect-ratio: 4 / 5; }
.photo-card[data-category="automotive"] .photo-open { aspect-ratio: 4 / 5; }
.photo-card[data-category="nature"] .photo-open { aspect-ratio: 4 / 5; }
.photo-card[data-code^="AUT"] .photo-open img,
.photo-card[data-code^="NAT"] .photo-open img { object-position: center; }
.image-missing { display: none !important; }
.lightbox img {
  object-fit: contain;
  background: #030306;
}
@media (max-width: 620px) {
  .gallery-grid.uniform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .photo-card { padding: 7px; border-radius: 20px; }
  .photo-open { border-radius: 17px; aspect-ratio: 4 / 5; }
  .photo-meta { padding: 10px 3px 2px; align-items: flex-start; flex-direction: column; gap: 3px; }
  .photo-meta span { font-size: .72rem; }
  .photo-meta p { font-size: .66rem; }
  .filter-buttons { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; flex-wrap: nowrap; }
  .filter-button { flex: 0 0 auto; }
  .lightbox { padding: 14px; }
  .lightbox img { max-width: 96vw; max-height: 76vh; border-radius: 18px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; top: auto; bottom: 82px; transform: none; }
  .lightbox-prev { left: calc(50% - 58px); }
  .lightbox-next { right: calc(50% - 58px); }
  #lightboxClose { right: 16px; top: 14px; width: 44px; height: 44px; }
  #lightboxText { bottom: 24px; font-size: .74rem; max-width: 88vw; text-align: center; }
}

/* V8 launch-ready image reliability */
.image-loading {
  position: relative;
  overflow: hidden;
}
.image-loading::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border-radius: 18px;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255,255,255,.08) 44%, transparent 58%),
    radial-gradient(circle at 50% 40%, rgba(54,216,255,.16), transparent 42%),
    rgba(255,255,255,.035);
  background-size: 220% 100%, 100% 100%, 100% 100%;
  animation: skeletonSweep 1.15s linear infinite;
}
.preview-item.image-loading::before,
.device-frame.image-loading::before {
  inset: 0;
  border-radius: inherit;
}
.image-loading img {
  opacity: 0;
}
.image-ready img {
  opacity: 1;
}
.photo-open img,
.preview-item img,
.device-frame img {
  transition: opacity .28s ease, transform .7s ease;
}
@keyframes skeletonSweep {
  to { background-position: -220% 0, 0 0, 0 0; }
}
.lightbox-loading {
  display: none;
  position: fixed;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: white;
  z-index: 6002;
  animation: spinLoader .8s linear infinite;
}
.lightbox.loading .lightbox-loading {
  display: block;
}
.lightbox.loading #lightboxImg {
  opacity: .16;
}
@keyframes spinLoader { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
  .image-loading::before { inset: 7px; }
}
