/* ==========================================================================
   로마트 회사 소개 사이트 — 스타일
   색상·글꼴은 맨 위 :root 변수만 바꿔도 사이트 전체에 반영됩니다.
   ========================================================================== */

:root {
  /* 색상 */
  --ink: #0f1720;
  --paper: #f6f4ed;
  --paper-deep: #ece9de;
  --card: #ffffff;
  --text: #121a24;
  --muted: #566170;
  --muted-on-dark: #aeb8c4;
  --line: #e2ded2;
  --line-strong: #cfc9ba;
  --accent: #ff5b2e;
  --accent-strong: #c93a0b;
  --accent-soft: #ffe1d6;
  --accent-on-dark: #ff8a63;
  --ok: #0e7a50;

  /* 글꼴 */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 레이아웃 */
  --maxw: 1160px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --header-h: 68px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 32, 0.05), 0 10px 30px -12px rgba(15, 23, 32, 0.14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 32, 0.05), 0 24px 48px -18px rgba(15, 23, 32, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nw { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: 0.7rem 1rem; background: var(--ink); color: #fff;
  border-radius: 10px; font-weight: 700; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0 1.6rem; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.15s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(15, 23, 32, 0.45); }
.btn-line { border-color: rgba(15, 23, 32, 0.24); color: var(--text); }
.btn-line:hover { border-color: var(--ink); background: #fff; }
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: 0.95rem; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(246, 244, 237, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
/* 맨 위에서는 투명하게 두어 히어로 배경이 헤더 뒤로 끊김 없이 이어지게 함 (JS가 붙임) */
.site-header.is-top { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.03em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-mark .mk-bg { fill: var(--mark-bg, var(--ink)); }
.brand-mark .mk-fg { fill: var(--mark-fg, var(--paper)); }
.brand-mark .mk-stroke { fill: none; stroke: var(--mark-fg, var(--paper)); stroke-width: 4; stroke-linecap: round; }
.brand-mark .mk-slat { fill: none; stroke: var(--mark-bg, var(--ink)); stroke-width: 3; stroke-linecap: round; }
.brand-mark .mk-spark { fill: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.6rem; }
.site-nav a:not(.btn) {
  position: relative; padding: 0.5rem 0; font-size: 0.97rem; font-weight: 600;
  color: var(--muted); transition: color 0.15s;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="true"] { color: var(--text); }
.site-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--accent);
}

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 0.5rem var(--gutter) 1.5rem; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(15, 23, 32, 0.25);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li a:not(.btn) { display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav a[aria-current="true"]::after { display: none; }
  .nav-cta { width: 100%; min-height: 50px; }
}

/* ---------- 섹션 공통 ---------- */
.section { position: relative; padding-block: clamp(4rem, 7.5vw, 6.75rem); }
.section-dark { background: var(--ink); color: #eef1f5; overflow: clip; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem); }

.kicker {
  display: inline-flex; align-items: center; gap: 0.65rem; margin-bottom: 1.1rem;
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; color: var(--accent-strong);
}
.kicker .num {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; line-height: 1.2;
  padding: 0.2rem 0.55rem; border: 1px solid currentColor; border-radius: 999px;
}
.section-dark .kicker, .kicker-dark { color: var(--accent-on-dark); }

.h2 {
  font-size: clamp(1.95rem, 1.25rem + 2.5vw, 3rem); line-height: 1.2; font-weight: 800;
  letter-spacing: -0.04em; text-wrap: balance;
}
.lead { margin-top: 1.15rem; max-width: 40rem; font-size: clamp(1.04rem, 0.97rem + 0.3vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.section-dark .lead { color: var(--muted-on-dark); }

/* ---------- 히어로 ---------- */
/* 히어로는 헤더 밑까지 올라가 있어서, 반투명 헤더 뒤로 배경이 끊기지 않고 이어집니다 */
.hero {
  position: relative; overflow-x: clip; margin-top: calc(var(--header-h) * -1);
  padding-block: calc(var(--header-h) + clamp(2.5rem, 6vw, 5.5rem)) clamp(4.5rem, 7vw, 5.5rem);
}
.hero::before {
  content: ""; position: absolute; top: -18%; right: -12%; width: min(70vw, 780px); aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.2), rgba(255, 91, 46, 0));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(rgba(15, 23, 32, 0.16) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(60% 55% at 78% 28%, #000, transparent 78%);
  mask-image: radial-gradient(60% 55% at 78% 28%, #000, transparent 78%);
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 3.5rem; }
}

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.42rem 1rem 0.42rem 0.85rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 0.88rem; font-weight: 650; box-shadow: 0 1px 2px rgba(15, 23, 32, 0.04);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 91, 46, 0.2); }

.hero-title {
  margin-top: 1.5rem; font-size: clamp(2.15rem, 1.05rem + 4.1vw, 3.45rem); line-height: 1.16;
  font-weight: 800; letter-spacing: -0.045em; text-wrap: balance;
}
.hl {
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat; background-position: 0 90%; background-size: 100% 40%;
  animation: hl-in 0.9s 0.5s var(--ease) both;
}
@keyframes hl-in { from { background-size: 0 40%; } to { background-size: 100% 40%; } }

.hero-lead { margin-top: 1.6rem; max-width: 35rem; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.22rem); color: var(--muted); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.2rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--line); font-size: 0.92rem; font-weight: 550; color: var(--muted);
}
.hero-facts li { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* 히어로 오른쪽: 워크플로 카드 */
.hero-visual { position: relative; width: 100%; max-width: 470px; margin-inline: auto; }
@media (min-width: 960px) { .hero-visual { justify-self: end; } }

.flow {
  position: relative; padding: 1.25rem; border: 1px solid var(--line); border-radius: 26px; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 32, 0.3), 0 2px 6px rgba(15, 23, 32, 0.06);
}
.flow-top {
  display: flex; align-items: center; justify-content: space-between; padding: 0.3rem 0.5rem 1rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; color: var(--muted);
}
.flow-title { display: inline-flex; align-items: center; gap: 0.6rem; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; animation: pulse 2.2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 160, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 160, 107, 0); }
}
.flow-tag {
  padding: 0.1rem 0.65rem; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font); font-size: 0.78rem; font-weight: 600; letter-spacing: 0;
}
.flow-list { display: grid; gap: 0.5rem; }
.flow-list li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s, opacity 0.3s;
}
.fl-no { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.fl-name { font-weight: 650; letter-spacing: -0.02em; }
.fl-state {
  padding: 0.2rem 0.65rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap;
}
.flow-list li[data-state="wait"] { opacity: 0.72; }
.flow-list li[data-state="done"] { background: #fff; }
.flow-list li[data-state="done"] .fl-state { color: var(--ok); border-color: rgba(14, 122, 80, 0.3); background: rgba(34, 160, 107, 0.08); }
.flow-list li[data-state="active"] {
  background: #fff; border-color: var(--accent); transform: translateX(5px);
  box-shadow: 0 10px 22px -10px rgba(255, 91, 46, 0.55);
}
.flow-list li[data-state="active"] .fl-state { color: #fff; background: var(--accent-strong); border-color: transparent; }

.flow-bar { height: 6px; margin: 1.1rem 0.25rem 0; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.flow-bar span {
  display: block; width: calc(var(--p, 0.4) * 100%); height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #ff9a74); transition: width 0.7s var(--ease);
}
.flow-note { margin: 0.9rem 0.5rem 0.2rem; font-size: 0.82rem; color: var(--muted); }

.fchip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.95rem;
  border-radius: 999px; font-size: 0.86rem; font-weight: 700; box-shadow: 0 14px 28px -10px rgba(15, 23, 32, 0.4);
  animation: float 6s ease-in-out infinite;
}
.fchip .icon { width: 1.1em; height: 1.1em; }
.fchip-a { top: -16px; left: -10px; background: var(--ink); color: #fff; }
.fchip-b { bottom: -18px; right: -8px; background: #fff; color: var(--text); border: 1px solid var(--line); animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- 회사 소개 ---------- */
.about-grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 960px) { .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 5rem; } }
.about-body { margin-top: 1.75rem; display: grid; gap: 1.15rem; max-width: 36rem; font-size: 1.1rem; color: #2b3542; text-wrap: pretty; }

.facts-wrap { padding: 0.5rem 1.75rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.facts-title { padding: 1.1rem 0 0.4rem; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.facts > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.facts dd { font-weight: 600; letter-spacing: -0.01em; }

/* ---------- 사업 영역 ---------- */
.section-business { background: linear-gradient(180deg, transparent, rgba(236, 233, 222, 0.6) 40%, transparent); }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--ink); color: #fff; }
.card-icon .icon { width: 26px; height: 26px; }
.card-tag { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; }
.card > p { color: var(--muted); text-wrap: pretty; }

.ticks { display: grid; gap: 0.6rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); }
.ticks li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.99rem; font-weight: 500; line-height: 1.55; }
.ticks .icon { width: 1.1em; height: 1.1em; margin-top: 0.3em; color: var(--accent-strong); }

/* ---------- AI 활용 (어두운 섹션) ---------- */
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 85% 0%, #000, transparent 75%);
  mask-image: radial-gradient(80% 70% at 85% 0%, #000, transparent 75%);
}
.section-dark > .container { position: relative; }

.tech-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tech-card {
  display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.1rem);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); background: rgba(255, 255, 255, 0.04);
}
.tech-head { display: flex; align-items: center; gap: 0.9rem; }
.tech-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: rgba(255, 91, 46, 0.16); color: var(--accent-on-dark); }
.tech-icon .icon { width: 25px; height: 25px; }
.tech-name { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
.tech-role { margin-top: 0.15rem; font-size: 0.95rem; color: var(--muted-on-dark); }
.section-dark .ticks { border-top-color: rgba(255, 255, 255, 0.16); }
.section-dark .ticks li { color: #e6ebf1; }
.section-dark .ticks .icon { color: var(--accent-on-dark); }

.arch {
  margin-top: 1.25rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}
.arch-title { margin-bottom: 1.25rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--muted-on-dark); }
.arch-flow { display: grid; gap: 0.6rem; }
@media (min-width: 900px) {
  .arch-flow { grid-template-columns: 1fr auto 1.15fr auto 1fr auto 1fr; align-items: stretch; gap: 0.6rem; }
}
.node {
  display: grid; align-content: center; gap: 0.3rem; padding: 1.15rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 16px; background: rgba(255, 255, 255, 0.04);
}
.node strong { font-size: 1.12rem; font-weight: 750; letter-spacing: -0.025em; }
.node-k { font-family: var(--mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; color: var(--accent-on-dark); }
.node-d { font-size: 0.9rem; line-height: 1.5; color: var(--muted-on-dark); }
.node-main { border-color: rgba(255, 91, 46, 0.55); background: rgba(255, 91, 46, 0.12); }
.arrow { display: grid; place-items: center; color: var(--muted-on-dark); }
.arrow .icon { width: 22px; height: 22px; }
@media (max-width: 899px) { .arrow .icon { transform: rotate(90deg); } }
.arch-base {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem 0.9rem;
  margin-top: 1rem; padding: 0.95rem 1.2rem; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 14px;
  text-align: center; font-size: 0.95rem; color: #dfe5ec;
}

/* ---------- 업무 방식 ---------- */
.steps { display: grid; gap: 2.25rem; }
.step { position: relative; padding-left: 4rem; }
.step-n {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 0.85rem; font-weight: 600;
}
.step:last-child .step-n { background: var(--accent-strong); }
.step:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 52px; bottom: -1.9rem; border-left: 2px dashed var(--line-strong);
}
.step h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; padding-top: 0.5rem; }
.step p { margin-top: 0.35rem; color: var(--muted); font-size: 0.99rem; text-wrap: pretty; }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; }
  .step { padding: 4.25rem 0 0; }
  .step h3 { padding-top: 0; }
  .step:not(:last-child)::after { left: 54px; right: -1.5rem; top: 21px; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed var(--line-strong); }
}

/* ---------- 일하는 원칙 ---------- */
.section-principles { background: linear-gradient(180deg, transparent, rgba(236, 233, 222, 0.6) 55%, transparent); }
.principles { display: grid; gap: 2.25rem 2rem; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.principle { padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.principle .icon { width: 30px; height: 30px; margin-bottom: 1.1rem; color: var(--accent-strong); }
.principle h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; }
.principle p { margin-top: 0.55rem; color: var(--muted); font-size: 0.99rem; text-wrap: pretty; }

/* ---------- 자주 묻는 질문 ---------- */
.faq-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4.5rem; }
  .faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
}
.faq { display: grid; gap: 0.75rem; }
.faq details { padding: 0 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0;
  font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform 0.25s var(--ease), background 0.2s, color 0.2s;
}
.faq .plus .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq .answer { max-width: 44rem; padding: 0 0 1.35rem; color: var(--muted); text-wrap: pretty; }

/* ---------- 문의 ---------- */
.section-contact { padding-top: 0; }
.contact-panel {
  position: relative; display: grid; gap: 2.25rem; overflow: hidden; padding: clamp(2rem, 5vw, 4.25rem);
  border-radius: 30px; background: var(--ink); color: #fff;
}
.contact-panel::before {
  content: ""; position: absolute; top: -40%; right: -10%; width: 70%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 91, 46, 0.32), rgba(255, 91, 46, 0));
}
.contact-panel > * { position: relative; }
.contact-panel .lead { color: var(--muted-on-dark); }
@media (min-width: 900px) { .contact-panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 3rem; } }
.contact-list { display: grid; gap: 0.75rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.3rem; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px; background: rgba(255, 255, 255, 0.06); transition: background 0.2s, border-color 0.2s;
}
a.contact-item:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.34); }
.contact-item .icon { width: 24px; height: 24px; color: var(--accent-on-dark); }
.contact-text { display: grid; min-width: 0; }
.contact-item .label { font-size: 0.82rem; color: var(--muted-on-dark); }
.contact-item .value { font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-empty { padding: 1.1rem 1.3rem; border: 1px dashed rgba(255, 255, 255, 0.3); border-radius: 16px; color: var(--muted-on-dark); }

/* ---------- 푸터 ---------- */
.site-footer { padding: 3.5rem 0 3rem; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--muted); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 4rem; } }
.footer-brand .brand { color: var(--text); }
.footer-brand p { margin-top: 0.9rem; }
.biz { display: flex; flex-wrap: wrap; gap: 0.45rem 0; }
.biz li { display: inline-flex; gap: 0.5rem; padding-right: 0.9rem; margin-right: 0.9rem; border-right: 1px solid var(--line-strong); line-height: 1.4; color: var(--text); }
.biz li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.biz li span { color: var(--muted); }
@media (max-width: 599px) {
  .biz { display: grid; gap: 0.4rem; }
  .biz li { margin-right: 0; padding-right: 0; border-right: 0; }
  .biz li span { min-width: 6.5rem; }
}
.legal { margin-top: 1.5rem; font-size: 0.84rem; line-height: 1.6; text-wrap: pretty; }
.copy { margin-top: 0.6rem; font-size: 0.84rem; }

/* ---------- 404 ---------- */
.nf { display: grid; place-content: center; justify-items: center; gap: 1rem; min-height: 100svh; padding: 2rem var(--gutter); text-align: center; }
.nf .brand-mark { width: 64px; height: 64px; margin-bottom: 0.5rem; }
.nf h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; }
.nf p { color: var(--muted); }
.nf .btn { margin-top: 1rem; }

/* ---------- 등장 효과 (JS가 켜져 있을 때만) ----------
   보이기 전에는 투명, 화면에 들어오면 is-in 클래스가 붙으면서 한 번 재생됩니다.
   backwards 채움이라 재생이 끝나면 원래 스타일(호버 효과 등)로 돌아갑니다. */
html.js:not(.no-anim) [data-reveal]:not(.is-in) { opacity: 0; }
html.js:not(.no-anim) [data-reveal].is-in {
  animation: reveal 0.75s var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 움직임 줄이기 설정을 켠 사용자는 애니메이션 없이 표시 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
html.no-anim .hl { animation: none; }
