/* LTK Atelier film. One full-frame source; never a portrait centre crop.
   Scope intentionally excludes the selected-work and standalone demo pages. */
body.atelier-v4 #world {
  --sw-bg: #f2ece3;
  --sw-ink: #171b21;
  --sw-ink-soft: #4c535e;
  --v4-blue: #1759de;
  --sw-font-display: "Syne", "Manrope", sans-serif;
  --sw-font-body: "Manrope", sans-serif;
  color: var(--sw-ink);
  background: var(--sw-bg);
}
body.atelier-v4 > .ambient, body.atelier-v4 > .hud { display: none; }
body.atelier-v4 #world .sw-sky,
body.atelier-v4 #world .sw-particles,
body.atelier-v4 #world .sw-hint,
body.atelier-v4 #world .sw-route,
body.atelier-v4 #world .sw-copy__tags { display: none; }
body.atelier-v4 #world .sw-stage {
  inset: 0;
  width: 100%;
  height: 100svh;
  background: #f2ece3;
}
body.atelier-v4 #world .sw-stage::after,
body.atelier-v4 #world .sw-scene::after,
body.atelier-v4 #world .sw-copylayer::before,
body.atelier-v4 #world .world-fallback__poster::after { display: none; }
body.atelier-v4 #world .sw-scene__video,
body.atelier-v4 #world .sw-scene__still,
body.atelier-v4 #world .world-fallback__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none !important;
  filter: none;
}
body.atelier-v4 #world .world-fallback {
  height: 100svh;
  min-height: 100svh;
  background: #f2ece3;
}
body.atelier-v4 #world .sw-copylayer { inset: 0; height: 100svh; }
body.atelier-v4 #world .sw-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: auto;
  padding: clamp(14px, 2.2vw, 24px) clamp(18px, 4vw, 56px);
  gap: 16px;
  border: none;
  border-bottom: 1px solid rgba(191, 217, 255, 0.13);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(2, 5, 10, 0.72) 0%, rgba(2, 5, 10, 0) 100%);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
body.atelier-v4 #world .sw-topbar > * {
  pointer-events: auto;
}
body.atelier-v4 #world .sw-brand {
  gap: 10px;
  min-height: 44px;
  color: #ffffff;
  text-decoration: none;
}
body.atelier-v4 #world .sw-brand__mark {
  width: 14px;
  height: 14px;
  background: #3875f6;
  border-radius: 3px;
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(56, 117, 246, 0.85);
}
body.atelier-v4 #world .sw-brand__name {
  font: 700 0.82rem/1.2 "Manrope", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
body.atelier-v4 #world .sw-brand__name::after,
body.atelier-v4 #world .sw-topcta::after { content: none; }
body.atelier-v4 #world .sw-nav {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.87);
  gap: 2px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
body.atelier-v4 #world .sw-nav__indicator {
  background: #284f7e;
  box-shadow: inset 0 0 0 1px #73a5e2, 0 2px 10px rgba(40, 79, 126, 0.45);
  border-radius: 999px;
}
body.atelier-v4 #world .sw-nav__item {
  min-height: 40px;
  padding: 8px 16px;
  font-size: .78rem;
  font-weight: 500;
  color: #cad0da;
  border-radius: 999px;
  transition: color .2s ease;
}
body.atelier-v4 #world .sw-nav__item.is-active {
  color: #f4f7fb;
  font-weight: 600;
}
body.atelier-v4 #world .sw-nav__item:hover { color: #ffffff; }
body.atelier-v4 #world .language-switch {
  background: rgba(10, 15, 24, 0.87);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
body.atelier-v4 #world .language-switch a { color: #cad0da; }
body.atelier-v4 #world .language-switch a[aria-current="page"],
body.atelier-v4 #world .language-switch a:hover {
  color: #fff;
  background: #284f7e;
  box-shadow: inset 0 0 0 1px #73a5e2;
}
body.atelier-v4 #world .sw-topcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #0b1019;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all .2s ease;
}
body.atelier-v4 #world .sw-topcta:hover {
  background: #e2ecff;
  color: #08338f;
  box-shadow: 0 4px 20px rgba(115, 165, 226, 0.4);
}
body.atelier-v4 #world .sw-copy:nth-child(n) {
  top: auto;
  bottom: clamp(32px, 5vh, 64px);
  left: clamp(28px, 4vw, 64px);
  right: auto;
  width: min(420px, 34vw);
  max-width: none;
  max-height: calc(100svh - 155px);
  overflow-y: auto;
  padding: clamp(22px, 2.2vw, 32px);
  border: 1px solid rgba(180, 210, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 1.45rem;
  background: linear-gradient(135deg, rgba(7, 12, 22, 0.72) 0%, rgba(6, 11, 21, 0.45) 100%);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: none !important;
  scrollbar-width: thin;
}
body.atelier-v4 #world .sw-copy__num {
  display: inline-block;
  margin-bottom: 12px;
  color: #6da2e2;
  font-family: monospace, sans-serif;
  font-size: .8rem;
  letter-spacing: .14em;
  font-weight: 500;
}
body.atelier-v4 #world .sw-copy__eyebrow {
  margin: 0 0 14px;
  max-width: 36ch;
  color: #8bbaf7;
  font: 700 .62rem/1.5 "Manrope", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.atelier-v4 #world .sw-copy__title,
html[lang="vi"] body.atelier-v4 #world .sw-copy__title {
  margin: 0;
  max-width: 20ch;
  color: #ffffff;
  font-size: clamp(2rem, 2.8vw, 2.75rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -.045em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
}
html[lang="vi"] body.atelier-v4 #world .sw-copy__title { line-height: 1.17; letter-spacing: -.035em; }
body.atelier-v4 #world .sw-copy__body {
  margin: 16px 0 0;
  max-width: 45ch;
  color: #cad0da;
  font-size: .88rem;
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
body.atelier-v4 #world .sw-copy__cta { display: flex; flex-wrap: wrap; margin-top: 24px; gap: 10px; }
body.atelier-v4 #world .sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: .72rem;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all .2s ease;
}
body.atelier-v4 #world .sw-copy__cta a:first-child {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0f18;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
body.atelier-v4 #world .sw-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
body.atelier-v4 #world .sw-copy__cta a:first-child:hover {
  background: #e2ecff;
  color: #08338f;
  box-shadow: 0 4px 20px rgba(115, 165, 226, 0.4);
}
body.atelier-v4 #world .sw-scrollbar { z-index: 79; height: 3px; background: rgba(255, 255, 255, 0.15); }
body.atelier-v4 #world .sw-scrollbar span { background: #72a5ff; box-shadow: 0 0 10px rgba(114, 165, 255, 0.6); }
body.atelier-v4.is-studio #world .sw-scrollbar { visibility: hidden; }
body.atelier-v4 #world :focus-visible { outline: 2px solid #72a5ff; outline-offset: 4px; }

/* Desktop stays full-bleed even on ultrawide, as requested. */
@media (min-width: 1101px) and (min-aspect-ratio: 21/10) {
  body.atelier-v4 #world .sw-scene__video,
  body.atelier-v4 #world .sw-scene__still,
  body.atelier-v4 #world .world-fallback__poster img { object-fit: cover; object-position: center; }
  body.atelier-v4 #world .sw-copy:nth-child(n) { bottom: 12vh; width: min(430px, 25vw); }
}

/* The film keeps its entire 16:9 image on phones and tablets. Text is a
   separate caption below, not superimposed over an aggressively cropped movie.
   Coarse-pointer branch deliberately covers iPad Pro above the old 860px gate. */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
  body.atelier-v4 #world {
    --film-top: calc(84px + env(safe-area-inset-top));
    --film-width: min(calc(100vw - 32px), 960px);
    --film-height: calc(var(--film-width) * .5625);
    --caption-top: calc(var(--film-top) + var(--film-height) + 24px);
  }
  body.atelier-v4 #world .sw-topbar {
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    min-height: 58px;
    padding: 4px 6px 4px 16px;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
  body.atelier-v4 #world .sw-brand__name { font-size: 1.25rem; color: #ffffff; }
  body.atelier-v4 #world .sw-brand__mark { width: 9px; height: 9px; }
  body.atelier-v4 #world .sw-brand { gap: 7px; color: #f4f7fb; }
  body.atelier-v4 #world .sw-topcta {
    font-size: .7rem;
    padding: 10px 16px;
    min-height: 42px;
    color: #0b1019;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-weight: 600;
  }
  body.atelier-v4 #world .sw-nav { display: none; }
  body.atelier-v4 #world .sw-stage,
  body.atelier-v4 #world .sw-copylayer { height: 100svh; }
  body.atelier-v4 #world .sw-scene__video,
  body.atelier-v4 #world .sw-scene__still,
  body.atelier-v4 #world .world-fallback__poster img {
    inset: auto;
    top: var(--film-top);
    left: 50%;
    right: auto;
    width: var(--film-width);
    height: var(--film-height);
    object-fit: contain;
    object-position: center;
    transform: translateX(-50%) !important;
    border-radius: 10px;
  }
  body.atelier-v4 #world .sw-copy:nth-child(n) {
    top: var(--caption-top);
    bottom: auto;
    left: max(16px, calc((100vw - 760px) / 2));
    right: max(16px, calc((100vw - 760px) / 2));
    width: auto;
    max-height: calc(100svh - var(--caption-top) - 66px - env(safe-area-inset-bottom));
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(8, 14, 25, 0.94), rgba(6, 11, 20, 0.88));
    border: 1px solid rgba(180, 210, 255, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: none !important;
  }
  body.atelier-v4 #world .sw-copy__num {
    display: inline-block;
    margin-bottom: 8px;
    color: #6da2e2;
    font-family: monospace, sans-serif;
    font-size: .75rem;
    letter-spacing: .12em;
    font-weight: 500;
  }
  body.atelier-v4 #world .sw-copy__eyebrow { margin-bottom: 8px; max-width: none; font-size: .61rem; color: #8bbaf7; }
  body.atelier-v4 #world .sw-copy__title,
  html[lang="vi"] body.atelier-v4 #world .sw-copy__title { max-width: 23ch; font-size: clamp(1.6rem, 4.7vw, 2.4rem); line-height: 1.1; color: #ffffff; }
  html[lang="vi"] body.atelier-v4 #world .sw-copy__title { line-height: 1.17; }
  body.atelier-v4 #world .sw-copy__body { margin-top: 10px; max-width: 57ch; font-size: .88rem; line-height: 1.6; color: #cad0da; }
  body.atelier-v4 #world .sw-copy__cta { margin-top: 16px; }
  body.atelier-v4 #world .sw-btn { font-size: .72rem; padding: 10px 15px; }
  body.atelier-v4 #world .sw-route {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%;
    right: auto;
    width: min(440px, calc(100vw - 32px));
    padding: 2px 4px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 15, 24, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
  }
  body.atelier-v4 #world .sw-route__dot { display: flex; flex: 1; width: auto; min-width: 0; height: 44px; align-items: center; justify-content: center; }
  body.atelier-v4 #world .sw-route__dot i { display: none; }
  body.atelier-v4 #world .sw-route__label {
    display: block;
    position: static;
    opacity: 1;
    font: 600 .68rem/1.2 "Manrope", sans-serif;
    padding: 8px 4px;
    background: transparent;
    border: 0;
    color: #cad0da;
    transform: none;
    white-space: nowrap;
    backdrop-filter: none;
  }
  body.atelier-v4 #world .sw-route__dot.is-active .sw-route__label {
    color: #f4f7fb;
    background: #284f7e;
    box-shadow: inset 0 0 0 1px #73a5e2;
    border-radius: 999px;
  }
}
@media (max-width: 380px) {
  body.atelier-v4 #world { --film-width: calc(100vw - 24px); --caption-top: calc(var(--film-top) + var(--film-height) + 18px); }
  body.atelier-v4 #world .sw-topbar { left: 8px; right: 8px; gap: 5px; padding-left: 12px; }
  body.atelier-v4 #world .sw-topcta { padding-inline: 10px; font-size: .62rem; }
  body.atelier-v4 #world .sw-copy:nth-child(n) { left: 20px; right: 20px; }
  body.atelier-v4 #world .sw-copy__title,
  html[lang="vi"] body.atelier-v4 #world .sw-copy__title { font-size: 1.65rem; }
  body.atelier-v4 #world .sw-copy__eyebrow { margin-bottom: 8px; font-size: .56rem; }
  body.atelier-v4 #world .sw-copy__body { font-size: .8rem; margin-top: 10px; line-height: 1.55; }
  body.atelier-v4 #world .sw-copy__cta { margin-top: 12px; gap: 6px; }
  body.atelier-v4 #world .sw-btn { font-size: .65rem; padding-inline: 11px; }
  body.atelier-v4 #world .sw-route__label { font-size: .61rem; }
}
/* Short and landscape touch displays use a split-screen composition so both
   the film and the full caption remain usable without covering each other. */
@media (max-width: 1100px) and (orientation: landscape),
       (hover: none) and (pointer: coarse) and (orientation: landscape) {
  body.atelier-v4 #world .sw-scene__video,
  body.atelier-v4 #world .sw-scene__still,
  body.atelier-v4 #world .world-fallback__poster img {
    top: 84px;
    left: 16px;
    width: calc(59vw - 24px);
    height: calc(100svh - 152px);
    transform: none !important;
    object-fit: contain;
  }
  body.atelier-v4 #world .sw-copy:nth-child(n) {
    top: 100px;
    left: 62%;
    right: 24px;
    max-height: calc(100svh - 170px);
  }
  body.atelier-v4 #world .sw-copy__eyebrow { font-size: .6rem; }
  body.atelier-v4 #world .sw-copy__title,
  html[lang="vi"] body.atelier-v4 #world .sw-copy__title { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
  body.atelier-v4 #world .sw-copy__body { font-size: .82rem; line-height: 1.55; }
  body.atelier-v4 #world .sw-copy__cta { margin-top: 14px; gap: 6px; }
  body.atelier-v4 #world .sw-btn { font-size: .67rem; padding: 10px 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  body.atelier-v4 #world .sw-copy:nth-child(n) { top: 84px; max-height: calc(100svh - 145px); right: 18px; }
  body.atelier-v4 #world .sw-copy__eyebrow { display: none; }
  body.atelier-v4 #world .sw-copy__title,
  html[lang="vi"] body.atelier-v4 #world .sw-copy__title { font-size: 1.4rem; }
  body.atelier-v4 #world .sw-copy__body { font-size: .74rem; margin-top: 9px; line-height: 1.5; }
  body.atelier-v4 #world .sw-btn { padding: 8px 10px; font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.atelier-v4 #world *, body.atelier-v4 #world *::after { animation: none !important; transition: none !important; }
}
