.portfolio-mockup * { box-sizing: border-box; }

body.portfolio-mockup {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: #090b10;
}

.portfolio-mockup h1[hidden] { display: none; }

.portfolio-mockup main {
  width: min(100%, 1392px);
}

.playback-toggle {
  position: fixed;
  inset: auto auto 8px 8px;
  z-index: 60;
}

.playback-toggle:not(:focus) {
  clip-path: inset(50%);
}

.hero-tiles {
  position: relative;
  aspect-ratio: 1392 / 784;
  overflow: hidden;
}

.hero-tiles > * {
  position: absolute;
  left: calc(var(--x) / 1392 * 100%);
  top: calc(var(--y) / 784 * 100%);
  width: calc(var(--w) / 1392 * 100%);
  height: calc(var(--h) / 784 * 100%);
  object-fit: cover;
}

.cheetos-tile { overflow: hidden; }

.cheetos-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.13);
}

.hero-tiles > .adidas-tile { object-fit: fill; }

.hero-tiles > .brand-site-tile { object-position: center top; }

.hero-tiles > .w-hotels-tile { object-position: center bottom; }

.hero-tiles > :nth-child(2) { object-position: center 35%; }

body.portfolio-mockup:has(.mosaic-review) { background: #fff; }

.mosaic-review {
  width: min(calc(100% - 48px), 612px);
  border-radius: 12px;
  overflow: hidden;
}

.mosaic-review video {
  display: block;
  width: 100%;
  aspect-ratio: 96 / 113;
}

.hero-collage .hero-tiles { height: 100%; }

/* The collage is drawn on a fixed 1392px canvas, so wider screens center the whole hero frame at that width. */
@media (min-width: 1441px) {
  .hero {
    width: 1392px;
    margin-inline: auto;
  }
}

/* Phones show the whole collage: the frame takes the canvas's own proportions instead of cropping it to 4:3. */
@media (max-width: 743px) {
  .hero-collage { aspect-ratio: 1392 / 784; }
}

/* The chatbot stays hidden until it is approved for launch. */
[data-dallas-chat] { display: none !important; }

/* Store is shown but not yet available, so it is plain grayed-out text rather than a link. */
.primary-nav .nav-disabled {
  padding: 6px 12px;
  font-weight: 600;
  font-size: var(--rc-type-caption);
  color: color-mix(in srgb, var(--rc-color-ink) 40%, #fff);
  cursor: not-allowed;
  user-select: none;
}

@media (max-width: 420px) {
  .primary-nav .nav-disabled { padding-inline: 5px; }
}

/* The header shares the collage's edges: 24px in, or centered at the 1392px canvas width on wide screens. */
.header-inner {
  padding-inline: max(24px, calc((100% - 1392px) / 2));
}

/* Nav items keep their padding in one variable so the last item's text can sit flush with the collage's right edge. */
.primary-nav a,
.primary-nav .nav-disabled {
  --nav-pad: 12px;
  padding-inline: var(--nav-pad);
}

.primary-nav {
  margin-left: auto;
  margin-right: -12px;
}

/* The current page uses the same lime marker as the hero highlight instead of an underline. */
.primary-nav a[aria-current="page"] {
  position: relative;
  isolation: isolate;
  text-decoration: none;
}

.primary-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--nav-pad);
  right: var(--nav-pad);
  bottom: calc(6px + (1lh - 1.05em) / 2 - .1em);
  height: .79em;
  background: var(--rc-color-lime);
  clip-path: var(--rc-marker-path);
}

@media (max-width: 420px) {
  .primary-nav a,
  .primary-nav .nav-disabled { --nav-pad: 5px; }
  .primary-nav { margin-right: -5px; }
}
