/* OWKS — Figma(ZUQioH4g8RH49d1yZuDlsh) 기준 스타일. index.css(CMS 기반에서 온 공통) 위에 덮어씀 */

/* ============================================================
   Design tokens — Figma OWKS 라이브러리(Variables "OWKS Color", Text Styles EN/*) 기준.
   아래 규칙은 이 토큰만 씀. 값을 바꿀 땐 여기만 고치면 됨.
   1) Primitive: 색 원값(gray-*)  2) Semantic: 쓰임새(--owks-*), Light/Dark  3) Type: 크기·행간·자간·굵기
   ============================================================ */
/* 국문은 Pretendard Medium — 한글 글자에만 쓰이고(unicode-range), 영문·숫자는 Neue Haas 그대로.
   굵기 지정과 상관없이 늘 Medium (한 파일을 모든 굵기에 연결) */
@font-face {
  font-family: 'Owks KR';
  src: url('../fonts/pretendard/Pretendard-Medium-KR.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F, U+AC00-D7A3;
}

/* Matter (Displaay, Trial) */
@font-face { font-family: 'Matter'; src: url('../fonts/matter/Matter-TRIAL-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Matter'; src: url('../fonts/matter/Matter-TRIAL-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Matter'; src: url('../fonts/matter/Matter-TRIAL-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Matter'; src: url('../fonts/matter/Matter-TRIAL-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* 영문은 Matter (Trial — 실서비스 전 정식 라이선스 파일로 교체), 국문은 위 Pretendard */
  --font-owks: 'Owks KR', 'Matter', 'Neue Haas Grotesk Text Pro', 'NHaasGroteskTXPro-55Rg', 'Helvetica Neue', Helvetica, Arial, 'Apple SD Gothic Neo', sans-serif;
  --font-sans: var(--font-owks);
  --font-display: var(--font-owks);
  --owks-gutter: 32px;
  --gutter: var(--owks-gutter); /* 기반 index.css 호환 */
  --content-max: none;

  /* Color — primitive */
  --owks-gray-0: #ffffff;
  --owks-gray-25: #f3f4f4;
  --owks-gray-50: #f2f2f2;
  --owks-gray-100: #e6e6e6;
  --owks-gray-150: #e0e0e0;
  --owks-gray-400: #9ea6b0;
  --owks-gray-500: #77828f;
  --owks-gray-800: #2a2a2a;
  --owks-gray-850: #222222;
  --owks-gray-875: #1e1e1e;
  --owks-gray-900: #121212;
  --owks-gray-950: #101010;

  /* Color — semantic (Light) */
  --owks-bg: var(--owks-gray-0);
  --owks-ink: var(--owks-gray-900);
  --owks-muted: var(--owks-gray-500);
  --owks-desc: var(--owks-gray-400);
  --owks-line: var(--owks-gray-150);
  --owks-placeholder: var(--owks-gray-100);
  --owks-tag: var(--owks-gray-50);
  --owks-panel: var(--owks-gray-25);
  --owks-glass: rgba(232, 232, 232, 0.8);
  --owks-divider: rgba(119, 130, 143, 0.5);
  --owks-scrim: rgba(0, 0, 0, 0.2);
  /* 반전 면 (펼친 Footer 등) */
  --owks-inv-bg: var(--owks-gray-950);
  --owks-inv-ink: var(--owks-gray-50);
  --owks-inv-muted: rgba(242, 242, 242, 0.4);
  /* 떠 있는 바 유리 — 밝은 면 / 어두운 면 */
  --owks-glass-light-bg: rgba(236, 236, 236, 0.62);
  --owks-glass-light-solid: rgba(236, 236, 236, 0.92); /* 반전 예외일 때 */
  --owks-glass-light-ink: var(--owks-gray-900);
  --owks-glass-light-muted: var(--owks-gray-500);
  --owks-glass-dark-bg: rgba(52, 52, 52, 0.55);
  --owks-glass-dark-solid: rgba(36, 36, 36, 0.92); /* 반전 예외일 때 */
  --owks-glass-dark-ink: var(--owks-gray-50);
  --owks-glass-dark-muted: rgba(242, 242, 242, 0.5);

  /* Type — Figma Text Styles (EN). 크기 · 행간 · 자간 */
  --owks-weight-regular: 400;   /* 55 Roman */
  --owks-weight-medium: 500;    /* 65 Medium */
  --owks-text-hero: clamp(32px, 4vw, 64px); /* 랜딩 모토 */
  --owks-text-display-xl: 40px; /* About 첫 문장 */
  --owks-text-display-m: 28px;  /* 검색 입력 */
  --owks-text-display: 32px;    /* EN/Display — 32/100% */
  --owks-text-display-s: 24px;  /* Display 의 모바일 크기 */
  --owks-text-heading: 20px;    /* EN/Heading — 20/120% */
  --owks-text-heading-s: 18px;  /* Heading 의 모바일·패널 크기 */
  --owks-text-body-l: 16px;     /* EN/Body L — 16/130% */
  --owks-text-body: 14px;       /* EN/Body — 14/140% */
  --owks-text-caption: 12px;    /* EN/Caption — 12/130% */
  --owks-text-micro: 12px;      /* EN/Micro — 웹 최소 글자 크기 12 (카드 태그 칩 · 커서 라벨) */

  --owks-leading-hero: 1.05;
  --owks-leading-display: 1;
  --owks-leading-display-xl: 1.1;
  --owks-leading-heading: 1.2;
  --owks-leading-body-l: 1.3;
  --owks-leading-snug: 1.3;
  --owks-leading-body: 1.4;
  --owks-leading-relaxed: 1.5;

  --owks-tracking-hero: -0.02em;
  --owks-tracking-display-xl: -0.8px;
  --owks-tracking-display: -0.32px;  /* -1% */
  --owks-tracking-display-m: -0.3px;
  --owks-tracking-snug: -0.2px;
  --owks-tracking-heading: -0.1px;   /* -0.5% */
  --owks-tracking-body-l: -0.048px;  /* -0.3% */
  --owks-tracking-body: 0;
  --owks-tracking-micro: 0.05px;
  --owks-tracking-label: 0.05em;     /* 대문자 라벨 (VIEW CASE) */

  /* Radius */
  --owks-radius-chip: 2px;    /* 태그 칩 · 커서 라벨 */
  --owks-radius-button: 4px;  /* 버튼 · 바 · 패널 */
  --owks-radius-media: 6px;   /* 이미지 카드 */
  --owks-radius-panel: 8px;   /* 검색창 · Contact 줄 상자 */

  /* Chip — 카드 태그 (EN/Micro) */
  --owks-chip-pad: 4px 6px;
  --owks-chip-radius: var(--owks-radius-chip);
  --owks-chip-bg: var(--owks-tag);
  --owks-chip-ink: var(--owks-ink);
  --owks-chip-text: var(--owks-text-micro);
  --owks-chip-leading: var(--owks-leading-heading);
  --owks-chip-tracking: var(--owks-tracking-micro);
  /* Chip — 커서 라벨 (VIEW CASE / VIEW NEWS) */
  --owks-label-pad: 6px 8px;
  --owks-label-gap: 6px;
  --owks-label-bg: color-mix(in srgb, var(--owks-bg) 88%, transparent);
  --owks-label-ink: var(--owks-ink);

  /* Button — 공통 (EN/Body Medium) */
  --owks-button-height: 36px;
  --owks-button-pad-x: 14px;
  --owks-button-radius: var(--owks-radius-button);
  --owks-button-text: var(--owks-text-body);
  --owks-button-leading: var(--owks-leading-body);
  --owks-button-weight: var(--owks-weight-medium);
  /* Button — Glass (헤더 Contact · 패널 닫기 · 하단 바) */
  --owks-button-glass-bg: var(--owks-glass);
  --owks-button-glass-ink: var(--owks-ink);
  --owks-button-close-size: 40px;
  /* Button — Solid (어두운 채움) */
  --owks-button-solid-bg: var(--owks-ink);
  --owks-button-solid-ink: var(--owks-bg);
  --owks-button-solid-pad: 8px 12px;
  /* Button — Outline (View more) */
  --owks-button-outline-line: var(--owks-line);
  --owks-button-outline-ink: var(--owks-ink);
  --owks-button-outline-pad: 10px 32px;
}

/* Color — semantic (Dark) */
:root[data-theme="dark"] {
  --owks-bg: var(--owks-gray-900);
  --owks-ink: var(--owks-gray-50);
  --owks-desc: var(--owks-gray-500);
  --owks-line: var(--owks-gray-800);
  --owks-placeholder: var(--owks-gray-850);
  --owks-tag: var(--owks-gray-850);
  --owks-panel: var(--owks-gray-875);
  --owks-glass: rgba(40, 40, 40, 0.8);
  --owks-inv-bg: var(--owks-gray-0);
  --owks-inv-ink: var(--owks-gray-900);
  --owks-inv-muted: rgba(18, 18, 18, 0.45);
}

body {
  padding-top: 0; /* 기반의 fixed nav 보정값 제거 — Header 는 sticky */
  font-family: var(--font-owks);
  background: var(--owks-bg);
  color: var(--owks-ink);
}

/* 기반 index.css 의 .works(페이지 여백·간격) 무효화 */
main.works {
  max-width: none;
  padding: 0;
  display: block;
}

/* Header — 56px, 로고 왼쪽 · 메뉴 가운데 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* 네비는 화면 정중앙 — 로고·Contact 폭이 달라도 */
  align-items: center;
  column-gap: 16px;
  padding: 0 var(--owks-gutter);
  background: var(--owks-bg);
  font-weight: var(--owks-weight-medium);
}

.site-header__logo {
  font-size: var(--owks-text-heading);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-heading);
  white-space: nowrap;
}

/* 로고 SVG = currentColor → 테마·푸터 반전을 글자색으로 따라감 */
.site-header__logo { display: flex; align-items: center; justify-self: start; }
.site-header__logo svg { height: 20px; width: auto; display: block; }
.footer__wordmark svg { width: 100%; height: auto; display: block; }

.site-header__nav {
  display: flex;
  gap: 28px;
  font-size: var(--owks-text-body);
  line-height: var(--owks-leading-body);
}

.site-header__nav a { transition: color 0.2s ease; } /* 다른 링크들과 같은 호버 속도 */
.site-header__nav a:hover { color: var(--owks-muted); }

.site-header__spacer { width: 112px; }

/* Utility Bar — 화면 하단 중앙, bottom 32 고정 */
.utility {
  position: fixed;
  left: 50%;
  bottom: 48px;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
}

.utility__pill {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--owks-radius-button);
  background: var(--owks-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.utility__group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.utility__item {
  font: inherit;
  font-size: var(--owks-text-body-l);
  line-height: var(--owks-leading-body-l);
  letter-spacing: var(--owks-tracking-body-l);
  color: var(--owks-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.utility__item.is-active,
.utility__item:hover { color: var(--owks-ink); }

.utility__divider {
  width: 1px;
  height: 16px;
  background: var(--owks-divider);
}

.utility__icon {
  display: flex;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:root[data-theme="dark"] .utility__icon img { filter: invert(1); }

/* 기반에서 온 언어·테마 알약은 Utility Bar 로 대체 */
.dock { display: none; }

/* Work 목록 */
.works__intro { padding: 200px var(--owks-gutter) 80px; }

.works__intro h1 {
  max-width: 620px;
  margin: 0;
  font-size: var(--owks-text-display);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-display);
  letter-spacing: var(--owks-tracking-display);
}

.works__filter {
  margin: 0 var(--owks-gutter);
  padding-top: 16px;
  border-top: 1px solid var(--owks-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: var(--owks-weight-medium);
}

.works__tabs {
  display: flex;
  gap: 16px;
  font-size: var(--owks-text-heading);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-heading);
}

.works__tabs a { color: var(--owks-muted); }
.works__tabs a[aria-current],
.works__tabs a:hover { color: var(--owks-ink); }

.works__selects { display: flex; gap: 24px; }

.works__selects select {
  appearance: none;
  font: inherit;
  font-size: var(--owks-text-body);
  line-height: var(--owks-leading-body);
  color: var(--owks-ink);
  background: none;
  border: 0;
  padding: 0 14px 0 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 4px 4px;
  background-position: right 4px center, right 0 center;
  background-repeat: no-repeat;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 16px;
  row-gap: 60px;
  padding: 24px var(--owks-gutter) 0;
}

.works__empty { color: var(--owks-muted); }

.works__more {
  display: flex;
  justify-content: center;
  padding: 80px 0 160px;
}

.button-outline {
  font: inherit;
  font-size: var(--owks-button-text);
  font-weight: var(--owks-button-weight);
  line-height: var(--owks-button-leading);
  color: var(--owks-button-outline-ink);
  background: none;
  border: 1px solid var(--owks-button-outline-line);
  border-radius: var(--owks-button-radius);
  padding: var(--owks-button-outline-pad);
  cursor: pointer;
}

.button-outline:hover { border-color: var(--owks-ink); }

/* ProjectCard — 4:5 이미지 · 제목/설명 · 태그 */
.project-card { display: flex; flex-direction: column; }
.project-card[hidden] { display: none; }

.project-card__image {
  aspect-ratio: 4 / 5;
  border-radius: var(--owks-radius-media);
  overflow: hidden;
  background: var(--owks-placeholder);
}

.project-card__image img,
.project-card__image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card__image img,
.project-card:hover .project-card__image video { transform: scale(1.02); }

.project-card__meta {
  padding-top: 16px;
  font-size: var(--owks-text-body-l);
  line-height: var(--owks-leading-body-l);
  letter-spacing: var(--owks-tracking-body-l);
}

.project-card__meta p { margin: 0; }
.project-card__meta p:first-child { font-weight: var(--owks-weight-medium); } /* 제목 — News 카드 제목과 같은 Medium */
.project-card__desc { color: var(--owks-desc); }

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
}

.tag {
  padding: var(--owks-chip-pad);
  border-radius: var(--owks-chip-radius);
  background: var(--owks-chip-bg);
  font-size: var(--owks-chip-text);
  line-height: var(--owks-chip-leading);
  letter-spacing: var(--owks-chip-tracking);
}

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

@media (max-width: 640px) {
  .site-header__spacer { display: none; }
  .site-header__nav { gap: 16px; }
  .works__intro { padding-top: 120px; }
  .works__intro h1 { font-size: var(--owks-text-display-s); }
  .works__filter { flex-direction: column; align-items: flex-start; gap: 16px; }
  .works__tabs { flex-wrap: wrap; font-size: var(--owks-text-heading-s); }
  .works__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .utility { bottom: 16px; }
  .utility__pill { gap: 16px; padding: 0 12px; }
}

/* Request 알약 — .utility__item 의 background:none 보다 우선 */
.utility__pill.utility__item { background: var(--owks-glass); color: var(--owks-ink); }
.tag { color: var(--owks-chip-ink); }
.works__selects select { field-sizing: content; }

/* Footer 인터렉션 — 처음엔 Owhyworks 로고만, 끝까지 스크롤하면 펼쳐지며 정보가 나오고 검정으로 반전.
   --p: 푸터가 화면에 들어온 비율(0→1), --k: 반전 정도(0→1), --shift: 로고를 화면 아래에 붙여 두는 이동값 (footer.php 스크립트가 설정) */
/* 펼친 Footer 는 지금 테마의 반대 — 라이트: 검정 바탕 / 다크: 흰 바탕 */

.footer {
  --p: 1;
  --k: 1;
  --shift: 0px;
  --color-ink: color-mix(in srgb, var(--owks-inv-ink) calc(var(--k) * 100%), var(--owks-ink));
  --color-ink-muted: color-mix(in srgb, var(--owks-inv-muted) calc(var(--k) * 100%), var(--owks-muted));
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--owks-inv-bg) calc(var(--k) * 100%), var(--owks-bg));
  color: var(--color-ink);
}

.footer__top {
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 24px));
  visibility: visible;
}

.footer.is-collapsed .footer__top { visibility: hidden; } /* 숨은 동안 링크에 탭 이동 안 되게 */

.footer__wordmark { transform: translateY(var(--shift)); padding-bottom: var(--owks-gutter); } /* 로고 아래 여백 = 좌우 여백 (예전 88: 하단 바 피하기용) */

.footer img { filter: invert(var(--k)); }
:root[data-theme="dark"] .footer img { filter: invert(calc(1 - var(--k))); }

.footer__cta { background: var(--color-ink); color: color-mix(in srgb, var(--owks-inv-bg) calc(var(--k) * 100%), var(--owks-bg)); }

@media (max-width: 1024px) {
  .footer { height: auto; min-height: 100svh; }
}

/* 반전은 스크롤에 섞지 않고 임계점에서 0.6초 전환 (중간 회색 상태 없음) */
@property --k { syntax: '<number>'; inherits: true; initial-value: 1; }
.footer { transition: --k 0.6s cubic-bezier(0.2, 0, 0, 1); }
.footer.is-collapsed { --k: 0; }
.footer:not(.is-collapsed) { --k: 1; }

/* 펼쳐지면 헤더는 위로 비켜 줌 */
.site-header { transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1); }
.footer-open .site-header { transform: translateY(-100%); }
/* 하단 바·설정 버튼도 펼친 Footer 에서는 비켜 줌 — 로고 아래 여백을 좁혀도 가리지 않게 */
.utility, .settings { transition: opacity 0.25s ease; }
.footer-open .utility, .footer-open .settings { opacity: 0; pointer-events: none; }

.utility__pill.utility__item { padding: 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .footer, .site-header { transition: none; }
}

/* 검색 — 하단 Utility Bar 가 그 자리에서 크게 늘어나 검색창이 되고, 닫으면 같은 길로 줄어들어 바로 돌아옴.
   --from: 열기 직전 Utility Bar 폭 (nav.js 가 잼). 바(44px) → 검색창(72px), 아래쪽 기준으로 위·양옆으로 펼쳐짐 */
dialog.search {
  --from: 360px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: fixed;
  inset: auto 0 48px;
  width: min(1140px, 100% - 2 * var(--owks-gutter));
  max-width: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
  z-index: 61; /* Utility Bar(60) 위 */
}

/* 뒤 페이지 블러 + 살짝 어둡게 — 헤더(50) 위, Utility Bar(60) 아래 */
.search-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--owks-scrim);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: search-fade 0.45s ease both;
}

.search-layer[hidden] { display: none; }
:root:not(.search-open) .search-layer { animation: search-out 0.42s ease both; }

.search__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 24px;
  border-radius: var(--owks-radius-panel);
  background: var(--owks-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: search-grow 0.5s var(--ease) both;
}

.search__bar > img { flex: none; width: 20px; height: 20px; }
:root[data-theme="dark"] .search__bar > img { filter: invert(1); }

.search__bar > * { animation: search-fade 0.25s 0.2s ease both; }

.search__bar input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: var(--owks-text-display-m);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-display-m);
  color: var(--owks-ink);
  background: none;
  border: 0;
  outline: none;
}

.search__bar input::placeholder { color: var(--owks-muted); }
.search__bar input::-webkit-search-cancel-button { display: none; }

.search__close {
  display: flex;
  padding: 6px;
  color: var(--owks-ink);
  background: none;
  border: 0;
  cursor: pointer;
}

.search__close svg { width: 20px; height: 20px; }

/* 원래 바는 늘어나는 검색창 아래에서 사라졌다가, 줄어드는 동안 그 아래에서 다시 나타남 */
.utility { transition: opacity 0.25s ease; }
.search-open .utility { opacity: 0; pointer-events: none; transition-duration: 0.15s; }

/* 닫기: 글자 먼저 빠지고 → 검색창이 바 크기로 줄어듦 */
dialog.search.is-closing .search__bar { animation: search-shrink 0.4s var(--ease) both; }
dialog.search.is-closing .search__bar > * { animation: search-out 0.12s ease both; }

/* 열기: 바 자리에서 나타나며 커짐 / 닫기: 바 크기로 줄어들면서 마지막에 원래 바 위로 녹아 사라짐 */
@keyframes search-grow {
  0% { clip-path: inset(calc(100% - var(--owks-button-height)) max(0px, (100% - var(--from)) / 2) 0 round var(--owks-radius-button)); opacity: 0; }
  20% { opacity: 1; }
  100% { clip-path: inset(0 0 0 0 round var(--owks-radius-panel)); opacity: 1; }
}

@keyframes search-shrink {
  0% { clip-path: inset(0 0 0 0 round var(--owks-radius-panel)); opacity: 1; }
  60% { opacity: 1; }
  100% { clip-path: inset(calc(100% - var(--owks-button-height)) max(0px, (100% - var(--from)) / 2) 0 round var(--owks-radius-button)); opacity: 0; }
}

@keyframes search-fade { from { opacity: 0; } }
@keyframes search-out { to { opacity: 0; } }

@media (max-width: 640px) {
  dialog.search { bottom: 16px; }
  .search__bar { height: 56px; padding: 0 16px; }
  .search__bar input { font-size: var(--owks-text-heading); }
}

@media (prefers-reduced-motion: reduce) {
  dialog.search *, .search-layer { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* 페이지 좌우 여백 — 데스크톱 64, 태블릿 32, 모바일 24 */
@media (max-width: 1024px) { :root { --owks-gutter: 32px; --gutter: var(--owks-gutter); } }
@media (max-width: 640px) { :root { --owks-gutter: 24px; --gutter: var(--owks-gutter); } }

/* Footer 위쪽 여백 = 헤더 로고가 화면 위에서 떨어진 거리 ((88 − 24) / 2 = 32) */
.footer { padding-top: calc((64px - 24px) / 2); }

/* News — 날짜 · 제목 · 구분 한 줄씩, 구분선 */
.news__list {
  margin: 0 var(--owks-gutter);
  border-top: 1px solid var(--owks-line);
  padding-bottom: 160px;
}

.news__row {
  display: grid;
  grid-template-columns: 160px 1fr 240px;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--owks-line);
  font-size: var(--owks-text-heading);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-heading);
  font-weight: var(--owks-weight-medium);
  transition: color 0.2s ease;
}

.news__row:hover { color: var(--owks-muted); }
.news__date, .news__source { color: var(--owks-muted); font-size: var(--owks-text-body); line-height: var(--owks-leading-relaxed); }
.news__source { text-align: right; }
.news__empty { padding: 16px 0; color: var(--owks-muted); }

@media (max-width: 640px) {
  .news__row { grid-template-columns: 1fr; gap: 4px; }
  .news__source { text-align: left; }
}

/* Request 패널 — 하단 Request 버튼 자리에서 커져 연락처 목록이 됨 (Justified.Studio 참고) */
.search-layer { /* 검색·Request 공용 */ }
:root.request-open .search-layer { animation: search-fade 0.45s ease both; }
/* Request 는 검색과 달리 바 전체를 덮지 않음 — Request 버튼 자리만 패널로 바뀌고 나머지 버튼은 그대로 */
.request-open [data-request-toggle] { visibility: hidden; }

dialog.request {
  --ct: 0px; --cr: 0px; --cb: 0px; --cl: 0px; /* 버튼 자리 (nav.js) */
  --ease: cubic-bezier(0.19, 1, 0.22, 1); /* Justified.Studio 글자 전환과 같은 곡선 */
  position: fixed;
  inset: 0 0 auto auto; /* top·right 는 nav.js 가 헤더의 Request 버튼에 맞춤 */
  z-index: 61;
  width: min(360px, 100% - 32px);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.request__panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
  border-radius: var(--owks-radius-button); /* 버튼과 같은 4px 유지 — 줄어들어도 모서리가 안 변함 */
  background: var(--owks-panel);
  color: var(--owks-ink);
  animation: request-grow 0.35s var(--ease) both;
}


.request__panel > * { animation: search-fade 0.2s 0.12s ease both; }

.request__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.request__head p {
  margin: 0;
  font-size: var(--owks-text-heading-s);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body-l);
  letter-spacing: var(--owks-tracking-heading);
}

.request__sub { color: var(--owks-desc); }

.request__close {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--owks-button-close-size);
  height: var(--owks-button-close-size);
  border: 0;
  border-radius: var(--owks-button-radius);
  background: var(--owks-button-glass-bg);
  color: var(--owks-button-glass-ink);
  cursor: pointer;
}

.request__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
}

.request__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body);
  letter-spacing: var(--owks-tracking-body);
}

.request__mail { color: var(--owks-desc); opacity: 0.7; transition: opacity 0.2s ease, color 0.2s ease; }
.request__list a:hover .request__mail { color: var(--owks-ink); opacity: 1; }

/* 닫기 — 설정(≡) 패널과 같은 속도감: 0.32초 · 같은 곡선(--ease) */
dialog.request.is-closing .request__panel { animation: request-shrink 0.32s var(--ease) both; }
dialog.request.is-closing .request__panel > * { visibility: hidden; animation: none; }

/* 버튼 박스가 그대로 커지고 줄어듦 — 투명해지지 않고, 색만 버튼(유리) ↔ 패널 사이로 바뀜 */
@keyframes request-grow {
  from { clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--owks-radius-button)); background-color: var(--glass-from, var(--owks-glass)); }
  to { clip-path: inset(0 0 0 0 round var(--owks-radius-button)); }
}

@keyframes request-shrink {
  from { clip-path: inset(0 0 0 0 round var(--owks-radius-button)); }
  to { clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--owks-radius-button)); background-color: var(--glass-from, var(--owks-glass)); }
}
/* 헤더 Contact 는 박스가 없는 글자 버튼 → 시작·끝 색을 투명으로 (하단 바 알약에서 열릴 땐 기존 유리색 그대로) */
dialog.request.from-header { --glass-from: transparent; }
dialog.request.from-header.is-closing .request__panel {
  animation: request-shrink-clip 0.32s var(--ease) both, request-bg-out 0.32s cubic-bezier(0.7, 0, 0.84, 0) both;
}
@keyframes request-shrink-clip {
  from { clip-path: inset(0 0 0 0 round var(--owks-radius-button)); }
  to { clip-path: inset(var(--ct) var(--cr) var(--cb) var(--cl) round var(--owks-radius-button)); }
}
@keyframes request-bg-out { to { background-color: transparent; } }

/* 줄어드는 동안 뒤 블러가 같이 풀리고, 바는 착지한 순간 바로 보이며 글자만 짧게 나타남 */
:root.request-closing .search-layer { animation: search-out 0.32s ease both; }
.utility.is-landed [data-request-toggle] { animation: request-label 0.2s ease both; }
@keyframes request-label { from { color: transparent; } }

@media (max-width: 640px) {
  .request__panel { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  dialog.request * { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

/* 검색은 설정(언어·테마)과 다른 기능이라 따로 정사각 알약 */
.utility__pill.utility__icon {
  justify-content: center;
  width: 44px;
  padding: 0;
  background: var(--owks-glass);
}

/* 하단 바 = 상단 메뉴와 같은 글씨 (14 · Medium · 140%), 알약 높이 36 */
.utility__pill { height: var(--owks-button-height); padding: 0 var(--owks-button-pad-x); gap: 20px; }
.utility__item { font-size: var(--owks-text-body); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body); letter-spacing: var(--owks-tracking-body); }
.utility__divider { height: 12px; }
.utility__pill.utility__icon { width: var(--owks-button-height); padding: 0; }
.utility__icon img { width: 14px; height: 14px; }
.utility__pill.utility__item { padding: 0 var(--owks-button-pad-x); }

/* 헤더: 내릴 때 숨김 · 올릴 때 나타남 */
.header-hidden .site-header { transform: translateY(-100%); }

/* 하단 바 — 작업 필터(카테고리 · Industry · Year) | 검색 | Request */
.utility__filters { gap: 20px; }

.utility__select {
  appearance: none;
  field-sizing: content;
  font: inherit;
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body);
  color: var(--owks-ink);
  background: none;
  border: 0;
  padding: 0 14px 0 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 4px 4px;
  background-position: right 4px center, right 0 center;
  background-repeat: no-repeat;
}

.utility__select:hover { color: var(--owks-muted); }
.utility__select:focus-visible { outline: 1px solid var(--owks-ink); outline-offset: 4px; border-radius: var(--owks-radius-chip); }

/* 오른쪽 아래 햄버거 + 설정 메뉴 (낮은 위계) — 하단 바와 같은 높이·크기, 메뉴는 위로 열림 */
.settings {
  position: fixed;
  right: var(--owks-gutter);
  bottom: 48px;
  z-index: 60;
  --owks-bar-bg: var(--owks-glass-light-bg);
  --owks-bar-ink: var(--owks-glass-light-ink);
  --owks-bar-muted: var(--owks-glass-light-muted);
}

.settings.is-on-dark {
  --owks-bar-ink: var(--owks-glass-dark-ink);
  --owks-bar-muted: var(--owks-glass-dark-muted);
}

.settings__toggle {
  display: grid;
  place-items: center;
  width: var(--owks-button-height);
  height: var(--owks-button-height);
  padding: 0;
  border: 0;
  border-radius: var(--owks-button-radius);
  color: var(--owks-bar-ink);
  background: var(--owks-bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.settings__toggle svg { width: 16px; height: 16px; transition: opacity 0.2s ease; }
.settings__toggle:hover svg { opacity: 0.55; }

.settings__menu {
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  position: absolute;
  bottom: 0;   /* 햄버거 버튼을 덮고 그 자리에서 왼쪽 위로 커짐 */
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  padding: 16px 16px 0;
  border-radius: var(--owks-radius-button);
  color: var(--owks-bar-ink);
  background: var(--owks-bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  animation: settings-grow 0.35s var(--ease) both;
}

.settings .utility__item { color: var(--owks-bar-muted); }
.settings .utility__item.is-active,
.settings .utility__item:hover { color: var(--owks-bar-ink); }
.settings__label { color: var(--owks-bar-muted); }

.settings__menu[hidden] { display: none; }

.settings__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
}


/* 버튼(오른쪽 아래 36×36) ↔ 패널 — Request 와 같은 곡선·같은 순서 */
@keyframes settings-grow {
  from { clip-path: inset(calc(100% - var(--owks-button-height)) 0 0 calc(100% - var(--owks-button-height)) round var(--owks-radius-button)); }
  to { clip-path: inset(0 0 0 0 round var(--owks-radius-button)); }
}

@keyframes settings-shrink {
  from { clip-path: inset(0 0 0 0 round var(--owks-radius-button)); }
  to { clip-path: inset(calc(100% - var(--owks-button-height)) 0 0 calc(100% - var(--owks-button-height)) round var(--owks-radius-button)); }
}

.settings__menu > * { animation: search-fade 0.2s 0.12s ease both; }
.settings__menu.is-closing { animation: settings-shrink 0.32s var(--ease) both; }
.settings__menu.is-closing > * { visibility: hidden; animation: none; }

/* × 는 햄버거와 같은 자리·같은 크기 */
.settings__close {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: var(--owks-button-height);
  height: var(--owks-button-height);
  margin-right: -16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--owks-bar-ink);
  cursor: pointer;
}

.settings__close svg { transition: opacity 0.2s ease; }
.settings__close:hover svg { opacity: 0.55; }

.settings-open .settings__toggle { visibility: hidden; }
.settings__toggle.is-landed svg { animation: search-fade 0.2s ease both; }

@media (prefers-reduced-motion: reduce) {
  .settings__menu, .settings__menu > * { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
}

@media (max-width: 640px) {
  .settings { bottom: 16px; }
  .utility__filters { gap: 14px; }
}

/* 하단 필터 드롭업 — 알약 자체가 위로 늘어나며 목록이 붙어 나옴.
   열린 필터 이름만 진하게, 나머지는 회색. 옵션에 마우스를 올리면 버튼 글자가 그 옵션으로 바로 바뀜(nav.js) */
.utility__filters { position: relative; transition: border-radius 0.2s ease; }
.utility__filters.is-open { border-top-left-radius: 0; border-top-right-radius: 0; }

.filter { position: static; }

.filter__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body);
  color: var(--owks-ink);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.filter__btn svg { transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1); }
.filter__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.utility__filters.is-open .filter__btn:not([aria-expanded="true"]) { color: var(--owks-muted); }
.utility__filters:not(.is-open) .filter__btn:hover { color: var(--owks-muted); }

.filter__menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  min-width: 100%;
  max-height: 50vh;
  overflow-y: auto;
  margin: 0;
  padding: 8px 0 4px;
  list-style: none;
  border-radius: var(--owks-radius-button) var(--owks-radius-button) 0 0;
  background: var(--owks-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.filter__menu[hidden] { display: none; }

.filter__menu a {
  display: block;
  padding: 6px 14px;
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body);
  color: var(--owks-muted);
  white-space: nowrap;
}

.filter__menu a:hover,
.filter__menu a:focus-visible,
.filter__menu a[aria-current] { color: var(--owks-ink); outline: none; }

/* 크기 변화는 Justified.Studio Contact 와 같은 곡선 (expo-out) */
.filter__menu { --ease: cubic-bezier(0.19, 1, 0.22, 1); --from-h: 0px; }
.filter__menu.is-opening { animation: filter-grow 0.5s var(--ease) both; }
.filter__menu.is-switch { animation: filter-grow 0.45s var(--ease) both; }
.filter__menu.is-closing { animation: filter-fold 0.26s cubic-bezier(0.4, 0, 0.2, 1) both; }

/* 목록 글자는 높이가 어느 정도 열린 뒤 아래에서 살짝 올라오며 나타남 */
.filter__menu.is-opening li,
.filter__menu.is-switch li { animation: filter-item 0.35s var(--ease) both; }
.filter__menu li:nth-child(1) { animation-delay: 0.06s; }
.filter__menu li:nth-child(2) { animation-delay: 0.09s; }
.filter__menu li:nth-child(3) { animation-delay: 0.12s; }
.filter__menu li:nth-child(4) { animation-delay: 0.15s; }
.filter__menu li:nth-child(n+5) { animation-delay: 0.18s; }
.filter__menu.is-closing li { opacity: 0; transition: opacity 0.1s ease; }

@keyframes filter-grow {
  from { clip-path: inset(calc(100% - var(--from-h)) 0 0 0 round 4px 4px 0 0); }
  to { clip-path: inset(0 0 0 0 round 4px 4px 0 0); }
}

@keyframes filter-fold {
  from { clip-path: inset(0 0 0 0 round 4px 4px 0 0); }
  to { clip-path: inset(100% 0 0 0 round 4px 4px 0 0); }
}

@keyframes filter-item {
  from { opacity: 0; transform: translateY(6px); }
}

/* 버튼 글자가 바뀔 때 짧게 스며들듯 */
.filter__label.is-swap { animation: filter-swap 0.25s var(--ease, ease) both; }
@keyframes filter-swap { from { opacity: 0.2; transform: translateY(3px); } }

/* 알약 위쪽 모서리도 목록이 자라는 속도에 맞춰 */
.utility__filters { transition: border-radius 0.3s cubic-bezier(0.19, 1, 0.22, 1); }

@media (prefers-reduced-motion: reduce) {
  .filter__menu, .filter__menu li, .filter__label { animation: none !important; }
}

/* 작업 수 요약 — 그리드 바로 위, 구분선 아래 */
.works__summary {
  margin: 0 var(--owks-gutter);
  padding-top: 16px;
  border-top: 1px solid var(--owks-line);
  font-size: var(--owks-text-heading);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-heading);
  color: var(--owks-muted);
}

.works__summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.works__summary p { margin: 0; }
.works__summary span { color: var(--owks-ink); }

/* 조건이 걸렸을 때만 보임 — 상단 메뉴와 같은 14 Medium */
.works__reset {
  flex: none;
  font-size: var(--owks-text-body);
  line-height: var(--owks-leading-body);
  letter-spacing: var(--owks-tracking-body);
  color: var(--owks-ink);
  transition: color 0.2s ease;
}

.works__reset:hover { color: var(--owks-muted); }

/* Request·검색 호버 — 필터 버튼(All 등)과 같은 회색 전환 */
.utility__pill[data-request-toggle] { transition: color 0.2s ease; }
.utility__pill[data-request-toggle]:hover { color: var(--owks-muted); }
.utility__pill[data-search-toggle] img { transition: opacity 0.2s ease; }
.utility__pill[data-search-toggle]:hover img { opacity: 0.55; }

/* 목록 글자가 올라오는 애니메이션 동안 잠깐 생기던 스크롤바 숨김 (목록이 길면 스크롤은 그대로 됨) */
.filter__menu { scrollbar-width: none; overscroll-behavior: contain; }
.filter__menu::-webkit-scrollbar { display: none; }

/* 하단 바 유리 — 배경은 라이트/다크 모드로만 정해지고, 글자·아이콘만 아래 배경 밝기에 따라 반전 (nav.js: .is-on-dark) */
.utility {
  --owks-bar-bg: var(--owks-glass-light-bg);
  --owks-bar-ink: var(--owks-glass-light-ink);
  --owks-bar-muted: var(--owks-glass-light-muted);
}

.utility.is-on-dark {
  --owks-bar-ink: var(--owks-glass-dark-ink);
  --owks-bar-muted: var(--owks-glass-dark-muted);
}

.utility .utility__pill,
.utility .filter__menu {
  background: var(--owks-bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transition: background-color 0.6s cubic-bezier(0.2, 0, 0, 1), color 0.6s cubic-bezier(0.2, 0, 0, 1), border-radius 0.3s cubic-bezier(0.19, 1, 0.22, 1); /* Footer 반전(0.6초)과 같은 속도 */
}

.utility .filter__btn,
.utility .utility__pill[data-request-toggle] { color: var(--owks-bar-ink); }

.utility .utility__filters.is-open .filter__btn:not([aria-expanded="true"]),
.utility .utility__filters:not(.is-open) .filter__btn:hover,
.utility .utility__pill[data-request-toggle]:hover,
.utility .filter__menu a { color: var(--owks-bar-muted); }

.utility .filter__menu a:hover,
.utility .filter__menu a:focus-visible,
.utility .filter__menu a[aria-current] { color: var(--owks-bar-ink); }

.utility .utility__icon img { transition: filter 0.35s ease, opacity 0.2s ease; }
.utility.is-on-dark .utility__icon img { filter: invert(1); }
:root[data-theme="dark"] .utility:not(.is-on-dark) .utility__icon img { filter: none; }
/* 유리 배경은 테마로만 (라이트: 밝은 유리, 다크: 어두운 유리). 예외(.is-plain)는 파일 끝 */
:root[data-theme="dark"] .utility, :root[data-theme="dark"] .settings { --owks-bar-bg: var(--owks-glass-dark-bg); }

/* 언어 변경 새로고침 뒤 복원될 때는 펼침 애니메이션 없이 */
.settings__menu.is-restored,
.settings__menu.is-restored > * { animation: none; }

/* About — Justified.Studio About 구성. 1440 기준 제목 칸 x=253(17.6%), 본문 칸 x=760(52.8%), 본문 20 Medium */
main.ab { display: block; max-width: none; padding: 0; }

.ab-intro { padding: 200px var(--owks-gutter) 80px; }
.ab-intro h1 { /* Work · News 인트로와 같은 크기 */
  max-width: 620px;
  margin: 0;
  font-size: var(--owks-text-display);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-display);
  letter-spacing: var(--owks-tracking-display);
}

.ab-hero,
.ab-inset {
  margin: 0 var(--owks-gutter) 160px;
  aspect-ratio: 16 / 9;
  border-radius: var(--owks-radius-media);
  overflow: hidden;
  background: var(--owks-placeholder);
}

.ab-inset { width: 81.3%; margin: 0 auto 160px; aspect-ratio: 1171 / 659; }

.ab-hero img, .ab-hero video,
.ab-inset img, .ab-inset video,
.ab-strip img, .ab-strip video { width: 100%; height: 100%; object-fit: cover; display: block; }

.ab-section {
  display: grid;
  grid-template-columns: 17.6% 35.2% minmax(0, 460px);
  padding-bottom: 160px;
  align-items: start;
}

.ab-section > .ab-head { grid-column: 2; }
.ab-section > .ab-body { grid-column: 3; }

.ab-head h2,
.ab-head p,
.ab-body p,
.ab-body li {
  margin: 0;
  font-size: var(--owks-text-heading);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-snug);
  letter-spacing: var(--owks-tracking-snug);
}

.ab-head p,
.ab-muted { color: var(--owks-muted); }

.ab-body { display: flex; flex-direction: column; gap: 24px; margin: 0; padding: 0; }
.ab-values, .ab-areas { gap: 56px; }
.ab-small { font-size: var(--owks-text-body) !important; }

.ab-list { list-style: none; }
.ab-list--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 4px; margin: 0; padding: 0; }

.ab-row { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; }
.ab-row > :last-child { grid-column: 2; }
.ab-body.ab-list { gap: 20px; }
.ab-row a:hover { color: var(--owks-muted); }

/* 흐르는 이미지 띠 — 크기·세로 위치가 다른 사진이 왼쪽으로 천천히 흐름 */
.ab-strip { overflow: hidden; padding: 0 0 160px; }
.ab-strip__track { display: flex; gap: 72px; width: max-content; align-items: flex-start; animation: ab-marquee 80s linear infinite; }
.ab-strip figure {
  flex: none;
  width: calc(var(--w) * 1px);
  aspect-ratio: var(--w) / var(--h);
  margin: calc(var(--y) * 1px) 0 0;
  border-radius: var(--owks-radius-media);
  overflow: hidden;
  background: var(--owks-placeholder);
}
@keyframes ab-marquee { to { transform: translateX(calc(-50% - 36px)); } }

/* Careers — 제목은 좌우 여백 위치, 본문은 작은 글 + 검정 버튼 */
.ab-careers { grid-template-columns: 50.5% minmax(0, 470px); padding: 0 var(--owks-gutter) 200px; }
.ab-careers > .ab-head { grid-column: 1; }
.ab-careers > .ab-body { grid-column: 2; }
.ab-body--small { gap: 20px; align-items: flex-start; }
.ab-body--small p { font-size: var(--owks-text-body); line-height: var(--owks-leading-body); letter-spacing: var(--owks-tracking-body); }

.ab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: var(--owks-button-solid-pad);
  border-radius: var(--owks-button-radius);
  background: var(--owks-button-solid-bg);
  color: var(--owks-button-solid-ink);
  font-size: var(--owks-button-text);
  font-weight: var(--owks-button-weight);
  line-height: var(--owks-button-leading);
  transition: opacity 0.2s ease;
}
.ab-button span { transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
.ab-button:hover span { transform: translateX(3px); }

/* 검정 CTA 블록 */
.ab-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 80svh;
  padding: 0 var(--owks-gutter);
  background: var(--owks-gray-900);
  color: var(--owks-gray-50);
  text-align: center;
}
.ab-cta h2 { margin: 0; font-size: var(--owks-text-display); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-display-xl); letter-spacing: var(--owks-tracking-display); }
.ab-button--dark { background: var(--owks-gray-800); color: var(--owks-gray-50); }

@media (max-width: 1024px) {
  .ab-section, .ab-careers { grid-template-columns: 1fr; row-gap: 24px; padding: 0 var(--owks-gutter) 96px; }
  .ab-section > .ab-head, .ab-section > .ab-body, .ab-careers > .ab-head, .ab-careers > .ab-body { grid-column: 1; }
  .ab-inset { width: auto; margin: 0 var(--owks-gutter) 96px; }
  .ab-hero { margin-bottom: 96px; }
}

@media (max-width: 640px) {
  .ab-intro { padding-top: 120px; }
  .ab-intro h1 { font-size: var(--owks-text-display-s); }
  .ab-head h2, .ab-head p, .ab-body p, .ab-body li { font-size: var(--owks-text-heading-s); }
  .ab-strip__track { gap: 32px; }
  .ab-strip figure { width: calc(var(--w) * 0.6px); margin-top: calc(var(--y) * 0.6px); }
  .ab-cta h2 { font-size: var(--owks-text-display-s); }
}

@media (prefers-reduced-motion: reduce) {
  .ab-strip__track { animation: none; }
}


/* 헤더 오른쪽 Request 버튼 — 하단 바 알약과 같은 크기·글자, 패널은 버튼 자리에서 왼쪽 아래로 펼쳐짐 */
.site-header__actions { display: flex; justify-content: flex-end; }

.header-button {
  /* 위계 = 상단 네비 링크(Work · About · News)와 동일 — 박스 없이 글자만 */
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: var(--owks-text-body);
  line-height: var(--owks-leading-body);
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-button:hover { color: var(--owks-muted); }
.utility.is-landed [data-request-toggle] { animation: request-label 0.2s ease both; }
/* 헤더 Contact: 패널이 줄어드는 동안(0.32초) 글자가 같이 차오름 — 패널이 투명해지며 사라지므로 착지 후에 나타나면 잠깐 비어 보임 */
:root.request-closing .header-button { visibility: visible; animation: request-label 0.32s ease both; }
.request-open .site-header { transform: none; } /* 패널이 열려 있는 동안 헤더는 숨지 않음 */

@media (max-width: 640px) {
  .site-header__actions { width: auto; }
}

/* Footer 글자 — 기반 body 의 20px 대신 상단 메뉴·하단 바와 같은 14 Medium/140% */
.footer__top,
.footer__top p,
.footer__top li,
.footer__copyright,
.footer__cta {
  font-size: var(--owks-text-body);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body);
  letter-spacing: var(--owks-tracking-body);
}
.footer__col .footer__label:not(:first-child) { margin-top: 20px; }
.footer__cta { margin-top: 32px; padding: 8px 14px; }
/* 첫 줄 위치를 헤더 로고(위에서 32)와 맞춤 — 14/140 줄 기준 */
.footer { padding-top: 32px; }

/* About — Figma Grid/Desktop 1920: 12컬럼 · 여백 32(--owks-gutter) · 거터 16.
   2단 섹션: 제목 2~5컬럼, 본문 7~11컬럼 / 가운데 이미지: 2~11컬럼 (맨 바깥 컬럼 하나씩 안쪽) */
main.ab { --owks-grid-gap: 16px; --owks-grid-col: calc((100% - 2 * var(--owks-gutter) - 11 * var(--owks-grid-gap)) / 12); }

.ab-section,
.ab-careers {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--owks-grid-gap);
  padding-left: var(--owks-gutter);
  padding-right: var(--owks-gutter);
}

.ab-section > .ab-head,
.ab-careers > .ab-head { grid-column: 2 / span 4; }

.ab-section > .ab-body,
.ab-careers > .ab-body { grid-column: 7 / span 5; max-width: none; }

.ab-inset {
  width: auto;
  margin-left: calc(var(--owks-gutter) + var(--owks-grid-col) + var(--owks-grid-gap));
  margin-right: calc(var(--owks-gutter) + var(--owks-grid-col) + var(--owks-grid-gap));
}

@media (max-width: 1024px) {
  .ab-section, .ab-careers { grid-template-columns: 1fr; }
  .ab-section > .ab-head, .ab-section > .ab-body,
  .ab-careers > .ab-head, .ab-careers > .ab-body { grid-column: 1; }
  .ab-inset { margin-left: var(--owks-gutter); margin-right: var(--owks-gutter); }
}

/* News — Justified.Studio News 구성: 4열 카드, 1:1 이미지, 14 글자 */
main.news { display: block; }

.news__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 96px;
  padding: 0 var(--owks-gutter) 160px;
  align-items: start;
}

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

.news-card__image {
  margin: 0 0 16px;
  aspect-ratio: 1 / 1;
  border-radius: var(--owks-radius-media);
  overflow: hidden;
  background: var(--owks-placeholder);
}

.news-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card__title {
  margin: 0 0 4px;   /* 제목-설명 붙여서 한 묶음으로 (Works 카드 제목·부제처럼) */
  font-size: var(--owks-text-body-l);   /* Works 카드 제목과 같은 16/130% */
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-body-l);
  letter-spacing: var(--owks-tracking-body-l);
}

.news-card__text { display: flex; flex-direction: column; gap: 12px; }
.news-card__text p { margin: 0; font-size: var(--owks-text-body); font-weight: var(--owks-weight-regular); line-height: var(--owks-leading-relaxed); color: var(--owks-muted); }

.news-card__more {
  color: var(--owks-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.news-card__more:hover { color: var(--owks-ink); }

main.news .works__more { padding-top: 0; }
main.works .works__grid { padding-bottom: 160px; } /* Work 하단 여백 = News 와 같게 */
main.works .works__more { padding-top: 0; }

@media (max-width: 1024px) { .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news__grid { grid-template-columns: 1fr; row-gap: 56px; } }

/* News 카드 설명 — 첫 문단만 2줄까지 (넘치면 …), 카드 높이 통일 */
.news-card__text p:not(.news-card__link) ~ p:not(.news-card__link) { display: none; }
.news-card__text p:not(.news-card__link) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.5em); /* 1줄짜리도 2줄 높이 — 링크·다음 줄 위치 통일 */
}

/* News 카드 — Figma 카드 기준: 설명 14 Medium/140%, Read more 밑줄 없이 Medium, 날짜 칩(Work 태그와 같음) */
.news-card__text p { font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body); }
.news-card__text p:not(.news-card__link) { min-height: calc(2 * 1.4em); }
.news-card .project-card__tags { padding-top: 16px; }
.news-card__link { margin: 16px 0 0; font-size: var(--owks-text-body); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body); }
.news-card__more { text-decoration: none; }

/* News 줄 간격 — Figma News Grid 와 같게 80 */
.news__grid { row-gap: 80px; }

/* Landing (Home) — Koto 구성: 풀블리드 영상이 스크롤에 따라 여백(--owks-gutter)만큼 줄고, 아래로 열린 자리에 모토가 나옴.
   --p(0→1)는 nav.js 가 스크롤로 넣음, --mh 는 모토 높이 */
main.home { display: block; --owks-grid-gap: 16px; --owks-grid-col: calc((100% - 2 * var(--owks-gutter) - 11 * var(--owks-grid-gap)) / 12); }

/* 기반 index.css 의 .hero(검정 배경·overflow hidden·모바일 16:9)를 덮어써야 sticky 가 동작 */
main.home .hero { height: 220vh; min-height: 0; aspect-ratio: auto; background: none; overflow: visible; }
.hero__stage { --owks-bar-zone: 112px; /* 하단 고정 바(아래 48 + 높이 36)와 겹치지 않게 모토를 그 위에 */ position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

.hero__media {
  /* 잘라내지 않고 상자 자체를 줄임 — 안의 영상도 같이 작아지고, 줄어드는 만큼 모서리가 이미지 카드 라운드(6)까지 생김 */
  position: absolute;
  top: calc(var(--p, 0) * var(--owks-gutter));
  left: calc(var(--p, 0) * var(--owks-gutter));
  right: calc(var(--p, 0) * var(--owks-gutter));
  bottom: calc(var(--p, 0) * (var(--mh, 160px) + var(--owks-bar-zone) + 2 * var(--owks-gutter))); /* 영상과 모토 사이 64 */
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--p, 0) * var(--owks-radius-media));
  background: var(--owks-placeholder);
}
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero__motto {
  position: absolute;
  left: var(--owks-gutter);
  right: var(--owks-gutter);
  bottom: var(--owks-bar-zone);
  max-width: 1240px;
  margin: 0;
  font-size: var(--owks-text-hero);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-hero);
  letter-spacing: var(--owks-tracking-hero);
  opacity: clamp(0, calc((var(--p, 0) - 0.4) * 2.5), 1);
  transform: translateY(calc((1 - var(--p, 0)) * 32px));
}

.home__head { margin-top: 160px; margin-bottom: 0; }
.home .news__grid { padding-top: 24px; }
.home__contact { padding-top: 0; min-height: calc(100svh - 120px); } /* Contact 로 이동하면 화면 아래까지 비워서 footer 는 더 내려야 보이게 (120 = scroll-margin-top) */
.home__contact a:hover { color: var(--owks-ink); }

@media (prefers-reduced-motion: reduce) {
  main.home .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__media { --p: 1; }
  .hero__motto { --p: 1; }
}

/* Landing Selected Work — 2열 · 16:9 · 4개 */
.home__works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home__works .project-card__image { aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .home__works { grid-template-columns: 1fr; } }

/* Landing 모토 */
.hero__motto h1 { margin: 0; font-size: 1em; font-weight: inherit; line-height: inherit; letter-spacing: inherit; }

/* Landing 섹션 제목은 원색, 하단 바는 섹션 이동 네비 */
.home__head p { color: var(--owks-ink); }
:root:has(main.home, main.ab) { scroll-behavior: smooth; } /* main.case 도 .ab */
@media (prefers-reduced-motion: reduce) { :root:has(main.home, main.ab) { scroll-behavior: auto; } }
.home__head, .home__contact, main.ab section[id] { scroll-margin-top: 120px; }
.utility__back { color: var(--owks-bar-ink); }
.utility .utility__back svg { display: block; }
/* Our Ambition = 영상이 다 줄고 모토가 다 보인 지점(히어로 끝에서 한 화면 위) */
.hero { position: relative; }
.hero__anchor { position: absolute; left: 0; bottom: 100vh; bottom: 100svh; }
.utility__sections .utility__item { font-size: var(--owks-text-body); }
.utility__sections .utility__item { color: var(--owks-bar-muted); transition: color 0.6s cubic-bezier(0.2, 0, 0, 1); }
.utility__sections .utility__item[aria-current],
.utility__sections .utility__item:hover { color: var(--owks-bar-ink); }

/* 결과가 적은 짧은 페이지 — 첫 화면에 Footer 가 반쯤 걸려 워드마크가 잘려 보이지 않게, 본문을 최소 한 화면 높이로 */
body > main { min-height: calc(100svh - 64px); }

/* Footer 정보 — 12컬럼(거터 16)에 맞춤: 저작권 1–3 · 연락처 4–6 · Social 7–8 · More 9–10 · Address 11–12 */
.footer__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; }
.footer__copyright { grid-column: 1 / span 3; text-align: left; }
.footer__top > .footer__col:nth-of-type(1) { grid-column: 4 / span 3; }
.footer__top > .footer__col:nth-of-type(2) { grid-column: 7 / span 2; }
.footer__top > .footer__col:nth-of-type(3) { grid-column: 9 / span 2; }
.footer__top > .footer__col:nth-of-type(4) { grid-column: 11 / span 2; }
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__copyright, .footer__top > .footer__col:nth-of-type(n) { grid-column: auto; }
  .footer__copyright { grid-column: 1 / -1; order: 1; }
}

/* 모바일 헤더 — Contact 버튼이 화면 밖으로 밀려나지 않게 (버튼 최소폭 해제·간격 축소) */
@media (max-width: 640px) {
  .site-header { gap: 12px; }
  .site-header__logo { font-size: var(--owks-text-heading-s); }
  .site-header__nav { gap: 12px; }
}
@media (max-width: 380px) {
  .site-header { gap: 8px; }
  .site-header__nav { gap: 8px; font-size: var(--owks-text-caption); }
  .utility__filters { gap: 12px; }
  .utility .utility__pill.utility__filters { padding: 0 10px; }
}

/* 프로젝트 카드 호버 — 기본 커서 대신 "↗ VIEW CASE" 라벨이 커서를 따라다님 (마우스 기기만, nav.js) */
@media (hover: hover) and (pointer: fine) {
  .project-card__image,
  .news-card__image { cursor: none; } /* 커서 대신 라벨이 그 자리에 */
}
.case-cursor {
  /* 크기는 카드 태그 칩과 같은 체계 — 10px / 1.2, 모서리 2px. 색은 테마를 따름 (라이트: 흰 바탕·검정 글자 / 다크: 검정 바탕·흰 글자) */
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: var(--owks-label-gap);
  padding: var(--owks-label-pad);
  border-radius: var(--owks-chip-radius);
  background: var(--owks-label-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--owks-label-ink);
  font-size: var(--owks-text-micro);
  font-weight: var(--owks-weight-medium);
  line-height: var(--owks-leading-heading);
  letter-spacing: var(--owks-tracking-label);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.2s ease, scale 0.3s cubic-bezier(0.2, 0, 0, 1), background-color 0.3s ease;
}
.case-cursor svg { width: 10px; height: 10px; }
.case-cursor.is-on { opacity: 1; scale: 1; }
/* 반전 라벨 (nav.js) — 하단 바와 동일: 원본은 테마별 유리 배경만, 복제 라벨이 흰 글자 + difference 로 아래 이미지와 반전 */
.case-cursor.has-ink { color: transparent; background: var(--owks-glass-light-bg); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
:root[data-theme="dark"] .case-cursor.has-ink { background: var(--owks-glass-dark-bg); }
.case-cursor--ink { z-index: 71; mix-blend-mode: difference; color: #fff; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Contact 패널 줄 — Justified.Studio 처럼: 올린 줄만 상자로 떠오르며 진해지고 ↗, 나머지 줄은 흐려짐.
   상자는 제목 폭에 딱 맞고, 올리면 글자가 상자 안쪽으로 16 들여쓰기됨 */
.request__list { gap: 0; }
.request__list a {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-radius: var(--owks-radius-panel);
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.request__list a:hover,
.request__list a:focus-visible { padding-inline: 16px; }
.request__text { display: flex; flex-direction: column; gap: 4px; }
.request__arrow { flex: none; opacity: 0; transition: opacity 0.2s ease; }
.request__list:hover a:not(:hover) { color: var(--owks-desc); }
.request__list a:hover,
.request__list a:focus-visible { background: color-mix(in srgb, var(--owks-ink) 5%, transparent); color: var(--owks-ink); }
.request__list a:hover .request__mail,
.request__list a:focus-visible .request__mail { color: var(--owks-ink); opacity: 1; }
.request__list a:hover .request__arrow,
.request__list a:focus-visible .request__arrow { opacity: 1; }

/* Work 상세 — 위: [제목 + 헤드라인(회색) 32px + 태그 | 오른쪽 7–11컬럼 설명 14px] → 16:9 히어로 → 갤러리(2–11컬럼) → Related Projects 4열 4:5
   설명은 왼쪽 묶음 높이까지만 보이고, 넘치면 Read more (nav.js) */
.case__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--owks-grid-gap);
  align-items: start;
  padding: 200px var(--owks-gutter) 80px;
}
/* Challenge · Solution · Overview · Credit — 모두 가운데 카드 열(2–11컬럼)에 맞춤. 안쪽 10컬럼: 왼쪽 1–4 제목 / 오른쪽 6–10 본문
   제목·헤드라인은 Related Projects 제목과 같은 Heading 20 (헤드라인은 회색) */
.case__block.case__story { margin-top: 128px; margin-bottom: 128px; }
/* 갤러리 바로 뒤 Overview·Credit 도 Challenge·Solution 과 같은 거리로 띄움 */
.case__media + .case__block, .case__pair + .case__block { margin-top: 128px; }
.case__story-head { grid-column: 1 / span 4; }
.case__story-lead { margin: 0; font-size: var(--owks-text-heading); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-heading); letter-spacing: var(--owks-tracking-heading); color: var(--owks-muted); }
/* 문단이 둘 이상이면 첫 문단 + Read more / Read less (맨 아래 버튼 하나로 펼치고 접기) */
.case__read { display: flex; flex-direction: column; gap: 16px; }
.case__read[hidden] { display: none; }
.case__read-btn { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--owks-text-body); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body); color: var(--owks-muted); text-decoration: underline; text-underline-offset: 3px; }
.case__read-btn:hover { color: var(--owks-ink); }
@media (max-width: 1024px) { .case__block.case__story, .case__media + .case__block, .case__pair + .case__block { margin-top: 64px; } .case__block.case__story { margin-bottom: 64px; } .case__story-head { grid-column: 1; } }
.case__head { grid-column: 1 / span 8; }
.case__head h1, .case__lead { margin: 0; font-size: var(--owks-text-display); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-display); letter-spacing: var(--owks-tracking-display); }
.case__lead { color: var(--owks-muted); }
.case__tags { padding-top: 24px; }
.case__desc { grid-column: 7 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case__desc-text { display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
/* 설명·Overview 본문 = Figma 텍스트 스타일 EN/Body L — 16/130%, 55 Roman, -0.3% */
.case__desc-text p { margin: 0; font-size: var(--owks-text-body-l); font-weight: var(--owks-weight-regular); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.case__more-btn { padding: 0; border: 0; background: none; font: inherit; font-size: var(--owks-text-body); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body); color: var(--owks-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.case__more-btn:hover { color: var(--owks-ink); }
.case__hero { margin: 0 var(--owks-gutter) var(--owks-gutter); aspect-ratio: 16 / 9; border-radius: var(--owks-radius-media); overflow: hidden; background: var(--owks-placeholder); }
.case__hero img, .case__hero video, .case__media img, .case__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case__media {
  margin: 0 calc(var(--owks-gutter) + var(--owks-grid-col) + var(--owks-grid-gap)) var(--owks-grid-gap); /* 이미지 사이 = 그리드 간격 16 */
  aspect-ratio: 16 / 9;
  border-radius: var(--owks-radius-media);
  overflow: hidden;
  background: var(--owks-placeholder);
}
.case__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--owks-grid-gap); margin: 0 calc(var(--owks-gutter) + var(--owks-grid-col) + var(--owks-grid-gap)) var(--owks-grid-gap); }
.case__pair .case__media { margin: 0; aspect-ratio: 4 / 5; }
.case__more { margin-top: 0; }
/* Overview · Credit — 선 아래 왼쪽 32px 제목 / 오른쪽 7–11컬럼 (위 설명과 같은 줄). 본문 20px(About 본문과 같음), 크레딧 14px 2열 */
.case__block {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  column-gap: var(--owks-grid-gap);
  margin: 0 calc(var(--owks-gutter) + var(--owks-grid-col) + var(--owks-grid-gap)) 160px;
  padding-top: 16px;
  border-top: 1px solid var(--owks-line);
}
.case__block h2 { grid-column: 1 / span 4; margin: 0; font-size: var(--owks-text-heading); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-heading); letter-spacing: var(--owks-tracking-heading); }
.case__overview, .case__credit { grid-column: 6 / span 5; }
.case__overview { display: flex; flex-direction: column; gap: 16px; }
.case__overview p { margin: 0; font-size: var(--owks-text-body-l); font-weight: var(--owks-weight-regular); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.case__credit { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--owks-grid-gap); row-gap: 40px; margin: 0; align-items: start; }
/* 팀 = 한 컬럼: 팀 이름(Medium) → 역할(Medium)·이름(회색) 묶음 */
.case__credit .case__team h3 { margin: 0 0 16px; font-size: var(--owks-text-body-l); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.case__team dl { display: flex; flex-direction: column; gap: 16px; margin: 0; }
/* Credit = Body L 16 — 역할은 Medium(검정), 이름은 Roman(회색) */
.case__credit dt, .case__credit dd { margin: 0; font-size: var(--owks-text-body-l); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.case__credit dt { font-weight: var(--owks-weight-medium); margin-bottom: 4px; }
.case__credit dd { font-weight: var(--owks-weight-regular); }
.case__credit dd { color: var(--owks-muted); }
@media (max-width: 1024px) {
  .case__block { grid-template-columns: 1fr; row-gap: 24px; margin-left: var(--owks-gutter); margin-right: var(--owks-gutter); margin-bottom: 96px; }
  .case__block h2, .case__overview, .case__credit { grid-column: 1; }
}
.case__related { padding-bottom: 160px; }
@media (max-width: 1024px) {
  .case__intro { grid-template-columns: 1fr; row-gap: 32px; padding-top: 120px; }
  .case__head, .case__desc { grid-column: 1; }
  .case__head h1, .case__lead { font-size: var(--owks-text-display-s); }
  .case__media, .case__pair { margin-left: var(--owks-gutter); margin-right: var(--owks-gutter); }
  .case__related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* About 위계 — Figma 텍스트 스타일 기준
   20 Medium (EN/Heading): 섹션 제목·부제, 항목 이름(How we work 이름, Work Area 분야)
   16 Roman  (EN/Body L) : 본문 문단, 항목 설명, Partners·Awards·Media 목록 */
.ab-body p, .ab-body li { font-size: var(--owks-text-body-l); font-weight: var(--owks-weight-regular); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.ab-values > div > p:first-child,
.ab-areas > div > p:first-child { font-size: var(--owks-text-heading); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-heading); letter-spacing: var(--owks-tracking-heading); }
.ab-values > div, .ab-areas > div { display: flex; flex-direction: column; gap: 6px; }
.ab-values, .ab-areas { gap: 40px; }
.ab-body .ab-row > span:nth-child(2) { font-weight: var(--owks-weight-medium); }

/* 뉴스 카드 = 링크 (기사 상세로) */
a.news-card { display: block; color: inherit; }
a.news-card[hidden] { display: none; }
.news-card__image img { transition: transform 0.4s ease; }
a.news-card:hover .news-card__image img { transform: scale(1.02); }
/* 기사 상세 — 본문은 오른쪽 7–11컬럼 Body L, 대표 이미지는 1:1 을 오른쪽 절반에 */
.case__article { grid-column: 7 / span 5; }
.case__hero--square { aspect-ratio: 1 / 1; margin-left: calc(var(--owks-gutter) + 6 * (var(--owks-grid-col) + var(--owks-grid-gap))); width: auto; }
@media (max-width: 1024px) { .case__article { grid-column: 1; } .case__hero--square { margin-left: var(--owks-gutter); } }
.case .news__grid { padding-top: 24px; }

/* 하단 바 글자 반전 레이어 (nav.js .bar-ink) — 원본은 유리만, 복제 레이어가 흰 글자 + difference 로 아래와 픽셀 단위 반전 */
.has-bar-ink [data-adaptive] { --owks-bar-ink: transparent !important; --owks-bar-muted: transparent !important; }
.has-bar-ink [data-adaptive] img { opacity: 0 !important; }
.bar-ink {
  mix-blend-mode: difference;
  pointer-events: none;
  --owks-bar-bg: transparent !important;
  --owks-bar-ink: #fff !important;
  --owks-bar-muted: rgba(255, 255, 255, 0.5) !important;
}
.bar-ink, .bar-ink * { background-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; border-color: transparent !important; }
.bar-ink img { filter: invert(1) !important; opacity: 1 !important; }
.bar-ink .is-hover { color: #fff !important; }

/* Careers (templates/careers.php) — About 틀 그대로, 상세 목록은 Body L 16 */
.cr-updated { margin: 24px 0 0; font-size: var(--owks-text-body); line-height: var(--owks-leading-body); color: var(--owks-muted); }
.ab-body.cr-groups { gap: 40px; }
.cr .cr-group { display: flex; flex-direction: column; gap: 8px; }
.cr .cr-group > p, .cr .cr-text, .cr .cr-list li { font-size: var(--owks-text-body-l); line-height: var(--owks-leading-body-l); letter-spacing: var(--owks-tracking-body-l); }
.cr .cr-text, .cr .cr-list li { color: var(--owks-muted); }
.cr .cr-text a { text-decoration: underline; text-underline-offset: 3px; }
.cr .cr-text a:hover { color: var(--owks-ink); }
.cr-list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
ol.cr-list { counter-reset: cr; }
ol.cr-list li { counter-increment: cr; }
ol.cr-list li::before { content: counter(cr) ". "; }
ul.cr-list li { padding-left: 12px; text-indent: -12px; }
ul.cr-list li::before { content: "– "; }

/* 포지션 줄 — Contact 패널 줄처럼: 올리면 상자가 깔리며 글자가 안쪽으로 16 들여쓰기, 누르면 펼침 */
.ab-body.cr-positions { gap: 0; border-top: 1px solid var(--owks-line); }
.cr-pos { border-bottom: 1px solid var(--owks-line); }
.cr-pos summary {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "title icon" "meta icon";
  align-items: center;
  column-gap: 16px;
  padding: 20px 0;
  border-radius: var(--owks-radius-panel);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease, padding 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.cr-pos summary::-webkit-details-marker { display: none; }
.cr-pos summary:hover, .cr-pos summary:focus-visible { padding-inline: 16px; background: color-mix(in srgb, var(--owks-ink) 5%, transparent); }
.cr-pos__title { grid-area: title; font-size: var(--owks-text-heading); font-weight: var(--owks-weight-medium); line-height: var(--owks-leading-snug); letter-spacing: var(--owks-tracking-snug); }
.cr-pos__meta { grid-area: meta; font-size: var(--owks-text-body); line-height: var(--owks-leading-body); color: var(--owks-muted); }
.cr-pos__icon { grid-area: icon; transition: rotate 0.3s cubic-bezier(0.2, 0, 0, 1); }
.cr-pos[open] .cr-pos__icon { rotate: 180deg; }
.cr-pos.is-closing .cr-pos__icon { rotate: 0deg; } /* 접히는 동안 화살표는 바로 아래로 */
.cr-pos__body { box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding: 16px 0 96px; } /* Apply 버튼 아래 96 — 다음 포지션 줄과 숨 쉴 틈 */

/* 국문 14·16px 행간 160% (nav.js owksKo 가 한글 든 14·16px 요소에 붙임) */
.ko-text { line-height: 1.6 !important; }
.cr-apply__icon, .cr-apply__icon svg { display: block; }
.cr-pos { scroll-margin-top: 120px; }
/* 지원하기 버튼 셋 — Gmail(진한 버튼) · Mail app · Copy email */
.cr-apply { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-apply button.ab-button { border: 0; cursor: pointer; font-family: inherit; }
/* 주 버튼은 사이트 기본 버튼 — 라이트: 검정 바탕·흰 글자, 다크: 흰 바탕·검정 글자 */
.cr-apply__main:hover { opacity: 0.85; }
.cr-apply__alt { background: var(--owks-button-glass-bg); color: var(--owks-ink); }
.cr-apply__alt:hover { background: color-mix(in srgb, var(--owks-ink) 10%, transparent); }

/* 반전 예외 (nav.js .is-plain) — 조각 아래가 테마와 반대 밝기일 때: 반전 끄고 테마 기본색
   라이트 모드: 밝은 유리 + 검정 글자 / 다크 모드: 어두운 유리 + 흰 글자 */
.has-bar-ink [data-adaptive].is-plain, .has-bar-ink [data-adaptive] .is-plain {
  --owks-bar-bg: var(--owks-glass-light-solid) !important;
  --owks-bar-ink: var(--owks-glass-light-ink) !important;
  --owks-bar-muted: var(--owks-glass-light-muted) !important;
}
:root[data-theme="dark"] .has-bar-ink [data-adaptive].is-plain, :root[data-theme="dark"] .has-bar-ink [data-adaptive] .is-plain,
:root[data-theme="dark"].has-bar-ink [data-adaptive].is-plain, :root[data-theme="dark"].has-bar-ink [data-adaptive] .is-plain {
  --owks-bar-bg: var(--owks-glass-dark-solid) !important;
  --owks-bar-ink: var(--owks-glass-dark-ink) !important;
  --owks-bar-muted: var(--owks-glass-dark-muted) !important;
}
.has-bar-ink [data-adaptive].is-plain img, .has-bar-ink [data-adaptive] .is-plain img { opacity: 1 !important; filter: none !important; }
:root[data-theme="dark"] [data-adaptive].is-plain img, :root[data-theme="dark"] [data-adaptive] .is-plain img { filter: invert(1) !important; }
.bar-ink.is-plain, .bar-ink .is-plain { visibility: hidden; }
.case-cursor.has-ink.is-plain { color: var(--owks-glass-light-ink); background: var(--owks-glass-light-solid); }
:root[data-theme="dark"] .case-cursor.has-ink.is-plain { color: var(--owks-glass-dark-ink); background: var(--owks-glass-dark-solid); }
.case-cursor--ink.is-plain { visibility: hidden; }

/* Works 필터 — 목록을 바꿔 끼우는 동안 살짝 흐리게 (nav.js) */
main.works .works__grid { transition: opacity 0.25s ease; }
main.works.is-loading .works__grid { opacity: 0.35; }

/* 필터 목록 — Contact 패널 줄처럼 올리면 알약이 생기고 글자가 안쪽으로 들어감 */
.utility .filter__menu a {
  margin-inline: 6px;
  padding-inline: 8px;
  border-radius: var(--owks-radius-button);
  transition: background-color 0.2s ease, color 0.2s ease, padding 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.utility .filter__menu a:hover,
.utility .filter__menu a:focus-visible { padding-inline: 14px 8px; background-color: color-mix(in srgb, var(--owks-ink) 8%, transparent); }
.bar-ink .filter__menu a.is-hover { padding-inline: 14px 8px; }

/* 사이트 전체 검색 결과 (/search) — Work·News 는 기존 카드 그대로, 나머지 페이지는 한 줄 목록 */
.search-page__head { margin-top: 80px; }
.search-page__head p { color: var(--owks-ink); }
.search-page__list { margin: 0; padding: 24px var(--owks-gutter) 0; list-style: none; display: flex; flex-direction: column; }
.search-page__list a { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--owks-line); font-size: var(--owks-text-body); line-height: var(--owks-leading-body); }
.search-page__list a span { color: var(--owks-muted); }
.search-page__list a:hover span { color: var(--owks-ink); }
.search-page__empty { padding: 0 var(--owks-gutter); color: var(--owks-muted); }
.search-page__empty a { color: var(--owks-ink); text-decoration: underline; }
.search-page .works__grid, .search-page .news__grid { padding-bottom: 0; }
main.search-page { padding-bottom: 160px; }
@media (max-width: 640px) { .search-page__list a { grid-template-columns: 1fr; gap: 4px; } }
