/* threeblank.kr — 소개 사이트 공통 스타일
   색 HEX 는 로고에서 뽑은 잠정값(브랜드 가이드: 최종 값은 디자인 시스템 단계에서 확정). */
@font-face {
  font-family: "Pretendard";
  src: url("../fonts/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f1f0f5;
  --surface-2: #e6e4ee;
  --ink: #262541;
  --ink-2: #33325a;
  --muted: #55546f;
  --paper: #ffffff;
  --purple: #a086e6;
  --mint: #4ecdc4;
  --coral: #f25f5f;
  --accent: var(--coral);

  --gap: 8px;
  --edge: 8px;
  --radius: 8px;

  /* 다섯 단계 글자 크기 */
  --t-name: clamp(120px, 17vw, 260px);
  --t-head: clamp(34px, 4.4vw, 68px);
  --t-state: clamp(21px, 2.2vw, 32px);
  --t-body: 17px;
  --t-small: 14px;

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--mint); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: 8px; transform: translateY(-200%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { transform: none; }

/* ---------- 보드(타일 격자) ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: 0 var(--edge);
}
.board + .board { margin-top: var(--gap); }
.tile {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  overflow: hidden;
  min-width: 0;
}
.tile.photo { padding: 0; background: var(--surface-2); }
.tile.photo img { width: 100%; height: 100%; object-fit: cover; }
.f-purple { background: var(--purple); }
.f-mint { background: var(--mint); }
.f-coral { background: var(--coral); }
.f-ink { background: var(--ink); color: #fff; }
.f-ink-2 { background: var(--ink-2); color: #fff; }
.f-paper { background: var(--paper); }

/* ---------- 머리: 이름 띠 + 링크 타일 ---------- */
.top { padding-top: var(--edge); }
.nameband {
  grid-column: 1 / -1;
  height: clamp(120px, 12.5vw, 184px);
  padding: 0 clamp(20px, 3vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  text-decoration: none;
  transition: background-color .2s var(--ease-out);
}
.nameband:hover { background: var(--surface-2); }
.nameband picture, .nameband img { display: block; }
.nameband img { height: clamp(58px, 7.2vw, 108px); width: auto; max-width: 100%; object-fit: contain; }
.navtile {
  grid-column: span 3;
  min-height: 64px;
  padding: 18px 22px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color .2s var(--ease-out), transform .18s var(--ease-out);
}
.navtile:hover { background: var(--surface-2); }
.navtile:active { transform: scale(.985); }
.navtile[aria-current="page"] { background: var(--mint); }
.navtile.cta { background: var(--coral); }
.navtile.cta:hover { background: #f47474; }

/* 로고의 세 막대(브랜드 모티프) */
.bars { display: flex; gap: 6px; }
.bars i { display: block; width: 46px; height: 10px; border-radius: 3px 8px 3px 8px; }
.bars i:nth-child(1) { background: var(--purple); transform: rotate(-2deg); }
.bars i:nth-child(2) { background: var(--mint); transform: rotate(2deg); }
.bars i:nth-child(3) { background: var(--coral); transform: rotate(-4deg); }

/* ---------- 홈 첫 화면 ---------- */
.hero-board { height: clamp(520px, calc(100svh - 300px), 760px); }
.rail-left { grid-column: 1 / span 2; display: grid; grid-template-rows: 1.15fr 1fr; gap: var(--gap); }
.hero-main { grid-column: 3 / span 8; padding: 0; }
.hero-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.statement {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  padding: 24px 26px 26px;
  border-radius: var(--radius) var(--radius) 0 0;
  max-width: 820px;
}
.statement p { font-size: var(--t-state); line-height: 1.28; font-weight: 600; letter-spacing: -0.02em; }
.rail-right { grid-column: 11 / span 2; display: grid; grid-template-rows: repeat(4, 1fr) 1.3fr; gap: var(--gap); }
.rail-right .tile { padding: 16px 18px; font-size: var(--t-small); line-height: 1.4; }
.rail-right b { display: block; font-size: var(--t-body); margin-bottom: 2px; }
.facts li { font-size: var(--t-small); line-height: 1.4; padding: 0 0 10px; }
.facts li b { display: block; font-weight: 700; }

/* 빈칸 채우기(살아 있는 요소) */
.blank {
  font: inherit; color: var(--ink);
  border: 0; border-radius: 6px;
  padding: 0 .28em; margin: 0 .04em;
  cursor: pointer;
  display: inline-block;
  min-width: 3.2em;
  transition: transform .18s var(--ease-out), background-color .2s;
}
.blank:hover { transform: translateY(-2px); }
.blank:active { transform: scale(.96); }
.blank.b1 { background: var(--purple); }
.blank.b2 { background: var(--mint); }
.blank.b3 { background: var(--coral); }
.blank .w { display: inline-block; }
.blank.swap .w { animation: swapin .32s var(--ease-out); }
@keyframes swapin { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
.hint { font-size: var(--t-small); color: var(--muted); margin-top: 10px; font-weight: 400; }

.action {
  display: flex; flex-direction: column; justify-content: space-between;
  text-decoration: none; font-weight: 700; font-size: var(--t-body); line-height: 1.25;
  transition: background-color .2s, transform .18s var(--ease-out);
}
.action:hover { background: #f47474; }
.action:active { transform: scale(.98); }
.arrow { width: 40px; height: 40px; align-self: flex-end; transition: transform .25s var(--ease-out); }
.action:hover .arrow, .cta-tile:hover .arrow { transform: translate(4px, -4px); }

/* ---------- 섹션 공통 ---------- */
.section { padding: 140px 20px; }
.wrap { max-width: 1400px; margin: 0 auto; }
.h2 { font-size: var(--t-head); line-height: 1.06; letter-spacing: -0.035em; font-weight: 780; }
.lead { font-size: var(--t-state); line-height: 1.32; letter-spacing: -0.015em; font-weight: 500; max-width: 34em; }
.muted { color: var(--muted); }

/* 소개: 리드 + 네 단 */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 72px; }
.cols4 p { font-size: var(--t-body); line-height: 1.6; color: var(--muted); }
.cols4 p b { color: var(--ink); }

/* 핵심 영역: 밝은 칸 + 어두운 줄 */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.split-light { background: var(--surface); padding: 64px clamp(24px, 4vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.zig span { display: block; }
.zig span:nth-child(2) { text-align: right; }
.split-light .h2 { font-size: clamp(44px, 5.6vw, 92px); }
.split-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.split-foot p { max-width: 30ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
  padding: 16px 24px; border-radius: var(--radius);
  transition: transform .18s var(--ease-out), background-color .2s;
}
.btn:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.rows { display: grid; grid-auto-rows: 1fr; }
.row { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 24px; padding: 32px clamp(20px, 3vw, 40px); background: var(--ink); color: #fff; }
.row:nth-child(even) { background: var(--ink-2); }
.row h3 { font-size: var(--t-state); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.row h3 small { display: block; font-size: var(--t-body); font-weight: 500; margin-top: 6px; color: #d9d8ea; letter-spacing: 0; }
.row p { font-size: var(--t-body); color: #e6e5f2; }
.row ul li { font-size: var(--t-small); color: #e6e5f2; padding-bottom: 4px; }
.row .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }

/* 흐르는 띠 */
.marquee { overflow: hidden; background: var(--mint); color: var(--ink); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 38s linear infinite; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }   /* 휴대폰에서는 건드려도 멈추지 않게 */
.marquee-track span { font-size: clamp(48px, 7vw, 112px); font-weight: 820; letter-spacing: -0.04em; white-space: nowrap; padding-right: .6em; line-height: 1.05; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 함께하기: 사진 띠 + 세 칸 막대 */
.contact { background: var(--purple); padding: 48px 0 120px; overflow: hidden; }
.strip { display: flex; gap: 8px; width: max-content; animation: drift 70s linear infinite; }
.strip img { height: 150px; width: auto; border-radius: var(--radius); object-fit: cover; }
.strip img.r34 { aspect-ratio: 3 / 4; }
.strip img.r11 { aspect-ratio: 1; }
.strip img.r32 { aspect-ratio: 3 / 2; }
@keyframes drift { to { transform: translateX(-50%); } }
.contact .wrap { padding: 0 20px; }
.contact .h2 { margin-top: 72px; }
.contact .lead { margin-top: 20px; }
.formbar { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 40px; }
.formbar label { display: block; }
.formbar input, .formbar select, .formbar button {
  width: 100%; height: 96px; border: 0; border-radius: var(--radius);
  font: inherit; font-size: var(--t-body); text-align: center; color: var(--ink);
  background: #b7a3ec; padding: 0 16px;
  transition: background-color .2s, transform .18s var(--ease-out);
  appearance: none;
}
.formbar input::placeholder { color: var(--ink); opacity: .78; }
.formbar input:focus, .formbar select:focus { background: #fff; outline: 3px solid var(--ink); outline-offset: 0; }
.formbar button { background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.formbar button:hover { background: var(--ink-2); }
.formbar button:active { transform: scale(.98); }
.fine { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; font-size: var(--t-small); }
.fine p:last-child { grid-column: 3; }

/* ---------- 바닥글 타일 ---------- */
.foot { padding-bottom: var(--edge); margin-top: var(--gap); }
.foot .tile { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.ft-state { grid-column: 1 / span 4; }
.ft-state p:first-child { font-size: var(--t-state); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.ft-state .legal { font-size: var(--t-small); color: var(--muted); }
.ft-nav { grid-column: 5 / span 3; }
.ft-nav li { padding-bottom: 6px; }
.ft-nav a { text-decoration: none; }
.ft-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ft-place { grid-column: 8 / span 2; }
.ft-place .clock { font-size: var(--t-state); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.ft-mail { grid-column: 10 / span 3; }
.ft-mail a { font-size: var(--t-body); font-weight: 600; text-underline-offset: 5px; }
.ft-mark { grid-column: 1 / span 8; min-height: 320px !important; align-items: center; justify-content: center !important; }
.ft-mark img { width: min(72%, 760px); height: auto; }
.cta-tile { grid-column: 9 / span 4; min-height: 320px !important; text-decoration: none; font-size: var(--t-state); font-weight: 750; line-height: 1.2; letter-spacing: -0.02em; transition: background-color .2s; }
.cta-tile:hover { background: #f47474; }
.cta-tile .arrow { width: 56px; height: 56px; }
.credits { grid-column: 1 / -1; font-size: var(--t-small); line-height: 1.5; color: var(--muted); padding: 18px 22px !important; min-height: 0 !important; }
.credits a { color: var(--ink); }

/* ---------- 철학 페이지 ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; }
.about-photo { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo .note { position: absolute; top: 0; right: 0; width: 340px; background: var(--paper); padding: 22px; border-radius: 0 0 0 var(--radius); font-size: var(--t-body); }
.about-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 24px; }
.essence { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 26px; aspect-ratio: 4 / 3.1; display: flex; flex-direction: column; justify-content: space-between; }
.essence p { font-size: var(--t-state); font-weight: 750; line-height: 1.15; letter-spacing: -0.02em; }
.essence p span { display: block; font-size: var(--t-body); font-weight: 500; margin-top: 6px; letter-spacing: 0; }
.essence .bars i { width: 70px; height: 16px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; font-size: var(--t-small); }
.pairs dt { color: var(--muted); }
.pairs dd { font-size: var(--t-body); font-weight: 600; color: var(--ink); }

.values { margin-top: 64px; display: grid; gap: 4px; }
.vband { display: grid; grid-template-columns: 220px 1fr 1.2fr; gap: 24px; align-items: start; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); }
.vband:nth-child(even) { background: var(--surface-2); }
.vband h3 { font-size: var(--t-state); font-weight: 760; letter-spacing: -0.02em; line-height: 1.15; }
.vband .ko { font-size: var(--t-body); font-weight: 650; }
.vband p { font-size: var(--t-body); }
.vband .sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 10px; }

.attitude { background: var(--coral); }
.attitude ul { margin-top: 56px; display: grid; gap: 10px; }
.attitude li { font-size: clamp(26px, 3.4vw, 52px); font-weight: 760; letter-spacing: -0.03em; line-height: 1.15; }
.attitude li span { color: #fff; }

.compare-wrap { margin-top: 56px; overflow-x: auto; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: var(--t-body); }
.compare th, .compare td { text-align: left; padding: 20px 24px; vertical-align: top; }
.compare thead th { font-size: var(--t-small); color: var(--muted); font-weight: 600; padding-bottom: 6px; }
.compare tbody th { background: var(--surface-2); border-radius: var(--radius) 0 0 var(--radius); font-weight: 700; width: 18%; }
.compare tbody td { background: var(--surface); }
.compare tbody td:last-child { background: var(--mint); font-weight: 700; border-radius: 0 var(--radius) var(--radius) 0; }

.manifesto { background: var(--ink); color: #fff; }
.manifesto .grid2 { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.manifesto .stanzas p { font-size: var(--t-state); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 1.1em; }
.manifesto .stanzas p strong { color: var(--mint); font-weight: 750; }
.manifesto .side-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; position: sticky; top: 24px; }
.manifesto .side-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 브랜드 페이지 ---------- */
.brand-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.brand-head .h2 span { display: block; }
.brand-head .h2 span:first-child { color: var(--muted); }
.tabs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; margin-top: 56px; }
.tablist { display: grid; gap: 6px; align-content: start; position: sticky; top: 16px; }
.tab {
  display: block; width: 100%; text-align: left; border: 0; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--surface);
  padding: 14px 18px; border-radius: var(--radius); min-height: 72px;
  transition: background-color .2s, transform .18s var(--ease-out);
}
.tab b { display: block; font-size: var(--t-body); }
.tab span { font-size: var(--t-small); color: var(--muted); }
.tab:hover { background: var(--surface-2); }
.tab:active { transform: scale(.98); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab[aria-selected="true"] span { color: #d9d8ea; }
.panel + .panel { margin-top: 48px; }
.js .panel[hidden] { display: none; }
.panel-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.panel-title h2 { font-size: var(--t-head); font-weight: 820; letter-spacing: -0.04em; line-height: 1; }
.panel-title p { font-size: var(--t-state); font-weight: 600; letter-spacing: -0.015em; }
.bands { margin-top: 28px; display: grid; gap: 4px; }
.band { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 22px 24px; background: var(--surface); border-radius: var(--radius); }
.band:nth-child(even) { background: var(--surface-2); }
.band dt { font-weight: 700; }
.band dd p + p { margin-top: .5em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 6px 14px; border-radius: var(--radius); background: var(--paper); font-weight: 600; font-size: var(--t-body); }
.panel.p-team .band:first-child { background: var(--mint); }
.panel.p-bada .band:first-child { background: var(--purple); }
.panel.p-master .band:first-child { background: var(--coral); }
.link-arrow { font-weight: 700; text-underline-offset: 5px; }

.principle { background: var(--mint); }
.principle .lead { font-weight: 600; max-width: 36em; }
.principle .three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 56px; }
.principle .three div { background: var(--paper); border-radius: var(--radius); padding: 24px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.principle .three b { font-size: var(--t-state); letter-spacing: -0.02em; line-height: 1.15; }
.principle .three p { font-size: var(--t-body); }

.expand { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 56px; }
.expand .tile { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.expand .e1 { grid-column: span 6; }
.expand .e2 { grid-column: span 3; }
.expand .e3 { grid-column: span 3; }
.expand .e4 { grid-column: span 12; min-height: 140px; }
.expand b { font-size: var(--t-state); letter-spacing: -0.02em; }
.expand .photo-tile { grid-column: span 6; padding: 0; min-height: 300px; }
.expand .photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.expand .e-note { grid-column: span 6; }

/* ---------- 등장 움직임 ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rise.in { opacity: 1; transform: none; }
.hero-main > img { animation: slowzoom 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes slowzoom { to { transform: scale(1.07); } }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .strip, .hero-main > img { animation: none; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .blank.swap .w { animation: none; }
  * { scroll-behavior: auto; }
}

/* ---------- 태블릿 ---------- */
@media (max-width: 1100px) {
  .rail-left { grid-column: 1 / span 3; }
  .hero-main { grid-column: 4 / span 9; }
  .rail-right { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: repeat(4, 1fr) 1.6fr; }
  .rail-right .tile { min-height: 120px; }
  .cols4 { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
  .row ul { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .about-photo { grid-column: 1 / -1; }
  .about-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .vband { grid-template-columns: 180px 1fr; }
  .vband p:last-child { grid-column: 2; }
  .manifesto .grid2 { grid-template-columns: 1fr; }
  .manifesto .side-photo { position: static; aspect-ratio: 16 / 9; }
  .ft-state { grid-column: 1 / span 6; }
  .ft-nav { grid-column: 7 / span 6; }
  .ft-place { grid-column: 1 / span 6; }
  .ft-mail { grid-column: 7 / span 6; }
  .ft-mark { grid-column: 1 / -1; }
  .cta-tile { grid-column: 1 / -1; }
}

/* ---------- 휴대폰 ---------- */
@media (max-width: 640px) {
  :root { --gap: 6px; --edge: 6px; --t-name: 20vw; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nameband { height: 104px; }
  .nameband img { height: 64px; }
  .navtile { grid-column: span 1; min-height: 58px; padding: 14px 16px; }
  .hero-board { height: auto; }
  .hero-main { grid-column: 1 / -1; order: 1; min-height: 0; overflow: visible; background: none; }
  .hero-main > img { position: relative; aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius); }
  .statement { position: static; border-radius: var(--radius); margin-top: var(--gap); background: var(--surface); padding: 20px; }
  .statement p { font-size: 6vw; }
  .rail-left { grid-column: 1 / -1; order: 4; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .rail-left .photo { aspect-ratio: 3 / 4; }
  .rail-right { order: 3; grid-template-columns: 1fr 1fr; }
  .rail-right .tile { min-height: 96px; }
  .rail-right .action { grid-column: 1 / -1; min-height: 120px; }
  .section { padding: 88px 16px; }
  .cols4 { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .split-light { min-height: 70svh; padding: 40px 20px; }
  .zig { font-size: 10vw; }
  .row { grid-template-columns: 1fr; padding: 28px 20px; gap: 12px; }
  .row ul { display: block; }
  .row ul li { display: inline; }
  .row ul li + li::before { content: ", "; }
  .row .dot { display: none; }
  .strip img { height: 110px; }
  .contact .h2 { margin-top: 48px; }
  .formbar, .fine { grid-template-columns: 1fr; }
  .formbar input, .formbar select, .formbar button { height: 60px; }
  .fine p:last-child { grid-column: auto; }
  .foot .tile { min-height: 150px; }
  .ft-mark { order: -2; min-height: 160px !important; }
  .cta-tile { order: -1; min-height: 160px !important; }
  .ft-state, .ft-nav, .ft-place, .ft-mail { grid-column: span 1; }
  .ft-state { grid-column: 1 / -1; }
  .ft-mail { grid-column: 1 / -1 !important; }
  .about-side { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 3; overflow: visible; border-radius: 0; }
  .about-photo img { border-radius: var(--radius); }
  .about-photo .note { position: static; width: auto; padding: 18px 0 0; background: none; }
  .vband { grid-template-columns: 1fr; gap: 6px; padding: 22px 20px; }
  .vband p:last-child { grid-column: auto; }
  .compare th, .compare td { padding: 14px 14px; }
  .brand-head { grid-template-columns: 1fr; }
  .tabs-layout { grid-template-columns: 1fr; gap: 24px; }
  .tablist { grid-template-columns: repeat(3, 1fr); top: 0; z-index: 2; background: var(--bg); padding: 6px 0; }
  .tab { min-height: 64px; padding: 10px 12px; }
  .tab span { display: none; }
  .tab b { font-size: var(--t-small); }
  .band { grid-template-columns: 1fr; gap: 8px; padding: 18px 18px; }
  .principle .three { grid-template-columns: 1fr; }
  .expand .e1, .expand .e2, .expand .e3, .expand .e4, .expand .photo-tile, .expand .e-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .hero-main > img { animation: none; } }
.navrow { display: contents; }

/* 추가: 사진 띠, 브랜드 머리 사진, 지도 칸 */
.photo-band { display: grid; grid-template-columns: 3fr 2fr; gap: var(--gap); padding: 0 var(--edge); margin-bottom: var(--gap); }
.photo-band img { width: 100%; height: clamp(280px, 38vw, 560px); object-fit: cover; border-radius: var(--radius); }
.brand-head { grid-template-columns: 7fr 5fr; align-items: end; }
.head-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
.expand .e-note { background: var(--ink); }
.expand .map-tile { grid-column: span 12; padding: 0; height: 360px; background: #f6f0c8; }
.expand .map-tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cols4 p { color: var(--ink); }
.cols4 p b { font-weight: 750; }
.credits p { max-width: 72ch; color: var(--ink); font-size: var(--t-body); }
.foot .credits { min-height: 0; display: block; }
.skip { clip-path: inset(50%); transform: none; }
.skip:focus { clip-path: none; }
.panel-title h2 { font-size: var(--t-head); font-weight: 820; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 640px) {
  .photo-band { grid-template-columns: 1fr; }
  .photo-band img { height: 260px; }
  .expand .map-tile { height: 260px; }
}

/* v1.1 브랜드 페이지 */
.tab.sub { margin-left: 18px; }
.panel-logo { margin-top: 24px; border-radius: var(--radius); padding: 28px 32px; background: var(--surface); }
.panel-logo img { width: auto; max-width: 100%; height: clamp(64px, 8vw, 120px); object-fit: contain; }
.panel.p-dada .band:first-child { background: #ffd9cc; }
.facts-inline { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.band-msg dd p { font-size: var(--t-state); font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; }
.band-msg dd p + p { margin-top: .15em; }
.four { margin-top: 56px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.four li { background: var(--paper); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 230px; }
.four li:nth-child(1) { grid-column: span 7; }
.four li:nth-child(2) { grid-column: span 5; background: var(--ink); color: #fff; }
.four li:nth-child(3) { grid-column: span 5; background: var(--purple); }
.four li:nth-child(4) { grid-column: span 7; }
.four b { font-size: var(--t-state); letter-spacing: -0.02em; line-height: 1.15; }
.four p { max-width: 46ch; }
.h3 { font-size: var(--t-state); font-weight: 760; letter-spacing: -0.02em; line-height: 1.2; }
.rules { margin-top: 28px; display: grid; gap: 4px; }
.rules li { font-size: clamp(22px, 2.6vw, 40px); font-weight: 720; letter-spacing: -0.025em; line-height: 1.25; padding: 18px 24px; border-radius: var(--radius); background: var(--surface); }
.rules li:nth-child(even) { background: var(--surface-2); }
.rules li { color: var(--muted); }
.rules li span { color: var(--ink); }
.expand .e1 { grid-column: span 4; }
.expand .e2 { grid-column: span 4; }
.expand .e3 { grid-column: span 4; }
.expand .photo-tile, .expand .map-tile.half { grid-column: span 6; height: 380px; min-height: 0; }
@media (max-width: 640px) {
  .tab.sub { margin-left: 0; }
  .tablist { grid-template-columns: repeat(2, 1fr); }
  .four li { grid-column: 1 / -1 !important; min-height: 0; }
  .panel-logo { padding: 18px; }
  .band-msg dd p { font-size: 20px; }
}
.page-title { font-size: clamp(48px, 7.4vw, 124px); line-height: 1; letter-spacing: -0.045em; font-weight: 820; }
.section:has(> .wrap > .page-title), .section:has(.brand-head) { padding-top: 96px; }
@media (max-width: 640px) { .page-title { font-size: 12vw; } .section:has(> .wrap > .page-title), .section:has(.brand-head) { padding-top: 56px; } }
@media (max-width: 640px) { .brand-head { grid-template-columns: 1fr; } .page-title { font-size: 11vw; } }

/* 11/19 정비: 머리 높이, 첫 화면 맞춤, 안내문 크기, 빈 칸 줄이기 */
.nameband { height: clamp(104px, 10vw, 148px); }
.nameband img { height: clamp(50px, 5.6vw, 84px); }
.hero-board { height: clamp(500px, calc(100svh - 236px), 740px); }
.statement .hint { font-size: var(--t-small); font-weight: 500; letter-spacing: 0; line-height: 1.45; color: var(--muted); margin-top: 12px; }
.facts { display: flex; flex-direction: column; justify-content: space-between; }
.facts li { padding-bottom: 6px; }
.split { min-height: 0; }
.split-light { min-height: 640px; }
@media (max-width: 1100px) { .hero-board { height: auto; } .hero-main { min-height: 520px; } }
@media (max-width: 640px) {
  .nameband { height: 96px; }
  .nameband img { height: 58px; }
  .hero-main { min-height: 0; }
  .statement .hint { font-size: var(--t-small); }
}
@media (max-width: 640px) { .statement { padding: 18px 14px; } .statement p:first-child { font-size: 5.1vw; letter-spacing: -0.03em; } .blank { padding: 0 .2em; min-width: 0; } }

/* 11/19 머리글 축소: 로고 칸 + 메뉴 네 칸을 한 줄로 */
.nameband { grid-column: 1 / span 4; height: 72px; padding: 0 22px; justify-content: flex-start; }
.nameband img { height: 40px; }
.navtile { grid-column: span 2; min-height: 72px; display: flex; align-items: center; }
.hero-board { height: clamp(520px, calc(100svh - 104px), 820px); }
@media (max-width: 1100px) {
  .nameband { grid-column: 1 / -1; height: 68px; }
  .navtile { grid-column: span 3; min-height: 56px; }
}
@media (max-width: 640px) {
  .nameband { height: 60px; padding: 0 16px; }
  .nameband img { height: 34px; }
  .navtile { grid-column: span 1; min-height: 52px; }
}
@media (max-width: 1100px) { .hero-board { height: auto; } }
@media (max-width: 1100px) and (min-width: 641px) { .rail-right { grid-template-columns: repeat(3, 1fr); } .rail-right .action { grid-column: span 2; } }
.photo-band { margin-top: var(--gap); }

/* 11/19 브랜드 패널: 로고가 곧 제목 */
.tab.sub { margin-left: 18px; width: calc(100% - 18px); }
.panel-title.has-logo { align-items: flex-end; gap: 14px 28px; }
.panel-title.has-logo h2 { line-height: 0; }
.title-logo { height: clamp(64px, 6.4vw, 104px); width: auto; max-width: 100%; }
.panel-title.has-logo p { padding-bottom: .2em; }
@media (max-width: 640px) {
  .tab.sub { margin-left: 0; width: 100%; }
  .panel-title.has-logo { flex-direction: column; align-items: flex-start; }
  .title-logo { height: 56px; }
}
@media (max-width: 640px) { .panel { scroll-margin-top: 150px; } }

/* 11/19 메뉴 다섯 칸: 로고 3칸 + 메뉴 9칸(다섯 등분) */
.nameband { grid-column: 1 / span 3; }
.navrow { display: grid; grid-column: 4 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.navrow .navtile { grid-column: auto; }
.navtile.swap { position: relative; }
.navtile.swap .ko { position: absolute; left: 22px; top: 50%; opacity: 0; transform: translateY(calc(-50% + 8px)); transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
.navtile.swap .en { display: inline-block; transition: opacity .2s var(--ease-out), transform .25s var(--ease-out); }
.navtile.swap:hover .en, .navtile.swap:focus-visible .en { opacity: 0; transform: translateY(-8px); }
.navtile.swap:hover .ko, .navtile.swap:focus-visible .ko { opacity: 1; transform: translateY(-50%); }
@media (max-width: 1100px) {
  .nameband { grid-column: 1 / -1; }
  .navrow { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .navrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navrow .navtile:last-child { grid-column: 1 / -1; }
  .navtile.swap .ko { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .navtile.swap .en, .navtile.swap .ko { transition: none; } }

/* ---------- Thoughts(사색) ---------- */
.thoughts-index, .thoughts-post { padding-top: 96px; }
.t-head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.t-head .ko { font-size: var(--t-state); font-weight: 650; color: var(--muted); letter-spacing: -0.01em; }
.t-lead { margin-top: 20px; }
.t-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 48px; }
.t-filter { font: inherit; font-weight: 650; border: 0; border-radius: var(--radius); padding: 10px 18px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color .2s, transform .18s var(--ease-out); }
.t-filter:hover { background: var(--surface-2); }
.t-filter:active { transform: scale(.97); }
.t-filter[aria-pressed="true"] { background: var(--ink); color: #fff; }
.t-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.t-row a { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 26px; border-radius: var(--radius); background: var(--surface); text-decoration: none; transition: background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.t-row:nth-child(even) a { background: var(--surface-2); }
.t-row a:hover { background: var(--mint); transform: translateX(4px); }
.t-row time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.t-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.t-title { font-size: var(--t-state); font-weight: 720; letter-spacing: -0.02em; line-height: 1.25; }
.t-ex { color: var(--muted); }
.t-row a:hover .t-ex, .t-row a:hover time { color: var(--ink); }
.t-cat { display: inline-block; padding: 4px 12px; border-radius: var(--radius); background: var(--paper); font-size: var(--t-small); font-weight: 650; white-space: nowrap; }
.t-row[hidden] { display: none; }
.t-empty { margin-top: 48px; padding: 40px 28px; border-radius: var(--radius); background: var(--surface); font-size: var(--t-state); font-weight: 600; }

.t-back { display: inline-block; text-decoration: none; font-weight: 650; padding: 10px 16px; border-radius: var(--radius); background: var(--surface); transition: background-color .2s; }
.t-back:hover { background: var(--surface-2); }
.post-head { margin-top: 40px; max-width: 980px; }
.post-title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; }
.post-meta { margin-top: 20px; display: flex; gap: 14px; align-items: center; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.post-meta .t-cat { background: var(--mint); color: var(--ink); }
.post-body { margin-top: 56px; max-width: 720px; font-size: 18px; line-height: 1.8; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.02em; margin-top: 2.2em; }
.post-body h3, .post-body h4 { font-size: 21px; line-height: 1.4; margin-top: 1.8em; }
.post-body a { text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--mint); }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li + li { margin-top: .35em; }
.post-body ul.checks { list-style: none; padding-left: 0; }
.post-body .box { display: inline-block; width: 18px; height: 18px; border-radius: 5px; background: var(--surface-2); margin-right: 10px; vertical-align: -3px; }
.post-body .box.on { background: var(--mint); }
.post-body blockquote { margin-left: 0; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); font-size: 21px; font-weight: 600; line-height: 1.6; }
.post-body pre { background: var(--ink); color: #fff; padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 15px; line-height: 1.6; }
.post-body code { font-size: .92em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }
.post-body pre code { background: none; padding: 0; }
.post-figure { margin-top: 2em; margin-bottom: 2em; }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius); }
.post-figure figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--muted); line-height: 1.5; }
.post-table { overflow-x: auto; }
.post-table table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 16px; line-height: 1.55; }
.post-table th, .post-table td { text-align: left; padding: 12px 16px; background: var(--surface); vertical-align: top; }
.post-table th { background: var(--surface-2); }
.post-file a { display: inline-block; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); font-weight: 650; text-decoration: none; }
.post-cite { padding: 16px 20px; border-radius: var(--radius); background: var(--surface); font-size: 16px; }
.t-more { margin-top: 140px; }
@media (min-width: 1101px) { .thoughts-post .post-body { margin-left: calc(130px + 50px); } }
@media (max-width: 640px) {
  .thoughts-index, .thoughts-post { padding-top: 48px; }
  .t-row a { grid-template-columns: 1fr; gap: 8px; padding: 20px 18px; }
  .t-row .t-cat { justify-self: start; }
  .t-row a:hover { transform: none; }
  .post-body { font-size: 17px; margin-top: 36px; }
  .t-more { margin-top: 88px; }
}
/* Thoughts 보완: 대표 이미지 칸, 요약은 본문 잉크, 제목 크기 */
.t-row a { grid-template-columns: 130px 1fr 220px; align-items: center; }
.t-main { align-items: flex-start; }
.t-main .t-cat { margin-top: 6px; }
.t-ex { color: var(--ink); }
.t-thumb { display: block; width: 220px; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.t-row a:hover .t-thumb img { transform: scale(1.04); }
.t-thumb-none { background: var(--paper); }
.post-title { font-size: clamp(36px, 5.2vw, 80px); }
.t-backline { margin-top: 64px; }
@media (min-width: 1101px) { .thoughts-post .t-backline { margin-left: calc(130px + 50px); } }
@media (max-width: 640px) {
  .t-row a { grid-template-columns: 1fr; }
  .t-thumb { width: 100%; aspect-ratio: 16 / 9; order: -1; }
  .t-thumb-none { display: none; }
}
@media (max-width: 640px) { .post-title { font-size: 8vw; } }
.t-thumb-none { position: relative; background: var(--purple); }
.t-row:nth-child(3n+2) .t-thumb-none { background: var(--mint); }
.t-row:nth-child(3n) .t-thumb-none { background: var(--coral); }
.t-thumb-none::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 18px; height: 10px; border-radius: 3px 8px 3px 8px; background: rgba(38, 37, 65, .85); transform: rotate(-3deg); }
/* 메뉴 전체 영문 기본 + 호버 국문: 글자 줄바꿈 방지 */
.navtile.swap .en, .navtile.swap .ko { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 641px) { .navtile.swap .ko { left: 16px; } .navrow .navtile { padding-left: 16px; padding-right: 12px; } }

/* ---------- 브랜드 페이지: 서비스 ---------- */
.services { background: var(--bg); }
.svc-brand { margin-top: 72px; }
.svc-brand + .svc-brand { margin-top: 120px; }
.svc-brand-head { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 32px; align-items: center; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); }
.svc-logo { height: clamp(44px, 4.4vw, 64px); width: auto; }
.svc-brand-head p { font-size: var(--t-body); font-weight: 600; }
.svc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.svc-grid { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.svc { grid-column: span 4; display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface); min-height: 240px; transition: transform .25s var(--ease-out); }
.svc[hidden] { display: none; }
.svc h3 { font-size: var(--t-state); line-height: 1.2; letter-spacing: -0.02em; font-weight: 760; }
.svc p { max-width: 52ch; }
.svc-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.st, .st-cat { display: inline-block; padding: 4px 12px; border-radius: var(--radius); font-size: var(--t-small); font-weight: 650; background: var(--paper); color: var(--ink); }
.st-cat { background: transparent; padding-left: 4px; }
.st-open { background: var(--mint); }
.st-soon { background: var(--coral); }
.svc-feature { grid-column: span 8; grid-row: span 2; padding: 0; overflow: hidden; background: var(--mint); }
.svc-shot { display: block; aspect-ratio: 1200 / 560; overflow: hidden; background: #fff; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s var(--ease-out); }
.svc-feature:hover .svc-shot img { transform: scale(1.025); }
.svc-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.svc-feature .svc-meta { margin-top: 4px; }
.svc-feature .st-open { background: var(--paper); }
.svc-ink { background: var(--ink); color: #fff; }
.svc-ink .st-cat { color: #fff; }
.svc-purple { background: var(--purple); }
.svc-mint { background: var(--mint); }
.svc-coral { background: var(--coral); }
.svc-coral .st-soon, .svc-coral .st { background: var(--paper); }
.svc-wide { grid-column: span 6; }
.svc-list { grid-column: span 12; min-height: 0; }
.svc-list ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.svc-list li { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; }
.svc-list li b { display: block; margin-bottom: 2px; }
.svc-erp { margin-top: 8px; display: grid; grid-template-columns: 5fr 7fr; gap: 8px; }
.svc-erp-main { background: var(--purple); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 16px; min-height: 360px; }
.svc-erp-main h3 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.svc-erp-lead { font-size: 19px; font-weight: 550; line-height: 1.5; }
.svc-erp-main .st-soon { background: var(--paper); }
.svc-erp-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc-erp-feats li { background: var(--surface); border-radius: var(--radius); padding: 22px; }
.svc-erp-feats li:nth-child(4n+1), .svc-erp-feats li:nth-child(4n) { background: var(--surface-2); }
.svc-erp-feats b { display: block; font-size: 19px; margin-bottom: 6px; letter-spacing: -0.01em; }
@media (max-width: 1100px) {
  .svc-brand-head { grid-template-columns: 1fr; }
  .svc, .svc-wide { grid-column: span 6; }
  .svc-feature { grid-column: 1 / -1; grid-row: auto; }
  .svc-erp { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .svc, .svc-wide, .svc-list { grid-column: 1 / -1; min-height: 0; padding: 22px 20px; }
  .svc-feature { padding: 0; }
  .svc-body { padding: 22px 20px; }
  .svc-list ul, .svc-erp-feats { grid-template-columns: 1fr; }
  .svc-erp-main { min-height: 0; padding: 24px 20px; }
}
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 16px; flex-wrap: wrap; }
.svc-top .svc-meta { margin-top: 4px; flex-shrink: 0; }
.svc-erp-main .svc-top { flex-direction: column; }
.svc-list ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .svc-list ul { grid-template-columns: 1fr; } }
/* 빈칸 문장이 1~2줄(휴대폰 2~3줄)을 오가도 상자 높이가 출렁이지 않게 자리를 미리 잡는다 */
.statement { display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(2 * 1.28 * var(--t-state) + 24px + 26px + 12px + 21px); }
@media (max-width: 640px) { .statement { min-height: calc(3 * 1.28 * 5.1vw + 36px + 12px + 21px); } }

/* ---------- 개인정보 처리방침·이용약관(팀서울 원문을 그대로 표시) ---------- */
.policy { padding-top: 72px; }
.policy-source { display: inline-block; padding: 12px 18px; border-radius: var(--radius); background: var(--surface); font-size: var(--t-small); color: var(--ink); }
.policy-source a { font-weight: 650; text-underline-offset: 3px; }
.policy-doc { margin-top: 40px; max-width: 860px; font-size: 17px; line-height: 1.75; }
.policy-doc .pol-title { font-size: clamp(36px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; }
.policy-doc .pol-sub { margin-top: 14px; font-size: 19px; font-weight: 550; }
.policy-doc .pv-text { white-space: pre-line; margin-top: 1em; }
.policy-doc h2, .policy-doc h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.35; letter-spacing: -0.02em; font-weight: 750; margin-top: 2.4em; scroll-margin-top: 24px; }
.policy-doc p, .policy-doc ul, .policy-doc ol { margin-top: .8em; }
.policy-doc ul { list-style: disc; padding-left: 1.3em; }
.policy-doc ol { list-style: decimal; padding-left: 1.4em; }
.policy-doc li + li { margin-top: .3em; }
.policy-doc a { text-underline-offset: 3px; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }
.policy-doc .pv-toc, .policy-doc .terms-toc { margin-top: 28px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); }
.policy-doc .pv-toc ol { margin: 0; }
.policy-doc .pv-toc a, .policy-doc .terms-toc a { text-decoration: none; font-weight: 600; }
.policy-doc .pv-toc a:hover, .policy-doc .terms-toc a:hover { text-decoration: underline; }
.policy-doc .terms-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.policy-doc .terms-art + .terms-art h3 { margin-top: 2em; }
.policy-doc table { width: 100%; border-collapse: collapse; margin-top: 1em; font-size: 15px; line-height: 1.55; }
.policy-doc th, .policy-doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--surface-2); }
.policy-doc th { background: var(--surface); font-weight: 700; }
.policy-doc .pv-table { overflow-x: auto; }
.policy-other { margin-top: 72px; }
@media (max-width: 640px) {
  .policy { padding-top: 40px; }
  .policy-doc { font-size: 16px; }
  .policy-doc thead { display: none; }
  .policy-doc tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--surface-2); }
  .policy-doc td { display: block; border: 0; padding: 4px 0; }
  .policy-doc td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
}
/* 넓은 화면: 목차를 오른쪽에 붙여 두고 본문은 왼쪽 */
@media (min-width: 1101px) {
  .policy .wrap { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 320px); column-gap: 64px; align-items: start; }
  .policy .wrap > *, .policy-doc > *, .policy-doc .privacy-content > * { grid-column: 1; }
  .policy-doc, .policy-doc .privacy-content { display: contents; }
  .policy-doc .pv-toc, .policy-doc .terms-toc { grid-column: 2; grid-row: 1 / span 400; align-self: start; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; margin-top: 0; display: block; }
  .policy-doc .terms-toc a { display: block; padding: 3px 0; }
  .policy .wrap { font-size: 17px; line-height: 1.75; }
}
.policy-source { margin-top: 56px; }
.policy-doc .pol-title { margin-top: 0; }

/* ---------- 고정 머리글 ---------- */
:root { --header-h: 96px; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
header.top { position: sticky; top: 0; z-index: 30; background: var(--bg); padding-bottom: var(--gap); }
.scrolled header.top .nameband, .scrolled header.top .navtile:not([aria-current]):not(.cta) { background: var(--surface-2); }
.tablist { top: calc(var(--header-h) + 16px); }
.manifesto .side-photo { top: calc(var(--header-h) + 24px); }
@media (min-width: 1101px) {
  .policy-doc .pv-toc, .policy-doc .terms-toc { top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); }
}
@media (max-width: 1100px) {
  :root { --header-h: 150px; }
}
@media (max-width: 640px) {
  :root { --header-h: 118px; }
  .nameband { height: 54px; }
  .nameband img { height: 30px; }
  .navrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .navrow::-webkit-scrollbar { display: none; }
  .navrow .navtile, .navrow .navtile:last-child { flex: 0 0 auto; grid-column: auto; min-height: 46px; padding: 0 16px; }
  .tablist { top: var(--header-h); }
}

/* 휴대폰: 서비스 구역 간격·여백 정리, 분류 단추는 한 줄 가로 스크롤 */
@media (max-width: 640px) {
  .services .lead { margin-top: 14px !important; }
  .svc-brand { margin-top: 32px; }
  .svc-brand + .svc-brand { margin-top: 64px; }
  .svc-brand-head { padding: 18px; gap: 12px; }
  .svc-logo { height: 34px; }
  .svc-brand-head p { font-size: 16px; line-height: 1.5; }
  .svc-brand-head .btn { justify-self: start; padding: 11px 16px; font-size: 15px; }
  .svc-filters, .t-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 14px calc(-1 * 16px) 0; padding: 0 16px; gap: 6px; }
  .svc-filters::-webkit-scrollbar, .t-filters::-webkit-scrollbar { display: none; }
  .t-filter { flex: 0 0 auto; padding: 8px 14px; font-size: 15px; }
  .svc-grid { margin-top: 10px; gap: 6px; }
  .svc h3 { font-size: 21px; }
  .svc-top { gap: 6px 12px; }
  .svc-erp-main h3 { font-size: 26px; }
}

/* ---------- 11/19 전체 점검 보정 ---------- */
/* 홈: '빈칸에서 시작하는 일' 밝은 칸 — 휴대폰에서 빈 공간 없애기 */
@media (max-width: 1100px) { .split-light { min-height: 0; gap: 40px; } }
@media (max-width: 640px) { .split-light { padding: 40px 20px 32px; } }
/* 브랜드: 생태계 칸·사진·지도 — 휴대폰은 한 칸씩, 태블릿은 둘씩 */
@media (max-width: 1100px) {
  .expand .e1 { grid-column: 1 / -1; }
  .expand .e2, .expand .e3 { grid-column: span 6; }
  .expand .photo-tile, .expand .map-tile.half { grid-column: span 6; height: 300px; }
}
@media (max-width: 640px) {
  .expand .e1, .expand .e2, .expand .e3, .expand .photo-tile, .expand .map-tile.half { grid-column: 1 / -1; }
  .expand .tile { min-height: 0; gap: 16px; }
  .expand .photo-tile, .expand .map-tile.half { height: 220px; }
}
/* 휴대폰 상단 메뉴: 네 칸(Home~Thoughts)이 한 화면에 들어오게 */
@media (max-width: 640px) {
  .navrow .navtile, .navrow .navtile:last-child { padding: 0 13px; font-size: 15px; }
  .navtile.swap .ko { left: 13px; }
}

/* ---------- 11/19 휴대폰 머리글 개편 ---------- */
/* 브랜드 탭은 고정하지 않는다(모든 화면) */
.tablist { position: static; }
/* 얇은 바(로고 + 햄버거)는 휴대폰에서만, 맨 위 메뉴가 화면 밖으로 나간 뒤에만 보인다 */
.mbar { display: none; }
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  header.top { position: static; }
  .scrolled header.top .nameband, .scrolled header.top .navtile:not([aria-current]):not(.cta) { background: var(--surface); }
  .nameband { height: 56px; }
  .nameband img { height: 30px; }
  /* 맨 위 메뉴: Home 은 빼고(로고가 홈) 2×2, 영문 아래 국문을 작게 */
  .navrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .navrow .navtile:first-child { display: none; }
  .navrow .navtile, .navrow .navtile:last-child { grid-column: auto; min-height: 58px; padding: 10px 14px; font-size: 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
  .navtile.swap .ko { position: static; opacity: 1; transform: none; font-size: 13px; font-weight: 500; color: var(--muted); }
  .navtile.swap .en { transform: none !important; opacity: 1 !important; }
  .navtile.cta .ko, .navtile[aria-current] .ko { color: var(--ink); }

  .mbar { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 40; gap: 6px; padding: 6px; background: var(--bg); transform: translateY(-110%); visibility: hidden; transition: transform .28s var(--ease-out), visibility 0s .28s; }
  .mbar-on .mbar { transform: none; visibility: visible; transition: transform .28s var(--ease-out), visibility 0s 0s; }
  .mbar-logo { flex: 1; display: flex; align-items: center; height: 50px; padding: 0 16px; border-radius: var(--radius); background: var(--surface); }
  .mbar-logo img { height: 28px; width: auto; }
  .mbar-btn { flex: 0 0 50px; height: 50px; border: 0; border-radius: var(--radius); background: var(--ink); cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0; }
  .mbar-btn i { display: block; width: 22px; height: 4px; border-radius: 2px 4px 2px 4px; transition: transform .25s var(--ease-out), opacity .2s; }
  .mbar-btn i:nth-child(1) { background: var(--purple); }
  .mbar-btn i:nth-child(2) { background: var(--mint); }
  .mbar-btn i:nth-child(3) { background: var(--coral); }
  .menu-open .mbar-btn i:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-open .mbar-btn i:nth-child(2) { opacity: 0; }
  .menu-open .mbar-btn i:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .mmenu { position: absolute; top: 100%; left: 0; right: 0; padding: 0 6px 6px; background: var(--bg); display: grid; gap: 6px; }
  .mmenu[hidden] { display: none; }
  .mmenu a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); text-decoration: none; }
  .mmenu a b { font-size: 18px; }
  .mmenu a span { font-size: 14px; color: var(--muted); }
  .mmenu a.cta { background: var(--coral); }
  .mmenu a.cta span { color: var(--ink); }
  .mmenu a:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) { .mbar, .mbar-on .mbar, .mbar-btn i { transition: none; } }
@media (max-width: 640px) { .mmenu a[aria-current] { background: var(--mint); } }
/* "칸을 눌러 보세요." 안내는 옅게(흰 바탕 대비 4.5:1 이상 유지) */
.statement .hint { color: #6a697f; font-weight: 400; }

/* ---------- 바닥글 맨 아래: 출처(왼쪽)와 운영 정보(오른쪽)를 나란히, 작은 글씨 ---------- */
.foot .credits { grid-column: 1 / span 8; }
.foot .ft-legal { grid-column: 9 / span 4; min-height: 0 !important; display: block; padding: 18px 22px; }
.credits p, .ft-legal p { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: none; }
.credits p a, .ft-legal p a { color: var(--muted); text-underline-offset: 2px; }
.credits p a:hover, .ft-legal p a:hover { color: var(--ink); }
@media (max-width: 1100px) {
  .foot .credits { grid-column: 1 / span 7; }
  .foot .ft-legal { grid-column: 8 / span 5; }
}
@media (max-width: 640px) {
  .foot .credits, .foot .ft-legal { grid-column: 1 / -1; }
  .foot .ft-legal { order: 10; }
  .foot .credits { order: 9; }
  .credits p, .ft-legal p { font-size: 13px; }
}
/* 소개 단이 셋으로 줄어서 */
.cols4.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.split-foot { justify-content: flex-end; }
@media (max-width: 640px) { .cols4.cols3 { grid-template-columns: 1fr; gap: 28px; } }
/* 바닥글: 시각 칸을 지운 자리만큼 메일 칸을 넓힌다 */
.ft-mail { grid-column: 8 / span 5; }
@media (max-width: 1100px) { .ft-mail { grid-column: 1 / -1; } }
@media (max-width: 640px) { .ft-nav { grid-column: 1 / -1 !important; } }
