/* =========================================================
   FONTS
   ========================================================= */
@font-face {
  font-family: "Oniria";
  src: url(fonts/Oniria-Regular.otf) ;
}

@font-face {
  font-family: "Arimo-Regular";
  src: url(fonts/Arimo-VariableFont_wght.ttf) ;
}

@font-face {
  font-family: "Arimo-Italic";
  src: url(fonts/Arimo-Italic-VariableFont_wght.ttf) ;
}


  body {
    margin: 0;
    font-family: "Arimo-Regular", sans-serif;
     font-variation-settings: "wght" 600;
    background: #000;
    color: #070707;
    overflow: hidden;
   }

    header.site-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: transparent;
      color: #000;
      padding: 0.5rem 1rem;
      box-shadow: none;
    }

    header.site-header.header-white,
    header.site-header.header-white h1,
    header.site-header.header-white .header-button {
      color: #fff;
    }

    header.site-header h1 {
      margin: 0;
      margin-left: 1rem;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.95rem;
      letter-spacing: 0.03em;
      color: inherit;
    }

    .header-actions {
      display: flex;
      gap: 0.75rem;
      align-items: center;
    }

    html,
    body,
    * {
      cursor: none !important;
    }

    :root {
      cursor: none;
    }


    .cursor-follower {
      position: fixed;
      top: 0;
      left: 0;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #000;
      font-size: 34px;
      pointer-events: none;
      transform: translate(-50%, -50%);
      z-index: 9999;
      transition: transform 0.05s ease-out;
      will-change: transform;
      user-select: none;
      animation: rotate-cursor 2.5s linear infinite;
    }

    .cursor-follower.header-white {
      color: #fff;
    }

    .cursor-follower.hover {
      animation: none;
    }

    @keyframes rotate-cursor {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }
      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    .cursor-follower.on-panel {
      color: #070707;
    }

    .lang-option {
      opacity: 0.35;
      transition: opacity 0.2s ease;
    }

    .lang-option.active {
      opacity: 1;
    }

    .lang-toggle {
      text-decoration: none;
    }

    .lang-toggle .lang-option {
      text-decoration: none;
      cursor: pointer;
    }

    .lang-toggle .lang-option:hover {
      text-decoration: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 2px;
    }

    .about-panel-link.lang-toggle:hover,
    .about-panel-link.lang-toggle:focus-visible,
    .header-button.lang-toggle:hover,
    .header-button.lang-toggle:focus-visible {
      text-decoration: none;
    }

    .hero-title {
      position: relative;
      z-index: 0;
      width: 100%;
      margin-top: 0;
      padding-top: 6rem;
      padding-bottom: 5rem;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: visible;
      min-height: 38vh;
    }

    .hero-title h2 {
      margin: 0 auto;
      max-width: 95%;
      text-align: center;
      font-family: "Oniria", sans-serif;
      font-size: clamp(6rem, 18vw, 12rem);
      font-weight: 400;
      font-style: normal;
      font-variation-settings: normal;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      line-height: 0.95;
      letter-spacing: 0.05em;
      color: transparent;
      text-shadow: none;
      transform: translateX(1.5rem);
    }

    .panel-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.45);
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      z-index: 9;
    }

    .panel-overlay.open {
      opacity: 1;
      visibility: visible;
    }

    .about-panel {
      position: fixed;
      top: 0;
      right: 0;
      height: 100%;
      width: min(80vw, 95%);
      max-width: 80rem;
      background: #f0f0f0;
      color: #070707;
      transform: translateX(100%);
      transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 10;
      display: flex;
      flex-direction: column;
      padding: 2rem;
      box-shadow: -16px 0 50px rgba(0, 0, 0, 0.18);
    }

    .about-panel.open {
      transform: translateX(0);
    }

    .about-panel .close-panel {
      margin-left: auto;
      border: none;
      background: transparent;
      color: #070707;
      font-size: 1rem;
      cursor: pointer;
      padding: 0.25rem;
    }

    .about-panel .about-content {
      font-family: "Arimo-Regular", sans-serif;
      margin-top: 3rem;
      margin-left: 3rem;
      max-width: 34rem;
      line-height: 1.45;
    }

    .about-panel-nav {
      position: absolute;
      top: 0rem;
      right: 1rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
      background: transparent;
      padding: 0.9rem 1.1rem;
      border-radius: 0.75rem;
      color: #070707;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.95rem;
      z-index: 11;
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .about-panel.open .about-panel-nav {
      opacity: 1;
      transition-delay: 0.5s;
      pointer-events: auto;
    }

    .about-panel-link {
      color: #070707;
      text-decoration: none;
      font-weight: 500;
    }

    .about-panel-link:hover,
    .about-panel-link:focus-visible {
      text-decoration: underline;
    }

    .about-panel h3 {
      margin: 0 0 1rem;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 1.5rem;
       color: #999;
    }

    .about-panel p {
      margin: 0 0 1rem;
    }

    .about-extra {
      display: flex;
      flex-wrap: wrap;
      gap: 2.5rem;
      margin-top: 7rem;
      font-size: 0.95rem;
      line-height: 1.3;
      color: black;
      max-width: 100%;
    }

    /* Decorative eyes in about panel */
    .eyes {
      position: absolute;
      right: 4rem;
      bottom: 8rem;
      display: flex;
      gap: 0.75rem;
      z-index: 12;
      align-items: center;
      pointer-events: none;
    }

    .eye {
      width: 56px;
      height: 36px;
      background: #fff;
      position: relative;
      border-radius: 50% / 60%;
      border: 3px solid #070707;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: inset 0 2px 0 rgba(0,0,0,0.05);
    }

    .eye .pupil {
      width: 18px;
      height: 18px;
      background: #070707;
      border-radius: 50%;
      transform: translate(0px, 0px);
      transition: transform 0.05s linear;
      will-change: transform;
    }


    /* Eyelid (used for blink effect) */

    .eye::after {
      content: '';
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 0%;
      /* match panel background to 'erase' the top of the eye */
      background: #f0f0f0;
      z-index: 2;
      transition: height 320ms cubic-bezier(.2,.9,.3,1);
      pointer-events: none;
      border-bottom-left-radius: 50% 40%;
      border-bottom-right-radius: 50% 40%;
    }

    /* When blinking, slide the eyelid down to cover the upper portion.
       Also hide the top border so only the lower curve remains visible. */
    .eye.blink::after {
      height: 62%;
    }

    .eye.blink {
      /* make the top border blend with background to visually remove it */
      border-top-color: #f0f0f0;
    }

    .eye.blink .pupil {
      opacity: 0;
      transition: opacity 80ms linear;
    }

    .about-references,
    .about-contact {
      margin: 0;
      flex: 1 1 40%;
      min-width: 12rem;
      max-width: 18rem;
      text-align: left;
    }

    .about-references {
      margin-right: 2rem;
    }

    .about-references span,
    .about-contact span {
      display: block;
      margin-bottom: 0.35rem;
      font-weight: 600;
    }

    .about-label {
      color: #999;
    }

    .about-label--references,
    .about-label--contact {
      color: #999;
    }

    .about-link {
      color: #070707;
      text-decoration: none;
      transition: text-decoration-color 0.2s ease;
    }

    .about-link.about-link-muted {
      color: #999;
    }

    .about-link:hover,
    .about-link:focus-visible {
      text-decoration: underline;
    }

    .about-references {
      width: 18rem;
    }

    .about-contact {
      width: 16rem;
    }

    .about-contact {
      flex: 1 1 35%;
      min-width: 12rem;
    }

    .gif-screen {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100vh;
      background: #000;
      overflow: hidden;
      margin: 0;
      padding: 0;
      z-index: 0;
    }

    .gif-screen .center-gif {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      border: 0;
    }

    .hero-title {
      position: fixed;
      inset: 0;
      z-index: 1;
      background: transparent;
      pointer-events: none;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .header-button {
      color: inherit;
      text-decoration: none;
      font-family: "Arimo-Regular", sans-serif;
      font-size: 0.95rem;
      padding: 0.35rem 0.75rem;
      border-radius: 0.35rem;
      transition: color 0.2s ease, text-decoration-color 0.2s ease;

    }

    .header-button:hover,
    .header-button:focus-visible {
      background: transparent;
      
      text-decoration: underline;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 2px;
    }

    header.site-header p {
      margin: 0.35rem 0 0;
      font-size: 0.95rem;
      color: #cbd5e1;
    }

@media (max-width: 720px) {
  body {
    overflow: hidden;
  }

  .gif-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .gif-screen .center-gif {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border: 0 !important;
  }

  .eyes {
    display: none !important;
  }

  header.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0.5rem 1rem;
    box-sizing: border-box;
    z-index: 100;
  }

  .about-panel {
    z-index: 110 !important;
    padding: 1.25rem 1rem 1rem !important;
  }

  .panel-overlay {
    z-index: 109 !important;
  }

  .about-panel .about-content {
    margin-top: 2.5rem !important;
    margin-left: 0.75rem !important;
    max-width: 70% !important;
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  .about-panel h3 {
    font-size: 1.1rem !important;
  }

  .about-panel p,
  .about-panel li,
  .about-panel .about-extra {
    font-size: 0.88rem !important;
  }

  .about-extra {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    margin-top: 2.5rem !important;
    align-items: flex-start !important;
  }

  .about-references,
  .about-contact {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin-right: 0 !important;
  }
}