/* Overlay */
#am-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
  font-family: "Inter", sans-serif;
}
#am-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Modal box */
#am-modal {
  position: relative;
  width: 100%;
  max-width: 40%;
  max-height: 100vh;
  background: #111;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: scale(0.94) translateY(18px);
  transition: transform 0.32s cubic-bezier(0.34, 1.28, 0.64, 1);
  display: flex;
  flex-direction: column;
}
#am-overlay.open #am-modal {
  transform: scale(1) translateY(0);
}

/* Close button */
#am-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid #3a3a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  backdrop-filter: blur(4px);
}
#am-close:hover {
  background: #2c2c2c;
  transform: scale(1.1);
}
#am-close:active {
  transform: scale(0.93);
}
#am-close svg {
  width: 14px;
  height: 14px;
  stroke: #aaa;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
}

/* Scroll area */
#am-scroll {
  overflow-y: auto;
  flex: 1;
}
#am-scroll::-webkit-scrollbar {
  width: 4px;
}
#am-scroll::-webkit-scrollbar-track {
  background: transparent;
}
#am-scroll::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 2px;
}

/* ── PAGE CONTENT STYLES (scoped) ── */
#am-scroll .am-page {
  color: #ccc;
  font-family: "Inter", sans-serif;
  font-size: 14px;
}
#am-scroll .am-hero {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
#am-scroll .am-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    #404040 0%,
    #2e2e2e 30%,
    #222 60%,
    #181818 100%
  );
}
#am-scroll .am-hero-pillar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, #1c1c1c 0%, #2a2a2a 50%, transparent 100%);
  z-index: 1;
}
#am-scroll .am-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  pointer-events: none;
}
#am-scroll .am-hero-dots {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 3px;
}
#am-scroll .am-hero-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
  border: 1px solid #484848;
}
#am-scroll .am-phone-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}
#am-scroll .am-phone {
  width: 148px;
  height: 278px;
  background: #0c0c0c;
  border-radius: 30px;
  border: 2px solid #404040;
  box-shadow:
    6px 10px 40px rgba(0, 0, 0, 0.85),
    -3px 0 15px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px;
  position: relative;
  transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
}
#am-scroll .am-phone-cam {
  position: absolute;
  top: 10px;
  width: 48px;
  height: 7px;
  background: #1c1c1c;
  border-radius: 4px;
  border: 1px solid #2e2e2e;
}
#am-scroll .am-orbs {
  position: relative;
  width: 88px;
  height: 68px;
  margin-bottom: 14px;
}
#am-scroll .am-orb {
  position: absolute;
  border-radius: 50%;
}
#am-scroll .am-orb-b {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle at 38% 32%, #c0e4f5, #6aaed8, #2e72aa);
  top: 0;
  left: 8px;
  box-shadow: 0 6px 20px rgba(80, 160, 220, 0.25);
}
#am-scroll .am-orb-p {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 38% 32%, #d8b4ee, #9e62c8, #6530a0);
  bottom: 0;
  left: 22px;
  box-shadow: 0 4px 16px rgba(140, 80, 200, 0.25);
}
#am-scroll .am-phone-text {
  width: 100%;
  margin-bottom: 16px;
}
#am-scroll .am-phone-text p {
  font-size: 8px;
  color: #b0b0b0;
  line-height: 1.6;
}
#am-scroll .am-phone-text strong {
  color: #fff;
  font-weight: 600;
}
#am-scroll .am-phone-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1.5px solid #363636;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
#am-scroll .am-btn-lbl {
  font-size: 5.5px;
  color: #777;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-align: center;
}
#am-scroll .am-btn-arrow {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid #999;
  border-bottom: 1.5px solid #999;
  transform: rotate(-45deg);
  margin-top: 1px;
}
#am-scroll .am-pbody {
  background: #111;
  padding: 0 16px;
}
#am-scroll .am-title-block {
  padding: 18px 0 14px;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-title-block h1 {
  font-size: 17px;
  font-weight: 600;
  color: #e6e6e6;
  letter-spacing: -0.2px;
}
#am-scroll .am-title-block .am-sub {
  font-size: 12px;
  color: #555;
  margin-top: 5px;
}
#am-scroll .am-meta {
  padding: 2px 0;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-meta-row {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}
#am-scroll .am-meta-row:last-child {
  border-bottom: none;
}
#am-scroll .am-mk {
  background: #1d1d1d;
  border: 1px solid #2b2b2b;
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 11px;
  color: #c8c8c8;
  font-weight: 500;
  min-width: 92px;
  white-space: nowrap;
}
#am-scroll .am-mv {
  margin-left: auto;
  font-size: 13px;
  color: #a0a0a0;
}
#am-scroll .am-para {
  padding: 14px 0;
  font-size: 12.5px;
  color: #777;
  line-height: 1.75;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-gallery2 {
  display: Flex;
  /* grid-template-columns: 1fr 1fr; */
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-gi {
  border-radius: 5px;
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 1/0.9;
  position: relative;
}
#am-scroll .am-gi1 {
  background: linear-gradient(140deg, #0d0d0d 0%, #161616 100%);
}
#am-scroll .am-gi1-scene {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 6px 0;
  gap: 4px;
  transform: perspective(200px) rotateX(8deg) rotateY(-4deg);
  transform-origin: bottom center;
}
#am-scroll .am-mp {
  background: #121212;
  border: 1px solid #282828;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 3px;
  gap: 2px;
  box-shadow: 3px 6px 16px rgba(0, 0, 0, 0.7);
  flex-shrink: 0;
}
#am-scroll .am-mpa {
  width: 32px;
  height: 60px;
}
#am-scroll .am-mpb {
  width: 29px;
  height: 52px;
  margin-bottom: 3px;
}
#am-scroll .am-mpc {
  width: 34px;
  height: 64px;
}
#am-scroll .am-mb {
  height: 2px;
  background: #222;
  border-radius: 1px;
  width: 90%;
  margin: 1px 0;
}
#am-scroll .am-mb.s {
  width: 55%;
}
#am-scroll .am-mc {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #222;
  margin: 2px auto;
}
#am-scroll .am-mc.teal {
  background: #1a3545;
}
#am-scroll .am-mc.pur {
  background: #2a1a3a;
}
#am-scroll .am-md {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: conic-gradient(#3a7a98 0deg 190deg, #1c1c1c 190deg);
  margin: 2px auto;
}
#am-scroll .am-gi2 {
  background: linear-gradient(140deg, #090909 0%, #131313 100%);
}
#am-scroll .am-gi2-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
}
#am-scroll .am-big-t {
  font-size: 34px;
  font-weight: 200;
  color: #ddd;
  letter-spacing: -2px;
  line-height: 1;
  font-family: "Inter", sans-serif;
  flex-shrink: 0;
}
#am-scroll .am-side-phones {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}
#am-scroll .am-sp {
  background: #161616;
  border: 1px solid #262626;
  border-radius: 4px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 5px;
  gap: 3px;
}
#am-scroll .am-sp1 {
  width: 100%;
}
#am-scroll .am-sp2 {
  width: 85%;
}
#am-scroll .am-sp3 {
  width: 92%;
}
#am-scroll .am-sp-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2e2e2e;
  flex-shrink: 0;
}
#am-scroll .am-sp-bar {
  flex: 1;
  height: 2px;
  background: #252525;
  border-radius: 1px;
}
#am-scroll .am-sp-bar.a {
  background: #2f6880;
}
#am-scroll .am-sp-bar.g {
  background: #2a5a2a;
}
#am-scroll .am-sp-num {
  font-size: 6px;
  color: #444;
  flex-shrink: 0;
}
#am-scroll .am-footer-para {
  padding: 14px 0;
  font-size: 12.5px;
  color: #777;
  line-height: 1.75;
  border-bottom: 1px solid #1f1f1f;
}
#am-scroll .am-bottom {
  padding: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#am-scroll .am-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
#am-scroll .am-rl {
  font-size: 12px;
  color: #555;
  font-weight: 500;
  min-width: 52px;
}
#am-scroll .am-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4ec97b;
  background: rgba(78, 201, 123, 0.07);
  border: 1px solid rgba(78, 201, 123, 0.22);
  border-radius: 3px;
  padding: 2px 8px;
}
#am-scroll .am-si {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#am-scroll .am-si svg {
  width: 14px;
  height: 14px;
}
