:root {
  --bg-deep: #08090d;
  --bg-panel: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f5f8;
  --muted: #9aa0ad;
  --accent: #fc7302;
  --accent-soft: rgba(252, 115, 2, 0.5);
  --radius: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg-deep);
  background-image: radial-gradient(circle at 50% 30%, #11131c 0%, #08090d 70%);
  background-attachment: fixed;
  overflow-x: hidden;
  animation: fadeIn 0.9s ease-out;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; }

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* ---------- background lights ---------- */
.bg-lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.light {
  position: absolute;
  width: 0;
  top: 100vh;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #fff;
  box-shadow: var(--accent) 0 0 20px 2px;
  opacity: 0;
}
.x1 { animation: floatUp 4s infinite linear; transform: scale(1.0); }
.x2 { animation: floatUp 7s infinite linear; transform: scale(1.6); left: 15%; }
.x3 { animation: floatUp 2.5s infinite linear; transform: scale(0.5); left: -15%; }
.x4 { animation: floatUp 4.5s infinite linear; transform: scale(1.2); left: -34%; }
.x5 { animation: floatUp 8s infinite linear; transform: scale(2.2); left: -57%; }
.x6 { animation: floatUp 3s infinite linear; transform: scale(0.8); left: -81%; }
.x7 { animation: floatUp 5.3s infinite linear; transform: scale(3.2); left: 37%; }
.x8 { animation: floatUp 4.7s infinite linear; transform: scale(1.7); left: 62%; }
.x9 { animation: floatUp 4.1s infinite linear; transform: scale(0.9); left: 85%; }

@keyframes floatUp {
  0% { top: 100vh; opacity: 0; }
  25% { opacity: 1; }
  50% { top: 0; opacity: 0.8; }
  75% { opacity: 1; }
  100% { top: -100vh; opacity: 0; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  height: 42px;
  width: auto;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(252, 115, 2, 0.35));
  overflow: visible;
}
.brand-name { font-weight: 700; letter-spacing: 0.04em; font-size: 0.98rem; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.95rem;
}
.site-nav a { color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); }

.site-header.scrolled {
  background: rgba(8, 9, 13, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.lang-switch { display: flex; gap: 0.35rem; }
.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-switch button.active,
.lang-switch button:hover { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.section {
  position: relative;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.11) 22%, rgba(255, 255, 255, 0.11) 78%, transparent);
}
.section.product {
  background: radial-gradient(70% 55% at 50% 0%, rgba(252, 115, 2, 0.055), transparent 72%);
}
.section.product::before {
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: 0.6em; }
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.9rem;
  padding: 0;
  margin: 1.9rem 0 0;
  color: #c3c9d6;
  font-size: 1.02rem;
}
.hero-badges li { position: relative; padding-left: 1.35rem; }
.hero-badges li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 9px; height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #1a0d00;
  box-shadow: 0 0 22px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* ---------- hero visual: alternating stages ---------- */
.hero-visual { perspective: 1400px; }

.hero-stage { display: none; }
.hero-stage.is-active {
  display: block;
  animation: stageIn 0.65s ease both;
}
@keyframes stageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hero-demo { transform: rotateY(-6deg) rotateX(2deg); }

.demo-desktop {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  background-image:
    radial-gradient(80% 60% at 50% 0%, rgba(252, 115, 2, 0.10), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: auto, 24px 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 44px rgba(252, 115, 2, 0.14);
}

.demo-window {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: 40%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(16, 18, 26, 0.84);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  transition:
    left 0.85s cubic-bezier(0.34, 1.4, 0.5, 1),
    top 0.85s cubic-bezier(0.34, 1.4, 0.5, 1),
    width 0.85s cubic-bezier(0.34, 1.4, 0.5, 1),
    height 0.85s cubic-bezier(0.34, 1.4, 0.5, 1);
  will-change: left, top, width, height;
}

.demo-bar {
  display: flex;
  gap: 4px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.demo-bar i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.demo-bar .d1 { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }
.demo-bar .d2 { background: rgba(255, 255, 255, 0.34); }
.demo-bar .d3 { background: rgba(255, 255, 255, 0.16); }

.demo-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
}
.demo-body b {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
}

.demo-taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 9%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.demo-taskbar span {
  width: 20px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
}
.demo-taskbar span:first-child {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-soft);
}

.hero-network { filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.5)); }
.hero-network svg { width: 100%; height: auto; overflow: visible; }

/* ---------- cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.info-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  background: rgba(252, 115, 2, 0.05);
}
.info-card h3 { color: var(--text); }
.info-card p { color: #b0b7c4; margin: 0; font-size: 0.98rem; }

.info-icon {
  width: 42px; height: 42px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(252, 115, 2, 0.12);
  border: 1px solid rgba(252, 115, 2, 0.35);
  position: relative;
}
.info-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px; height: 14px;
  border-radius: 3px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

/* ---------- products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
  transition: border-color 0.25s, transform 0.25s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.pc-stage {
  position: relative;
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.015);
  background-image:
    radial-gradient(70% 60% at 50% 0%, rgba(252, 115, 2, 0.09), transparent 72%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.pc-shot {
  position: absolute;
  left: 0;
  top: 0;
  width: 40%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  transition:
    left 0.9s cubic-bezier(0.34, 1.35, 0.5, 1),
    top 0.9s cubic-bezier(0.34, 1.35, 0.5, 1),
    width 0.9s cubic-bezier(0.34, 1.35, 0.5, 1);
  will-change: left, top, width;
}

.pc-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.pc-kind {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
}
.pc-body h3 { margin: 0; font-size: 1.35rem; }
.pc-tagline { margin: 0; color: #b0b7c4; font-size: 1rem; }

.pc-points { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.pc-points li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: #bdc4d1;
  font-size: 0.97rem;
  line-height: 1.5;
}
.pc-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 9px; height: 9px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.pc-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
}
.pc-price { font-size: 1.2rem; font-weight: 700; }
.pc-platforms { color: #b0b7c4; font-size: 0.92rem; letter-spacing: 0.02em; }
.pc-links { display: flex; align-items: center; gap: 1rem; }
.pc-links .text-link { margin-top: 0; }

.es-media {
  position: relative;
  aspect-ratio: 1.6 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.015);
  background-image:
    radial-gradient(70% 60% at 50% 0%, rgba(252, 115, 2, 0.09), transparent 72%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px;
}
.es-desktop {
  position: absolute;
  left: 4%;
  top: 10%;
  width: 78%;
  height: 78%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
}
.es-phone {
  position: absolute;
  right: 6%;
  bottom: 0;
  height: 88%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.product-card.placeholder {
  justify-content: center;
  border-style: dashed;
  background: transparent;
  min-height: 260px;
}
.product-card.placeholder:hover { transform: none; border-color: var(--border); }
.product-card.placeholder .pc-body { justify-content: center; min-height: 100%; }

/* ---------- contact ---------- */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.contact-links { display: flex; flex-direction: column; gap: 0.9rem; }
.contact-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-links a:hover { border-color: var(--accent); background: rgba(252, 115, 2, 0.05); }
.contact-links span { color: var(--muted); font-size: 0.85rem; }
.contact-links strong { font-weight: 600; font-size: 0.92rem; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 4rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}
.footer-logo {
  height: 52px;
  width: auto;
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 0 12px rgba(252, 115, 2, 0.3));
  overflow: visible;
}
.footer-note { color: var(--muted); margin-bottom: 0.4rem; }
.footer-copy { color: #6b7280; font-size: 0.85rem; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .contact-box { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem clamp(1rem, 4vw, 2.5rem) 1.6rem;
    background: rgba(8, 9, 13, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
}

/* ---------- SE product page ---------- */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}
.product-hero h1 { margin-bottom: 0.4em; }

.ph-media { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.es-logo { height: 84px; width: auto; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }
.ph-media .es-media { width: 100%; }

.lvl-chips { display: flex; gap: 0.5rem; margin-top: 1.2rem; }
.lvl {
  min-width: 44px;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.lvl.a1 { color: #3fbf5f; border-color: rgba(63, 191, 95, 0.5); background: rgba(63, 191, 95, 0.09); }
.lvl.a2 { color: #4a9df0; border-color: rgba(74, 157, 240, 0.5); background: rgba(74, 157, 240, 0.09); }
.lvl.b1 { color: #fc9a3c; border-color: rgba(252, 154, 60, 0.5); background: rgba(252, 154, 60, 0.09); }
.lvl.b2 { color: #f0564a; border-color: rgba(240, 86, 74, 0.5); background: rgba(240, 86, 74, 0.09); }
.lvl.off {
  color: #5b6270;
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.025);
}
.version-card .lvl-chips { margin-top: 0; }

/* gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-panel);
  cursor: zoom-in;
  transition: border-color 0.25s, transform 0.25s;
}
.shot:hover { border-color: var(--accent); transform: translateY(-3px); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }
.shot.portrait img { aspect-ratio: 72 / 165; }
.shot figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--border);
}

/* versions */
.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.version-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
}
.version-card.featured {
  border-color: var(--accent-soft);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(252, 115, 2, 0.09), transparent 70%),
    var(--bg-panel);
  box-shadow: 0 0 40px rgba(252, 115, 2, 0.1);
}
.vc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.vc-head h3 { margin: 0; font-size: 1.45rem; }
.vc-price { margin: 0; display: flex; align-items: baseline; gap: 0.5rem; }
.vc-amount { font-size: 1.7rem; font-weight: 700; }
.vc-period { color: var(--muted); font-size: 0.85rem; }
.version-card .feature-list { margin: 0; }

.dl-list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.dl-list .btn {
  flex-direction: column;
  gap: 0.1rem;
  align-items: flex-start;
  padding: 0.65rem 1.1rem;
}
.dl-meta { font-size: 0.72rem; font-weight: 400; opacity: 0.75; letter-spacing: 0.04em; }
.btn-wide { width: 100%; flex-direction: column; gap: 0.1rem; align-items: center; }
.vc-note { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }

/* faq */
.faq-list { display: flex; flex-direction: column; gap: 0.8rem; max-width: 760px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-panel);
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 0; padding: 0 1.3rem 1.1rem; color: var(--muted); }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 9, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; }
  .ph-media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---------- live demo ---------- */
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 640px) {
  .demo-frame { aspect-ratio: 4 / 5; }
  .demo-note { font-size: 0.82rem; }
}
