/* 더체스EPA 부천 - 뉴모피즘 디자인 시스템(tokens.json + bundle.css)을 그대로 옮기고 사이트 전용 규칙을 뒤에 붙였다 */

/* 영문·숫자는 Ibrand, 한글은 Pretendard. Ibrand는 라틴 글자 범위에만 걸어 두어 같은 줄에서도 글자마다 나뉜다 */
@font-face {
  font-family: "Ibrand";
  src: url("fonts/Ibrand-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201D, U+2026;
}

:root {
  --base: #e8e8eb;
  --highlight: #ffffff;
  --shade: #c5c5ca;
  --charcoal: #303236;
  --grey: #52555a;
  --orange: #e65416;
  --orange-strong: #c9470e;
  --orange-ink: #b03c0a;
  --orange-haze: rgba(230, 84, 22, 0.15);
  --white: #ffffff;
  --line: #d6d6db;
  --scrim: rgba(232, 232, 235, 0.82);
  --todo-fill: rgba(230, 84, 22, 0.14);
  --space-24: 24px;
  --space-32: 32px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-128: 128px;
  --header-h: 96px;
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --font-display: Ibrand, Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --font-sans: Ibrand, Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}
/* 더체스EPA 부천 - 뉴모피즘. 한 가지 연회색 면이 빛과 그림자로만 튀어나오고 눌린다. 색과 치수는 tokens.json(tokens.css)에 있다 */

/* 튀어나옴(raise)과 눌림(press). 왼쪽 위 흰 빛 + 오른쪽 아래 그림자 */
:root {
  --raise: 8px 8px 18px var(--shade), -8px -8px 18px var(--highlight);
  --raise-sm: 4px 4px 10px var(--shade), -4px -4px 10px var(--highlight);
  --press: inset 4px 4px 9px var(--shade), inset -4px -4px 9px var(--highlight);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--base);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.en { font-family: var(--font-display); font-weight: 400; }

/* 면 */
.raise, .header-bar, .drawer, .hero-index, .hero-bar-item, .class-card, .table-wrap,
.accordion details, .cta-banner, .icon-btn, .process li::before, .btn--soft {
  background: var(--base); box-shadow: var(--raise);
}
.press, .feature-media, .site-footer > .container, .nav a[aria-current], .drawer-nav a[aria-current] {
  background: var(--base); box-shadow: var(--press);
}
/* 테두리 없는 면이라 고대비 설정에서는 선을 보탠다 */
@media (prefers-contrast: more) {
  .raise, .press, .header-bar, .drawer, .hero-index, .hero-bar-item, .class-card, .table-wrap,
  .accordion details, .cta-banner, .icon-btn, .btn--soft, .feature-media { outline: 1px solid var(--grey); }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border: 0; border-radius: var(--radius-pill);
  background: linear-gradient(145deg, var(--orange-strong), var(--orange-ink));
  color: var(--white); box-shadow: var(--raise-sm);
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: box-shadow .2s, color .2s;
}
.btn:hover { box-shadow: var(--raise); }
.btn:active { box-shadow: inset 3px 3px 8px rgba(0, 0, 0, .25); }
.btn--soft { color: var(--orange-ink); background: var(--base); box-shadow: var(--raise); }
.btn--soft:hover { box-shadow: var(--raise-sm); }
.btn--soft:active { box-shadow: var(--press); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn-arrow { font-family: var(--font-display); font-size: 18px; line-height: 1; }
.icon-btn {
  width: 56px; height: 56px; flex: none; display: inline-grid; place-items: center;
  border: 0; border-radius: 50%; color: var(--orange-ink); cursor: pointer; text-decoration: none;
}
.icon-btn:active { box-shadow: var(--press); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 1px solid var(--orange);
  font-weight: 600; font-size: 15px; text-decoration: none;
}

/* 머리말과 제목 */
.eyebrow {
  margin: 0 0 16px;
  font: 500 14px/1.4 var(--font-display); letter-spacing: .02em;
  color: var(--grey);
}
.section-head { max-width: 640px; margin-bottom: var(--space-64); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  margin: 0 0 20px;
  font: 500 40px/1.25 var(--font-display); letter-spacing: -0.02em;
}
.section-title .soft { color: var(--grey); }
.lead { margin: 0; font-size: 18px; line-height: 1.7; color: var(--grey); }

/* 구간: 바탕은 모두 같은 면. 구간은 여백으로만 나눈다 */
.section { padding: var(--space-128) 0; }

/* 상단 메뉴: 위에 떠 있는 둥근 막대 */
.site-header { position: fixed; inset: 16px 0 auto 0; z-index: 30; }
.header-bar {
  height: calc(var(--header-h) - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 0 10px 0 28px; border-radius: var(--radius-pill);
}
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.logo-en { font: 400 22px/1 var(--font-display); letter-spacing: .04em; }
.logo-ko { margin-top: 6px; font-size: 11px; letter-spacing: .08em; color: var(--grey); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 16px; border-radius: var(--radius-pill); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--charcoal); }
.nav a:hover { color: var(--orange-ink); }
.nav a[aria-current] { color: var(--orange-ink); font-weight: 600; }
.nav .btn { margin-left: 12px; color: var(--white); }
.menu-btn {
  display: none; width: 48px; height: 48px; padding: 0;
  border: 0; border-radius: 50%; background: var(--base); box-shadow: var(--raise-sm); color: inherit; cursor: pointer;
}
.menu-btn span, .menu-btn::before, .menu-btn::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; border-radius: 1px; background: currentColor; }

/* 옆 메뉴(모바일): 오른쪽에 떠서 열리는 판 */
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 40;
  width: min(86vw, 360px);
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border-radius: var(--radius-lg);
  transform: translateX(calc(100% + 40px)); visibility: hidden;
  transition: transform .3s, visibility .3s;
}
/* 열 때는 바로 보이게 해야 안쪽 닫기 버튼으로 포커스를 옮길 수 있다 */
.drawer.is-open { transform: none; visibility: visible; transition: transform .3s, visibility 0s; }
.drawer-top { display: flex; justify-content: flex-end; padding: 4px; }
.drawer-close { font: 400 24px/1 var(--font-display); color: var(--charcoal); }
.drawer-nav { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 6px; padding: 4px; }
.drawer-nav a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 17px; text-decoration: none;
}
.drawer-nav .num { font: 400 13px/1 var(--font-display); color: var(--grey); }
.drawer-nav a[aria-current], .drawer-nav a[aria-current] .num { color: var(--orange-ink); }
.drawer-cta { justify-content: center; margin: 4px; }

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; padding-top: var(--header-h);
  display: flex; flex-direction: column;
}
.hero--sub { min-height: 72svh; }
.hero-media { position: absolute; inset: var(--header-h) var(--gutter) 0; border-radius: var(--radius-lg); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.hero-word {
  position: absolute; right: -1%; top: 20%;
  font: 400 clamp(120px, 22vw, 320px)/.85 var(--font-display);
  color: var(--base); text-shadow: 4px 4px 8px var(--shade), -4px -4px 8px var(--highlight);
  pointer-events: none; user-select: none;
}
.hero-body {
  position: relative; flex: 1;
  display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 48px;
  padding-block: 64px;
}
.hero-index { padding: 24px; border-radius: var(--radius-md); }
.hero-index-num { position: relative; margin: 0 0 16px; padding-bottom: 14px; font: 400 18px/1 var(--font-display); }
.hero-index-num::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; border-radius: 2px; box-shadow: var(--press); }
.hero-index-num::before { content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; width: 40%; height: 4px; border-radius: 2px; background: var(--orange); }
.hero-index ul { margin: 0; padding: 0; list-style: none; }
.hero-index a { display: block; padding: 4px 0; font-size: 14px; color: var(--grey); text-decoration: none; }
.hero-index a:hover { color: var(--charcoal); }
.hero-index a[aria-current] { font-weight: 600; color: var(--orange-ink); }
.hero-text { position: relative; }
.hero-title { margin: 0 0 28px; font: 500 64px/1.12 var(--font-display); letter-spacing: -0.03em; }
.hero-title span { display: block; }
.hero-title .soft { color: var(--grey); }
.hero-lead { margin: 0 0 40px; max-width: 30em; font-size: 17px; line-height: 1.75; color: var(--grey); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.hero-bar { position: relative; padding-bottom: 40px; }
.hero-bar .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) 180px minmax(0, 1fr); gap: 24px; }
.hero-bar .hero-bar-photo { padding: 0; display: grid; place-items: center; font-size: 13px; color: var(--grey); overflow: hidden; }
.hero-bar-item { padding: 24px 28px; border-radius: var(--radius-md); }
.hero-bar h2 { margin: 0 0 12px; font: 500 14px/1.2 var(--font-display); letter-spacing: .02em; color: var(--grey); }
.hero-bar p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--grey); }

/* 번호 소개: 큰 숫자 + 눌린 액자 사진 + 글 */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: var(--space-64); }
.feature + .feature { margin-top: var(--space-96); }
.feature--reverse .feature-media { order: 2; }
.feature-media { aspect-ratio: 4 / 3; padding: 12px; border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--grey); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 12px); }
.feature-num { margin: 0 0 20px; font: 400 120px/.85 var(--font-display); color: var(--orange); letter-spacing: -0.02em; }
.feature-title { margin: 0 0 16px; font-size: 28px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.feature-text { margin: 0; max-width: 28em; color: var(--grey); }
.feature .icon-btn { margin-bottom: 24px; }

/* 반 카드 */
.class-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--space-32); }
.class-card { display: flex; flex-direction: column; padding: 36px 32px 32px; border-radius: var(--radius-lg); }
.class-tag { margin: 0 0 28px; font: 500 13px/1 var(--font-display); letter-spacing: .02em; color: var(--grey); }
.class-card h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; line-height: 1.4; }
.class-card > p { margin: 0 0 28px; color: var(--grey); }
.class-meta { margin: 0 0 32px; padding: 0; list-style: none; }
.class-meta li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.class-meta span:first-child { color: var(--grey); }
.class-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* 절차: 둥근 번호 + 이어지는 오렌지 선(원형 인포그래픽 레퍼런스) */
.process { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 24px; }
.process li { counter-increment: step; position: relative; text-align: center; color: var(--grey); font-size: 15px; }
.process li::before {
  content: "0" counter(step); display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  font: 400 26px/1 var(--font-display); color: var(--orange);
}
.process li::after {
  content: ""; position: absolute; top: 35px; left: calc(50% + 48px); width: calc(100% + 24px - 96px); height: 2px;
  border-radius: 1px; background: linear-gradient(90deg, var(--orange), var(--orange-haze));
}
.process li:last-child::after { content: none; }
.process strong { display: block; margin-bottom: 6px; font-size: 18px; color: var(--charcoal); }

/* 표 */
.table-wrap { overflow-x: auto; padding: 8px 12px; border-radius: var(--radius-lg); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { font: 500 13px/1.4 var(--font-display); letter-spacing: .02em; color: var(--grey); }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child > * { border-bottom: 0; }

/* 자주 묻는 질문: 질문마다 튀어나온 판, 열면 + 칸이 눌린다 */
.accordion { display: grid; gap: 20px; }
.accordion details { border-radius: var(--radius-md); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 16px 16px 16px 28px; list-style: none; cursor: pointer;
  font-size: 18px; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; box-shadow: var(--raise-sm);
  font: 400 24px/1 var(--font-display); color: var(--orange-ink);
}
.accordion details[open] summary::after { content: "×"; box-shadow: var(--press); }
.accordion details > p { margin: 0; padding: 0 88px 24px 28px; color: var(--grey); }

/* 상담 배너: 큰 판 오른쪽에 눌린 원 두 겹 */
.cta-banner {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px;
  padding: var(--space-64); border-radius: var(--radius-lg);
}
.cta-banner::before, .cta-banner::after { content: ""; position: absolute; border-radius: 50%; box-shadow: var(--press); pointer-events: none; }
.cta-banner::before { width: 340px; height: 340px; right: -110px; top: -150px; }
.cta-banner::after { width: 200px; height: 200px; right: -40px; top: -80px; box-shadow: var(--raise); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { margin: 0 0 12px; font: 500 36px/1.25 var(--font-display); letter-spacing: -0.02em; }
.cta-banner p { margin: 0; max-width: 32em; color: var(--grey); }

/* 아이콘: 1.6px 선, 오렌지 잉크. 둥근 버튼(.icon-btn) 안에 놓는다 */
.icon { width: 24px; height: 24px; flex: none; }
.icon-row { display: flex; flex-wrap: wrap; gap: 28px; }
.icon-item { display: grid; justify-items: center; gap: 12px; font-size: 13px; color: var(--grey); text-align: center; }

/* 하단: 눌린 판 */
.site-footer { padding: 0 0 40px; font-size: 14px; color: var(--grey); }
.site-footer > .container { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px; border-radius: var(--radius-lg); }
.site-footer h2 { margin: 0 0 16px; font: 500 14px/1.2 var(--font-display); letter-spacing: .02em; color: var(--grey); }
.site-footer .logo { margin-bottom: 24px; color: var(--charcoal); }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--orange-ink); }
.site-footer p { margin: 0 0 6px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 12px; letter-spacing: .08em; }

/* 하단 고정 상담 버튼(모바일) */
.sticky-cta { display: none; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; justify-content: center; }

/* 확인 필요 표시 */
.todo { display: inline-block; padding: 1px 8px; border: 1px dashed currentColor; border-radius: var(--radius-sm); background: var(--todo-fill); font-size: .85em; font-weight: 400; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero-body { grid-template-columns: 1fr; gap: 32px; }
  .hero-index ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  .hero-title { font-size: 48px; }
  .hero-bar .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-bar .hero-bar-photo { display: none; }
  .feature, .feature--reverse { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature--reverse .feature-media { order: 0; }
}
@media (max-width: 768px) {
  body { padding-bottom: 84px; }
  .sticky-cta { display: flex; }
  .section { padding: var(--space-80) 0; }
  .section-head { margin-bottom: 40px; }
  .section-title { font-size: 30px; }
  .header-bar { padding-left: 20px; }
  .hero-title { font-size: 38px; }
  .hero-bar .container { grid-template-columns: minmax(0, 1fr); }
  .feature-num { font-size: 88px; }
  .feature-title { font-size: 22px; }
  .process { grid-template-columns: 1fr; text-align: left; }
  .process li { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; }
  .process li::before { grid-row: span 2; margin: 0; }
  .process li::after { content: none; }
  .accordion details > p { padding-right: 28px; }
  .cta-banner { padding: 40px 28px; }
  .cta-banner h2 { font-size: 26px; }
  .site-footer > .container { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 28px; }
  .footer-bottom .container { flex-direction: column; }
}

/* ---------- 사이트 전용 ---------- */
/* Ibrand는 Regular 한 굵기뿐이라 굵은 영문을 가짜로 두껍게 만들지 않는다 */
body { font-synthesis-weight: none; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--grey); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; margin-top: 40px; }
.sub-title { margin: var(--space-64) 0 24px; font-size: 22px; font-weight: 600; }
.table--kv tbody th { width: 34%; font-weight: 500; color: var(--grey); }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-64); }
.quotes { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.quotes li { padding: 20px 28px; border-radius: var(--radius-md); background: var(--base); box-shadow: var(--raise); font-size: 17px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-32); }
.info-list { margin: 0 0 var(--space-32); padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--space-32); }
.info-list li { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius-md); background: var(--base); box-shadow: var(--raise); }
.info-list b { display: block; font-size: 13px; font-weight: 500; color: var(--grey); }
.class-card > p:last-child { margin-bottom: 0; }
.cta-banner .note { flex-basis: 100%; margin: 0; }
/* 메뉴 여덟 개와 버튼이 한 줄에 들어가지 않는 폭부터 옆 메뉴로 바꾼다. 메뉴 글자는 두 줄로 꺾지 않는다 */
.nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* 첫 화면(학원 안내): 가운데 둥근 사진, 양옆에 글, 아래에 화면 폭을 채우는 큰 이름 */
.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px) minmax(0, 1fr); align-items: center; gap: 56px; padding-block: 56px 24px; }
.stage .hero-title { font-size: clamp(40px, 3.9vw, 56px); }
.stage .hero-lead { margin-bottom: 32px; }
.stage-photo { aspect-ratio: 1; border-radius: 50%; padding: 14px; display: grid; place-items: center; overflow: hidden; background: var(--base); box-shadow: var(--press); color: var(--grey); text-align: center; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.stage-word {
  position: relative; margin: 0 0 32px; text-align: center; white-space: nowrap;
  font: 400 clamp(32px, 10.5vw, 190px)/1 var(--font-display); letter-spacing: .02em;
  color: var(--base); text-shadow: 4px 4px 8px var(--shade), -4px -4px 8px var(--highlight);
  pointer-events: none; user-select: none;
}

/* 가운데 한 줄 문장 */
.statement { padding: var(--space-96) 0 0; text-align: center; }
.statement p { margin: 0; font: 500 32px/1.5 var(--font-sans); letter-spacing: -0.02em; color: var(--orange-ink); }

/* 사진 슬라이드: 옆으로 밀어 넘기고, 둥근 화살표로도 넘긴다 */
.slider-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(520px, 85%); gap: var(--space-32);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 24px; margin: -24px; /* 그림자가 잘리지 않게 */
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track > * { scroll-snap-align: start; }
.slider-nav { display: flex; justify-content: flex-end; gap: 16px; margin-top: 32px; }
.slider-nav .icon-btn { font: 400 20px/1 var(--font-display); }
html:not(.js) .slider-nav { display: none; }

/* 스크롤하면 아래에서 떠오른다. 스크립트가 붙여 주므로 스크립트가 없으면 그대로 보인다 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 40px; text-align: center; }
  .stage-photo { width: min(320px, 100%); margin-inline: auto; }
  .stage .hero-lead { margin-inline: auto; }
  .stage .hero-actions { justify-content: center; }
}
@media (max-width: 768px) {
  .stage .hero-title { font-size: 40px; }
  .statement { padding-top: var(--space-80); }
  .statement p { font-size: 24px; }
}

/* 원장 이력 목록 */
.profile-list { margin: 0 0 8px; padding-left: 18px; color: var(--grey); font-size: 15px; }
.profile-list li { padding: 4px 0; }
.profile-list li::marker { color: var(--orange); }
.accordion details > p + p { margin-top: -12px; }

/* 개인정보처리방침 */
.policy .container { max-width: 860px; }
.policy h2 { margin: var(--space-64) 0 16px; font-size: 22px; font-weight: 600; }
.policy ul { margin: 0 0 16px; padding-left: 20px; color: var(--grey); }
.policy li { padding: 4px 0; }
.policy p { color: var(--grey); }
.footer-bottom a { color: inherit; }

/* 절차 원: 크게(모바일은 원래 크기) */
.process li::before { width: 150px; height: 150px; font-size: 60px; }
.process li::after { top: 74px; left: calc(50% + 87px); width: calc(100% + 24px - 174px); }
@media (max-width: 768px) {
  .process li::before { width: 72px; height: 72px; font-size: 26px; }
}

/* 단계 숫자와 E·P·A: Montserrat ExtraBold (필요한 글자만 불러온다) */
.process li::before, .feature-num { font-family: "Montserrat", var(--font-display); font-weight: 800; }

/* E·P·A: 크게, 글자 안에 사진. 사진이 없거나 지원하지 않는 브라우저는 주황 단색 */
.feature-num { display: inline-block; font-variant-numeric: tabular-nums; font-size: 200px; line-height: 1; padding: 0 .04em; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .feature-num[style*="--img"] {
    background: linear-gradient(rgba(48, 50, 54, .45), rgba(48, 50, 54, .45)), var(--img) var(--pos, center) / var(--size, cover) no-repeat var(--fill, var(--charcoal));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
@media (max-width: 768px) {
  .feature-num { font-size: 140px; }
}

/* 로고: 한글 줄을 키우되 영문보다 작게 */
.logo-ko { margin-top: 6px; font-size: 14px; letter-spacing: .02em; }
/* 영문 로고 폭을 아래 한글 줄과 맞춘다 */
.logo-en { font-size: 24.3px; }

/* 오시는 길: 운영 시간 | 주소·전화·주차 | 약도 */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: var(--space-32); align-items: stretch; }
.loc-stack { display: grid; gap: var(--space-32); }
.loc-card { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius-md); background: var(--base); box-shadow: var(--raise); }
.loc-card b { display: block; font-size: 13px; font-weight: 500; color: var(--grey); }
.loc-hours { align-items: flex-start; padding-top: 28px; }
.hours { margin: 8px 0 12px; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.hours li span { font-weight: 400; color: var(--grey); }
.loc-hours small { display: block; font-size: 13px; color: var(--grey); }
.loc-map { margin: 0; padding: 12px; border-radius: var(--radius-lg); background: var(--base); box-shadow: var(--press); }
.map { display: block; width: 100%; height: auto; border-radius: calc(var(--radius-lg) - 12px); background: #f5f5f7; }
.map path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.map-park path { fill: #dcdde1; stroke: none; }
.map-minor path { stroke: #c9cacf; stroke-width: 5; }
.map-mid path { stroke: #8e9096; stroke-width: 9; }
.map-major path { stroke: #8e9096; stroke-width: 12; }
.map text { font-family: Pretendard, sans-serif; paint-order: stroke; stroke: #f5f5f7; stroke-width: 4px; stroke-linejoin: round; }
.map-road-label text { font-size: 19px; font-weight: 700; fill: var(--charcoal); text-anchor: middle; }
.map-place circle { fill: var(--grey); }
.map-place text { text-anchor: middle; font-size: 16px; fill: var(--grey); }
.map-pin path { fill: var(--orange); stroke: none; }
.map-pin circle { fill: #fff; }
.map-pin rect { fill: var(--charcoal); }
.map-pin text { fill: #fff; stroke: none; font-size: 18px; font-weight: 700; text-anchor: middle; }
@media (max-width: 1024px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .loc-map { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .loc-grid { grid-template-columns: 1fr; }
}
.loc-map figcaption { margin: 8px 6px 0; font-size: 11px; color: var(--grey); text-align: right; }
.loc-sub { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.map-station line { stroke: var(--orange); stroke-width: 4; stroke-dasharray: 8 7; }
.map-station path { fill: var(--orange); }
.map-station rect { fill: #fff; stroke: var(--orange); stroke-width: 2; }
.map-station text { fill: var(--orange-ink); stroke: none; font-size: 16px; font-weight: 600; text-anchor: middle; }
.map-apt text { font-size: 15px; font-weight: 600; fill: #6b6e74; text-anchor: middle; }
.map-lib text { text-anchor: end; }
.map-lib rect { fill: var(--charcoal); }
.map-lib text { fill: var(--charcoal); font-weight: 700; }

/* 오시는 길 다듬기: 운영 시간은 머리 아래로 내려 왼쪽부터, 가운데 카드는 한 줄로 */
.loc-hours { flex-direction: column; align-items: stretch; gap: 0; padding: 24px 28px; }
.loc-hours-head { display: flex; align-items: center; gap: 16px; }
.loc-hours-head b { margin: 0; font-size: 15px; font-weight: 600; color: var(--charcoal); }
.loc-hours .hours { margin: 20px 0 16px; }
.hours li { padding: 9px 0; }
.hours li.off, .hours li.off span { color: var(--orange-ink); }
.loc-hours small { margin-top: auto; }
@media (min-width: 1181px) {
  .loc-grid { grid-template-columns: minmax(250px, 1fr) auto minmax(320px, 1.3fr); }
  .loc-stack .loc-card div { white-space: nowrap; }
}
@media (max-width: 1180px) {
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .loc-map { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .loc-grid { grid-template-columns: 1fr; }
}
/* 요일 바로 옆에 시간 */
.hours li { justify-content: flex-start; gap: 0; }
.hours li span { flex: none; width: 2.5em; }
/* 약도 칸을 옆 칸 높이에 맞춘다: 넓은 화면에서는 칸을 꽉 채우고(가장자리 조금 잘림), 좁으면 정사각형 */
.loc-map { display: flex; flex-direction: column; }
.map { aspect-ratio: 1; }
.hours li { padding: 8px 0; }
@media (min-width: 1181px) {
  .loc-grid { grid-template-columns: minmax(240px, .8fr) auto minmax(360px, 1.2fr); }
  .map { aspect-ratio: auto; flex: 1 1 0; min-height: 0; height: 0; }
}
/* 약도는 600×660 비율로 그려 옆 칸 높이와 맞춘다 */
.map { aspect-ratio: 600 / 660; }
@media (min-width: 1181px) {
  .map { aspect-ratio: auto; }
}


/* 대회 정보 표: 최근 대회와 같은 표, 끝 칸은 둥근 화살표 버튼 하나 */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.event-table td small { display: block; margin-top: 4px; font-size: 13px; color: var(--grey); }
.event-table td:nth-child(2) { white-space: nowrap; }
.event-table .go { width: 64px; text-align: right; }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm .icon { width: 18px; height: 18px; }

/* 수업 소개 끝의 체험수업 바로가기 칸: 글자와 화살표 어디를 눌러도 네이버 예약으로 */
.trial-card { text-decoration: none; color: inherit; justify-content: center; transition: box-shadow .2s; }
.trial-card:hover { box-shadow: var(--raise-sm); }
.trial-card:active { box-shadow: var(--press); }
.trial-card-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.trial-card-text { font-size: 26px; font-weight: 600; color: var(--orange-ink); letter-spacing: -0.02em; }
.trial-card .icon-btn { color: var(--white); background: linear-gradient(145deg, var(--orange-strong), var(--orange-ink)); box-shadow: var(--raise-sm); }
.trial-card-sub { margin-top: 12px; font-size: 14px; color: var(--grey); }

/* 표 안 글자를 본문과 같은 16px로 */
.table { font-size: 16px; }

/* 빈 공간 아이콘: 질문 목록 오른쪽, 평가 카드 오른쪽 위 (장식) */
.quotes li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 14px; }
.quotes .card-icon { width: 48px; height: 48px; }
.class-card { position: relative; }
.class-card > .card-icon { position: absolute; top: 24px; right: 24px; }
.clubday-when { margin-top: 12px !important; font-weight: 600; color: var(--orange-ink) !important; }

/* 첫 화면 NOTICE: 이번 달 수업 안내 */
.notice-list { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--charcoal); }
.notice-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.notice-list li:last-child { border-bottom: 0; }
.notice-list b { flex: none; padding: 1px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; }
.notice-list b.off { color: var(--white); background: var(--orange-ink); }
.notice-list b.on { color: var(--grey); box-shadow: var(--press); }
.notice-list .notice-event { display: block; font-weight: 600; color: var(--orange-ink); }

/* 원 안 숫자: Montserrat 숫자가 위로 떠 보여 원 중심에 맞춘다 */
.process li::before { padding-top: .33em; }

/* 버튼 옆 글자 링크의 밑줄을 알약 버튼 아랫선에 맞춘다 */
.btn-row--bottom { align-items: flex-end; }

/* 줄바꿈: 한 줄에 들어가면 한 줄로, 넘치면 단어(어절) 단위로만 끊고 끝줄에 한 단어만 남지 않게 */
p, li, h1, h2, h3, h4, td, th, small { text-wrap: pretty; }
.process li, .section-title, .hero-title, h2, h3 { text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* 질문 구간: 사진 칸 위아래를 왼쪽(소개 문장~마지막 질문)에 맞춘다 */
.split--stretch { align-items: stretch; }
.split--stretch .feature-media { aspect-ratio: auto; }
@media (max-width: 1024px) {
  .split--stretch .feature-media { aspect-ratio: 4 / 3; }
}

/* 평가하는 다섯 가지: 가운데 원에서 다섯 항목으로 가지가 뻗는 인포그래픽 */
.hub { display: grid; grid-template-columns: 240px 1fr; align-items: center; max-width: 920px; }
.hub-core { position: relative; width: 220px; height: 220px; border-radius: 50%; background: var(--base); box-shadow: var(--raise); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hub-core::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--orange); border-left-color: var(--orange); transform: rotate(-30deg); }
.hub-core-num { font: 800 72px/1 "Montserrat", var(--font-display); color: var(--orange); }
.hub-core-label { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--charcoal); }
.hub-list { position: relative; margin: 0; padding: 0 0 0 110px; list-style: none; display: grid; gap: 22px; }
.hub-list::before { content: ""; position: absolute; left: 0; top: 50%; width: 55px; height: 2px; background: var(--orange); }
.hub-list::after { content: ""; position: absolute; left: 55px; top: 36px; bottom: 36px; width: 2px; background: var(--orange); }
.hub-list li { position: relative; display: flex; align-items: center; gap: 24px; }
.hub-list li::before { content: ""; position: absolute; left: -55px; top: 50%; width: 55px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--orange-haze)); }
.hub-ico { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--base); box-shadow: var(--raise-sm); color: var(--orange-ink); }
.hub-ico::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; border-right-color: var(--orange); border-bottom-color: var(--orange); transform: rotate(-20deg); }
.hub-list h4 { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.hub-list li p { margin: 0; color: var(--grey); }
.hub-num { font: 800 13px/1 "Montserrat", var(--font-display) !important; color: var(--orange-ink) !important; margin-bottom: 6px !important; }
@media (max-width: 768px) {
  .hub { grid-template-columns: 1fr; justify-items: center; gap: 40px; }
  .hub-core { width: 170px; height: 170px; }
  .hub-core-num { font-size: 56px; font-variant-numeric: tabular-nums; }
  .hub-list { padding: 0; justify-self: stretch; }
  .hub-list::before, .hub-list::after, .hub-list li::before { content: none; }
  .hub-ico { width: 60px; height: 60px; }
}

/* 표 안의 화면낭독 전용 글자(.sr-only)가 표 밖으로 새어 모바일 화면을 넓히지 않게 */
.table-wrap { position: relative; }

/* 메뉴 구간마다 뒤에 깔리는 큰 영문 단어(지도자 과정의 TEACH와 같은 표현) */
.has-word { position: relative; overflow: hidden; }
.has-word > .container { position: relative; z-index: 1; }
.section-word {
  position: absolute; right: -1%; top: calc(var(--space-128) - 40px); z-index: 0;
  font: 400 clamp(110px, 17vw, 250px)/.85 var(--font-display);
  color: var(--base); text-shadow: 4px 4px 8px var(--shade), -4px -4px 8px var(--highlight);
  pointer-events: none; user-select: none; white-space: nowrap;
}
/* 휴대폰: 배경 큰 글씨가 화면 폭을 넘지 않게 줄인다. --w는 글자 폭이 글씨 크기의 몇 배인지(5글자 ≈ 3, GALLERY ≈ 4) */
@media (max-width: 768px) {
  .section-word { top: calc(var(--space-80) - 24px); font-size: min(clamp(110px, 17vw, 250px), calc((100vw - 24px) / var(--w, 3))); }
  .hero-word { font-size: min(clamp(120px, 22vw, 320px), calc((100vw - 24px) / var(--w, 3))); }
  /* 페이지 첫 구간(갤러리)은 고정 메뉴바 아래로 내린다 */
  main > .has-word:first-child .section-word { top: 92px; }
}

/* 평가 인포그래픽 v2: 사선 연결선과 여러 겹 호는 menu.js가 SVG로 그린다(.hub-lines) */
.hub { position: relative; grid-template-columns: 240px 1fr; }
.hub-lines { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.hub-core, .hub-list { position: relative; z-index: 1; }
.hub-core::before, .hub-ico::after, .hub-list::before, .hub-list::after, .hub-list li::before { content: none; }
.hub-list { padding-left: 168px; gap: 24px; }
.hub-core-label { margin: 0; font: 400 22px/1.2 var(--font-display); letter-spacing: .02em; color: var(--grey); }

@media (max-width: 768px) {
  .hub-lines { display: none; }
  .hub-list { padding-left: 0; }
}

/* 평가 인포그래픽을 화면 가운데로 */
.hub { width: fit-content; max-width: 100%; margin: var(--space-80) auto 0; }
@media (max-width: 768px) { .hub { width: auto; grid-template-columns: 1fr; } }

/* 로고에 마우스를 올리면 메뉴처럼 주황으로 */
.logo .logo-en, .logo .logo-ko { transition: color .2s; }
.logo:hover .logo-en { color: var(--orange-ink); }
.logo:hover .logo-ko { color: var(--orange); }

/* 절차 원 숫자: 평소엔 회색, 마우스를 올리면 주황 */
.process li::before { color: #a3a5ab; transition: color .25s; }
.process li:hover::before { color: var(--orange); }

/* 좁은 화면에서는 글자(E·P·A와 제목)가 사진보다 먼저 오게 */
@media (max-width: 1024px) {
  .feature .feature-media, .feature--reverse .feature-media { order: 2; }
}

/* 사진 칸의 사진은 흑백으로 */
.feature-media img { filter: grayscale(1); }
.feature-media img { transition: filter .4s; }
.feature-media:hover img { filter: none; }

/* 수업 안내 반 카드: 마우스를 올리면 윗줄(대상)은 연한 주황, 반 이름은 진한 주황 */
#classes .class-card:not(.trial-card) .class-tag,
#classes .class-card:not(.trial-card) h3 { transition: color .25s; }
#classes .class-card:not(.trial-card):hover .class-tag { color: #f08a5d; }
#classes .class-card:not(.trial-card):hover h3 { color: var(--orange-ink); }

/* 운영 시간: 요일 목록과 안내문을 "운영 시간" 글자 시작선(아이콘 56px + 간격 16px)에 맞춘다 */
.loc-hours .hours { margin-left: 72px; }
/* 오시는 길 카드: 아이콘을 모두 운영 시간처럼 카드 윗선에서 같은 간격(24px)에 둔다 */
.loc-card { padding: 24px 28px; }
.loc-stack .loc-card { align-items: flex-start; }
.loc-stack .loc-card > div { padding-top: 6px; }

/* 링크 글자: 마우스를 올리면 강조색으로.
   전화번호·밑줄 링크는 지금 색 그대로 두고 올리면 주황,
   원래 주황 글자였던 보조 버튼·표의 화살표 버튼은 평소 회색, 올리면 주황 */
main a, .site-footer a { transition: color .2s, box-shadow .2s; }
main a:not(.btn):not(.trial-card):hover { color: var(--orange-ink); }
.btn--soft { color: var(--grey); }
.btn--soft:hover { color: var(--orange-ink); }
.icon-btn--sm { color: var(--grey); }
a.icon-btn--sm:hover { color: var(--orange-ink); }

/* 첫 화면 기물: 바탕색 그대로 튀어나온 뉴모피즘 체스 말 */
.stage-art img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .stage-art { width: min(340px, 100%); margin-inline: auto; } }

/* 첫 화면 문구: 바탕색 그대로 한 줄씩 볼록 튀어나온 뒤 글자색이 채워지고,
   마지막 줄은 주황으로 잠시 강조했다가 회색이 된다. 움직임 줄이기 설정이면 그대로 보인다 */
@media (prefers-reduced-motion: no-preference) {
  .stage .hero-title span { animation: title-emboss 1.4s ease both; }
  .stage .hero-title span:nth-child(2) { animation-delay: .15s; }
  .stage .hero-title .soft { animation: title-emboss-soft 3.2s ease .3s both; }
  .stage-side:last-child { animation: title-rise 1s .8s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes title-emboss {
  0% { color: var(--base); text-shadow: 0 0 0 var(--shade), 0 0 0 var(--highlight); }
  55% { color: var(--base); text-shadow: 3px 3px 6px var(--shade), -3px -3px 6px var(--highlight); }
  100% { color: var(--charcoal); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes title-emboss-soft {
  0% { color: var(--base); text-shadow: 0 0 0 var(--shade), 0 0 0 var(--highlight); }
  24% { color: var(--base); text-shadow: 3px 3px 6px var(--shade), -3px -3px 6px var(--highlight); }
  44%, 70% { color: var(--orange-ink); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
  100% { color: var(--grey); text-shadow: 0 0 0 transparent, 0 0 0 transparent; }
}
@keyframes title-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } }

/* 원장 사진: 학원관리앱에서 올리면 카드 위에 나타난다(site-content.js) */
.profile-photo { aspect-ratio: 4 / 3; margin: -8px -8px 24px; border-radius: calc(var(--radius-md) - 8px); overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bar-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 한 칸에 사진 여러 장(data-slides): 겹쳐 두고 is-on인 사진만 보인다. 넘김은 menu.js */
[data-slides] { display: grid; }
[data-slides] > img { grid-area: 1 / 1; opacity: 0; transition: opacity 1s ease, filter .4s; }
[data-slides] > img.is-on { opacity: 1; }

/* 갤러리(gallery.html): 항목 버튼, 작은 사진 줄(자동 넘김), 아래 큰 사진. 사진 목록은 scripts/build_gallery.py가 만든다 */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 40px; }
.chip { border: 0; border-radius: var(--radius-pill); padding: 10px 18px; text-align: center; white-space: nowrap; background: var(--base); box-shadow: var(--raise-sm); color: var(--grey); font: 500 15px/1.2 var(--font-sans); cursor: pointer; }
.chip span { margin-left: 4px; font-variant-numeric: tabular-nums; opacity: .7; }
.chip[aria-pressed="true"] { box-shadow: var(--press); color: var(--orange-ink); font-weight: 600; }
.g-strip { position: relative; list-style: none; margin: 0 -12px 28px; padding: 18px 12px 22px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.g-strip::-webkit-scrollbar { display: none; }
.g-strip li { flex: none; }
.g-strip a { display: block; width: 136px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: var(--raise-sm); opacity: .72; transition: opacity .3s, box-shadow .3s, transform .3s; }
.g-strip a:hover { opacity: 1; }
.g-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 지금 크게 보이는 사진: 바깥쪽 주황 글로우 */
.g-strip li.is-on a { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 3px var(--orange), 0 0 22px 6px color-mix(in srgb, var(--orange) 55%, transparent); }
.g-stage { position: relative; margin: 0; height: min(62vh, 680px); min-height: 320px; padding: 12px; border-radius: var(--radius-lg); background: var(--base); box-shadow: var(--raise); display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.g-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: calc(var(--radius-lg) - 12px); }
.g-count { position: absolute; left: 28px; bottom: 24px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--base); box-shadow: var(--raise-sm); font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.g-count:empty { display: none; }
.g-prev, .g-next { position: absolute; top: 50%; translate: 0 -50%; }
.g-prev { left: 24px; }
.g-next { right: 24px; }
@media (max-width: 600px) {
  .g-strip a { width: 96px; border-radius: 10px; }
  .g-stage { height: auto; min-height: 0; aspect-ratio: 4 / 3; padding: 8px; border-radius: var(--radius-md); }
  .g-stage img { border-radius: calc(var(--radius-md) - 8px); }
  .g-prev { left: 12px; } .g-next { right: 12px; }
  .g-count { left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .g-strip a { transition: none; } }
