@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ==========================================================================
   메세지팩토리협동조합 — 브랜드 색상은 CI 로고에서 추출한 3색
   빨강 #F03C14 · 주황 #FAA000 · 회색 #C8C8C8
   ========================================================================== */

:root {
  --red: #f03c14;
  --red-deep: #ce310c;
  --orange: #faa000;
  --orange-soft: #fbae40;
  --gray: #c8c8c8;

  --ink: #211d1b;
  --ink-2: #55504c;
  --ink-3: #8f8983;

  --line: #e6e4e2;
  --line-soft: #f0eeec;
  --bg: #ffffff;
  --bg-soft: #f7f6f5;

  --tint-red: #fdece8;
  --tint-orange: #fef4e1;
  --tint-gray: #f1f0ef;

  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(33, 29, 27, .05), 0 4px 14px rgba(33, 29, 27, .05);
  --shadow-md: 0 8px 28px rgba(33, 29, 27, .09);

  --wrap: 1160px;
  --header-h: 74px;

  --sans: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; letter-spacing: -0.025em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .13em;
  color: var(--red); text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--orange) 50% 100%);
}
.section-title { font-size: clamp(27px, 3.4vw, 39px); }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 62ch; }
.section-head { margin-bottom: 44px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 27px; width: auto; }
.brand__sub {
  font-size: 11.5px; font-weight: 600; color: var(--ink-3);
  padding-left: 11px; border-left: 1px solid var(--line);
  letter-spacing: .02em; line-height: 1.3;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 15.5px; color: var(--ink-2);
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: var(--ink); background: var(--tint-gray); }
.nav a.is-active { color: var(--red); background: var(--tint-red); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 25px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15.5px; line-height: 1.2;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(240, 60, 20, .26); }
.btn--primary:hover { background: var(--red-deep); box-shadow: 0 10px 24px rgba(240, 60, 20, .32); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 6px 18px rgba(250, 160, 0, .28); }
.btn--orange:hover { background: #e08f00; }
.btn__arrow { font-size: 17px; line-height: 1; transition: transform .16s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; background: var(--bg); }
.hero::before,
.hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(6px); z-index: 0; }
.hero::before { width: 340px; height: 340px; right: -90px; top: -110px; background: var(--tint-orange); }
.hero::after { width: 260px; height: 260px; right: 190px; bottom: -140px; background: var(--tint-red); }
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.22; letter-spacing: -0.035em; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .34em;
  background: var(--tint-orange); border-radius: 4px; z-index: -1;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 8px 17px 8px 12px; border-radius: var(--radius-pill);
  background: var(--tint-red); color: var(--red-deep);
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
}
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); font-style: normal; }
.hero__lead { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.msg-stack { display: grid; gap: 14px; }
.msg-card {
  display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 18px;
  padding: 22px 26px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.msg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.msg-card__letter {
  width: 62px; height: 62px; border-radius: 20px; display: grid; place-items: center;
  font-size: 27px; font-weight: 800; color: #fff; letter-spacing: -0.04em;
}
.msg-card:nth-child(1) .msg-card__letter { background: var(--red); }
.msg-card:nth-child(2) .msg-card__letter { background: var(--orange); }
.msg-card:nth-child(3) .msg-card__letter { background: #8f8983; }
.msg-card h3 { font-size: 19px; }
.msg-card p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- page hero (sub pages) ---------- */
.page-hero { padding: 74px 0 62px; background: var(--bg-soft); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  border-radius: 50%; background: var(--tint-orange); opacity: .75;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(31px, 4.4vw, 47px); }
.page-hero p { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); max-width: 60ch; }
.crumb { font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }
.crumb b { color: var(--red); font-weight: 700; }

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcd9d6; }
.card h3 { font-size: 19.5px; }
.card p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.68; }
.card__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 13px; background: var(--tint-red); color: var(--red);
  font-weight: 800; font-size: 15px;
}
.card--o .card__num { background: var(--tint-orange); color: #b36f00; }
.card--g .card__num { background: var(--tint-gray); color: var(--ink-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 6px 14px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600;
  background: var(--tint-gray); color: var(--ink-2);
}
.chip--r { background: var(--tint-red); color: var(--red-deep); }
.chip--o { background: var(--tint-orange); color: #a86800; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 28px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: var(--red); }
.stat:nth-child(2) b { color: var(--orange); }
.stat:nth-child(3) b { color: #8f8983; }
.stat:nth-child(4) b { color: var(--red-deep); }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--ink-2); font-weight: 600; }
/* 이메일·시간처럼 긴 값을 담는 타일 — 칸 너비에 맞춰 줄어든다 */
.stat.stat--text b { font-size: clamp(15px, 1.9vw, 24px); line-height: 1.35; }

/* ---------- greeting (about) ---------- */
.greeting { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.greeting__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.greeting__mark {
  font-size: clamp(28px, 3.2vw, 36px); font-weight: 800; line-height: 1.3; letter-spacing: -0.035em;
}
.greeting__mark em { font-style: normal; color: var(--red); }
.greeting__cap { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.prose p { margin-bottom: 20px; font-size: 17px; line-height: 1.92; color: #3b3633; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .pull {
  margin: 34px 0; padding: 26px 30px; border-radius: var(--radius);
  background: var(--tint-orange); font-size: 19px; font-weight: 700; color: #7a4c00;
  line-height: 1.65; letter-spacing: -0.02em;
}
.sign { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); text-align: right; }
.sign span { display: block; font-size: 14.5px; color: var(--ink-3); }
.sign b { display: inline-block; margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

/* ---------- timeline ---------- */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 24px 0; }
.tl li::before {
  content: ""; position: absolute; left: -26px; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--gray);
}
.tl li.is-key::before { border-color: var(--red); }
.tl__year { font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: .01em; }
.tl__body { margin-top: 2px; font-size: 15.5px; color: var(--ink-2); }
.tl__body b { color: var(--ink); font-weight: 700; }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; min-width: 520px; }
.tbl th, .tbl td { padding: 15px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl th { width: 168px; background: var(--bg-soft); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.tbl td { color: var(--ink); }

/* ---------- space ---------- */
.space { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.space--flip .space__media { order: 2; }
.space__media { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 400px; }
.space__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); background: var(--tint-gray); }
.space__media img:first-child { grid-row: span 2; }
.space__label {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; margin-bottom: 14px;
  border-radius: var(--radius-pill); background: var(--tint-red); color: var(--red-deep);
  font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.space h2 { font-size: clamp(25px, 3vw, 34px); }
.space > div > p { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.8; }
.space__meta { margin-top: 24px; display: grid; gap: 10px; }
.space__meta div { display: grid; grid-template-columns: 86px 1fr; gap: 12px; font-size: 15px; }
.space__meta dt, .space__meta b { color: var(--ink-3); font-weight: 700; font-size: 14px; }

/* ---------- activity filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter {
  padding: 9px 19px; border-radius: var(--radius-pill); border: 1.5px solid var(--line);
  background: #fff; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: all .16s ease;
}
.filter:hover { border-color: var(--ink-3); color: var(--ink); }
.filter.is-on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 5px 14px rgba(240, 60, 20, .24); }

.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.act {
  display: flex; flex-direction: column; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.act:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.act[hidden] { display: none; }
.act__thumb {
  position: relative; height: 178px; background: var(--tint-gray);
  display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line-soft);
}
.act__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.act__thumb--pad { background: var(--tint-orange); }
.act__thumb--pad img { width: auto; height: 100%; object-fit: contain; }
.act__thumb--r { background: var(--tint-red); }
.act__cat {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .94); color: var(--red-deep);
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 2px 8px rgba(33, 29, 27, .12);
}
.act__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.act__body h3 { font-size: 18.5px; }
.act__body > p { margin-top: 9px; font-size: 14.8px; color: var(--ink-2); line-height: 1.68; flex: 1; }
.act__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.act__tags span { padding: 4px 11px; border-radius: var(--radius-pill); background: var(--bg-soft); color: var(--ink-3); font-size: 12.5px; font-weight: 600; }

/* 텍스트 전용(사진 없는) 활동 카드 — 흰 글자가 읽히도록 진한 브랜드 그라데이션 */
.act--plain .act__thumb {
  background: linear-gradient(125deg, var(--red-deep) 0%, var(--red) 55%, #ef8a00 100%);
  height: 112px; border-bottom: 0;
}
/* 브랜드 3색(빨강·주황·회색)을 번갈아 써서 한 가지 색으로 몰리지 않게 한다 */
.act--plain:nth-child(3n) .act__thumb {
  background: linear-gradient(125deg, #55504c 0%, #6b6560 55%, #8f8983 100%);
}
.act--plain:nth-child(3n + 2) .act__thumb {
  background: linear-gradient(125deg, #b36f00 0%, #d98200 55%, #ef9a00 100%);
}
.act--plain .act__thumb b {
  font-size: 29px; font-weight: 800; color: #fff; letter-spacing: -0.03em;
  text-shadow: 0 2px 12px rgba(60, 25, 5, .45);
  padding: 0 18px; text-align: center; line-height: 1.2;
}
/* 포스터·배너처럼 잘리면 안 되는 이미지는 여백을 두고 전체를 보여 준다 */
.act__thumb--contain { background: var(--tint-red); }
.act__thumb--contain img { width: auto; height: 100%; object-fit: contain; }

/* ---------- ulsan block ---------- */
.region {
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  padding: 38px 36px; box-shadow: var(--shadow-sm);
}
.region__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.region__head h3 { font-size: 22px; }
.region__head em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--orange); }
.region ul { margin-top: 20px; display: grid; gap: 12px; }
.region li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; font-size: 15.5px; color: var(--ink-2); }
.region li::before {
  content: ""; margin-top: 9px; width: 7px; height: 7px; border-radius: 2px;
  background: var(--orange); transform: rotate(45deg);
}
.region li b { color: var(--ink); font-weight: 700; }

/* ---------- contact ---------- */
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.loc__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.loc__top { padding: 28px 30px 24px; }
.loc__badge {
  display: inline-block; padding: 5px 13px; border-radius: var(--radius-pill);
  font-size: 12.5px; font-weight: 700; margin-bottom: 12px;
  background: var(--tint-red); color: var(--red-deep);
}
.loc__badge--o { background: var(--tint-orange); color: #a86800; }
.loc__badge--g { background: var(--tint-gray); color: var(--ink-2); }
.loc__card h3 { font-size: 21px; }
.loc__dl { margin-top: 18px; display: grid; gap: 11px; }
.loc__dl > div { display: grid; grid-template-columns: 74px 1fr; gap: 12px; font-size: 15px; align-items: start; }
.loc__dl dt { color: var(--ink-3); font-weight: 700; font-size: 14px; }
.loc__dl dd { margin: 0; color: var(--ink); }
.loc__dl a:hover { color: var(--red); text-decoration: underline; }
.loc__foot { padding: 16px 30px 24px; }

.transit { display: grid; gap: 14px; }
.transit__row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.transit__row:last-child { border-bottom: 0; }
.transit__row > b { font-size: 14.5px; color: var(--red); font-weight: 700; }
.transit__row > span { font-size: 15.5px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta {
  border-radius: var(--radius-lg); padding: 60px 52px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--red) 0%, var(--red-deep) 48%, #b8290a 100%);
}
.cta::after {
  content: ""; position: absolute; right: -60px; bottom: -100px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(250, 160, 0, .3);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(25px, 3.2vw, 36px); }
.cta p { margin-top: 14px; font-size: 17px; color: rgba(255, 255, 255, .9); max-width: 52ch; }
.cta__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.cta .btn--primary { background: #fff; color: var(--red-deep); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.cta .btn--primary:hover { background: #fff; color: var(--red-deep); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cbc5c1; padding: 58px 0 34px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__logo img { height: 26px; filter: brightness(0) invert(1); opacity: .95; }
.footer p { font-size: 14.5px; line-height: 1.8; color: #a39c97; }
.footer h4 { font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer ul { display: grid; gap: 9px; }
.footer li a { font-size: 14.5px; color: #a39c97; transition: color .15s ease; }
.footer li a:hover { color: var(--orange-soft); }
.footer__bottom {
  margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13.5px; color: #837c77;
}
.footer__msg { display: flex; gap: 6px; }
.footer__msg i { width: 8px; height: 8px; border-radius: 50%; font-style: normal; }
.footer__msg i:nth-child(1) { background: var(--red); }
.footer__msg i:nth-child(2) { background: var(--orange); }
.footer__msg i:nth-child(3) { background: var(--gray); }

/* ---------- reveal ----------
   JS가 없거나 실패하면 숨기지 않는다 (html.js 가 붙었을 때만 동작) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .act:hover, .msg-card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .acts { grid-template-columns: repeat(2, 1fr); }
  .greeting { grid-template-columns: 1fr; gap: 32px; }
  .greeting__aside { position: static; }
  .space { grid-template-columns: 1fr; gap: 32px; }
  .space--flip .space__media { order: 0; }
  .space__media { height: 330px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .section { padding: 66px 0; }
  .hero { padding: 62px 0 58px; }
  .brand__sub { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 16px; border-radius: 12px; font-size: 16.5px; }
  .grid--2, .grid--3, .grid--4, .acts, .loc { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 20px 18px; }
  .stat b { font-size: 30px; }
  .cta { padding: 42px 26px; }
  .card { padding: 26px 22px; }
  .region { padding: 28px 22px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .space__media { height: 260px; grid-template-columns: 1.4fr 1fr; }
  .prose p { font-size: 16.2px; }
  .prose .pull { font-size: 17px; padding: 22px 22px; }
  .transit__row { grid-template-columns: 1fr; gap: 6px; }

  /* 좁은 화면에서는 표를 가로 스크롤 대신 위아래로 쌓는다 */
  .tbl-wrap { overflow-x: visible; }
  .tbl { min-width: 0; }
  .tbl th, .tbl td { display: block; width: auto; padding: 0 20px; }
  .tbl th { border-bottom: 0; padding-top: 14px; padding-bottom: 2px; font-size: 13.5px; }
  .tbl td { padding-bottom: 14px; font-size: 15.5px; }
}
