/* ==========================================================================
   HCI+ 원페이지 — Direction B / 다크 + 데이터
   docs/DESIGN-BRIEF.md 에서 고른 방향. 콘텐츠·구조·기능은 그대로 두고
   시각 언어만 교체하였습니다.

   원칙
   - 반전이 기본 바탕. 실적 관계도가 배경이 아니라 주인공이다.
   - 깊이는 그림자가 아니라 1px 경계선과 발광으로 만든다.
   - 기간·수치·태그는 모노스페이스로 고정해 데이터의 인상을 준다.
   - 밝은 사례 이미지 15장이 어두운 바탕에서 튀지 않도록 평소에는
     액센트로 물들여 두고, 올려놓으면 원래 색으로 되살린다.
   ========================================================================== */

:root {
  /* — 바탕 — */
  --bg:          #0b0e11;
  --surface:     #12171c;
  --surface-2:   #0f1418;
  --surface-3:   #182430;

  /* — 텍스트 — */
  --text:        #e6ebef;
  --text-muted:  #a9b6c2;
  --text-subtle: #8b98a5;
  --text-faint:  #6f7d8a;

  /* — 선 — */
  --line:        #232a31;
  --line-strong: #31404f;

  /* — 액센트 (oklch 명도·채도를 맞추고 색상만 달리함) — */
  --accent:      #8ab4ff;   /* 주 액센트 */
  --accent-soft: #b9d2ff;
  --accent-2:    #5ee0b5;   /* 수행중 · 성과 */
  --accent-dim:  rgba(138, 180, 255, 0.14);

  /* — 타이포 — */
  --font-display: "Space Grotesk", "IBM Plex Sans KR", sans-serif;
  --font-body:    "IBM Plex Sans KR", "Space Grotesk", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* — 레이아웃 — */
  --maxw:   1280px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h:  64px;

  /* — 모서리 — */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* — 모션 — */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur:  260ms;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, li, td, th, dd, dt {
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

button { font-family: inherit; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(138, 180, 255, 0.28); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 청사진 등록마크는 이 방향에서 쓰지 않습니다. 남은 마크업은 감춥니다. */
.blueprint > .corner { display: none; }

/* — 공통 컨테이너 — */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { border-bottom: 1px solid var(--line); }
.section > .wrap { padding-top: clamp(64px, 8vw, 108px); padding-bottom: clamp(64px, 8vw, 108px); }

/* 한 단계 떠 있는 섹션 — 전면 반전 페이지에서 강조를 만드는 방법 */
.section--raised { background: var(--surface-2); }

.kicker {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.h2 {
  font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14; letter-spacing: -0.02em;
}
.lead {
  font-size: clamp(15.5px, 1.3vw, 17px); line-height: 1.8; max-width: 54ch;
  color: var(--text-muted); margin-top: 18px; font-weight: 300;
}
.lead--wide { max-width: 62ch; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* — 태그 · 배지 — */
.tag {
  display: inline-flex; align-items: center; flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px; padding: 4px 10px;
  border-radius: var(--r-sm); white-space: nowrap;
}
.tag-accent  { background: var(--surface-3); color: var(--accent); }
.tag-outline { background: var(--surface-3); color: var(--accent); }

.badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px; padding: 3px 10px;
  border-radius: var(--r-sm); white-space: nowrap;
}
.badge-active { background: rgba(94, 224, 181, 0.14); color: var(--accent-2); }
.badge-done   { border: 1px solid var(--line-strong); color: var(--text-subtle); }

/* — 버튼 — */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; white-space: nowrap;
  cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-primary {
  background: var(--accent); color: #0b0e11; border: 1px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-soft); color: #0b0e11; }
.btn-secondary {
  background: transparent; border: 1px solid var(--line-strong); color: var(--text);
}
.btn-secondary:hover { background: rgba(230, 235, 239, 0.07); color: var(--text); }

/* — 스크롤 진입 모션 — */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   내비게이션
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 17, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter); height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
}
.nav__brand { display: flex; align-items: center; flex: none; }
/* 로고는 진한 잉크색 원본이라 반전 바탕에서 밝게 뒤집어 씁니다. */
.nav__brand img { height: 24px; width: auto; filter: brightness(0) invert(1) opacity(0.92); }
/* 원페이지라 상단 메뉴를 두지 않습니다. 로고와 언어 전환만 남습니다. */
.nav__spacer { flex: 1; }

.langswitch {
  display: flex; width: max-content; flex: none;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden;
}
.langswitch button {
  min-width: 44px; min-height: 32px; padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; border: 0; cursor: pointer;
  background: transparent; color: var(--text-subtle);
}
.langswitch button.is-on { background: var(--accent); color: #0b0e11; }
.langswitch--dark { border-color: var(--line-strong); }
.langswitch--dark button { color: var(--text-subtle); }
.langswitch--dark button.is-on { background: var(--accent); color: #0b0e11; }

/* ==========================================================================
   히어로 — 관계도가 주인공
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 78% 42%, rgba(138, 180, 255, 0.13), transparent 70%),
    var(--bg);
}
.hero__inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(60px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 56px); align-items: center;
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 30px;
}
.hero__title {
  font-weight: 700; font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 30px; white-space: pre-line;
}
.hero__lead {
  font-size: clamp(15.5px, 1.4vw, 17px); line-height: 1.8;
  max-width: 46ch; color: var(--text-muted); margin-bottom: 36px; font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__fig { position: relative; aspect-ratio: 1 / 0.86; }
.hero__fig canvas { width: 100%; height: 100%; display: block; }
.hero__figcap {
  position: absolute; left: 2px; bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero__scroll {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 28px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   회사 철학
   ========================================================================== */
.quote {
  margin: 0 0 clamp(32px, 5vw, 56px);
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  max-width: 74ch;
}
.quote__text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.45; letter-spacing: -0.015em;
  color: var(--text);
}
.quote__cite {
  display: block; margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-style: normal;
}
.quote__note {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.8; color: var(--text-subtle);
  max-width: 54ch;
}

/* ==========================================================================
   회사소개 — 수치 지표
   ========================================================================== */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.stat { padding: clamp(22px, 3vw, 28px) clamp(18px, 2vw, 24px); background: var(--surface-2); }
.stat__value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 4vw, 46px); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
/* 두 번째 지표(주관기관 수행)를 성과 색으로 들어 올립니다. */
.stat:nth-child(2) .stat__value { color: var(--accent-2); }
.stat__label { font-size: 12.5px; color: var(--text-subtle); margin-top: 12px; line-height: 1.6; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* ==========================================================================
   보유기술 · 회사 철학 카드
   ========================================================================== */
.techgrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.techcard {
  position: relative; padding: clamp(22px, 3vw, 28px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.techcard:hover { border-color: var(--line-strong); background: #141a20; }
.techcard__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.techcard h3 {
  font-weight: 600; font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 12px;
}
.techcard p { font-size: 15px; line-height: 1.8; color: var(--text-muted); margin-bottom: 16px; font-weight: 300; }
.techcard__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }

/* ==========================================================================
   R&D 수행 사례
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  min-height: 36px; padding: 8px 16px;
  font-family: var(--font-mono); font-size: 12.5px;
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: transparent; color: var(--text-subtle);
  border: 1px solid var(--line-strong);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.filters button:hover { border-color: var(--accent); color: var(--text); }
.filters button.is-on { background: var(--accent); color: #0b0e11; border-color: var(--accent); }

.caselist { display: grid; gap: 20px; }

.case {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 28px);
  transition: border-color var(--dur) var(--ease);
}
.case:hover { border-color: var(--line-strong); }

.case__grid {
  display: grid;
  grid-template-columns: minmax(200px, 288px) minmax(240px, 1fr) minmax(260px, 1.15fr);
  gap: clamp(20px, 2.6vw, 36px);
}
.case__figure { grid-column: 1; margin: 0; }
.case__info   { grid-column: 2; }
.case__body   { grid-column: 3; }

/* 짝수 항목은 이미지를 오른쪽으로 보내 좌우 리듬을 만듭니다.
   과제명이 먼저 읽히도록 제목 열은 항상 왼쪽에 둡니다. */
@media (min-width: 1120px) {
  .case:nth-of-type(even) .case__grid {
    grid-template-columns: minmax(240px, 1fr) minmax(260px, 1.15fr) minmax(200px, 288px);
  }
  .case:nth-of-type(even) .case__info   { grid-column: 1; }
  .case:nth-of-type(even) .case__body   { grid-column: 2; }
  .case:nth-of-type(even) .case__figure { grid-column: 3; grid-row: 1; }
}
@media (max-width: 1119px) {
  .case__grid { grid-template-columns: minmax(160px, 240px) 1fr; }
  .case__figure { grid-column: 1; }
  .case__info   { grid-column: 2; }
  .case__body   { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  .case__grid { grid-template-columns: 1fr; }
  .case__figure, .case__info, .case__body { grid-column: 1; }
}

.case__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.case__no { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); }
.case__role { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); white-space: nowrap; }
.case h3 {
  font-weight: 600; font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.32; letter-spacing: -0.02em; margin-bottom: 12px;
}
.case__sub {
  font-size: 13.5px; line-height: 1.7; color: var(--text-subtle); margin-bottom: 22px;
}
.case__sub .num { font-size: 13px; color: var(--text-muted); }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case__body { display: grid; gap: 18px; align-content: start; }
.case__row { display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start; }
.case__label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); padding-top: 5px;
}
.case__row p { font-size: 15px; line-height: 1.8; color: var(--text-muted); font-weight: 300; }
.case__row--result .case__label { color: var(--accent-2); }
.case__row--result p { color: var(--text); font-weight: 400; }

.record__count {
  padding-top: 22px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
}

.empty {
  position: relative; display: none;
  padding: clamp(40px, 7vw, 72px) 24px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); text-align: center;
}
.empty.is-on { display: block; }
.empty__zero {
  font-family: var(--font-display); font-weight: 700; font-size: 40px;
  color: var(--line-strong); margin-bottom: 12px;
}
.empty__title { font-size: 16px; margin-bottom: 8px; }
.empty__desc { font-size: 14px; color: var(--text-subtle); margin-bottom: 24px; }

/* ==========================================================================
   과제 이미지
   밝은 바탕의 인포그래픽 15장이 저마다 다른 색이라, 어두운 화면에서 그대로
   두면 흰 사각형이 튑니다. 평소에는 액센트로 물들이고 밝기를 낮춰 두었다가
   올려놓으면 원래 색으로 되살립니다.
   ========================================================================== */
.thumb {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; padding: 0;
}
.thumb img {
  width: 100%; height: auto; display: block;
  filter: grayscale(0.55) brightness(0.72) contrast(1.05)
          sepia(0.4) hue-rotate(175deg) saturate(1.6);
  transition: filter 340ms var(--ease);
}
.thumb:hover img, .thumb:focus-visible img { filter: none; }
.thumb::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(138, 180, 255, 0.24);
  background: rgba(11, 14, 17, 0.28);
  transition: background 340ms var(--ease);
}
.thumb:hover::after, .thumb:focus-visible::after { background: transparent; }
.thumb__zoom {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-sm);
  background: rgba(11, 14, 17, 0.86); color: var(--accent);
  opacity: 0; transition: opacity 200ms var(--ease);
}
.thumb:hover .thumb__zoom, .thumb:focus-visible .thumb__zoom { opacity: 1; }

.case__figure .thumb { aspect-ratio: 1 / 1; }
.case__figure .thumb img { height: 100%; object-fit: cover; }

/* — 원본 보기 — */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; place-items: center; padding: clamp(16px, 4vw, 48px);
  background: rgba(5, 7, 9, 0.92); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(920px, 100%); max-height: 100%;
  width: auto; height: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
}
.lightbox__close {
  position: absolute; top: 16px; right: 16px;
  min-width: 44px; min-height: 44px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font-size: 18px; border-radius: var(--r-sm);
}
.lightbox__close:hover { background: rgba(230, 235, 239, 0.1); }
.lightbox__cap {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center; font-size: 13px; color: var(--text-subtle);
  padding: 0 24px;
}

/* ==========================================================================
   연혁
   ========================================================================== */
.tl__row {
  display: grid; grid-template-columns: minmax(72px, 120px) 1fr;
  gap: clamp(16px, 3vw, 40px); padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--line);
}
.tl__year {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3vw, 36px); line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.tl__events { display: grid; gap: 14px; }
.tl__event { display: grid; grid-template-columns: 10px 1fr; gap: 16px; align-items: start; }
.tl__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 9px; }
.tl__title { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.tl__desc { display: block; font-size: 14px; line-height: 1.8; color: var(--text-subtle); margin-top: 5px; font-weight: 300; }

/* ==========================================================================
   푸터
   ========================================================================== */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); color: var(--text); }
/* 연락처 열을 넓게 잡습니다. 주소가 한 줄에 들어가야 하고,
   본사·연구소처럼 여러 곳을 등록해도 줄이 접히지 않아야 합니다. */
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(200px, 0.7fr) minmax(0, 2.3fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 899px) {
  .footer__inner { grid-template-columns: 1fr; }
}
.footer__brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 26px; letter-spacing: -0.02em; margin-bottom: 12px;
}
.footer__desc { font-size: 13.5px; line-height: 1.8; color: var(--text-subtle); }
.footer__contact { display: grid; gap: 14px; font-size: 14px; align-content: start; }
.footer__contact > [data-render] { display: grid; gap: 14px; }
.footer__row { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: baseline; }
@media (max-width: 479px) {
  .footer__row { grid-template-columns: 1fr; gap: 2px; }
}
.footer__label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); padding-top: 4px;
}
.footer__value { line-height: 1.7; color: var(--text-muted); }
.footer__value a { color: var(--accent); }
.footer__value a:hover { color: var(--accent-soft); }
.footer__bottom {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px; color: var(--text-faint);
}
.footer__bottom a { color: var(--text-faint); }
.footer__bottom a:hover { color: var(--text-subtle); }

/* ==========================================================================
   인라인 편집 모드 (관리자 로그인 후에만 활성화)
   ========================================================================== */
.editbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: var(--surface-3); color: var(--text);
  border-top: 1px solid var(--accent);
  font-size: 13px;
}
body.is-editing .editbar { display: flex; }
body.is-editing { padding-bottom: 64px; }
.editbar__spacer { flex: 1; }
.editbar__status { color: var(--text-muted); font-size: 12.5px; }
.editbar button {
  min-height: 34px; padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm);
  cursor: pointer; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
}
.editbar button.primary { background: var(--accent); border-color: var(--accent); color: #0b0e11; }
.editbar button:disabled { opacity: 0.45; cursor: not-allowed; }

body.is-editing [data-t] {
  outline: 1px dashed rgba(138, 180, 255, 0.5);
  outline-offset: 2px; cursor: text; min-width: 12px; min-height: 1em;
}
body.is-editing [data-t]:hover { background: rgba(138, 180, 255, 0.1); }
body.is-editing [data-t]:focus { outline: 2px solid var(--accent); background: rgba(138, 180, 255, 0.14); }
body.is-editing [data-t].is-dirty { background: rgba(94, 224, 181, 0.16); }

/* ==========================================================================
   반응형 · 접근성 · 인쇄
   ========================================================================== */
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  .case__row { grid-template-columns: 1fr; gap: 4px; }
  .tl__row { grid-template-columns: 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* 어두운 화면을 그대로 인쇄하면 잉크를 다 쓰므로 밝게 뒤집습니다. */
@media print {
  :root {
    --bg: #ffffff; --surface: #ffffff; --surface-2: #ffffff; --surface-3: #f0f2f6;
    --text: #14181d; --text-muted: #3c454f; --text-subtle: #5a6570; --text-faint: #7a838d;
    --line: #d5dae0; --line-strong: #aab3bd;
    --accent: #2f5fa8; --accent-2: #1c7a5e;
  }
  html, body { background: #fff; color: #14181d; }
  .nav, .hero__fig, .filters, .editbar, .lightbox { display: none !important; }
  .hero { background: #fff; }
  .nav__brand img { filter: none; }
  .thumb img { filter: none; }
  .thumb::after { display: none; }
  .case { break-inside: avoid; }
}
