/* 공통 틀 — 사이트 모든 페이지(Petri 제외)가 같이 쓴다: 글꼴, 로고, 메뉴 버튼, 흰 메뉴(목록), 하단 한 줄.
   <link rel="stylesheet" href="./assets/css/frame.css"> <script src="./assets/scripts/frame.js" defer></script>
   페이지 고유의 하단 정보 글자(Describe 등)는 페이지에 <span id="ctx">…</span> 로 두면 틀이 하단 오른쪽에 옮겨 놓는다. */
/* 사이트 공통 영문 서체: Helvetica Neue LT Std (웹 라이선스). 굵기 셋 — 숫자는 서체 이름의 굵기 번호
   400 = 55 Roman(본문) · 500 = 65 Medium(작은 글·하단) · 700 = 75 Bold(메뉴·큰 제목). 600 은 없다.
   정품 서체는 손으로 다듬은 힌팅이 있어 Windows 에서도 또렷하다. 라이선스상 파일은 받은 OTF 그대로 쓴다.
   *-override: 이 서체는 Windows 가 쓰는 높이 값(win 952/221)과 Mac 이 쓰는 값(hhea 714/286)이 달라
   같은 줄 높이에서 Windows 만 글자가 약 3px 아래로 내려간다. 맥 값으로 통일해 로고·메뉴 바닥선이 어디서나 같다 */
@font-face {
  font-family: "HN";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/HelveticaNeue/HelveticaNeueLTStd-Roman.otf") format("opentype");
  ascent-override: 71.4%;
  descent-override: 28.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "HN";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/HelveticaNeue/HelveticaNeueLTStd-Md.otf") format("opentype");
  ascent-override: 71.4%;
  descent-override: 28.6%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "HN";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/HelveticaNeue/HelveticaNeueLTStd-Bd.otf") format("opentype");
  ascent-override: 71.4%;
  descent-override: 28.6%;
  line-gap-override: 0%;
}
/* 한글 서체: Pretendard Bold — 한글 문장(메인의 세 줄 · 장면 앞 한 줄 · 설명 글)에 쓴다.
   이름을 "Pretendard KR Bold" 로 따로 둔다(다른 CSS 의 "Pretendard" 정의와 섞이지 않게). 어떤 굵기를 요청해도 이 Bold 한 벌이 나온다 */
@font-face {
  font-family: "Pretendard KR Bold";
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Pretendard/Pretendard-Bold.subset.woff2") format("woff2"),
    url("../fonts/Pretendard/Pretendard-Bold.subset.woff") format("woff");
}
:root {
  /* 읽히기 전 글자의 회색 — 한 줄씩 차오르는 글(메인 세 줄 · 장면 앞 한 줄, About 본문, Work Index 세 문장)이 흰색이 되기 전의 색.
     사이트 통일 회색(#5a5955)보다 어둡다: 차오르는 흰색이 또렷하게 보이게. 여기 한 곳만 바꾸면 세 페이지가 함께 바뀐다 */
  --unread: #363532;
  --play: #2346c8;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── 네 모서리 ── */
.chrome {
  position: fixed;
  z-index: 30;
  color: #fff;
  opacity: 0;
  transition: opacity 1s ease;
}
body.framed .chrome {
  opacity: 1;
}
body.light .chrome,
body.menuOpen .chrome {
  mix-blend-mode: difference;
} /* 밝은 장면·흰 메뉴 위에서는 검게 */
/* 누르는 영역은 44px, 보이는 자리는 그대로(안쪽 여백만큼 바깥 여백을 당긴다) */
#logo {
  top: calc(30px + env(safe-area-inset-top, 0px));
  left: 30px;
  display: block;
  line-height: 0;
  color: #fff;
  padding: 10px;
  margin: -10px;
}
#logo svg {
  height: 24px;
  width: auto;
  display: block;
}
#logo:focus-visible,
#menuBtn:focus-visible,
#foot a:focus-visible,
#foot button:focus-visible {
  outline: 1px solid #7fd4c8;
  outline-offset: 2px;
}

/* 메뉴 버튼: 평소 한 줄. 가끔 데이터처럼 끊기고, 갈라지고, 길이가 바뀐다. 올리면 세 줄 */
#menuBtn {
  top: calc(22px + env(safe-area-inset-top, 0px)); /* 16 → 22: 버튼 가운데를 로고 글자 가운데(44px)에 */
  right: 19px;
  width: 22px;
  height: 16px;
  padding: 14px 11px;
  box-sizing: content-box;
  background: none;
  border: 0;
  cursor: pointer;
}
#menuBtn .row {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  transition:
    transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.45s ease;
}
#menuBtn .row b {
  position: absolute;
  top: 0;
  height: 100%;
  background: #fff;
  transition:
    left 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.55s cubic-bezier(0.65, 0, 0.35, 1),
    background-color 0.5s ease;
}
#menuBtn .row b.tint {
  background: #7fd4c8;
}
#menuBtn.nudge {
  animation: mNudge 0.9s ease;
} /* 끝 신호: 또렷한 세 줄이 한 번 꿀렁 */
@keyframes mNudge {
  0%,
  100% {
    transform: none;
  }
  22% {
    transform: scale(1.22, 0.8);
  }
  48% {
    transform: scale(0.9, 1.12);
  }
  72% {
    transform: scale(1.05, 0.96);
  }
}

/* 하단 한 줄: Work Index 하단 문법 — 왼쪽 카피라이트·링크, 오른쪽 페이지 정보(#ctx) */
#foot {
  left: 30px;
  right: 30px;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font: 400 12px/1 "HN", "Pretendard", Arial, sans-serif; /* 55 Roman */
  letter-spacing: 0.01em;
  pointer-events: none;
}
#copy {
  color: #5a5955; /* 푸터 글자: 사이트 공통 회색 */
  display: flex;
  gap: 10px;
  font-variant-numeric: tabular-nums;
}
#copy em {
  font-style: normal;
  transition: opacity 0.5s ease;
}
#copy em.fade {
  opacity: 0;
}
#ctx {
  display: flex;
  gap: 26px;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
#ctx.on {
  opacity: 1;
  pointer-events: auto;
}
#ctx a,
#ctx button {
  font: inherit;
  letter-spacing: inherit;
  color: #5a5955; /* 푸터 글자: 사이트 공통 회색 */
  background: none;
  border: 0;
  padding: 16px 6px;
  margin: -16px -6px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.4s ease;
}
#ctx a:hover,
#ctx button:hover {
  color: #7fd4c8;
}
#ctx [hidden] {
  display: none;
}
body.menuOpen #ctx {
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 620px) {
  #logo {
    left: 20px;
  }
  #menuBtn {
    right: 17px;
  }
  #foot {
    left: 20px;
    right: 20px;
  }
  body[data-page="about"] #foot #ctx {
    display: none; /* About 모바일 하단: 카피라이트만(새 숫자는 뺀다). 메인의 Describe·Pause 같은 조작은 그대로 */
  }
  #foot {
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chrome,
  #menuBtn .row,
  #menuBtn .row b,
  #ctx {
    transition-duration: 0.01s !important;
  }
  #menuBtn.nudge {
    animation: none;
  }
}

/* ── 상단 메뉴 (넓은 화면) — 로고와 같은 높이·크기의 헬베티카 한 줄, 그 오른쪽 끝에 메뉴 버튼(흰 관계도는 버튼을 누른 사람의 몫).
   좁은 화면에서는 메뉴 버튼 + 흰 메뉴만 ── */
#topnav {
  top: calc(35px + env(safe-area-inset-top, 0px)); /* 30 → 35: 대문자 바닥선을 로고 글자 바닥에 맞춘다 */
  right: 30px; /* 82 → 30: 넓은 화면엔 메뉴 버튼이 없다. 로고(왼쪽 30px)와 좌우 대칭 */
  display: flex;
  align-items: center;
  gap: 20px; /* 30 → 20 */
  font-weight: 700; /* Helvetica Neue 75 Bold */
  font-size: 17px;
  line-height: 24px;
  font-family: "HN", "Pretendard", Arial, sans-serif;
  letter-spacing: 0.012em;
  word-spacing: 0.04em; /* 0.2em → 0.04em: WORK INDEX 가 한 덩어리로 */
  white-space: nowrap;
}
#topnav a {
  position: relative;
  display: inline-flex;
  align-items: baseline; /* 화살표를 글자 바닥선 기준으로 둔다(운영체제마다 다른 줄 높이와 무관) */
  color: #fff;
  text-decoration: none;
  padding: 10px 0;
  margin: -10px 0;
  transition: opacity 0.3s ease;
}
#topnav a svg {
  /* 정수 px: 크기·위치가 픽셀에 맞아 흐려지지 않는다.
     그림 바닥을 글자 바닥선에 두고 6px 올리면 화살표 끝이 대문자 윗선(17px × 0.714 = 12px)에 온다 */
  position: relative;
  top: -6px;
  width: 7px;
  height: 7px;
  margin-left: 3px; /* 글자와 3px 띄운 위첨자 */
  flex: none;
}
#topnav .gap {
  width: 1px;
  height: 14px;
  align-self: center;
  position: relative;
  top: -2px; /* 대문자 글자 높이의 가운데에 */
  background: rgba(255, 255, 255, 0.28);
} /* 몸통 네 곳 | 바깥 두 곳: 가는 흐린 세로선. 양옆 간격은 다른 메뉴 사이와 같은 20px */
/* 지금 있는 곳 = 메뉴 위 점(움라우트). 한 낱말은 점 하나, 두 낱말은 점 둘(8px 간격).
   대문자 윗선에서 6px 위. 다른 메뉴로 가면 미끄러지며 갈라지거나 합쳐진다(움직임은 frame.js) */
#navDot {
  position: absolute;
  top: -7px;
  left: 0;
  width: 0;
  height: 4px;
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.3s ease;
}
#navDot.on {
  opacity: 1;
}
#navDot i {
  position: absolute;
  top: 0;
  left: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
#navDot.two i:first-child {
  transform: translateX(-4px);
}
#navDot.two i:last-child {
  transform: translateX(4px);
}
#navDot.jump,
#navDot.jump i {
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  #navDot,
  #navDot i {
    transition: none;
  }
}
#topnav:hover a {
  opacity: 0.45;
}
#topnav a:hover,
#topnav a:focus-visible {
  opacity: 1;
}
#topnav a:focus-visible {
  outline: 1px solid #7fd4c8;
  outline-offset: 4px;
}
#fnav {
  display: flex;
  gap: 26px;
  margin-left: 26px;
  pointer-events: auto;
} /* 흰 메뉴에 있던 작은 링크들 — 넓은 화면에서는 하단 한 줄로 */
#fnav a {
  color: #5a5955; /* 푸터 글자: 사이트 공통 회색 */
  text-decoration: none;
  padding: 16px 6px;
  margin: -16px -6px;
  transition: color 0.4s ease;
}
#fnav a:hover {
  color: #7fd4c8;
}
#fnav a:focus-visible {
  outline: 1px solid #7fd4c8;
  outline-offset: 2px;
}
#foot {
  justify-content: flex-start;
}
#foot #ctx {
  margin-left: auto;
}
body.menuOpen #topnav,
body.menuOpen #fnav {
  visibility: hidden;
  opacity: 0;
} /* 흰 관계도가 열리면 상단 메뉴·하단 링크는 비킨다(흰 메뉴 안에 같은 것이 있다) */
@media (max-width: 1023px) {
  #topnav,
  #fnav {
    display: none;
  }
}

/* 지금 페이지 이름(ABOUT 등): 상단 메뉴가 접히는 폭에서만, 로고와 메뉴 버튼 사이 가운데.
   글자 바닥선을 로고 글자 바닥에 맞춘다(로고 상자 가운데보다 2px 아래) */
#here {
  display: none;
  top: calc(35px + env(safe-area-inset-top, 0px)); /* Helvetica 기준: 대문자 바닥선 = 로고 글자 바닥 */
  left: 0;
  right: 0;
  text-align: center;
  font-family: "HN", "Pretendard", Arial, sans-serif;
  font-weight: 500; /* 65 Medium: 모바일에서 로고 바로 옆이라 Bold 면 로고를 누른다 */
  font-size: 17px;
  line-height: 24px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 1023px) {
  #here {
    display: block;
  }
}

/* ── 흰 메뉴 = 목록 ── 사이트 안 넷(About·Work Index·Insight·Contact) — 구분선 — 바깥 둘(Mobility Lab·Graphic Archive ↗ 새 창).
   메뉴 버튼은 상단 메뉴가 접히는 1023px 이하에서만 보인다(넓은 화면은 상단 메뉴·하단 링크로 충분) */
#menu {
  position: fixed;
  inset: 0;
  z-index: 28;
  background: #fff;
  color: #05060a;
  font-family: "HN", "Pretendard", Arial, sans-serif;
  font-weight: 700;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
  overflow: hidden;
}
#menu.open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}
#menu a:focus-visible,
#menu button:focus-visible {
  outline: 1px solid #05060a;
  outline-offset: 4px;
}
#mmap {
  display: none; /* 예전 지도(윤곽선) — 쓰지 않는다 */
}
/* 메뉴 목록 — 왼쪽 정렬(로고와 같은 왼쪽 선), 화면 세로 가운데. 크기 24px(모바일 제목 규칙과 같은 크기) / 줄 44px(정수 — 손가락으로 누르는 줄이라 넉넉히). 굵기 75 · 자간 0.012em 은 그대로 */
#menu nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 30px;
  pointer-events: none;
}
#places {
  margin: 0;
  padding: 0;
  list-style: none;
}
#places a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  pointer-events: auto;
  font-weight: 700; /* 75 Bold */
  font-size: 24px;
  line-height: 44px;
  letter-spacing: 0.012em;
  word-spacing: 0.04em;
  color: #05060a;
  text-decoration: none;
}
#places a svg {
  /* 정수 px. 그림 바닥을 글자 바닥선에 두고 7px 올리면 화살표 끝이 대문자 윗선(24px × 0.714 = 17px)에 온다 */
  position: relative;
  top: -7px;
  width: 10px;
  height: 10px;
  margin-left: -1px; /* 글자 끝에 바로 붙는 위첨자 */
  flex: none;
}
/* 사이트 안 넷 | 바깥 둘: 짧은 가로선 하나 */
#places .sep {
  width: 14px;
  height: 2px;
  margin: 18px 0 20px;
  background: #05060a;
}
/* 지금 있는 곳 = 움라우트(상단 메뉴와 같은 문법). 한 낱말은 점 하나, 두 낱말은 점 둘 */
#places a[aria-current="page"]::after {
  content: "";
  position: absolute;
  /* 정수 자리 · 짝수 크기: 반 화소(-2.5px)에 걸리면 점 가장자리가 번진다 */
  left: calc(50% - 2px);
  left: round(calc(50% - 2px), 1px);
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
#places a[data-k="work"][aria-current="page"]::after {
  left: calc(50% - 6px);
  left: round(calc(50% - 6px), 1px);
  box-shadow: 8px 0 0 currentColor;
}
#places a:focus-visible {
  outline: 1px solid #05060a;
  outline-offset: 5px;
}

#mfoot {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 26px;
  align-items: flex-end;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  font-family: "HN", "Pretendard", Arial, sans-serif;
  letter-spacing: 0.01em;
}
#mfoot a,
#mfoot button {
  font: inherit;
  letter-spacing: inherit;
  color: #05060a;
  background: none;
  border: 0;
  padding: 16px 6px;
  margin: -16px -6px;
  cursor: pointer;
  text-decoration: none;
}
#mfoot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#lang {
  display: flex;
  gap: 10px;
  margin-right: auto; /* 언어는 왼쪽, Colophon·Accessibility 는 오른쪽 */
}
#lang button {
  color: rgba(5, 6, 10, 0.6);
}
#lang button[aria-pressed="true"] {
  color: #05060a;
}

@media (max-width: 620px) {
  #menu nav {
    padding: 0 20px;
  }
  #mfoot {
    right: 20px;
    left: 20px;
    gap: 20px;
  }
}

/* 넓은 화면: 메뉴 버튼 없음 */
@media (min-width: 1024px) {
  #menuBtn {
    display: none;
  }
}

/* 메뉴가 열리면 페이지 이름과 하단 한 줄은 비킨다
   (메뉴는 사이트 전체 목록이고, 메뉴 아래쪽에 언어·Colophon·Accessibility 가 따로 있다) */
body.menuOpen #here,
body.menuOpen #foot {
  opacity: 0;
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  #menu,
  #places a {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}

/* ── Colophon 판 — Petri 와 같은 길로 오른쪽에서 들어온다(밀려나는 페이지는 peek.css 의 petriOpen·petriIn·petriAway) ── */
#colophonPanel {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.56s cubic-bezier(0.65, 0, 0.35, 1);
}
#colophonPanel.on {
  transform: none;
}
#colophonPanel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  #colophonPanel {
    transition: none;
  }
}

/* ── 상단 격자 (넓은 화면 1024px 이상) ──────────────────────────────────────────
   세로 기준선은 Work Index 카드의 8칸 격자와 같다(좌우 30px, 칸 사이 20px).
   1번 열: 로고 + 그 아래 슬로건 두 줄 / 5번 열: 페이지 메뉴를 세로로 / 7번 열: 바깥 링크를 세로로. (3번 열은 카드 화면의 정렬 자리)
   글자 14px · 65 Medium · 행간 20px. 메뉴는 전부 흰색, 지금 페이지만 앞에 흰 동그라미(메뉴에 마우스를 올리면 나머지가 흐려지는 원래 동작 그대로).
   푸터도 같은 선: 카피라이트 1번 열 · 날짜 3번 열 · Colophon/Accessibility 7번 열.
   1023px 이하는 예전 그대로(로고 · 페이지 이름 · 메뉴 버튼) */
:root {
  --col: calc((100vw - 200px) / 8 + 20px); /* 카드 8칸 격자의 한 칸(열 너비 + 사이 20px). k번째 열의 시작 = 30px + (k-1)칸 */
}
#slogan {
  display: none;
}
@media (min-width: 1024px) {
  #logo svg {
    height: 28px; /* 24 → 28: 메뉴·슬로건(14px)과 구분되게 */
  }
  #slogan {
    display: block;
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: 30px;
    margin: 0;
    font: 500 14px/20px "HN", "Pretendard", Arial, sans-serif;
    letter-spacing: 0.012em;
    word-spacing: 0.04em;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
  }
  #slogan span {
    display: block;
  }
  #slogan em {
    font-style: normal;
    transition: opacity 0.5s ease;
  }
  #slogan em.fade {
    opacity: 0;
  }
  #topnav {
    top: calc(30px + env(safe-area-inset-top, 0px));
    left: calc(30px + var(--col) * 4); /* 5번 열 */
    right: 30px;
    display: grid;
    grid-template-columns: calc(var(--col) * 2) 1fr; /* 바깥 링크는 7번 열 */
    grid-template-rows: repeat(4, 20px);
    grid-auto-flow: column;
    justify-items: start;
    align-items: start;
    gap: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
  }
  #topnav .gap {
    display: none;
  }
  #topnav a {
    color: #fff; /* 메뉴는 전부 흰색 — 회색을 섞으면 굵기가 달라 보인다. 지금 페이지는 앞의 동그라미로만 알린다 */
    padding: 0;
    margin: 0;
  }
  #topnav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 4.5px; /* 대문자 높이의 세로 가운데(줄 상자의 가운데가 아니라) */
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
  }
  #navDot {
    display: none !important; /* 예전의 메뉴 위 점 대신 앞의 동그라미를 쓴다 */
  }
  #copy {
    display: block;
  }
  #copy em {
    position: absolute;
    left: calc(var(--col) * 2); /* 3번 열 */
    bottom: 0;
    white-space: nowrap;
  }
  #fnav {
    position: absolute;
    left: calc(var(--col) * 6); /* 7번 열 */
    bottom: 0;
    margin-left: 0;
  }
}
/* ── 상단 오른쪽 언어 전환 (넓은 화면 1024px 이상) ──
   오른쪽 인디케이터 점(오른쪽 22px)과 같은 세로줄의 맨 위, 상단 메뉴 첫 줄과 같은 높이. EN 위 · KO 아래, 오른쪽 정렬.
   글자는 상단 메뉴와 같은 14px · 65 · 행간 20px. 동그라미 없이 지금 언어는 흰색, 다른 쪽은 사이트 공통 회색.
   EN·KO 의 폭을 같게 하는 자간은 frame.js 가 실제 서체로 재서 넣는다. 1023px 이하는 흰 메뉴 아래의 KOR·ENG 를 쓴다 */
#langTop {
  display: none;
}
@media (min-width: 1024px) {
  #langTop {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    top: calc(30px + env(safe-area-inset-top, 0px));
    right: 22px;
  }
  #langTop button {
    display: block;
    padding: 0 0 0 16px; /* 누르는 자리를 왼쪽으로 넓힌다 */
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font: 500 14px/20px "HN", "Pretendard", Arial, sans-serif;
    color: #5a5955;
    white-space: nowrap;
    transition: color 0.3s ease;
  }
  #langTop button[aria-pressed="true"] {
    color: #fff;
    cursor: default;
  }
  #langTop button:hover {
    color: #fff;
  }
  #langTop button:focus-visible {
    outline: 1px solid #7fd4c8;
    outline-offset: 2px;
  }
}
body.menuOpen #langTop {
  visibility: hidden;
  opacity: 0;
}
/* 좁은 화면에서는 오른쪽 페이지 정보(#ctx)와 겹치지 않게 Colophon·Accessibility 를 날짜 옆(2번 선 뒤)으로 옮긴다.
   메인은 오른쪽 조작 글이 길어서 더 넓은 화면까지 이렇게 둔다 */
@media (min-width: 1024px) and (max-width: 1439px) {
  #fnav {
    left: calc(var(--col) * 2 + 210px);
  }
}
/* 메인: 오른쪽 조작 글(Describe · Pause · Sound · About)이 길고, 가운데 아래에는 로딩 숫자·영상 시간이 있다.
   1800px 미만에서는 Colophon·Accessibility 를 오른쪽 조작 글 바로 왼쪽에 붙여 한 묶음으로 둔다(가운데 글과도, 오른쪽 글과도 겹치지 않는다).
   1800px 이상에서는 다른 페이지처럼 7번 열 */
@media (min-width: 1024px) and (max-width: 1799px) {
  body:not([data-page]) #fnav {
    position: static;
    left: auto;
    margin-left: auto;
    margin-right: 26px;
  }
  body:not([data-page]) #foot #ctx {
    margin-left: 0;
  }
}


/* ── 페이지를 옮길 때: 상단·하단은 제자리에 있고 가운데만 바뀐다 ───────────────────────
   브라우저의 페이지 전환 기능(크롬·엣지·사파리 최신판). 지원하지 않는 브라우저는 예전처럼 새로 뜬다.
   서버에 올린 상태에서만 동작한다(내 컴퓨터에서 파일로 열면 적용되지 않는다) */
@view-transition {
  navigation: auto;
}
#logo { view-transition-name: frame-logo; }
#slogan { view-transition-name: frame-slogan; }
#topnav { view-transition-name: frame-nav; }
#foot { view-transition-name: frame-foot; }
#menuBtn { view-transition-name: frame-menu; }
#langTop { view-transition-name: frame-lang; }
::view-transition-group(frame-logo),
::view-transition-group(frame-slogan),
::view-transition-group(frame-nav),
::view-transition-group(frame-foot),
::view-transition-group(frame-menu),
::view-transition-group(frame-lang) {
  animation: none; /* 틀은 움직이지 않는다 */
}
/* 앞 페이지는 누르는 순간 바로 사라지고, 새 페이지만 떠오른다.
   (전에는 앞 페이지와 새 페이지가 0.4초 동안 겹쳐서, 앞 페이지의 글이 새 페이지 뒤에 흐릿하게 비쳤다) */
::view-transition-old(root) {
  animation: none;
  opacity: 0;
}
::view-transition-new(root) {
  animation-duration: 0.3s;
}
/* 틀(로고 · 슬로건 · 메뉴 · 하단 · 언어)도 앞 페이지 것은 바로 치우고 새 것만 그린다 — 메뉴의 지금 페이지 표시가 둘로 겹쳐 보이지 않게 */
::view-transition-old(frame-logo),
::view-transition-old(frame-slogan),
::view-transition-old(frame-nav),
::view-transition-old(frame-foot),
::view-transition-old(frame-menu),
::view-transition-old(frame-lang) {
  display: none;
}
::view-transition-new(frame-logo),
::view-transition-new(frame-slogan),
::view-transition-new(frame-nav),
::view-transition-new(frame-foot),
::view-transition-new(frame-menu),
::view-transition-new(frame-lang) {
  animation: none;
}
/* 사이트 안에서 옮겨 왔을 때는 틀이 1초 동안 떠오르지 않고 바로 보인다(frame.js 가 html 에 quick 을 붙인다) */
html.quick .chrome {
  opacity: 1;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
