@layer reset, base, layout, components, motion;
@font-face {
  font-family: Onest;
  src: url("./fonts/onest-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }
  img {
    display: block;
    max-width: 100%;
  }
  button,
  select {
    font: inherit;
  }
  button,
  a,
  select {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
}
@layer base {
  :root {
    --ink: #181917;
    --paper: #f4f3ed;
    --muted: #5d605b;
    --line: #18191736;
    --accent: #2146eb;
    --space: clamp(80px, 9vw, 144px);
    --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    overflow-wrap: anywhere;
    font:
      400 1.0625rem/1.7 Onest,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      Arial,
      sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button,
  a,
  select {
    touch-action: manipulation;
  }
  button,
  select {
    color: inherit;
  }
  ::selection {
    background: var(--accent);
    color: var(--paper);
  }
  :focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
  }
  h1,
  h2,
  h3 {
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 550;
    text-wrap: balance;
  }
  h2 {
    font-size: clamp(36px, 4.2vw, 64px);
  }
  h3 {
    font-size: clamp(25px, 2.8vw, 38px);
  }
  p {
    text-wrap: pretty;
  }
  svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }
  [dir="rtl"] h2,
  [dir="rtl"] h3 {
    letter-spacing: 0;
    line-height: 1.35;
  }
}
@layer layout {
  .shell {
    width: min(1408px, calc(100% - 96px));
    margin-inline: auto;
  }
  .header-inner {
    min-height: 92px;
    display: flex;
    gap: 36px;
    align-items: center;
    justify-content: space-between;
  }
  .header {
    position: relative;
    z-index: 10;
  }
  .section-label {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    font:
      500 0.875rem/1.4 Onest,
      sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .section-label h2 {
    font: inherit;
    letter-spacing: inherit;
  }
  .section-label > :last-child:not(:first-child) {
    margin-inline-start: auto;
  }
  .section-label > :first-child {
    min-width: 24px;
  }
  .contact {
    padding-block: 40px 88px;
  }
  .contact-copy {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 10%;
    padding-top: 44px;
  }
  .contact-copy h2 {
    font-size: clamp(34px, 4.5vw, 65px);
  }
  .contact-copy > div {
    align-self: end;
  }
  .contact-copy p {
    font-size: 1.0625rem;
  }
  .contact-link {
    display: flex;
    width: fit-content;
    max-width: 100%;
    gap: 16px;
    align-items: center;
    margin-top: 32px;
    font-size: clamp(16px, 2vw, 26px);
    letter-spacing: -0.04em;
    padding-bottom: 12px;
    border-bottom: 1px solid currentColor;
  }
  .contact-link span {
    overflow-wrap: anywhere;
  }
  .footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 34px;
  }
  .footer-brand {
    font-size: 1.75rem;
    font-weight: 650;
    letter-spacing: -0.065em;
    direction: ltr;
  }
  .footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
    font-size: 0.875rem;
  }
  .footer-links a {
    display: flex;
    gap: 5px;
    align-items: center;
    min-height: 44px;
  }
  .footer-links a:hover,
  .footer-brand:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
  }
  @media (max-width: 900px) {
    .shell {
      width: calc(100% - 48px);
    }
    .header-inner {
      min-height: 84px;
      flex-wrap: wrap;
      gap: 0 20px;
      padding-block: 12px;
    }
    .language {
      margin-inline-start: auto;
      flex: 0 1 174px;
    }
    .contact-copy {
      gap: 40px;
    }
    .footer {
      flex-wrap: wrap;
    }
    .footer-links {
      gap: 24px;
      flex-wrap: wrap;
    }
  }
  @media (max-width: 600px) {
    .header-inner {
      min-height: 84px;
      flex-wrap: wrap;
      gap: 0 12px;
      padding-block: 12px;
    }
    .language {
      margin-inline-start: auto;
      max-width: 46%;
    }
    .contact-copy {
      grid-template-columns: minmax(0, 1fr);
      gap: 32px;
      padding-top: 20px;
    }
    .contact {
      padding-bottom: 56px;
    }
    .footer {
      gap: 12px;
      padding-block: 26px;
    }
    .footer-links {
      width: 100%;
      gap: 16px;
      justify-content: space-between;
    }
    .footer-links > span {
      font-size: 0.875rem;
    }
    .section-label {
      gap: 20px;
      font-size: 0.875rem;
    }
    .contact-link {
      font-size: 1.0625rem;
      gap: 12px;
    }
  }
}
@layer components {
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    font-weight: 750;
    font-size: 1.25rem;
    letter-spacing: -0.045em;
    flex-shrink: 0;
  }
  .brand img {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }
  .studio-symbol {
    display: grid;
    place-items: center;
    background: var(--accent);
    color: white;
    width: 31px;
    height: 31px;
    font-size: 1.5625rem;
    font-weight: 400;
  }
  .language {
    min-width: 0;
  }
  .language select {
    min-height: 44px;
    max-width: 174px;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 8px 20px 8px 4px;
    font-size: 0.9375rem;
    cursor: pointer;
  }
  .language-label,
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .eyebrow {
    display: block;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 30px;
  }
  .eyebrow b {
    font-size: 0.9375rem;
    margin-inline-end: 20px;
    font-weight: 500;
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid transparent;
    border-radius: 0;
    min-height: 58px;
    padding: 17px 24px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    transition:
      background 0.25s,
      color 0.25s;
  }
  .button-dark {
    background: var(--ink);
    color: var(--paper);
  }
  .button-dark:hover {
    background: color-mix(in srgb, var(--ink) 85%, var(--accent));
    color: var(--paper);
  }
  .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 52px;
    padding-block: 12px;
    border-bottom: 1px solid currentColor;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.5;
  }
  .text-link:hover {
    color: var(--accent);
  }
  .button svg {
    width: 20px;
    height: 20px;
  }
  .badge {
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid currentColor;
  }
  .badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .phone {
    width: 250px;
    max-width: 100%;
    background: #17191c;
    border: 5px solid #17191c;
    border-radius: 27px;
    overflow: hidden;
    box-shadow: 0 22px 36px -18px #17191755;
  }
  .phone img {
    width: 100%;
    height: auto;
    border-radius: 22px;
  }
  .skip {
    position: fixed;
    top: 8px;
    inset-inline-start: 20px;
    z-index: 100;
    background: var(--paper);
    color: var(--ink);
    padding: 12px 20px;
    transform: translateY(-150%);
    clip-path: inset(50%);
  }
  .skip:focus {
    transform: none;
    clip-path: none;
  }
  .gallery-navigation {
    display: none;
    gap: 8px;
  }
  .js .gallery-navigation {
    display: flex;
  }
  .gallery-button,
  .dialog-button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ffffff65;
    background: transparent;
    color: #fff;
    padding: 12px;
  }
  .gallery-button:hover,
  .dialog-button:hover {
    background: #ffffff22;
  }
  [dir="rtl"] .gallery-button svg {
    rotate: 180deg;
  }
  .image-dialog {
    border: 0;
    background: transparent;
    color: white;
    max-width: 95vw;
    max-height: 97dvh;
    padding: 48px 50px 14px;
    overflow: visible;
  }
  .image-dialog::backdrop {
    background: #11120ffa;
  }
  .image-dialog img {
    max-height: 76dvh;
    max-width: 80vw;
    width: auto;
    margin-inline: auto;
  }
  .dialog-close {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
  }
  .dialog-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
  }
  .dialog-count {
    min-width: 55px;
    text-align: center;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
  }
  .error-page main {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
  }
  .error-page h1 {
    font-size: clamp(120px, 25vw, 350px);
    direction: ltr;
  }
  .error-support {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
  }
  @media (max-width: 600px) {
    .image-dialog {
      padding-inline: 8px;
    }
    .image-dialog img {
      max-width: 85vw;
    }
    .button {
      font-size: 1rem;
      min-height: 54px;
      max-width: 100%;
    }
  }
}
@layer motion {
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      animation: none !important;
      transition: none !important;
    }
  }
}
/* Progressive enhancement shared by independently choreographed scenes. */
.motion-scene {
  position: relative;
}
.motion-scene.is-pinned {
  height: var(--scene-distance, 240svh);
}
.motion-scene.is-pinned > .motion-stage {
  position: sticky;
  top: 0;
}
.chapter-next {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-block: 20px 8px;
  min-height: 64px;
  font-size: 1.0625rem;
  line-height: 1.5;
}
.disclosure-content { display: flow-root; overflow-anchor: none; }
details[data-disclosure-motion] { overflow: clip; overflow-anchor: none; }
.chapter-next > span,
.contents a > span:last-child,
.cover-screens {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
}
.chapter-next:hover > span,
.contents a:hover > span:last-child,
.cover-screens:hover {
  text-decoration-color: currentColor;
}
.scene-frame canvas,
.scene-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-frame canvas {
  opacity: 0;
  transition: none;
}
.scene-fallback {
  object-fit: contain;
  transition: none;
}
.scene-frame[data-scene-ready] canvas {
  opacity: 1;
}
.scene-frame[data-scene-ready] .scene-fallback {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .scene-frame canvas,
  .scene-fallback {
    transition: none;
  }
}
