* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--web-font-family);
  color: var(--web-color-copy);
  background: var(--web-color-surface);
  /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 20px; */
}

.site-skip-link {
  position: fixed;
  top: var(--web-space-lg);
  left: var(--web-space-lg);
  z-index: 2000;
  padding: var(--web-space-md) var(--web-space-lg);
  color: var(--web-color-surface-raised);
  background: var(--web-color-ink);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--web-space-2xl)));
}

.site-skip-link:focus {
  transform: translateY(0);
}

.site-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* thin scroll bar */
::-webkit-scrollbar {
  width: 2px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.3);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(120, 120, 120, 0.5);
}

/* Left Navigation Bar */
.left-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 280px;
  height: 100vh;
  background: rgba(255, 255, 255, 0);
  border-right: 1px solid rgba(120, 120, 120, 0.15);
  padding: 40px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
}

.left-nav-brand {
  margin-bottom: 80px;
  color: inherit;
  text-decoration: none;
}

.left-nav-brand:focus-visible {
  outline: 2px solid var(--web-color-accent);
  outline-offset: 6px;
}

.left-nav-brand .brand-wordmark {
  display: block;
  font-size: 2.5em;
  font-weight: 700;
  color: var(--web-color-accent);
  margin: 0 0 5px 0;
letter-spacing: -0.02em;
}

.left-nav-brand .tagline {
  font-size: 0.95em;
  color: var(--web-color-accent);
  font-weight: 500;
letter-spacing: 0.02em;
}

.left-nav-menu {
  flex: 1;
}

.left-nav-item {
  /* 메뉴 항목은 크롤러가 URL 을 발견할 수 있도록 <a> 로 렌더링한다.
     <a> 는 기본이 인라인이라 세로 마진이 먹지 않으므로 블록으로 고정한다. */
  display: block;
  margin-bottom: 20px;
  font-size: 0.95em;
  color: rgba(120, 120, 120, 1);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.left-nav-item:hover {
  color: var(--web-color-accent);
}

.left-nav-item.active {
  color: var(--web-color-accent);
  font-weight: 600;
}

.left-nav-item.section-title {
  font-weight: 600;
margin-top: 0;
margin-bottom: 20px;
  cursor: default;
}

.left-nav-item.section-title:not(.collapsible) {
  cursor: pointer;
}

.left-nav-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid rgba(120, 120, 120, 0.3);
}

.left-nav-footer .footer-item {
  display: block;
  font-size: 0.85em;
  color: rgba(120, 120, 120, 1);
  margin-bottom: 1cqb;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s ease;
}

.left-nav-footer .footer-item:hover {
  color: var(--web-color-accent);
}

.left-nav-footer .lang-switcher {
  font-size: 0.85em;
  color: rgba(120, 120, 120, 1);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.left-nav-footer .lang-switcher button {
  min-width: var(--web-target-min);
  min-height: var(--web-target-min);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.left-nav-footer .lang-switcher button:hover {
  color: var(--web-color-accent);
}

.left-nav-footer .lang-switcher button.active {
  color: var(--web-color-accent);
  font-weight: 600;
}

.left-nav-footer .lang-switcher .divider {
  flex: 1;
  height: 1px;
  background: rgba(120, 120, 120, 0.3);
  margin: 0 5px;
}

.mobile-lang-switcher,
.mobile-doc-link,
.mobile-menu-toggle,
.mobile-nav-backdrop,
.mobile-info-title,
.info-panel-resize-handle,
.mobile-context-nav {
  display: none;
}

.desktop-en-break,
.desktop-break {
  display: inline;
}

/* History List Styles */
.history-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0; /* 상단 여백, 가로 중앙 정렬 */
  max-width: 600px;    /* 너무 넓게 퍼지지 않도록 너비 제한 */
  width: 80%;
  text-align: left;    /* 텍스트 왼쪽 정렬 */
}

.history-list li {
  position: relative;
  padding-left: 25px;  /* 불릿 공간 확보 */
  margin-bottom: 15px; /* 항목 간 간격 */
  font-size: 1.0em;
  color: rgba(120, 120, 120, 1);
  line-height: 1.6;
}

/* 붉은색 불릿 (Red Dot Bullet) */
.history-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;          /* 텍스트 높이에 맞춰 수직 위치 조정 */
  width: 6px;
  height: 6px;
  background-color: var(--web-color-accent); /* 브랜드 붉은색 */
  border-radius: 50%;  /* 원형 */
}

.history-entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
}

.history-entry-date {
  color: var(--web-color-copy);
  font-weight: 700;
  white-space: nowrap;
}

.container {
  /* max-width: 1200px; */
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container {
  /* position: relative; */
  height: 90%;
  /* max-width: 900px; */
  /* margin: 0 auto; */
  padding: 40px;
  /* background: rgba(204, 204, 204, 255); */
  background: rgba(255, 255, 255, 0);

  /* border-radius: 20px; */
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); */
  /* border: 1px solid rgba(220, 38, 38, 0.1); */
  transition: transform var(--web-motion-page) var(--web-ease-out),
    opacity var(--web-motion-page) var(--web-ease-out);
}

.page-section:not(.active-section) .map-container {
  transform: scale(0.9);
  opacity: 0;
}

svg {
  height: 100%;
  width: auto;
  /* filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.1)); */
}

#gravity-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.region {
  cursor: pointer;
  transition: fill var(--web-motion-fast), stroke var(--web-motion-fast), filter var(--web-motion-fast);
  /* stroke: var(--web-color-accent); */
  stroke: rgba(120, 120, 120, 255);
  stroke-width: 1;
  fill: rgba(220, 38, 38, 0);
  /* fill: rgba(220, 38, 38, 0.05); */
  /* fill: var(--web-color-accent); */
}

.map-region-link {
  outline: none;
}

.map-region-link:focus-visible .region,
.map-region-link:focus-visible .region_btwn {
  fill: var(--web-color-accent);
  stroke: var(--web-color-ink);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.42));
}

.region:hover {
  /* fill: rgba(220, 38, 38, 0.2); */
  fill: var(--web-color-accent);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}

.data-dot.dimmed {
  fill: rgba(120, 120, 120, 1);
}

.region_btwn {
  cursor: pointer;
  transition: fill var(--web-motion-fast), stroke var(--web-motion-fast), filter var(--web-motion-fast);
  /* stroke: var(--web-color-accent); */
  /* stroke: gray; */
  stroke: rgba(120, 120, 120, 255);
  stroke-width: 1;
  fill: rgba(220, 38, 38, 0);
  /* fill: #fff; */
}

.region_btwn:hover {
  /* fill: rgba(220, 38, 38, 0.2); */
  fill: var(--web-color-accent);
  stroke-width: 1;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}

.region_chido_2 {
  /* cursor: pointer; */
  transition: fill var(--web-motion-fast), stroke var(--web-motion-fast), filter var(--web-motion-fast);
  /* stroke: var(--web-color-accent); */
  stroke: rgba(120, 120, 120, 255);
  stroke-width: 1;
  /* fill: rgba(220, 38, 38, 0); */
  fill: #fff;
  /* fill: rgba(204, 204, 204, 255); */
}

/* 지도 느낌의 장식 요소 */
.map-grid {
  stroke: rgba(0, 0, 0, 0.1);
  /* stroke: rgba(0, 0, 0, 0.7); */
  stroke-width: 0.5;
  fill: none;
}

.map-boundary {
  stroke: var(--web-color-accent);
  stroke-width: 4;
  fill: none;
  opacity: 0.9;
}

/* 등고선 느낌 */
.contour-line {
  stroke: rgba(220, 38, 38, 0.15);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 4, 4;
}

/* 레이블 */
.region-label {
  font-size: 18px;
  font-weight: 700;
  fill: var(--web-color-ink);
  text-anchor: middle;
  pointer-events: none;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.9);
}

/* 작은 아이콘들 (지도 느낌) */
.map-icon {
  /* fill: var(--web-color-accent); */
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.3s ease, r 0.3s ease,
    cx 3s cubic-bezier(0.4, 0, 0.2, 1), cy 3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.map-icon:hover {
  opacity: 1;
  r: 6;
}

.data-dot {
  /* fill: var(--web-color-accent); */
  fill: rgba(120, 120, 120, 1);
  opacity: 0.8;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.3s ease, r 0.3s ease,
    cx 3s cubic-bezier(0.4, 0, 0.2, 1), cy 3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.data-dot:focus-visible {
  fill: var(--web-color-accent);
  outline: 2px solid var(--web-color-accent);
  outline-offset: 4px;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.55));
}

.data-dot:hover {
  opacity: 1;
  fill: rgba(220, 38, 38, 1);
  r: 8;
}

/* Special styling for center MIMLAB dot */
#data-dot-2 {
  fill: rgba(220, 38, 38, 1);
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.6));
}

#data-dot-2:hover {
  r: 10;
  filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.8));
}

.info-panel {
  text-align: center;
  margin-top: 40px;
  color: #666;
  font-size: 0.9em;
}

/* 애니메이션 */
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

.pulse {
  animation: pulse 3s ease-in-out infinite;
}

/* 로고 영역 */
/* .logo-section {
  text-align: center;
  margin-bottom: 30px;
} */

/* .logo-text {
  color: var(--web-color-accent);
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 10px;
} */

/* Top right title section */
.info-top-right {
  position: fixed;
  right: clamp(72px, 5.2vw, 100px);
  top: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--web-motion-page) var(--web-ease-out), transform var(--web-motion-page) var(--web-ease-out);
  transform: translateY(-10px);
  z-index: 999;
}

.info-top-right.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-top-right h3 {
  font-size: 2.5em;
  font-weight: 700;
  /* color: var(--web-color-accent); */
  color: rgba(120, 120, 120, 1);
  margin: 0;
  text-align: right;
  position: relative;
  padding-bottom: 20px;
}

/* Decorative line with dot at the end */
.info-top-right h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 350px;
  height: 1px;
  background: rgba(120, 120, 120, 0.3);
}

.info-top-right h3::before {
  content: '';
  position: absolute;
  bottom: -2.49px;
  right: -6px;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(120, 120, 120, 0.3);
  border-radius: 50%;
}

/* Info panel on the right */
.info-panel-right {
  --info-panel-content-font-size: 0.85rem;
  position: fixed;
  right: clamp(72px, 5.2vw, 100px);
  top: auto;
  /* Collapsed Grid Controls top: viewport bottom - 30px - 82px.
     The detail button is 36px tall with 30px panel padding, so a 46px
     panel offset puts both control tops on the same horizontal line. */
  bottom: 46px;
  width: 350px;
  height: min(76vh, calc(100vh - 160px));
  height: min(76dvh, calc(100dvh - 160px));
  min-height: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0);
  border-left: 1px dotted rgba(120, 120, 120, 0.3);
  /* border: 2px solid var(--web-color-accent); */
  /* border-radius: 12px; */
  padding: 30px;
  /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15); */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--web-motion-page) var(--web-ease-out), transform var(--web-motion-page) var(--web-ease-out), background-color var(--web-motion-fast) var(--web-ease-out);
  transform: translateX(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: hidden;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-panel-right.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9ca3af;
  font: inherit;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
}

.panel-close-btn:hover,
.panel-close-btn:focus-visible {
  color: var(--web-color-accent);
  outline: none;
}


/* Grid Configuration Panel */
.grid-config-panel {
  position: fixed;
  bottom: 30px;
left: 310px;
  width: 280px;
  max-height: 90vh;
  border: 1px solid rgba(120, 120, 120, 0.3);
  border-radius: 8px;
  padding: 15px;
  z-index: 1001;
  overflow: hidden;
  font-size: 13px;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(120, 120, 120, 0.2);
}

.config-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: rgba(120, 120, 120, 1);
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: rgba(120, 120, 120, 1);
  padding: 0;
  width: 24px;
  height: 24px;
  line-height: 1;
}

.toggle-btn:hover {
  color: var(--web-color-accent);
}

.config-content {
  max-height: 50vh; /* 스크롤바가 자연스럽게 생기도록 최대 높이 조정 */
  overflow-y: auto;
  transition: max-height 0.3s ease;
  padding-right: 5px;
}

/* Grid Controls 패널 스크롤바 커스텀 */
.config-content::-webkit-scrollbar {
  width: 4px;
}
.config-content::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}
.config-content::-webkit-scrollbar-thumb {
  background: rgba(120, 120, 120, 0.4);
  border-radius: 4px;
}

.config-content.collapsed {
  max-height: 0;
  overflow: hidden;
}

.config-section {
  margin-bottom: 15px;
}

.config-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: rgba(120, 120, 120, 1);
}

.config-section input[type='range'] {
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

/* Slider track - gray */
.config-section input[type='range']::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: #d1d5db;
  border-radius: 3px;
}

.config-section input[type='range']::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #d1d5db;
  border-radius: 3px;
}

/* Slider thumb - gray */
.config-section input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6b7280;
  cursor: pointer;
  margin-top: -5px;
}

.config-section input[type='range']::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #6b7280;
  cursor: pointer;
  border: none;
}

/* Hover effect */
.config-section input[type='range']::-webkit-slider-thumb:hover {
  background: #4b5563;
}

.config-section input[type='range']::-moz-range-thumb:hover {
  background: #4b5563;
}

.config-section input[type='checkbox'] {
  margin-right: 8px;
  cursor: pointer;
  accent-color: var(--web-color-accent); /* 체크박스 색상을 브랜드 색상으로 변경 */
}

#random-controls {
  padding-left: 10px;
  border-left: 2px solid rgba(220, 38, 38, 0.2);
  margin-left: 10px;
}

.reset-btn {
  width: 100%;
  padding: 10px;
  background: var(--web-color-accent);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 13px;
  margin-top: 10px;
  transition: background 0.2s;
}

.reset-btn:hover {
  background: var(--web-color-accent-hover);
}

.info-panel-right .subtitle {
  font-size: var(--info-panel-content-font-size);
  margin-bottom: 15px;
  color: rgba(120, 120, 120, 1);
  font-weight: 400;
  line-height: 1.7;
  text-align: left;
  width: 100%;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.info-panel-right .description {
  font-size: var(--info-panel-content-font-size);
  line-height: 1.7;
  color: rgba(120, 120, 120, 1);
  font-weight: 400;
  width: 100%;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.info-panel-right .description img {
  width: min(100%, 260px);
  max-width: 100%; /* 너비가 부모 요소를 넘지 않도록 설정 */
  height: auto; /* 높이를 자동으로 조절하여 이미지 비율 유지 */
  object-fit: contain; /* 이미지가 잘리지 않고 비율에 맞게 포함되도록 설정 */
  display: block;
}

.info-panel-right .description img.sidebar-full-bleed {
  width: min(100%, 300px) !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
}

.info-panel-right .description img:not(.sidebar-full-bleed) {
  max-width: 260px;
}

.info-panel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

.info-panel-right #info-description {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding-right: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.info-panel-right #info-description::-webkit-scrollbar {
  display: none;
}

.info-detail-btn {
  display: none;
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--web-color-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.info-detail-btn:hover {
  background: var(--web-color-accent-hover);
}

.info-detail-btn.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Scroll navigation indicator */
.scroll-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.scroll-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background-color var(--web-motion-fast), transform var(--web-motion-fast);
  position: relative;
}

.scroll-nav-dot:hover {
  background: rgba(220, 38, 38, 0.7);
  transform: scale(1.2);
}

.scroll-nav-dot.active {
  background: rgba(220, 38, 38, 0.7);
  /* box-shadow: 0 0 0 5px rgba(120, 120, 120, 0.1); */
}

.scroll-nav-dot::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-53%, -53%);
  width: 15px;
  height: 15px;
  border: 0.1px solid rgba(120, 120, 120, 0);
  border-radius: 50%;
}
.scroll-nav-dot:hover::before {
  border: 0.1px solid rgba(220, 38, 38, 0.7);
}
.scroll-nav-dot.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-53%, -53%);
  width: 15px;
  height: 15px;
  border: 0.1px solid rgba(120, 120, 120, 0.3);
  border-radius: 50%;
}
.scroll-nav-dot.active:hover::before {
  border: 0.1px solid rgba(220, 38, 38, 0.7);
}

/* Sections for scrolling */
.page-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(100vh);
  transition: opacity var(--web-motion-page) var(--web-ease-out), transform var(--web-motion-page) var(--web-ease-out);
  pointer-events: none;
}

.page-section.active-section {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 10;
}

.page-section.scroll-up {
  transform: translateY(-100vh);
}

.page-section.scroll-down {
  transform: translateY(100vh);
}

.page-section .container {
  text-align: center;
  padding: 40px;
  transition: transform var(--web-motion-page) var(--web-ease-out);
}

.page-section:not(.active-section) .container {
  transform: scale(0.9);
}

.page-section h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: 700;
  transition: opacity var(--web-motion-page) var(--web-ease-out), transform var(--web-motion-page) var(--web-ease-out);
  transition-delay: 0.1s;
}

.page-section:not(.active-section) h1 {
  opacity: 0;
  transform: translateY(30px);
}

.page-section p {
  transition: opacity var(--web-motion-page) var(--web-ease-out), transform var(--web-motion-page) var(--web-ease-out);
  transition-delay: 0.2s;
}

.page-section:not(.active-section) p {
  opacity: 0;
  transform: translateY(20px);
}

/* Platform pages move as one panel. Layering the section slide with separate
   container scaling and text drift makes direction feel inconsistent because
   each platform has a different content height. */
.page-section.platform-section .container,
.page-section.platform-section h1,
.page-section.platform-section p {
  transition: none;
}

.page-section.platform-section:not(.active-section) .container,
.page-section.platform-section:not(.active-section) h1,
.page-section.platform-section:not(.active-section) p {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-section,
  .page-section .container,
  .page-section h1,
  .page-section p {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* Grid background for ABOUT sections */
.page-section.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      rgba(120, 120, 120, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(120, 120, 120, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.page-section.about-section .container {
  position: relative;
  z-index: 1;
}

.about-container {
  flex-direction: column;
  color: rgba(120, 120, 120, 1);
}

.about-container p {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* News 페이지 상단 정렬을 위한 추가 스타일 */
.page-section.top-aligned {
  align-items: flex-start; /* 내용을 위로 정렬 */
}
.page-section.top-aligned > .container {
  height: auto;
  min-height: 100vh;
  justify-content: flex-start;
  padding-top: 12vh; /* 화면 상단으로부터의 여백 */
  padding-bottom: 12vh;
}

@media (min-width: 769px) {
  .page-section.top-aligned,
  .page-section.platform-section {
    align-items: flex-start;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page-section.platform-section > .container {
    height: auto;
    min-height: 100vh;
  }
}

@media (min-width: 901px) and (max-height: 950px) {
  html[lang='en'] .page-section.platform-section > .container {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  html[lang='en'] .page-section.platform-section[data-slug='chido'] > .container {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  html[lang='en'] .page-section.platform-section h1 {
    margin-bottom: 16px;
  }

  html[lang='en'] .page-section.platform-section h1 + p {
    margin-top: 8px !important;
    font-size: 1.1em !important;
  }

  html[lang='en'] .page-section.platform-section h1 + p + p {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    font-size: 1em !important;
  }

  html[lang='en'] .page-section.platform-section .platform-grid {
    gap: 24px;
    margin-top: 16px;
  }

  html[lang='en'] .page-section.platform-section .platform-card {
    padding: 20px 16px;
  }

  html[lang='en'] .page-section.platform-section .platform-card-title {
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 1.08em;
    line-height: 1.3;
  }

  html[lang='en'] .page-section.platform-section .platform-card-desc {
    font-size: 0.9em;
    line-height: 1.5;
  }

  html[lang='en'] .page-section.platform-section .feature-grid {
    gap: 20px;
    margin-top: 36px;
  }

  html[lang='en'] .page-section.platform-section .feature-card {
    padding: 18px;
  }

  html[lang='en'] .page-section.platform-section .platform-chido {
    gap: 16px;
  }

  html[lang='en'] .page-section.platform-section .platform-chido .feature-card {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  html[lang='en'] .page-section.platform-section .feature-list li {
    margin-bottom: 6px;
    font-size: 0.82em;
    line-height: 1.4;
  }
}

body {
  overflow: hidden;
}

/* --- 메뉴 접기/펼치기용 CSS 추가 --- */
.left-nav-item.collapsible {
  cursor: pointer; /* 클릭 가능하도록 커서 변경 */
  position: relative;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  transition: margin-bottom 0.35s ease-in-out, color 0.3s ease;
}

    .left-nav-item.collapsible.expanded {
margin-bottom: 15px; /* 메뉴가 열렸을 때 하위 메뉴와의 간격을 자연스럽게 좁힘 */
    }

/* 펼침/닫힘 상태 표시 아이콘 (예: 화살표) */
.left-nav-item.collapsible::after {
  content: '▸'; /* 닫혔을 때 (오른쪽 화살표) */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9em;
  color: rgba(120, 120, 120, 0.7);
  transition: transform 0.3s ease;
}

/* 'expanded' 클래스가 추가됐을 때 아이콘 회전 */
.left-nav-item.collapsible.expanded::after {
  transform: translateY(-50%) rotate(90deg); /* 열렸을 때 (아래쪽 화살표) */
}

/* 하위 메뉴 컨테이너 기본 상태 (숨김) */
.sub-menu-container {
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  opacity: 0;
  transition: max-height 0.35s ease-in-out, margin-bottom 0.35s ease-in-out, opacity 0.25s ease-in-out;
}

/* --- 하위 메뉴 들여쓰기 추가 --- */
.sub-menu-container .left-nav-item {
  padding-left: 12px;
  margin-bottom: 15px; /* 서브메뉴 항목 간격 */
  transition: padding 0.2s ease, color 0.3s ease; /* 전환 효과 통합(겹침/깜빡임 방지) */
  line-height: 1.4; /* 텍스트 세로 겹침 현상 완벽 방지 */
}

.sub-menu-container .left-nav-item:hover {
  color: var(--web-color-accent);
  padding-left: 16px;
}      

.sub-menu-container .left-nav-item:last-child {
  margin-bottom: 0; /* 컨테이너(BFC) 외부 마진과 불규칙하게 더해지는 현상을 막기 위해 0으로 설정 */
}


/* 'expanded' 클래스가 추가됐을 때 컨테이너 펼침 */
.sub-menu-container.expanded {
  max-height: 250px; /* 실제 높이와 유사하게 설정하여 닫힐 때의 딜레이/튀는 현상 방지 */
  margin-bottom: 20px; /* 열렸을 때 다음 메인 타이틀과의 간격 확보 */
  opacity: 1;
  transition: max-height 0.35s ease-in-out, margin-bottom 0.35s ease-in-out, opacity 0.35s ease-in-out;
}

    /* --- Partners Grid Styles --- */
    .partners-grid {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 20px;
margin-top: 40px;
width: 100%;
max-width: 1100px;
    }

    .partner-item {
background: #ffffff;
border: 1px solid rgba(120, 120, 120, 0.15);
border-radius: 8px;
padding: 20px; /* 로고가 테두리에 닿지 않도록 충분한 여백 확보 */
aspect-ratio: 3/2;
display: flex;
justify-content: center;
align-items: center;
transition: transform var(--web-motion-fast), box-shadow var(--web-motion-fast), border-color var(--web-motion-fast);
    }

    .partner-item:hover {
transform: translateY(-3px);
box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
border-color: rgba(220, 38, 38, 0.3);
    }

    .partner-item img {
width: 106%;
height: 79%;
max-width: 172px;
object-fit: contain;
filter: grayscale(100%) opacity(0.6);
transition: filter var(--web-motion-fast);
    }

    .partner-item:hover img {
filter: grayscale(0%) opacity(1);
    }

    @media (min-width: 901px) and (max-width: 1700px) {
.page-section .partners-container {
  padding-left: 300px;
}
    }

    @media (max-width: 1024px) { .partners-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    @media (max-width: 768px) { .partners-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
    @media (max-width: 480px) { .partners-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --- Vision 섹션 이미지 스타일 추가 --- */
.vision-image-container {
  margin-top: 80px; /* 텍스트와의 간격 */
  width: 100%;
  display: flex;
  justify-content: center;
}

.vision-image {
  max-width: 50%;      /* 이미지 크기 조절 (화면의 80%) */
  height: auto;        /* 비율 유지 */
  border-radius: 12px; /* 모서리 둥글게 */
  object-fit: cover;   /* 이미지 비율 유지하며 채우기 */
}

.highlight {
  color: var(--web-color-accent);
}

    /* --- Project List Styles --- */
    .project-list {
list-style: none;
padding: 0;
margin: 64px auto 0;
max-width: 1360px;
width: 100%;
text-align: left;
    }

.project-list li {
position: relative;
padding-left: 25px;
margin-bottom: 16px;
font-size: 1.05em;
color: rgba(120, 120, 120, 1);
line-height: 1.6;
display: flex;
gap: 20px;
align-items: baseline;
}

    .project-list li::before {
content: '';
position: absolute;
left: 0;
top: 0.6em;
width: 6px;
height: 6px;
background-color: var(--web-color-accent);
border-radius: 50%;
    }

    .project-year {
flex: 0 0 100px;
font-weight: 600;
color: var(--web-color-accent);
margin-right: 20px;
    }

    .project-name {
flex: 1;
word-break: keep-all;
    }

    .project-client {
flex: 0 0 260px;
text-align: right;
font-weight: 500;
color: #666;
margin-right: -10px;
    }

    .project-link {
flex: 0 0 100px;
text-align: center;
    }

    .project-link a {
background: var(--web-color-accent);
color: white;
padding: 4px 12px;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
font-size: 0.9em;
transition: background 0.3s ease;
    }
    .project-link a:hover {
background: var(--web-color-accent-hover);
text-decoration: none;
    }

    #projects-section .project-list {
min-height: clamp(420px, 40vh, 520px);
    }

    .content-pagination {
width: 100%;
max-width: 1200px;
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
margin: 24px auto 0;
    }

    .content-pagination[hidden] {
display: none;
    }

    .content-page-button {
min-width: 112px;
min-height: 44px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 12px;
border: 0;
border-bottom: 1px solid rgba(120, 120, 120, 0.35);
background: transparent;
color: #666;
font: inherit;
font-size: 0.9em;
font-weight: 600;
cursor: pointer;
transition: color 0.2s ease, border-color 0.2s ease;
    }

    .content-page-button:hover:not(:disabled),
    .content-page-button:focus-visible {
color: var(--web-color-accent);
border-bottom-color: var(--web-color-accent);
outline: none;
    }

    .content-page-button:disabled {
color: rgba(120, 120, 120, 0.38);
border-bottom-color: rgba(120, 120, 120, 0.14);
cursor: default;
    }

    .content-page-status {
min-width: 64px;
color: var(--web-color-accent);
font-size: 0.86em;
font-weight: 600;
letter-spacing: 0.12em;
text-align: center;
font-variant-numeric: tabular-nums;
    }

    @media (min-width: 901px) {
#projects-section .project-content {
  width: 100%;
}

html[lang='en'] #projects-section .project-list {
  min-height: 576px;
}

html[lang='en'] #projects-section .project-client {
  flex-basis: 360px;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
}

html[lang='en'] #projects-section .project-link {
  flex-basis: 80px;
}

#projects-section .content-pagination {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  width: auto;
  max-width: none;
  margin: 0;
}
    }

    @media (min-width: 901px) and (min-height: 951px) {
html[lang='en'] #projects-section .project-list li {
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.5;
}
    }

    @media (min-width: 901px) and (max-height: 950px) {
#projects-section .about-container {
  padding-top: 24px;
  padding-bottom: 24px;
}

#projects-section h1 {
  font-size: 2.5em;
  margin-bottom: 12px;
}

#projects-section .project-content > p {
  margin-bottom: 12px !important;
}

#projects-section .project-list {
  min-height: 320px;
  margin-top: 48px;
}

html[lang='en'] #projects-section .project-list {
  min-height: 500px;
}

html[lang='en'] #projects-section .project-client {
  flex-basis: 320px;
  line-height: 1.2;
}

html[lang='en'] #projects-section .project-link {
  flex-basis: 64px;
}

#projects-section .project-list li {
  gap: 14px;
  margin-bottom: 10px;
  font-size: 0.94em;
  line-height: 1.35;
}

html[lang='en'] #projects-section .project-list li {
  margin-bottom: 16px;
}

#projects-section .project-year {
  flex-basis: 94px;
  margin-right: 10px;
}

#projects-section .project-client {
  flex-basis: 240px;
}

#projects-section .project-link {
  flex-basis: 100px;
}

#projects-section .content-pagination {
  bottom: 24px;
}
    }

    @media (min-width: 901px) and (max-height: 800px) {
#projects-section .about-container {
  padding-top: 16px;
  padding-bottom: 16px;
}

#projects-section h1 {
  font-size: 2.2em;
  margin-bottom: 8px;
}

#projects-section .project-content > p {
  margin-bottom: 8px !important;
  font-size: 1em !important;
}

#projects-section .project-list {
  min-height: 268px;
  margin-top: 32px;
}

html[lang='en'] #projects-section .project-list {
  min-height: 424px;
}

html[lang='en'] #projects-section .project-client {
  flex-basis: 320px;
}

#projects-section .project-list li {
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.86em;
  line-height: 1.25;
}

html[lang='en'] #projects-section .project-list li {
  margin-bottom: 12px;
}

#projects-section .project-client {
  flex-basis: 240px;
}

#projects-section .project-link {
  flex-basis: 72px;
}

#projects-section .content-pagination {
  bottom: 16px;
}
    }

    @media (max-width: 768px) {
.project-list li {
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.project-client {
  text-align: left;
  font-size: 0.9em;
  color: #888;
}
.project-link {
  text-align: left;
  font-size: 0.9em;
}
.project-year {
  flex: auto;
}
    }

  /* --- Platform Card Grid Styles --- */
  .platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    margin-top: 20px;
  }

  .platform-card {
    background: #f8f9fa; /* 은은한 배경색으로 '면'을 강조 */
    border: none; /* 테두리 제거 */
    border-radius: 12px;
    padding: 25px 15px; /* 카드의 상하 높이를 줄이기 위해 여백 축소 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--web-motion-fast), background-color var(--web-motion-fast), box-shadow var(--web-motion-fast);
    box-shadow: none; /* 평면적인 느낌 유지 */
  }

  .platform-card:hover {
    transform: translateY(-5px);
    background: #ffffff; /* 마우스를 올렸을 때 하얗게 튀어나오는 효과 */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  }

  .platform-card-title {
    color: var(--web-color-ink);
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: keep-all;
    letter-spacing: -0.05em;
    position: relative;
    padding-bottom: 15px;
  }

  .platform-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background-color: var(--web-color-accent); /* 타이틀 하단에 브랜드 컬러 포인트 */
    border-radius: 2px;
  }

  .platform-card-desc {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    word-break: keep-all;
  }

  /* --- Shortcut Button Styles --- */
  .shortcut-btn-container {
    margin-top: 50px; /* 그리드(내용)와 버튼 사이, 즉 페이지 하단의 여백 확보 */
    text-align: center;
    width: 100%;
  }

  .shortcut-btn {
    display: inline-block;
    background: var(--web-color-accent); /* 붉은색 포인트 컬러 */
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 8px;
    font-size: 1.05em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--web-motion-fast), transform var(--web-motion-fast), box-shadow var(--web-motion-fast);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
  }

  .shortcut-btn:hover {
    background: var(--web-color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
  }

  @media (max-width: 900px) {
    .platform-grid {
grid-template-columns: 1fr;
    }
  }

  /* --- Feature Card Grid Styles (2x2) --- */
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 60px; /* 상단 Platform Grid와의 여백을 크게 확대하여 구분감 부여 */
  }

  .feature-card {
    background: #ffffff;
    border: 1px solid rgba(120, 120, 120, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    transition: transform var(--web-motion-fast), box-shadow var(--web-motion-fast), border-color var(--web-motion-fast);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    text-align: left;
  }

  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
  }

  .feature-card-left {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(120, 120, 120, 0.15);
    padding-right: 20px;
    margin-right: 20px;
  }

  .feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
  }

  .feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--web-color-accent);
  }

  .platform-features .feature-icon svg {
    display: none;
  }

  .platform-features .feature-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background: var(--web-color-accent);
    -webkit-mask: var(--feature-icon-mask) center / contain no-repeat;
    mask: var(--feature-icon-mask) center / contain no-repeat;
  }

  .platform-kosm .feature-card:nth-child(1) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16'/%3E%3Cpath d='M4 12h16'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M8 3v18'/%3E%3Cpath d='M16 3v18'/%3E%3C/svg%3E"); }
  .platform-kosm .feature-card:nth-child(2) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-4.4-7-10a7 7 0 0 1 14 0c0 5.6-7 10-7 10Z'/%3E%3Ccircle cx='12' cy='11' r='2.5'/%3E%3Cpath d='M18.5 5.5 21 3'/%3E%3Cpath d='M3 21l2.5-2.5'/%3E%3C/svg%3E"); }
  .platform-kosm .feature-card:nth-child(3) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M5 8l3 2'/%3E%3Cpath d='M16 14l3 2'/%3E%3Cpath d='M19 8l-3 2'/%3E%3Cpath d='M8 14l-3 2'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
  .platform-kosm .feature-card:nth-child(4) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='2.5'/%3E%3Ccircle cx='18' cy='6' r='2.5'/%3E%3Ccircle cx='12' cy='18' r='2.5'/%3E%3Cpath d='M8.2 7.4 11 15.7'/%3E%3Cpath d='M15.8 7.4 13 15.7'/%3E%3Cpath d='M8.5 6h7'/%3E%3C/svg%3E"); }

  .platform-qron .feature-card:nth-child(1) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18V6'/%3E%3Cpath d='M8 18V6'/%3E%3Cpath d='M12 18V6'/%3E%3Cpath d='M16 18V6'/%3E%3Cpath d='M20 18V6'/%3E%3Cpath d='M3 10h18'/%3E%3Cpath d='M3 14h18'/%3E%3C/svg%3E"); }
  .platform-qron .feature-card:nth-child(2) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 16c4-8 12 0 16-8'/%3E%3Cpath d='M4 8c4 8 12 0 16 8'/%3E%3Cpath d='M12 4v16'/%3E%3C/svg%3E"); }
  .platform-qron .feature-card:nth-child(3) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 17h4l3-10 3 14 2-8h4'/%3E%3Cpath d='M5 5h14'/%3E%3C/svg%3E"); }
  .platform-qron .feature-card:nth-child(4) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5'/%3E%3Cpath d='M4 19h16'/%3E%3Cpath d='M7 16l3-4 3 2 5-7'/%3E%3Cpath d='M17 7h3v3'/%3E%3C/svg%3E"); }

  .platform-chido .feature-card:nth-child(1) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='9' y='14' width='6' height='6' rx='1'/%3E%3Cpath d='M10 7h4'/%3E%3Cpath d='M12 10v4'/%3E%3C/svg%3E"); }
  .platform-chido .feature-card:nth-child(2) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a5 5 0 0 0-3 9v2h6v-2a5 5 0 0 0-3-9Z'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 21h4'/%3E%3Cpath d='M4 12h2'/%3E%3Cpath d='M18 12h2'/%3E%3C/svg%3E"); }
  .platform-chido .feature-card:nth-child(3) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='7' r='3'/%3E%3Ccircle cx='17' cy='7' r='3'/%3E%3Ccircle cx='12' cy='17' r='3'/%3E%3Cpath d='M9.5 8.7 11 14.2'/%3E%3Cpath d='M14.5 8.7 13 14.2'/%3E%3C/svg%3E"); }
  .platform-chido .feature-card:nth-child(4) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M8 13h5'/%3E%3Cpath d='M15 16l2 2 3-4'/%3E%3C/svg%3E"); }

  .platform-piona .feature-card:nth-child(1) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7' cy='8' r='2'/%3E%3Ccircle cx='17' cy='8' r='2'/%3E%3Cpath d='M7 10v6l5 3 5-3v-6'/%3E%3Cpath d='M9 13h6'/%3E%3C/svg%3E"); }
  .platform-piona .feature-card:nth-child(2) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M4 10h16'/%3E%3Cpath d='M4 16h16'/%3E%3Cpath d='M10 4v16'/%3E%3Cpath d='M16 4v16'/%3E%3C/svg%3E"); }
  .platform-piona .feature-card:nth-child(3) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M5 12H3'/%3E%3Cpath d='M21 12h-2'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cpath d='M10 12l1.5 1.5L15 10'/%3E%3C/svg%3E"); }
  .platform-piona .feature-card:nth-child(4) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18c2-5 4-7 8-7s6 2 8 7'/%3E%3Cpath d='M8 18a4 4 0 0 1 8 0'/%3E%3Cpath d='M12 11V5'/%3E%3Cpath d='M9 5h6'/%3E%3C/svg%3E"); }

  .platform-mimex .feature-card:nth-child(1) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M6 7l2 13h8l2-13'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3Cpath d='M9 12h6'/%3E%3C/svg%3E"); }
  .platform-mimex .feature-card:nth-child(2) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16'/%3E%3Cpath d='M4 12h10'/%3E%3Cpath d='M4 18h16'/%3E%3Ccircle cx='8' cy='6' r='2'/%3E%3Ccircle cx='14' cy='18' r='2'/%3E%3Ccircle cx='17' cy='12' r='2'/%3E%3C/svg%3E"); }
  .platform-mimex .feature-card:nth-child(3) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.2 5 5.3.5-4 3.5 1.2 5.2L12 14.5l-4.7 2.7L8.5 12l-4-3.5 5.3-.5L12 3Z'/%3E%3Cpath d='M19 19l2 2'/%3E%3C/svg%3E"); }
  .platform-mimex .feature-card:nth-child(4) { --feature-icon-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 5 3.5 8 7 10 3.5-2 7-5 7-10V6l-7-3Z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E"); }

  .feature-card-title {
    color: var(--web-color-accent);
    font-size: 0.9em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    word-break: keep-all;
    letter-spacing: -0.05em;
  }

  .feature-card-right {
    flex: 1;
  }

  .feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .feature-list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 6px;
    font-size: 0.85em;
    color: #666;
    line-height: 1.4;
    word-break: keep-all;
  }

  .feature-list li:last-child {
    margin-bottom: 0;
  }

  .feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 4px;
    height: 4px;
    background-color: var(--web-color-accent);
    border-radius: 50%;
  }

  @media (max-width: 900px) {
    .feature-grid {
grid-template-columns: 1fr;
    }
    .feature-card {
flex-direction: column;
text-align: center;
    }
    .feature-card-left {
flex: auto;
border-right: none;
border-bottom: 1px solid rgba(120, 120, 120, 0.15);
padding-right: 0;
margin-right: 0;
padding-bottom: 15px;
margin-bottom: 15px;
width: 100%;
    }
    .feature-list li {
text-align: left;
    }
  }

    /* --- News Card Grid Styles --- */
    .news-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
margin-top: 20px;
width: 100%;
max-width: 1100px;
min-height: clamp(420px, 48vh, 510px);
align-content: start;
    }

    .news-card {
background: #ffffff;
border: 1px solid rgba(120, 120, 120, 0.15);
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform var(--web-motion-fast), box-shadow var(--web-motion-fast), border-color var(--web-motion-fast);
text-align: left;
aspect-ratio: 40 / 27;
    }

    .news-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(220, 38, 38, 0.1);
border-color: rgba(220, 38, 38, 0.3);
    }

    .news-card-image {
width: 100%;
height: 0%;
background-color: #e9ecef;
background-size: cover;
background-position: center;
    }

    .news-card-content {
padding: 15px;;
flex-grow: 1;
min-height: 0;
display: flex;
flex-direction: column;
    }

    .news-card-body {
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
    }

    .news-card-category {
display: inline-block;
background: rgba(220, 38, 38, 0.1);
color: var(--web-color-accent);
padding: 4px 8px;
border-radius: 6px;
font-size: 0.75em;
font-weight: 600;
margin-bottom: 32px;
align-self: flex-start;
    }

    .news-card-title {
font-size: 1.1em;
font-weight: 600;
color: var(--web-color-copy);
margin-bottom: 8px;
line-height: 1.4;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
    }

    .news-card-date {
font-size: 0.8em;
color: #888;
margin-bottom: 15px;
    }

    .news-card-excerpt[hidden] {
display: none;
    }

    .news-card-link {
font-size: 0.85em;
font-weight: 600;
color: var(--web-color-accent);
text-decoration: none;
align-self: flex-start;
transition: color 0.3s;
    }

    .news-card-link:hover {
color: var(--web-color-accent-hover);
    }

    .news-card-actions {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12px;
margin-top: auto;
padding-top: 8px;
    }

    .news-card-actions[hidden],
    .news-card-more[hidden],
    .news-detail-modal[hidden],
    .news-detail-link[hidden] {
display: none;
    }

    .news-card-more {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 0;
border: 0;
background: transparent;
color: var(--web-color-accent);
font: inherit;
font-size: 0.85em;
font-weight: 600;
cursor: pointer;
transition: color 0.3s;
    }

    .news-card-more:hover,
    .news-card-more:focus-visible {
color: var(--web-color-accent-hover);
outline: none;
text-decoration: underline;
text-underline-offset: 3px;
    }

    .news-detail-open {
overflow: hidden;
    }

    .news-detail-modal {
position: fixed;
inset: 0;
z-index: 2000;
display: grid;
place-items: center;
padding: 32px;
background: rgba(38, 28, 28, 0.3);
backdrop-filter: blur(6px);
overscroll-behavior: none;
    }

    .news-detail-dialog {
position: relative;
width: min(680px, 100%);
max-height: calc(100vh - 64px);
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
padding: 40px;
border: 1px solid rgba(220, 38, 38, 0.18);
border-radius: 12px;
background: #fff;
box-shadow: 0 24px 64px rgba(74, 24, 24, 0.18);
text-align: left;
    }

    .news-detail-close {
position: absolute;
top: 18px;
right: 18px;
display: grid;
place-items: center;
width: 36px;
height: 36px;
padding: 0;
border: 1px solid rgba(120, 120, 120, 0.22);
border-radius: 50%;
background: transparent;
color: #666;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
    }

    .news-detail-close:hover,
    .news-detail-close:focus-visible {
border-color: var(--web-color-accent);
color: var(--web-color-accent);
outline: none;
    }

    .news-detail-dialog .news-card-category {
margin-bottom: 18px;
    }

    .news-detail-dialog h2 {
padding-right: 44px;
margin: 0 0 10px;
color: var(--web-color-copy);
font-size: clamp(1.4rem, 2.4vw, 2rem);
line-height: 1.35;
    }

    #news-detail-date {
margin-bottom: 24px;
    }

    .news-detail-image[hidden] {
display: none;
    }

    .news-detail-image {
display: block;
width: 100%;
min-height: 180px;
aspect-ratio: 16 / 6;
object-fit: cover;
margin-bottom: 24px;
border-radius: 8px;
    }

    #news-detail-excerpt {
margin: 0;
color: #5f5f5f;
font-size: 1rem;
line-height: 1.75;
white-space: pre-line;
overflow-wrap: anywhere;
    }

    .news-detail-link {
display: inline-flex;
margin-top: 28px;
color: var(--web-color-accent);
font-size: 0.9rem;
font-weight: 600;
text-decoration: none;
    }

    .news-detail-link:hover,
    .news-detail-link:focus-visible {
color: var(--web-color-accent-hover);
text-decoration: underline;
text-underline-offset: 3px;
outline: none;
    }

    @media (min-width: 769px) and (max-height: 800px) {
.news-card-content {
  padding: 12px 14px;
}

.news-card-category {
  padding: 3px 7px;
  margin-bottom: 16px;
  font-size: 0.72em;
}

.news-card-title {
  margin-bottom: 4px;
  font-size: 1em;
  line-height: 1.3;
}

.news-card-date {
  margin-bottom: 6px;
}

.news-card-actions {
  padding-top: 4px;
}
    }

    @media (max-width: 1024px) {
.news-grid {
  grid-template-columns: repeat(2, 1fr);
}
    }

    @media (max-width: 768px) {
.news-grid {
  grid-template-columns: 1fr;
}

.news-detail-modal {
  padding: 16px;
}

.news-detail-dialog {
  max-height: calc(100vh - 32px);
  padding: 32px 22px 26px;
}
    }

    .site-disclaimer {
width: 100%;
max-width: 1100px;
margin-top: 32px;
color: rgba(120, 120, 120, 0.75);
font-size: 0.82em;
text-align: right;
letter-spacing: 0;
    }

    /* --- Service Page Layout Styles --- */
    .service-layout {
display: flex;
align-items: center;
gap: 80px; /* 텍스트와 이미지 사이 간격 확대 */
width: 100%;
max-width: 1200px;
    }

    .service-text-content {
flex: 1; /* 텍스트 영역이 남은 공간을 모두 차지하도록 설정 */
text-align: left;
    }

    .service-image-content {
flex: 0 0 40%; /* 이미지 영역의 너비를 줄여 텍스트 영역을 넓힘 */
height: auto; /* 이미지 원본 비율에 맞춰 높이가 자동 조절되도록 수정 */
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(120, 120, 120, 0.1);
transition: transform 0.3s ease;
    }
    .service-image-content:hover {
  transform: scale(1.02);
    }

    .service-image-content img {
width: 100%;
height: auto; /* 비율에 맞춰 자동 높이 설정 */
display: block; /* 이미지 하단의 미세한 여백 제거 */
    }

    @media (min-width: 901px) and (max-width: 1700px) {
.service-layout {
  margin-left: 280px;   /* 좌측 여백 최소치 고정*/
  max-width: min(1200px, calc(100vw - 360px));
}
    }

    @media (max-width: 900px) {
.service-layout {
  flex-direction: column-reverse; /* 이미지가 위로 가도록 순서 변경 */
  gap: 40px;
}
.service-text-content { text-align: center; }
.service-text-content h1, .service-text-content p { text-align: center !important; }
    }

    /* --- Team Section Styles --- */
    .team-intro {
font-size: 0.95em;
color: #666;
line-height: 1.5;
margin-top: 10px;
word-break: keep-all;
    }

    .team-photo {
max-width: 100%;
max-height: 180px;
width: auto;
height: auto;
border-radius: 12px;
margin: 15px auto;
display: block;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .team-grid-title {
font-size: 1em;
color: var(--web-color-copy);
font-weight: 700;
margin-bottom: 8px;
text-align: left;
width: 100%;
border-bottom: 2px solid rgba(220, 38, 38, 0.2);
padding-bottom: 6px;
    }

    .team-grid-leadership {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
width: 100%;
margin-bottom: 15px;
    }

    .team-grid-engineering {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
width: 100%;
margin-bottom: 15px;
    }

    .team-member-card {
background: #ffffff;
border: 1px solid rgba(120, 120, 120, 0.15);
border-radius: 10px;
padding: 10px 8px;
text-align: center;
transition: transform var(--web-motion-fast), box-shadow var(--web-motion-fast), border-color var(--web-motion-fast);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
    }

    .team-member-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(220, 38, 38, 0.08);
border-color: rgba(220, 38, 38, 0.3);
    }

    .team-member-role {
font-size: 0.75em;
color: var(--web-color-accent);
font-weight: 600;
margin-bottom: 2px;
    }

    .team-member-name {
font-size: 0.95em;
font-weight: 700;
color: #333;
margin-bottom: 4px;
    }

    .team-member-desc {
font-size: 0.7em;
color: #666;
line-height: 1.3;
text-align: center;
word-break: keep-all;
    }
    .team-member-card.sub-platform {
grid-column: 1;
    }


    .team-member-card.sub-ai {
grid-column: 2;
    }

    .team-member-card.sub-3d {
grid-column: 5;
    }

    @media (max-width: 1024px) {
.team-grid-leadership {
  grid-template-columns: repeat(2, 1fr);
}
.team-grid-engineering {
  grid-template-columns: repeat(3, 1fr);
}
.team-member-card.sub-platform,
.team-member-card.sub-ai,
.team-member-card.sub-3d {
  grid-column: auto;
}
    }

    @media (max-width: 600px) {
.team-grid-leadership {
  grid-template-columns: 1fr;
}
.team-grid-engineering {
  grid-template-columns: repeat(2, 1fr);
}
    }

    /* --- Mobile adaptation: navigation and primary content grids --- */
    @media (max-width: 768px) {
body {
  display: block;
  overflow: hidden;
}

.left-nav {
  width: 100%;
  height: auto;
  min-height: 86px;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-right: none;
  border-bottom: 1px solid rgba(120, 120, 120, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.left-nav-brand {
  margin-bottom: 10px;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.left-nav-brand .brand-wordmark {
  font-size: 1.45em;
  line-height: 1;
  margin: 0;
}

.left-nav-brand .tagline {
  font-size: 0.62em;
  line-height: 1.2;
}

.desktop-en-break,
.desktop-break {
  display: none;
}

.mobile-lang-switcher {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: rgba(120, 120, 120, 1);
  font-size: 0.78em;
  font-weight: 500;
}

.mobile-lang-switcher button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-lang-switcher button:hover,
.mobile-lang-switcher button.active,
html[lang='ko'] .mobile-lang-switcher button[data-language='ko'],
html[lang='en'] .mobile-lang-switcher button[data-language='en'] {
  color: var(--web-color-accent);
}

.mobile-lang-switcher button.active,
html[lang='ko'] .mobile-lang-switcher button[data-language='ko'],
html[lang='en'] .mobile-lang-switcher button[data-language='en'] {
  font-weight: 700;
}

.mobile-lang-switcher .divider {
  width: 18px;
  height: 1px;
  background: rgba(120, 120, 120, 0.35);
}

.left-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  /* overflow-y: visible 은 overflow-x: auto 와 함께 쓰면 auto 로 계산되어
     세로 방향도 잘린다. 하위 메뉴는 position: fixed 로 이 영역 밖에 그린다.
     -webkit-overflow-scrolling 은 iOS 13+ 에서 무의미하고,
     구형 iOS 에서는 별도 합성 레이어를 만들어 하위 메뉴를 잘라내므로 제거. */
  scrollbar-width: none;
  padding-bottom: 2px;
}

.left-nav-menu::-webkit-scrollbar {
  display: none;
}

.left-nav-item,
.left-nav-item.section-title,
.sub-menu-container .left-nav-item {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 0.82em;
  line-height: 1.2;
  background: transparent;
}

.left-nav-item.active {
  background: rgba(220, 38, 38, 0.08);
}

.mobile-doc-link.left-nav-item {
  display: flex;
}

.left-nav-item.collapsible {
  padding-right: 26px;
}

.left-nav-item.collapsible.expanded {
  margin-bottom: 0;
}

.left-nav-item.collapsible::after {
  right: 10px;
}

/* position: fixed 로 좌측 내비의 가로 스크롤 영역 밖에 렌더링.
   --nav-bottom 은 JS 가 실제 내비 높이로 갱신한다(기본값 86px). */
.sub-menu-container {
  position: fixed;
  top: var(--nav-bottom, 86px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 0;
  margin: 0;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(120, 120, 120, 0.12);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
  pointer-events: none;
  z-index: 1001;
}

.sub-menu-container.expanded {
  max-height: 260px;
  margin-bottom: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  pointer-events: auto;
}

.sub-menu-container .left-nav-item {
  padding-left: 12px;
  margin-bottom: 0;
  background: rgba(248, 249, 250, 0.95);
}

.sub-menu-container .left-nav-item:hover {
  padding-left: 12px;
}

.left-nav-footer,
.scroll-nav,
.grid-config-panel {
  display: none;
}

.info-top-right {
  top: 104px;
  right: 16px;
}

.info-panel-right {
  top: auto;
  right: 12px;
  /* iOS Safari 하단 툴바/홈 인디케이터 영역을 피한다 */
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  width: auto;
  height: min(58vh, 440px); /* dvh 미지원 구형 브라우저용 폴백 */
  /* vh 는 iOS 에서 '주소창이 숨겨진 상태'의 최대 높이 기준이라
     실제 보이는 영역보다 커져 패널 하단(버튼)이 툴바에 가린다. dvh 사용. */
  height: min(58dvh, 440px);
  padding: 22px;
  border-left: none;
  border-top: 1px dotted rgba(120, 120, 120, 0.3);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(16px);
  /* 패널 자체는 스크롤하지 않고, 설명 영역만 스크롤시켜
     버튼이 스크롤 아래로 밀려나지 않도록 한다 */
  overflow: hidden;
}

.info-panel-right .info-panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.info-panel-right #info-description {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
}

.info-panel-right .info-detail-btn.show {
  flex: 0 0 auto;
}

.info-panel-right.show {
  transform: translateY(0);
}

.info-panel-right .description img {
  width: min(100%, 220px);
}

.info-panel-right .description img.sidebar-full-bleed {
  width: min(100%, 240px) !important;
}

.info-panel-right .description img:not(.sidebar-full-bleed) {
  max-width: 220px;
}

.page-section {
  align-items: flex-start;
  height: 100dvh;
  min-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 96px;
  -webkit-overflow-scrolling: touch;
}

.page-section .container,
.container {
  width: 100%;
  min-height: calc(100dvh - 96px);
  height: auto;
  padding: 28px 18px 44px;
  justify-content: flex-start;
}

.page-section.top-aligned > .container {
  padding-top: 28px;
  padding-bottom: 44px;
}

.page-section h1 {
  font-size: 2em;
  line-height: 1.18;
  margin-bottom: 14px;
  word-break: keep-all;
}

.page-section p,
.history-list li,
.feature-list li,
.project-list li {
  font-size: 0.95em;
  line-height: 1.65;
}

.map-container {
  width: 100%;
  height: auto;
  min-height: calc(100dvh - 150px);
  padding: 18px;
}

svg {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 170px);
}

.history-list,
.project-list {
  width: 100%;
  max-width: none;
}

#projects-section .project-list {
  margin-top: 18px;
  min-height: 0;
}

.content-pagination {
  gap: 12px;
  margin-top: 20px;
}

.content-page-button {
  min-width: 104px;
}

#projects-section .project-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  align-items: start;
  padding-left: 14px;
  margin-bottom: 10px;
  font-size: 0.88em;
  line-height: 1.4;
}

#projects-section .project-list li::before {
  width: 4px;
  height: 4px;
  top: 0.72em;
}

#projects-section .project-year {
  grid-column: 1;
  flex: none;
  margin-right: 0;
  white-space: nowrap;
  line-height: 1.4;
}

#projects-section .project-name {
  grid-column: 2;
  line-height: 1.45;
}

#projects-section .project-client {
  grid-column: 2;
  flex: none;
  margin-right: 0;
  text-align: left;
  font-size: 0.86em;
  line-height: 1.35;
}

#projects-section .project-link {
  grid-column: 2;
  flex: none;
  text-align: left;
  line-height: 1.2;
  margin-top: 4px;
}

#projects-section .project-link a {
  display: inline-block;
}

#projects-section .project-link:empty {
  display: none;
}

.vision-image-container {
  margin-top: 36px;
}

.vision-image {
  max-width: 92%;
}

.service-layout {
  gap: 22px;
  max-width: none;
}

.service-image-content {
  width: 100%;
  flex: none;
  max-height: 158px;
}

.service-image-content img {
  height: 100%;
  max-height: 158px;
  object-fit: cover;
}

.service-text-content .history-list {
  margin-top: 14px !important;
}

.service-text-content .history-list li {
  margin-bottom: 9px;
  line-height: 1.5;
}

.platform-grid,
.feature-grid,
.news-grid {
  gap: 12px;
  max-width: none;
}

.platform-grid {
  margin-top: 14px;
}

.about-container > p + p {
  margin-bottom: 24px !important;
}

.feature-grid {
  margin-top: 28px;
}

.platform-card {
  padding: 16px 14px;
  border-radius: 8px;
}

.platform-card-title {
  font-size: 1em;
  letter-spacing: 0;
  margin-bottom: 10px;
  padding-bottom: 12px;
}

.platform-card-desc {
  font-size: 0.86em;
  line-height: 1.5;
}

.feature-card {
  align-items: stretch;
  padding: 14px;
  border-radius: 8px;
}

.feature-card-left {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.feature-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  margin-bottom: 0;
}

.platform-features .feature-icon::before {
  width: 20px;
  height: 20px;
}

.feature-card-title {
  flex: 1;
  text-align: left;
  letter-spacing: 0;
  font-size: 0.86em;
}

.feature-list li {
  font-size: 0.8em;
  line-height: 1.32;
  margin-bottom: 5px;
}

.news-card {
  aspect-ratio: auto;
}

.news-card-image {
  display: none;
}

.news-card-content {
  min-height: 0;
  padding: 14px;
}

.news-card-category {
  margin-bottom: 12px;
}

.news-card-title {
  font-size: 1em;
  margin-bottom: 6px;
}

.news-card-date {
  margin-bottom: 10px;
}

.news-card-excerpt {
  font-size: 0.86em;
  line-height: 1.45;
  margin-bottom: 12px;
  -webkit-line-clamp: 2;
}

#news-section .news-grid {
  min-height: min(500px, 56dvh);
}

.site-disclaimer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78em;
}

.partners-grid {
  gap: 12px;
}

.partner-item {
  padding: 12px;
  aspect-ratio: 2.2 / 1;
}

.partner-item img {
  width: 94%;
  height: 74%;
  max-width: 150px;
}

.team-intro {
  font-size: 0.9em;
  line-height: 1.5;
  margin-top: 6px;
}

.team-photo {
  width: 100%;
  max-height: 150px;
  margin: 12px auto 18px;
}

.team-grid-title {
  margin-top: 12px;
}

.team-grid-leadership {
  grid-template-columns: repeat(2, 1fr);
}

.team-grid-engineering {
  grid-template-columns: 1fr 1fr;
}

/* 모바일: 왼쪽엔 선임, 오른쪽엔 해당 파트너가 오도록 행을 고정 (파트너 없으면 빈 칸) */
.team-grid-engineering .sr-platform { grid-column: 1; grid-row: 1; }
.team-grid-engineering .sub-platform { grid-column: 2; grid-row: 1; }
.team-grid-engineering .sr-ai { grid-column: 1; grid-row: 2; }
.team-grid-engineering .sub-ai { grid-column: 2; grid-row: 2; }
.team-grid-engineering .sr-spatial { grid-column: 1; grid-row: 3; }
.team-grid-engineering .sr-data { grid-column: 1; grid-row: 4; }
.team-grid-engineering .sr-abm { grid-column: 1; grid-row: 5; }
.team-grid-engineering .sub-3d { grid-column: 2; grid-row: 5; }

.team-member-card {
  min-height: 78px;
  padding: 9px 7px;
}

.team-member-role {
  font-size: 0.68em;
}

.team-member-name {
  font-size: 0.88em;
}

.team-member-desc {
  font-size: 0.66em;
}

.page-section.about-section .history-list[style*="font-size: 1.1em"] {
  margin-top: 18px !important;
  font-size: 0.95em !important;
}

.page-section.about-section .history-list[style*="font-size: 1.1em"] li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.social-icons {
  margin-top: 26px !important;
  gap: 20px !important;
}

.shortcut-btn-container {
  margin-top: 24px;
}

.shortcut-btn {
  width: 100%;
  max-width: 320px;
  padding: 12px 18px;
  font-size: 0.95em;
}
    }

    @media (max-width: 480px) {
.left-nav {
  padding-left: 12px;
  padding-right: 12px;
}

.mobile-lang-switcher {
  right: 12px;
}

.left-nav-brand .tagline {
  display: none;
}

.page-section .container,
.container {
  padding-left: 14px;
  padding-right: 14px;
}

.page-section h1 {
  font-size: 1.75em;
}

.platform-card,
.feature-card,
.news-card-content {
  padding: 16px;
}

.feature-list {
  font-size: 0.92em;
}

#projects-section .project-list {
  margin-top: 14px;
}

.content-pagination {
  gap: 4px;
}

.content-page-button {
  min-width: 92px;
  padding-left: 8px;
  padding-right: 8px;
}

#projects-section .project-list li {
  grid-template-columns: 70px minmax(0, 1fr);
  column-gap: 8px;
  margin-bottom: 8px;
  font-size: 0.84em;
}

.partners-grid {
  gap: 10px;
}

.partner-item {
  padding: 10px;
}

.team-grid-leadership,
.team-grid-engineering {
  grid-template-columns: repeat(2, 1fr);
}
    }

    @media (min-width: 700px) and (max-width: 768px) {
.service-image-content {
  max-height: 210px;
}

.service-image-content img {
  max-height: 210px;
}

.platform-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-grid {
  grid-template-columns: repeat(2, 1fr);
}

.news-card-image {
  display: none;
}

.platform-card {
  min-height: 132px;
}

.feature-card {
  min-height: 150px;
}
    }

/* ------------------------------------------------------------------
   Mobile website shell

   Desktop keeps the original one-page, fixed-section presentation. Mobile
   uses normal document flow and real URLs so long content never competes
   with section-swipe navigation.
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --mobile-home-panel-base-scale: 0.76;
  }

  html {
    min-height: 100%;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background: var(--mobile-surface);
  }

  body {
    display: block;
    min-height: 100%;
    padding-top: var(--mobile-header-height);
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--mobile-surface);
    color: var(--mobile-ink);
    -webkit-font-smoothing: antialiased;
  }

  body.mobile-menu-open,
  body.news-detail-open,
  body.home-info-pinned {
    overflow: hidden;
  }

  body.home-info-resizing {
    cursor: ns-resize;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Compact mobile header */
  .left-nav {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: var(--mobile-header-height);
    min-height: var(--mobile-header-height);
    padding: env(safe-area-inset-top, 0px) 16px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    background: rgba(251, 250, 249, 0.96);
    border: 0;
    border-bottom: 1px solid var(--mobile-line);
    box-shadow: none;
    backdrop-filter: none;
    z-index: 1000;
  }

  .left-nav-brand {
    min-height: 64px;
    margin: 0;
    display: flex;
    align-items: center;
  }

  .left-nav-brand .brand-wordmark {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .left-nav-brand .tagline {
    display: none;
  }

  .mobile-lang-switcher {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 66px;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
  }

  .mobile-lang-switcher button {
    min-width: 24px;
    min-height: 44px;
    display: grid;
    place-items: center;
  }

  .mobile-lang-switcher .divider {
    width: 12px;
  }

  .mobile-menu-toggle {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: 10px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    background: transparent;
    color: var(--mobile-ink);
    cursor: pointer;
    z-index: 3;
  }

  .mobile-menu-toggle-line {
    width: 22px;
    height: 1px;
    display: block;
    background: currentColor;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-menu-open .mobile-menu-toggle-line:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu-open .mobile-menu-toggle-line:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu-toggle:focus-visible,
  .mobile-lang-switcher button:focus-visible {
    outline: 2px solid var(--mobile-red);
    outline-offset: 2px;
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: var(--mobile-header-height) 0 0;
    display: block;
    background: rgba(39, 36, 36, 0.22);
    backdrop-filter: blur(2px);
    z-index: 1;
  }

  .mobile-nav-backdrop[hidden] {
    display: none;
  }

  .left-nav-menu {
    position: fixed;
    inset: var(--mobile-header-height) 0 0;
    width: 100%;
    height: calc(100dvh - var(--mobile-header-height));
    max-height: none;
    padding: var(--mobile-space-2xl) var(--mobile-page-gutter)
      max(var(--mobile-space-2xl), env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--mobile-surface);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 260ms;
    scrollbar-width: none;
    z-index: 2;
  }

  .mobile-menu-open .left-nav-menu {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  /* One-tap sibling navigation for service and platform detail pages. */
  .mobile-context-nav.is-active {
    position: sticky;
    top: var(--mobile-header-height);
    width: 100%;
    height: 48px;
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--mobile-line);
    background: var(--mobile-surface);
    z-index: 900;
  }

  .mobile-context-nav[hidden] {
    display: none;
  }

  .mobile-context-nav-track {
    height: 100%;
    padding: 0 var(--mobile-space-md);
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }

  .mobile-context-nav-track::-webkit-scrollbar {
    display: none;
  }

  .mobile-context-nav-link {
    position: relative;
    min-width: max-content;
    min-height: 48px;
    padding: 0 var(--mobile-space-md);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-bottom: 2px solid transparent;
    color: var(--mobile-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    scroll-snap-align: center;
    transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1),
      border-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-context-nav-link.active,
  .mobile-context-nav-link[aria-current='page'] {
    border-bottom-color: var(--mobile-red);
    color: var(--mobile-red);
    font-weight: 700;
  }

  html.context-nav-direction-forward {
    --context-nav-enter-x: 8px;
    --context-page-exit-x: -18px;
    --context-page-enter-x: 18px;
  }

  html.context-nav-direction-backward {
    --context-nav-enter-x: -8px;
    --context-page-exit-x: 18px;
    --context-page-enter-x: -18px;
  }

  .page-section.context-nav-incoming {
    position: fixed;
    inset: calc(var(--mobile-header-height) + 48px) 0 0;
    width: 100%;
    height: auto;
    min-height: calc(100svh - var(--mobile-header-height) - 48px);
    display: block;
    overflow: hidden;
    pointer-events: none;
    z-index: 850;
  }

  html.context-nav-transitioning .mobile-context-nav-track,
  html.context-nav-transitioning .page-section.context-nav-outgoing > .container,
  html.context-nav-transitioning .page-section.context-nav-incoming > .container {
    will-change: transform, opacity;
  }

  html.context-nav-transitioning .mobile-context-nav-track {
    animation: mobile-context-nav-enter 240ms cubic-bezier(0.22, 1, 0.36, 1)
      both;
    pointer-events: none;
  }

  html.context-nav-transitioning
    .page-section.context-nav-outgoing
    > .container {
    animation: mobile-context-page-exit 220ms cubic-bezier(0.25, 1, 0.5, 1)
      both;
  }

  html.context-nav-transitioning
    .page-section.context-nav-incoming
    > .container {
    animation: mobile-context-page-enter 280ms cubic-bezier(0.22, 1, 0.36, 1)
      both;
  }

  @keyframes mobile-context-nav-enter {
    from {
      opacity: 0.72;
      transform: translateX(var(--context-nav-enter-x));
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes mobile-context-page-exit {
    from {
      opacity: 1;
      transform: translateX(0);
    }
    to {
      opacity: 0;
      transform: translateX(var(--context-page-exit-x));
    }
  }

  @keyframes mobile-context-page-enter {
    from {
      opacity: 0;
      transform: translateX(var(--context-page-enter-x));
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .mobile-context-nav-link:focus-visible {
    color: var(--mobile-red);
    outline: 2px solid var(--mobile-red);
    outline-offset: -4px;
  }

  @media (prefers-reduced-motion: reduce) {
    html.context-nav-transitioning .mobile-context-nav-track,
    html.context-nav-transitioning
      .page-section.context-nav-outgoing
      > .container,
    html.context-nav-transitioning
      .page-section.context-nav-incoming
      > .container {
      animation: none !important;
    }
  }

  .left-nav-menu > .left-nav-item,
  .left-nav-menu > .left-nav-item.section-title {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 1px solid var(--mobile-line);
    border-radius: 0;
    background: transparent;
    color: var(--mobile-ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
  }

  .left-nav-menu > .left-nav-item.active {
    background: transparent;
    color: var(--mobile-red);
  }

  .left-nav-item.collapsible {
    padding-right: 40px !important;
  }

  .left-nav-item.collapsible::after {
    right: 4px;
    font-size: 0.8rem;
  }

  .left-nav-item.collapsible.expanded {
    margin: 0;
    color: var(--mobile-red);
  }

  .sub-menu-container {
    position: static;
    inset: auto;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transition: max-height 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 160ms ease;
  }

  .sub-menu-container.expanded {
    max-height: 520px;
    margin: 0;
    padding: var(--mobile-space-sm) 0 var(--mobile-space-lg);
    opacity: 1;
    pointer-events: auto;
  }

  .sub-menu-container .left-nav-item {
    min-height: 48px;
    margin: 0;
    padding: 0 0 0 var(--mobile-space-lg);
    display: flex;
    align-items: center;
    border-radius: 0;
    background: transparent;
    color: var(--mobile-muted);
    font-size: 0.94rem;
  }

  .sub-menu-container .left-nav-item:hover,
  .sub-menu-container .left-nav-item:focus-visible {
    padding-left: var(--mobile-space-lg);
    color: var(--mobile-red);
    outline: none;
  }

  .sub-menu-container .left-nav-item.active {
    color: var(--mobile-red);
    font-weight: 700;
  }

  .mobile-doc-link.left-nav-item {
    display: flex;
  }

  .left-nav-footer,
  .scroll-nav,
  .grid-config-panel {
    display: none;
  }

  /* Separate, naturally scrolling mobile pages */
  .page-section,
  .page-section.scroll-up,
  .page-section.scroll-down {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: calc(100svh - var(--mobile-header-height));
    padding: 0;
    display: none;
    overflow: visible;
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: auto;
  }

  .page-section.active-section {
    display: block;
    opacity: 1;
    transform: none;
    z-index: auto;
  }

  .page-section:not(.active-section) .container,
  .page-section:not(.active-section) h1,
  .page-section:not(.active-section) p,
  .page-section:not(.active-section) .map-container {
    opacity: 1;
    transform: none;
  }

  .page-section.about-section::before {
    position: fixed;
    inset: var(--mobile-header-height) 0 0;
    background-size: 48px 48px;
    opacity: 0.36;
  }

  .page-section .container,
  .page-section.top-aligned > .container,
  .container {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: var(--mobile-space-2xl) var(--mobile-page-gutter)
      var(--mobile-space-4xl);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
  }

  .page-section h1 {
    margin: 0 0 var(--mobile-space-xl);
    color: var(--mobile-red) !important;
    font-size: var(--mobile-type-display-size);
    font-weight: var(--mobile-type-display-weight);
    line-height: var(--mobile-type-display-line-height);
    letter-spacing: var(--mobile-type-display-tracking);
    text-align: left;
    word-break: keep-all;
  }

  .page-section p,
  .page-section li {
    color: var(--mobile-muted);
    font-size: var(--mobile-type-body-size);
    line-height: var(--mobile-type-body-line-height);
  }

  .page-section .about-container > p,
  .page-section .service-text-content > p {
    text-align: left !important;
  }

  .page-section.platform-section h1,
  .page-section .service-text-content h1 {
    font-size: var(--mobile-detail-title-size);
    font-weight: var(--mobile-detail-title-weight);
    line-height: var(--mobile-detail-title-line-height);
    letter-spacing: var(--mobile-detail-title-tracking);
  }

  /* Home keeps its original content and only changes layout behavior. */
  .page-section[data-slug='home'] > .container {
    min-height: calc(100svh - var(--mobile-header-height));
    padding-top: var(--mobile-space-xl);
    padding-bottom: var(--mobile-space-xl);
    justify-content: center;
  }

  #gravity-grid-bg {
    top: var(--mobile-header-height);
    height: calc(100vh - var(--mobile-header-height));
    opacity: 0.55;
  }

  .map-container {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    margin: 0;
    padding: 0;
    transform-origin: center;
    transition: transform var(--web-motion-page) var(--web-ease-out),
      opacity var(--web-motion-page) var(--web-ease-out);
  }

  body.home-info-pinned .page-section[data-slug='home'] .map-container,
  body.home-info-visible .page-section[data-slug='home'] .map-container {
    position: relative;
    z-index: 1100;
    transform: translateY(
        var(--mobile-home-panel-shift, max(-29dvh, -250px))
      )
      scale(
        var(
          --mobile-home-panel-scale,
          var(--mobile-home-panel-base-scale)
        )
      );
  }

  @media (max-height: 830px) {
    :root {
      --mobile-home-panel-base-scale: 0.69;
    }
  }

  @media (max-height: 760px) {
    :root {
      --mobile-home-panel-base-scale: 0.62;
    }
  }

  @media (max-height: 680px) {
    :root {
      --mobile-home-panel-base-scale: 0.56;
    }
  }

  body.home-info-resizing .page-section[data-slug='home'] .map-container {
    transition: none;
  }

  .map-container > svg {
    width: 100%;
    height: 100%;
    max-height: none;
    display: block;
  }

  /* Home detail panel becomes a clear bottom sheet */
  .info-top-right {
    display: none;
  }

  .info-panel-right {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--mobile-info-panel-height, min(58dvh, 500px));
    padding: var(--mobile-space-2xl) var(--mobile-page-gutter)
      max(var(--mobile-space-xl), env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid var(--mobile-line);
    border-radius: 20px 20px 0 0;
    background: var(--mobile-surface);
    box-shadow: 0 -18px 48px rgba(39, 36, 36, 0.12);
    align-items: stretch;
    transform: translateY(24px);
    transition: opacity 200ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1200;
  }

  .info-panel-right.show {
    transform: translateY(
      var(--mobile-info-panel-drag-offset, 0px)
    );
  }

  .info-panel-resize-handle {
    position: absolute;
    top: 0;
    left: 50%;
    min-width: 96px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateX(-50%);
    cursor: ns-resize;
    touch-action: none;
    z-index: 2;
  }

  .info-panel-resize-handle span {
    width: 40px;
    height: 3px;
    border-radius: 99px;
    background: rgba(84, 73, 73, 0.28);
    transition: width 160ms ease, background-color 160ms ease;
  }

  .info-panel-resize-handle:hover span,
  .info-panel-resize-handle:focus-visible span,
  .info-panel-resize-handle.is-dragging span {
    width: 52px;
    background: var(--mobile-red);
  }

  .info-panel-resize-handle.is-dismiss-ready span {
    width: 64px;
  }

  .info-panel-resize-handle:focus-visible {
    outline: 2px solid var(--mobile-red);
    outline-offset: -4px;
    border-radius: 12px;
  }

  body.home-info-resizing .info-panel-right {
    transition: none;
  }

  .mobile-info-title {
    display: block;
    margin: 0 var(--mobile-space-3xl) var(--mobile-space-md) 0;
    color: var(--mobile-red);
    font-size: 1.65rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
  }

  .panel-close-btn {
    top: var(--mobile-space-lg);
    right: var(--mobile-space-lg);
    width: 44px;
    height: 44px;
  }

  .info-panel-right .subtitle,
  .info-panel-right .description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .info-panel-right .description img,
  .info-panel-right .description img.sidebar-full-bleed,
  .info-panel-right .description img:not(.sidebar-full-bleed) {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(160px, 38vh);
    max-height: min(160px, 38dvh);
    object-fit: contain;
    margin: 0 auto var(--mobile-space-md) !important;
  }

  .info-panel-right #info-description {
    padding-right: 0;
  }

  .info-detail-btn {
    width: 100%;
    min-height: 48px;
    margin-top: var(--mobile-space-xl);
    border-radius: 4px;
    font-size: 0.9rem;
  }

  /* Platform pages: editorial sequence, not stacked generic cards */
  .page-section.platform-section .about-container {
    padding-top: var(--mobile-space-lg);
  }

  .page-section.platform-section h1 + p {
    margin: 0 0 var(--mobile-space-lg) !important;
    color: var(--mobile-ink) !important;
    font-size: var(--mobile-type-section-size) !important;
    font-weight: var(--mobile-type-section-weight) !important;
    line-height: var(--mobile-type-section-line-height) !important;
    text-align: left !important;
  }

  .page-section.platform-section h1 + p + p {
    margin: 0 0 var(--mobile-space-3xl) !important;
    color: var(--mobile-muted) !important;
    font-size: 1rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
  }

  .platform-grid {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--mobile-ink);
    counter-reset: platform-pillar;
  }

  .platform-card {
    min-height: 0;
    padding: var(--mobile-space-xl) 0;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
    column-gap: var(--mobile-space-md);
    border: 0;
    border-bottom: 1px solid var(--mobile-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    counter-increment: platform-pillar;
  }

  .platform-card::before {
    content: '0' counter(platform-pillar);
    padding-top: 3px;
    color: var(--mobile-red);
    font-size: var(--mobile-type-micro-size);
    font-variant-numeric: tabular-nums;
  }

  .platform-card:hover {
    transform: none;
    background: transparent;
    box-shadow: none;
  }

  .platform-card-title,
  .platform-card-desc {
    grid-column: 2;
    text-align: left;
  }

  .platform-card-title {
    margin: 0 0 var(--mobile-space-sm);
    padding: 0;
    color: var(--mobile-ink);
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.025em;
  }

  .platform-card-title::after {
    content: none;
  }

  .platform-card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .feature-grid {
    margin: var(--mobile-space-3xl) 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--mobile-ink);
  }

  .feature-card {
    min-height: 0;
    padding: var(--mobile-space-xl) 0;
    display: block;
    border: 0;
    border-bottom: 1px solid var(--mobile-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--mobile-line);
  }

  .feature-card-left {
    width: 100%;
    margin: 0 0 var(--mobile-space-lg);
    padding: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: var(--mobile-space-md);
    border: 0;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    margin: 0;
    background: rgba(220, 38, 38, 0.06);
  }

  .feature-card-title {
    color: var(--mobile-ink);
    font-size: var(--mobile-type-item-size);
    line-height: var(--mobile-type-item-compact-line-height);
    letter-spacing: var(--mobile-type-item-tracking);
    text-align: left;
  }

  .feature-card-right {
    padding-left: 52px;
  }

  .feature-list li {
    margin-bottom: var(--mobile-space-sm);
    padding-left: var(--mobile-space-md);
    color: var(--mobile-muted);
    font-size: var(--mobile-type-support-size);
    line-height: var(--mobile-type-list-line-height);
    text-align: left;
  }

  /* Services and company pages */
  .service-layout {
    width: 100%;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column-reverse;
    gap: var(--mobile-space-2xl);
  }

  .service-text-content,
  .service-text-content h1,
  .service-text-content p {
    text-align: left !important;
  }

  .service-image-content {
    width: 100%;
    max-height: none;
    border: 1px solid var(--mobile-line);
    border-radius: 4px;
    box-shadow: none;
  }

  .service-image-content img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .history-list {
    width: 100%;
    max-width: none;
    margin: var(--mobile-space-2xl) 0 0;
  }

  .history-list li {
    margin-bottom: var(--mobile-space-lg);
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* History: stack date and description so long Korean and English entries
     keep a readable measure on narrow screens. Typography stays inherited. */
  .page-section[data-slug='history'] .history-list {
    margin-top: var(--mobile-space-xl);
    border-top: 1px solid var(--mobile-ink);
  }

  .page-section[data-slug='history'] .history-list li {
    margin: 0;
    padding: var(--mobile-space-lg) 0 var(--mobile-space-lg)
      var(--mobile-space-xl);
    border-bottom: 1px solid var(--mobile-line);
  }

  .page-section[data-slug='history'] .history-list li::before {
    left: 0;
    top: calc(var(--mobile-space-lg) + 0.6em);
  }

  .page-section[data-slug='history'] .history-list li > strong {
    display: block;
    margin-bottom: var(--mobile-space-xs);
  }

  .page-section[data-slug='history'] .history-desktop-gap {
    display: none;
  }

  .page-section[data-slug='history'] .history-entry-description {
    display: block;
  }

  .page-section[data-slug='history'] .history-entry {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--mobile-space-xs);
  }

  .vision-image-container {
    margin-top: var(--mobile-space-2xl);
  }

  .vision-image {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
  }

  /* Projects: readable records with 10 items per page */
  #projects-section .about-container {
    align-items: stretch;
    padding-top: var(--mobile-space-lg);
  }

  #projects-section .project-content {
    width: 100%;
  }

  #projects-section .project-content > p {
    max-width: 30rem;
    margin: 0 !important;
    color: var(--mobile-ink) !important;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    text-align: left;
  }

  #projects-section .project-list,
  html[lang='en'] #projects-section .project-list {
    width: 100%;
    min-height: 0;
    margin: var(--mobile-space-3xl) 0 0;
    border-top: 1px solid var(--mobile-ink);
  }

  #projects-section .project-list li,
  html[lang='en'] #projects-section .project-list li {
    position: relative;
    margin: 0;
    padding: var(--mobile-space-xl) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      'year link'
      'name name'
      'client client';
    column-gap: var(--mobile-space-lg);
    row-gap: var(--mobile-space-sm);
    border-bottom: 1px solid var(--mobile-line);
    color: var(--mobile-ink);
    font-size: 1rem;
    line-height: 1.5;
  }

  #projects-section .project-list li::before {
    content: none;
  }

  #projects-section .project-year {
    grid-area: year;
    margin: 0;
    color: var(--mobile-red);
    font-size: var(--mobile-type-label-size);
    font-weight: var(--mobile-type-label-weight);
    letter-spacing: 0.04em;
  }

  #projects-section .project-name {
    grid-area: name;
    color: var(--mobile-ink);
    font-size: var(--mobile-type-item-size);
    font-weight: var(--mobile-type-item-weight);
    line-height: var(--mobile-type-item-line-height);
  }

  #projects-section .project-client,
  html[lang='en'] #projects-section .project-client {
    grid-area: client;
    margin: 0;
    color: var(--mobile-muted);
    font-size: var(--mobile-type-meta-size);
    font-weight: var(--mobile-type-meta-weight);
    line-height: var(--mobile-type-meta-line-height);
    text-align: left;
    white-space: normal;
  }

  #projects-section .project-link {
    grid-area: link;
    margin: 0;
    text-align: right;
  }

  #projects-section .project-link a {
    min-height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: flex-start;
    border-radius: 0;
    background: transparent;
    color: var(--mobile-red);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  /* News: one-column reading queue */
  #news-section .about-container {
    align-items: stretch;
    padding-top: var(--mobile-space-md);
    padding-bottom: var(--mobile-space-2xl);
  }

  #news-section h1 {
    margin-bottom: var(--mobile-space-lg);
  }

  #news-section .about-container > p {
    max-width: 30rem;
    margin: 0 0 var(--mobile-space-lg) !important;
    color: var(--mobile-ink) !important;
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    text-align: left;
  }

  #news-section .news-grid {
    min-height: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-space-sm);
  }

  .news-card {
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    border: 1px solid var(--mobile-line);
    border-radius: 10px;
    background: rgba(251, 250, 249, 0.78);
    box-shadow: none;
  }

  #news-section .news-card:hover {
    transform: none;
    border-color: var(--mobile-line);
    box-shadow: none;
  }

  #news-section .news-card--interactive {
    cursor: pointer;
  }

  #news-section .news-card--interactive:focus-visible {
    border-color: var(--mobile-red);
    outline: 2px solid rgba(220, 38, 38, 0.2);
    outline-offset: 2px;
  }

  .news-card-content {
    min-height: 0;
    padding: var(--mobile-space-md) var(--mobile-space-lg);
  }

  #news-section .news-card .news-card-category {
    margin-bottom: var(--mobile-space-sm);
    padding: 4px 8px;
    font-size: var(--mobile-type-label-size);
    font-weight: var(--mobile-type-label-weight);
  }

  #news-section .news-card .news-card-title {
    margin-bottom: var(--mobile-space-xs);
    color: var(--mobile-ink);
    font-size: var(--mobile-type-item-size);
    font-weight: var(--mobile-type-item-weight);
    line-height: var(--mobile-type-item-line-height);
    letter-spacing: var(--mobile-type-item-tracking);
  }

  #news-section .news-card .news-card-date {
    margin-bottom: 0;
    color: var(--mobile-muted);
    font-size: var(--mobile-type-meta-size);
    font-weight: var(--mobile-type-meta-weight);
    line-height: var(--mobile-type-meta-line-height);
  }

  .news-card-actions {
    margin-top: var(--mobile-space-md);
    padding-top: 0;
  }

  #news-section .news-card-actions {
    display: none;
  }

  .news-card-more {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .content-pagination {
    width: 100%;
    margin: var(--mobile-space-2xl) 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--mobile-space-sm);
  }

  .content-page-button {
    min-width: 0;
    min-height: var(--mobile-control-height);
    padding: 0 var(--mobile-space-sm);
    font-size: var(--mobile-type-control-size);
  }

  .content-page-button:last-child {
    justify-self: stretch;
  }

  .content-page-status {
    min-width: 64px;
    font-size: var(--mobile-type-label-size);
  }

  #news-section .content-pagination {
    margin-top: var(--mobile-space-lg);
  }

  .news-detail-modal {
    align-items: end;
    padding: 0;
    background: rgba(39, 36, 36, 0.35);
    backdrop-filter: blur(3px);
  }

  .news-detail-dialog {
    width: 100%;
    max-height: calc(92dvh - env(safe-area-inset-top, 0px));
    padding: var(--mobile-space-3xl) var(--mobile-page-gutter)
      max(var(--mobile-space-2xl), env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 20px 20px 0 0;
    background: var(--mobile-surface);
    box-shadow: 0 -18px 48px rgba(39, 36, 36, 0.14);
  }

  .news-detail-image {
    width: 100%;
    max-height: 44dvh;
    object-fit: contain;
    border-radius: 4px;
  }

  /* Dense collections retain useful columns without tiny type */
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--mobile-space-md);
  }

  .team-grid-leadership,
  .team-grid-engineering {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-member-card {
    min-height: 96px;
    padding: var(--mobile-space-md);
  }

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

    .left-nav-menu,
    .mobile-menu-toggle-line,
    .map-container,
    .info-panel-right,
    .info-panel-resize-handle span {
      transition-duration: 0.01ms !important;
    }
  }
}

/* Company experiments promoted from the local Aceternity lab. */
.page-section[data-slug='history'] .history-timeline-wrap {
  position: relative;
  width: 80%;
  max-width: 600px;
  /* The title and timeline are flex siblings here, so both margins apply.
     Eight pixels plus the title's 20px reproduces the experiment's 28px gap. */
  margin: 8px auto 0;
}

.page-section[data-slug='history'] .history-timeline-list {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.page-section[data-slug='history'] .history-timeline-list li {
  position: relative;
  min-height: 58px;
  margin: 0;
  padding: 16px 0 16px 34px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  border: 0;
  color: rgba(120, 120, 120, 1);
  font-size: 1em;
  line-height: 1.55;
  opacity: 0;
  transform: translateX(12px);
}

.page-section[data-slug='history'].active-section .history-timeline-list li {
  animation: mim-history-item-in 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--history-item-delay);
}

.page-section[data-slug='history'] .history-timeline-list li:nth-child(1) { --history-item-delay: 160ms; }
.page-section[data-slug='history'] .history-timeline-list li:nth-child(2) { --history-item-delay: 230ms; }
.page-section[data-slug='history'] .history-timeline-list li:nth-child(3) { --history-item-delay: 300ms; }
.page-section[data-slug='history'] .history-timeline-list li:nth-child(4) { --history-item-delay: 370ms; }
.page-section[data-slug='history'] .history-timeline-list li:nth-child(5) { --history-item-delay: 440ms; }
.page-section[data-slug='history'] .history-timeline-list li:nth-child(6) { --history-item-delay: 510ms; }

.page-section[data-slug='history'] .history-timeline-list li::before {
  z-index: 2;
  top: 23px;
  left: 3px;
  box-sizing: border-box;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  background: var(--web-color-accent);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.22);
  transform: scale(0);
}

.page-section[data-slug='history'].active-section .history-timeline-list li::before {
  animation: mim-history-node-in 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--history-item-delay) + 80ms);
}

.page-section[data-slug='history'] .history-timeline-list strong {
  color: #403c3c;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.page-section[data-slug='history'] .history-timeline-list .history-desktop-gap {
  display: none;
}

.page-section[data-slug='history'] .history-timeline-list .history-entry,
.page-section[data-slug='history'] .history-timeline-list .history-entry-description {
  color: #6f6a6a;
  font-weight: 400;
}

.page-section[data-slug='history'] .history-timeline-list .history-entry {
  display: contents;
}

.history-timeline-track {
  position: absolute;
  z-index: 0;
  top: 28px;
  bottom: 28px;
  left: 8px;
  width: 1px;
  overflow: hidden;
  background: rgba(120, 120, 120, 0.22);
}

.history-timeline-track > span {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--web-color-accent);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.2);
  transform: scaleY(0);
  transform-origin: top;
}

.page-section[data-slug='history'].active-section .history-timeline-track > span {
  animation: mim-history-track-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
}

.page-section[data-slug='history'].active-section.history-motion-waiting .history-timeline-list li,
.page-section[data-slug='history'].active-section.history-motion-waiting .history-timeline-list li::before,
.page-section[data-slug='history'].active-section.history-motion-waiting .history-timeline-track > span {
  animation: none;
}

.page-section[data-slug='partners'] .partner-logo-cloud {
  width: min(100%, 920px);
  max-width: 920px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(32px, 4vh, 44px) clamp(36px, 4.5vw, 64px);
}

.page-section[data-slug='partners'] .partner-logo-cloud .partner-item {
  min-width: 0;
  height: 56px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  aspect-ratio: auto;
  contain: layout paint;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(-10px);
}

.page-section[data-slug='partners'].active-section .partner-logo-cloud .partner-item {
  animation: mim-logo-cloud-in 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(100ms + var(--logo-index) * 75ms);
}

.page-section[data-slug='partners'] .partner-logo-cloud .partner-item:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.page-section[data-slug='partners'] .partner-logo-cloud .partner-item img {
  width: min(100%, 168px);
  height: 48px;
  max-width: 168px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.62);
  transition: filter 280ms cubic-bezier(0.22, 1, 0.36, 1), transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-section[data-slug='partners'] .partner-logo-cloud .partner-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-2px);
}

@keyframes mim-history-item-in {
  to { opacity: 1; transform: translateX(0); }
}

@keyframes mim-history-node-in {
  to { transform: scale(1); }
}

@keyframes mim-history-track-in {
  to { transform: scaleY(1); }
}

@keyframes mim-logo-cloud-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@media (max-width: 768px) {
  .page-section[data-slug='history'] .history-timeline-wrap {
    width: 100%;
    max-width: none;
    margin: var(--mobile-space-xl) 0 0;
  }

  .page-section[data-slug='history'] .history-timeline-list {
    margin: 0;
    border-top: 0;
  }

  .page-section[data-slug='history'] .history-timeline-list li {
    min-height: 0;
    padding: var(--mobile-space-lg) 0 var(--mobile-space-lg) 28px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--mobile-space-xs);
    border-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .page-section[data-slug='history'] .history-timeline-list li::before {
    top: calc(var(--mobile-space-lg) + 0.6em);
  }

  .page-section[data-slug='partners'] .partner-logo-cloud {
    width: 100%;
    margin-top: var(--mobile-space-2xl);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .page-section[data-slug='partners'] .partner-logo-cloud .partner-item {
    height: 48px;
  }

  .page-section[data-slug='partners'] .partner-logo-cloud .partner-item img {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-section[data-slug='history'] .history-timeline-list li,
  .page-section[data-slug='history'] .history-timeline-list li::before,
  .page-section[data-slug='history'] .history-timeline-track > span,
  .page-section[data-slug='partners'] .partner-logo-cloud .partner-item {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* Projects: Aceternity-inspired tracing beam and editorial rows. */
@media (min-width: 901px) {
  #projects-section .project-list {
    position: relative;
    isolation: isolate;
    overflow: visible;
  }

  #projects-section .project-list::before {
    content: none;
  }

  #projects-section .project-list li {
    position: relative;
    z-index: 1;
    min-height: 52px;
    margin: 0;
    padding: 12px 0 12px 50px;
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) minmax(220px, 300px) 76px;
    gap: 24px;
    align-items: center;
    border-bottom: 0;
    line-height: 1.45;
    transition: background-color 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  #projects-section .project-list li:last-child {
    border-bottom: 0;
  }

  #projects-section .project-list li::before {
    content: '';
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 20px;
    width: 8px;
    height: 8px;
    border: 2px solid #fbfaf9;
    border-radius: 50%;
    background: var(--web-color-accent);
    transform: translateY(-50%);
    transition:
      transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  #projects-section .project-list li::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 26px;
    width: 1px;
    background: rgba(220, 38, 38, 0.24);
    transform: translateX(-50%);
    pointer-events: none;
  }

  #projects-section .project-list li.is-page-first::after {
    top: 50%;
  }

  #projects-section .project-list li.is-page-last::after {
    bottom: 50%;
  }

  #projects-section .project-list li:hover,
  #projects-section .project-list li:focus-within {
    background: rgba(220, 38, 38, 0.035);
  }

  #projects-section .project-list li:hover::before,
  #projects-section .project-list li:focus-within::before {
    transform: translateY(-50%) scale(1.5);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.24);
  }

  #projects-section .project-year,
  #projects-section .project-name,
  #projects-section .project-client,
  #projects-section .project-link {
    width: auto;
    min-width: 0;
    margin: 0;
    flex: none;
    flex-basis: auto;
  }

  #projects-section .project-year {
    color: var(--web-color-accent);
    font-variant-numeric: tabular-nums;
  }

  #projects-section .project-name {
    color: var(--web-color-copy);
  }

  #projects-section .project-client {
    justify-self: end;
    color: #595454;
    text-align: right;
  }

  #projects-section .project-link {
    justify-self: end;
    text-align: right;
  }

  html[lang='en'] #projects-section .project-client {
    width: auto;
    font-size: 0.7rem;
    line-height: 1.25;
    white-space: nowrap;
  }

  html[lang='en'] #projects-section .project-list li {
    min-height: 52px;
    margin: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    grid-template-columns: 94px minmax(0, 1fr) minmax(210px, 300px) 64px;
    gap: 18px;
    font-size: 0.9rem;
    line-height: 1.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  #projects-section .project-list li,
  #projects-section .project-list li::before {
    transition: none;
  }
}

/* News: Aceternity-inspired expandable editorial list. */
#news-section .news-grid-viewport {
  width: min(100%, 980px);
  max-width: 980px;
  min-height: calc(clamp(332px, 38vh, 380px) + 12px);
  margin: 12px auto 0;
  display: grid;
  overflow: hidden;
}

#news-section .news-grid {
  grid-area: 1 / 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  list-style: none;
  will-change: transform, opacity;
}

#news-section .news-card {
  position: relative;
  min-height: 166px;
  height: clamp(166px, 19vh, 190px);
  overflow: hidden;
  display: block;
  aspect-ratio: auto;
  border: 1px solid rgba(84, 73, 73, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
  text-align: left;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#news-section .news-card--interactive {
  cursor: pointer;
}

#news-section .news-card--interactive:focus-visible {
  border-color: var(--web-color-accent);
  outline: 2px solid rgba(220, 38, 38, 0.2);
  outline-offset: 2px;
}

#news-section .news-card-image {
  display: none;
}

#news-section .news-card-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

#news-section .news-card-category {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 4px 8px;
  justify-self: start;
  border-radius: 5px;
  background: rgba(220, 38, 38, 0.08);
  color: var(--web-color-accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

#news-section .news-card-copy {
  min-width: 0;
  margin-top: 24px;
  padding-right: 36px;
}

#news-section .news-card-title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #403c3c;
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.018em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: pretty;
}

#news-section .news-card-date {
  width: max-content;
  max-width: 100%;
  margin: 3px 0 0;
  color: #817b7b;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#news-section .news-card-indicator {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 73, 73, 0.16);
  border-radius: 50%;
  color: var(--web-color-accent);
  font-size: 0.9rem;
  line-height: 1;
  transition:
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

#news-section .news-card-indicator.is-shared-action-placeholder {
  visibility: hidden;
}

.news-detail-closing-mobile .news-detail-close {
  visibility: hidden;
}

.mobile-news-action-morph {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(84, 73, 73, 0.16);
  border-radius: 50%;
  background: rgba(251, 250, 249, 0.92);
  color: var(--web-color-accent);
  pointer-events: none;
  will-change: transform;
}

.news-card-action-glyph {
  display: block;
  width: 16px;
  height: 16px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1024px) and (min-width: 769px) {
  #news-section .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: hover) and (pointer: fine) {
  #news-section .news-card--interactive:hover {
    transform: none;
    border-color: rgba(220, 38, 38, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 28px rgba(39, 36, 36, 0.055);
  }

  #news-section .news-card--interactive:hover .news-card-indicator {
    border-color: var(--web-color-accent);
    background: var(--web-color-accent);
    color: #fbfaf9;
    transform: translateX(2px);
  }
}

#news-section .content-pagination {
  margin-top: 16px;
}

.news-detail-modal {
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  backdrop-filter: none;
  overflow: hidden;
  transition: none;
  isolation: isolate;
}

.news-detail-modal::before {
  content: none;
}

.news-detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(39, 36, 36, 0.28);
  backdrop-filter: none;
  cursor: default;
}

.news-detail-dialog {
  z-index: 2;
  width: min(700px, 100%);
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  padding: clamp(32px, 4vw, 44px);
  border: 1px solid rgba(84, 73, 73, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(39, 36, 36, 0.18);
  scrollbar-gutter: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(220, 38, 38, 0.28) transparent;
  opacity: 1;
  transform: none;
  transition: none;
  will-change: transform;
}

.news-react-motion .news-detail-dialog {
  will-change: transform;
}

.news-detail-content {
  position: relative;
  z-index: 1;
  transform: none;
  visibility: hidden;
}

.news-detail-content.is-visible {
  visibility: visible;
}

.news-detail-body {
  visibility: hidden;
  opacity: 1;
  transform: none;
  transition: none;
}

.news-detail-body-shell {
  min-height: 0;
}

.news-detail-body.is-visible {
  visibility: visible;
}

.news-detail-close {
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-color: rgba(84, 73, 73, 0.16);
  background: transparent;
  color: var(--web-color-accent);
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.news-detail-close:hover {
  border-color: var(--web-color-accent);
  background: var(--web-color-accent);
  color: #fbfaf9;
}

.news-detail-close:focus-visible {
  border-color: var(--web-color-accent);
  background: transparent;
  color: var(--web-color-accent);
  outline: 2px solid rgba(220, 38, 38, 0.28);
  outline-offset: 2px;
}

.news-detail-dialog .news-card-category {
  margin-bottom: 0;
}

.news-detail-dialog h2 {
  width: 100%;
  max-width: none;
  padding-right: 52px;
  margin-bottom: 8px;
  color: #272424;
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

/* Shared copy keeps matching metrics across both states so the category,
   title, and date can travel without a typographic jump. */
.news-react-motion .news-detail-dialog h2 {
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.news-react-motion .news-detail-dialog .news-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.news-react-motion #news-detail-date {
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.35;
}

#news-detail-date {
  margin-bottom: 0;
  color: #817b7b;
  font-variant-numeric: tabular-nums;
}

.news-detail-body-shell {
  margin-top: 28px;
  max-height: calc(100dvh - 260px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.news-detail-body-shell::-webkit-scrollbar {
  display: none;
}

.news-detail-image-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 6px;
}

.news-detail-image-frame .news-detail-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  margin: 0;
  border: 0;
  border-radius: 0;
}

#news-detail-excerpt {
  max-width: 62ch;
  color: #4f4a4a;
  font-size: 1rem;
  line-height: 1.75;
}

.news-detail-link {
  width: max-content;
  margin: 28px 0 0 auto;
  color: var(--web-color-accent);
}

@media (max-width: 768px) {
  #news-section .news-grid-viewport {
    min-height: 0;
    margin-top: 0;
  }

  #news-section .news-grid {
    width: 100%;
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--mobile-space-sm);
  }

  #news-section .news-card {
    min-height: 0;
    height: auto;
    border-color: var(--mobile-line);
    border-radius: var(--mobile-radius-card);
    background: rgba(251, 250, 249, 0.78);
  }

  #news-section .news-card--interactive,
  .news-detail-close,
  .news-detail-backdrop {
    -webkit-tap-highlight-color: transparent;
  }

  #news-section .news-card--interactive {
    touch-action: manipulation;
  }

  #news-section .news-card--interactive:focus:not(:focus-visible) {
    border-color: var(--mobile-line);
    outline: none;
  }

  #news-section .news-card-content {
    width: auto;
    height: auto;
    min-height: 0;
    padding: var(--mobile-space-md) var(--mobile-space-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    grid-template-areas:
      'category indicator'
      'copy indicator';
    gap: var(--mobile-space-sm) var(--mobile-space-md);
    align-items: center;
    text-align: left;
  }

  #news-section .news-card-category {
    grid-area: category;
    justify-self: start;
    align-self: start;
    margin: 0;
    font-size: var(--mobile-type-label-size);
    font-weight: var(--mobile-type-label-weight);
  }

  #news-section .news-card-copy {
    grid-area: copy;
    width: 100%;
    margin-top: 0;
    padding-right: 0;
    text-align: left;
  }

  #news-section .news-card-title {
    width: 100%;
    text-align: left;
    font-size: var(--mobile-type-item-size);
    font-weight: var(--mobile-type-item-weight);
    line-height: var(--mobile-type-item-line-height);
    letter-spacing: var(--mobile-type-item-tracking);
    text-wrap: pretty;
  }

  #news-section .news-card-date {
    justify-self: start;
    text-align: left;
    font-size: var(--mobile-type-meta-size);
    font-weight: var(--mobile-type-meta-weight);
    line-height: var(--mobile-type-meta-line-height);
  }

  #news-section .news-card-indicator {
    position: static;
    right: auto;
    bottom: auto;
    grid-area: indicator;
    justify-self: end;
    align-self: center;
    user-select: none;
    -webkit-user-select: none;
  }

  .news-detail-modal {
    place-items: end stretch;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .news-detail-dialog {
    width: 100%;
    max-height: calc(92dvh - env(safe-area-inset-top, 0px));
    padding: var(--mobile-space-3xl) var(--mobile-page-gutter)
      max(var(--mobile-space-2xl), env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: var(--mobile-radius-sheet) var(--mobile-radius-sheet) 0 0;
    background: var(--mobile-surface);
    box-shadow: 0 -18px 48px rgba(39, 36, 36, 0.14);
    text-align: left;
    transform-origin: center bottom;
  }

  #news-section .news-detail-dialog .news-card-category {
    justify-self: start;
    align-self: flex-start;
    text-align: left;
  }

  #news-section .news-detail-dialog .news-card-copy {
    width: 100%;
    margin-top: var(--mobile-space-lg);
    padding-right: var(--mobile-space-3xl);
    text-align: left;
  }

  .news-detail-body-shell {
    max-height: calc(92dvh - 210px);
  }

  .news-detail-dialog h2 {
    width: 100%;
    max-width: none;
    margin-left: 0;
    text-align: left;
  }

  #news-detail-date {
    margin-left: 0;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  #news-section .news-card,
  #news-section .news-card-indicator,
  .news-detail-modal,
  .news-detail-modal::before,
  .news-detail-dialog,
  .news-detail-content,
  .news-morph-shell {
    transition: none !important;
    animation: none !important;
  }
}

/* Desktop design-system contract. Kept last so legacy page rules can be
   migrated incrementally without creating competing page variants. */
@media (min-width: 769px) {
  .page-section {
    color: var(--web-color-copy);
    background: var(--web-color-surface);
    transition:
      transform var(--web-motion-page) var(--web-ease-out),
      opacity var(--web-motion-page) var(--web-ease-out);
  }

  .page-section .container,
  .page-section h1,
  .page-section p {
    transition-duration: var(--web-motion-page);
    transition-timing-function: var(--web-ease-out);
  }

  .page-section h1 {
    font-size: var(--web-type-display-size);
    line-height: var(--web-line-tight);
  }

  .left-nav-item,
  .left-nav-footer .footer-item,
  .left-nav-footer .lang-switcher button {
    min-height: var(--web-target-min);
  }

  .left-nav-item:not(.mobile-doc-link),
  .left-nav-footer .footer-item {
    display: flex;
    align-items: center;
  }

  .left-nav-item:focus-visible,
  .left-nav-footer .footer-item:focus-visible,
  .left-nav-footer .lang-switcher button:focus-visible,
  .content-page-button:focus-visible,
  .project-link a:focus-visible,
  .shortcut-btn:focus-visible,
  .info-detail-btn:focus-visible,
  .panel-close-btn:focus-visible {
    outline: var(--web-focus-ring);
    outline-offset: var(--web-focus-offset);
  }

  .project-link a,
  .shortcut-btn,
  .info-detail-btn,
  .panel-close-btn {
    min-height: var(--web-control-min);
  }

  .project-link a,
  .shortcut-btn,
  .info-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  #projects-section .project-link a {
    min-height: 32px;
    padding: 2px 12px;
  }

  .panel-close-btn {
    min-width: var(--web-control-min);
  }

  .platform-card,
  .feature-card,
  .news-card,
  .partner-item,
  .team-member-card {
    border-radius: var(--web-radius-card);
  }

  .platform-card:hover,
  .feature-card:hover,
  .partner-item:hover {
    transform: translateY(-3px);
  }

  .content-page-button:focus-visible {
    color: var(--web-color-accent);
    border-bottom-color: var(--web-color-accent);
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight !important;
  }
}

/* Shared public-page primitives. Presentation belongs here, not in templates. */
.section-shell-standard {
  max-width: 1100px;
}

.section-shell-news {
  max-width: 1200px;
}

.section-shell-projects {
  max-width: 1500px;
}

.section-heading {
  color: var(--web-color-accent);
}

.section-lead {
  margin-bottom: 20px;
  color: var(--web-color-copy);
  font-size: 1.2em;
}

.section-lead--platform {
  margin-top: 10px;
  margin-bottom: 0;
  font-weight: 600;
}

.section-summary {
  margin: 15px 0 40px;
  color: var(--web-color-muted);
  font-size: 1.05em;
}

.section-copy {
  margin-top: 20px;
  color: var(--web-color-muted);
}

.service-detail-heading,
.service-detail-lead {
  text-align: left;
}

.service-detail-list {
  width: 100%;
  margin: 20px 0 0;
}

.contact-list {
  margin-top: 30px;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .page-section[data-slug='history'] .history-timeline-wrap,
  .page-section[data-slug='contact'] .contact-list {
    margin-top: 0;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.social-link {
  color: var(--web-color-muted);
  transition: color var(--web-motion-fast) var(--web-ease-out);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--web-color-accent);
}

.social-link:focus-visible {
  outline: var(--web-focus-ring);
  outline-offset: var(--web-focus-offset);
}

.site-disclaimer--nav {
  max-width: none;
  margin-top: 18px;
  text-align: left;
}

.site-disclaimer--center {
  text-align: center;
}

.random-controls {
  margin-top: 10px;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--web-color-accent-tint);
}

.panel-media {
  display: block;
  height: auto;
  margin: 0 auto 30px;
  border: 0;
  border-radius: var(--web-radius-md);
}

.panel-media--65 {
  width: 65%;
}

.panel-media--75 {
  width: 75%;
}

.panel-media--85 {
  width: 85%;
}

.panel-media--full,
.panel-media--cover {
  width: 100%;
}

.panel-media--cover {
  height: 200px;
  object-fit: cover;
}

.panel-copy {
  margin-bottom: 15px;
  line-height: 1.6;
}

.panel-subheading {
  margin-bottom: 10px;
  padding-bottom: 8px;
  color: var(--web-color-copy);
  font-weight: 600;
  border-bottom: 1px solid var(--web-color-line);
}

.panel-feature-list {
  padding: 0;
  list-style: none;
}

.panel-feature-item {
  margin-bottom: 12px;
}

.panel-accent {
  color: var(--web-color-accent);
}
