/* Immersive Shopping page. Loaded after ../styles.css, which is shared with the
   Tickster pages and must not be edited — everything specific to this page
   lives here instead. */

/* Active-tab marker: two little shopping bags instead of Tickster's two paws.
   Same size and position as the paws in ../styles.css; only the image changes,
   and only on this page. */
.nav-link.active::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='24' viewBox='0 0 72 24'%3E%3Cg transform='rotate%28-6 16 16%29'%3E%3Cpolygon points='8.5,10 23.5,10 25,22 7,22' fill='%23dc7a9c' stroke='%23dc7a9c' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M13 10V8.6a3 3 0 0 1 6 0V10' fill='none' stroke='%23dc7a9c' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='8.6' y1='12.6' x2='23.4' y2='12.6' stroke='%23fff' stroke-opacity='.6' stroke-width='1'/%3E%3C/g%3E%3Cg transform='rotate%288 50 16%29'%3E%3Cpolygon points='42.5,10 57.5,10 59,22 41,22' fill='%23e28a66' stroke='%23e28a66' stroke-width='1.2' stroke-linejoin='round'/%3E%3Cpath d='M47 10V8.6a3 3 0 0 1 6 0V10' fill='none' stroke='%23e28a66' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='42.6' y1='12.6' x2='57.4' y2='12.6' stroke='%23fff' stroke-opacity='.6' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

/* Headings run the full width on this page instead of wrapping at the shared
   860px / 740px caps. Body text keeps a readable measure. */
.section-heading,
.compact-heading {
  max-width: none;
}

.section-heading p {
  max-width: 860px;
}

/* Hero headline: same size as the section h2s (the h2 rule in styles.css). */
.immersive-hero h1 {
  font-size: clamp(1.75rem, 8vw, 2.55rem);
  line-height: 0.98;
}

/* "See the portfolio" button: same width as the store buttons on the Tickster
   home. Left-aligned with the text on tablet and desktop; centred on phones. */
.immersive-hero-cta {
  max-width: 304px;
}

@media (max-width: 760px) {
  .immersive-hero-cta {
    margin-inline: auto;
  }
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portfolio-card h3 {
  font-size: 1.35rem;
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 122, 156, 0.14);
  color: var(--accent-strong);
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Real video. preload="none" in the markup means nothing downloads until play. */
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #1d1416;
  object-fit: cover;
}

/* Product title with its logo in front, e.g. VAANG*N*GO. */
.portfolio-card .product-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portfolio-card .product-wordmark img {
  flex: 0 0 auto;
  width: auto;
  height: 40px;
}

/* VAANG*N*GO wordmark: DM Sans semibold (loaded on this page only). */
.product-wordmark span[aria-hidden='true'] {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Its asterisks sit at mid-capital height, not up high like a footnote mark.
   Offsets are measured from each font's glyph bounds: they centre the * on
   the capitals (DM Sans in the card title, Inter in body text). */
.wm-star {
  display: inline-block;
  transform: translateY(0.159em);
}

.product-wordmark .wm-star {
  transform: translateY(0.198em);
}

/* Text for screen readers only (e.g. "Vaangungo" for the VAANG*N*GO mark). */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* VAANG*N*GO's recording is 1280x800 (16:10). Give it a matching frame so
   the whole picture shows instead of being cropped to 16:9. */
.video-frame.is-16x10 video {
  aspect-ratio: 16 / 10;
}

/* Brand subline under a product name, e.g. chummaNaachy / MAHKITPLAYS. */
.portfolio-card .product-subline {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Video placeholder. When real videos arrive this becomes a click-to-play
   facade: the poster shows here and the YouTube/Vimeo player loads on click. */
.video-poster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(220, 122, 156, 0.16), rgba(226, 138, 102, 0.12));
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.video-poster::before {
  content: '';
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 10px 24px rgba(88, 59, 67, 0.12);
}

.video-poster::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--accent-strong);
}

/* Poster with a real image: the image fills the frame, and the play button and
   caption sit on top of it. */
.video-poster.has-image picture,
.video-poster.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-poster.has-image img {
  object-fit: cover;
}

.video-poster.has-image::before {
  position: relative;
  z-index: 1;
}

.video-poster.has-image::after {
  z-index: 2;
}

.video-poster.has-image span {
  z-index: 1;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink);
}

.video-poster span {
  position: absolute;
  bottom: 10px;
  left: 12px;
}

/* Contact */
.immersive-contact .contact-link {
  word-break: break-word;
}

@media (min-width: 761px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
