/* ==================================================
   General settings
================================================== */

:root {
  --background: #ffffff;
  --focus-color: #ff00b7;

  /*
    Controls how far the desktop Creative Roles image
    moves upward over Role Descriptions.
  */
  --creative-overlap: clamp(45px, 7vw, 130px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);

}

a,
button {
  
  -webkit-tap-highlight-color: transparent;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}


/* ==================================================
   Closed-box and open-box screens
================================================== */

.artboard-screen {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: var(--background);
}

.artboard {
  position: relative;
  display: inline-block;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  line-height: 0;
}

.artboard picture {
  display: block;
  line-height: 0;
}

.artboard-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: contain;
}


/* ==================================================
   Closed box: click anywhere
================================================== */

.whole-screen-link {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: block;
  background: transparent;
  text-decoration: none;
}

.whole-screen-link:focus-visible {
  outline: 5px solid var(--focus-color);
  outline-offset: -10px;
}


/* ==================================================
   Open-box clickable areas
================================================== */

.menu-hotspot {
  position: absolute;
  z-index: 5;
  display: block;
  border-radius: 8px;
  background: transparent;
  text-decoration: none;
}

.menu-hotspot:hover {
  background: rgba(255, 255, 255, 0.14);
}

.menu-hotspot:focus-visible {
  outline: 4px solid var(--focus-color);
  outline-offset: 3px;
  background: rgba(255, 255, 255, 0.25);
}


/* Desktop hotspot positions */

.menu-hotspot--info {
  left: 37.5%;
  top: 53.5%;
  width: 10%;
  height: 9%;
}

.menu-hotspot--roles {
  left: 46%;
  top: 53.5%;
  width: 24%;
  height: 9%;
}

.menu-hotspot--application {
  left: 40.5%;
  top: 61.5%;
  width: 29%;
  height: 10%;
}


/* Hotspot testing mode */

.debug-hotspots .menu-hotspot {
  outline: 3px solid #ff00b7;
  background: rgba(255, 0, 183, 0.3);
}


/* ==================================================
   Fun Facts page
================================================== */

.single-image-page {
  display: grid;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  background: var(--background);
}

.single-image-page picture {
  display: block;
  line-height: 0;
}

.single-page-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100svh;
  object-fit: contain;
}


/* ==================================================
   Desktop role pages
================================================== */

.roles-document {
  width: 100%;
  overflow-x: hidden;
  background: var(--background);
}

.roles-desktop {
  display: block;
}

.roles-mobile {
  display: none;
}

.role-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: var(--background);
}

.role-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.role-section--creative {
  z-index: 2;
  margin-top: calc(0px - var(--creative-overlap));
}

.role-section--administrative {
  z-index: 3;
}


/* ==================================================
   Screen-reader-only text
================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}





/* ==================================================
   Reduced motion
================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==================================================
   Final mobile menu positioning
================================================== */

@media (max-width: 700px) {
  /*
    Match the dimensions of the portrait artwork.
  */
 .artboard {
  position: relative;
  width: min(92vw, calc(100svh * 960 / 1664));
  aspect-ratio: 960 / 1664;
}

  .artboard picture {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .artboard-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    pointer-events: none;
  }

  /*
    First row: Info
  */
 .menu-hotspot--info {
  left: 31%;
  top: 56.8%;
  width: 20%;
  height: 6%;
}

.menu-hotspot--roles {
  left: 46%;
  top: 56.8%;
  width: 34%;
  height: 6%;
}

.menu-hotspot--application {
  left: 34%;
  top: 61%;
  width: 38%;
  height: 6%;
}

  .menu-hotspot {
    z-index: 100;
    pointer-events: auto;
    touch-action: manipulation;
  }
}
.debug-hotspots .menu-hotspot {
  outline: 3px solid #ff00b7;
  background: rgba(255, 0, 183, 0.3);
}

/* ==================================================
   NAFF custom key cursor
================================================== */

.naff-custom-cursor {
  display: none;
}

/* ==================================================
   Final NAFF key cursor
================================================== */

.naff-custom-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  /*
    Hide the browser's black triangle everywhere once
    the pink key has loaded.
  */
  html.custom-cursor-ready,
  html.custom-cursor-ready body,
  html.custom-cursor-ready body *,
  html.custom-cursor-ready body *::before,
  html.custom-cursor-ready body *::after {
    cursor: none !important;
  }

  .naff-custom-cursor {
    position: fixed;
    z-index: 2147483647;
    top: 0;
    left: 0;

    display: block;

    /* Slightly larger key */
    width: 56px;
    height: 56px;

    object-fit: contain;

    /* Fully solid—no opacity or fading */
    opacity: 1 !important;
    visibility: hidden;

    pointer-events: none;
    user-select: none;

    transform: translate3d(-100px, -100px, 0);
    transition: none !important;
    will-change: transform;
  }

  .naff-custom-cursor.is-visible {
    visibility: visible;
  }
}


/* ==================================================
   Final mobile menu layout — keep this as the only
   mobile hotspot positioning block
================================================== */

@media (max-width: 700px) {
  /*
    Center and enlarge the portrait artwork.
    No left/right transform.
  */
  .menu-page .artboard,
  .box-page .artboard {
    position: relative !important;
    justify-self: center !important;

    width: 122vw !important;
    max-width: none !important;

    margin: 0 !important;
    transform: none !important;

    aspect-ratio: 960 / 1664 !important;
  }

  .menu-page .artboard picture,
  .box-page .artboard picture {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .menu-page .artboard-image,
  .box-page .artboard-image {
    display: block;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain;
    pointer-events: none;
  }

  /*
    One positioned container for all three buttons.
    Change only left/top below when moving the entire
    button group.
  */
  .menu-page .menu-controls {
    position: absolute;
    z-index: 100;

    left: 39%;
    top: 59%;

    width: 43%;

    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    grid-template-rows:
      clamp(34px, 10vw, 44px)
      clamp(36px, 11vw, 48px);

    column-gap: 8px;
    row-gap: 8px;

    pointer-events: none;
  }

  /*
    Reset every old absolute button setting.
  */
  .menu-page .menu-hotspot {
    position: static !important;

    left: auto !important;
    top: auto !important;

    width: auto !important;
    height: auto !important;

    min-width: 0;
    min-height: 0;

    z-index: auto;

    border-radius: 10px;

    pointer-events: auto;
    touch-action: manipulation;
  }

  .menu-page .menu-hotspot--info {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-page .menu-hotspot--roles {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-page .menu-hotspot--application {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 68% !important;
    justify-self: center;
  }
}