/* ============================
   빌리 (Billy Co., Ltd.) — Tokens & Base
   ============================ */

:root {
  /* Color */
  --bg: #fafaf7;
  --bg-soft: #f3f1ea;
  --bg-ink: #0a1428;
  --ink: #0a0f1a;
  --ink-2: #2a2f3a;
  --muted: #6b7280;
  --muted-2: #9aa0a8;
  --line: #e7e4dc;
  --line-soft: #efece4;
  --brand: #0a1f44;
  --brand-2: #122c5e;
  --gold: #b8924a;
  --gold-soft: #d8b06a;
  --danger: #b13a3a;

  /* Type */
  --ff-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "Segoe UI", sans-serif;
  --ff-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-feature-settings: "ss01", "ss02", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================
   Top Nav
   ============================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.nav-links a {
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
.nav-links a.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.01em;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-links a.nav-cta:hover {
  background: var(--brand);
  color: #fff;
}
.nav-links a.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--brand);
}
@media (max-width: 720px) {
  .nav-links {
    gap: 18px;
    font-size: 13px;
  }
  .nav-links .hide-sm {
    display: none;
  }
  .nav-cta {
    padding: 8px 14px;
  }
}

/* ============================
   Sections / Layout
   ============================ */
section {
  position: relative;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--muted);
}

.section-pad {
  padding: clamp(96px, 14vw, 180px) 0;
}

/* ============================
   Hero
   ============================ */
.hero {
  padding: clamp(120px, 18vw, 220px) 0 clamp(80px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(40px, 8vw, 80px);
  color: var(--muted);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.hero h1 {
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  font-feature-settings: "kern" 1, "ss01", "ss02";
}
.hero h1 .hl-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.04em;
}
.hero h1 .hl-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: hl-rise 1.15s var(--ease) forwards;
  will-change: transform;
}
.hero h1 .hl-line:nth-child(1) .hl-inner { animation-delay: 0.18s; }
.hero h1 .hl-line:nth-child(2) .hl-inner { animation-delay: 0.36s; }
@keyframes hl-rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}
.hero h1 .accent {
  color: var(--brand);
  font-family: "Noto Serif KR", "Pretendard", serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.045em;
  position: relative;
  padding-right: 0.02em;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.06em;
  bottom: 0.14em;
  height: 0.055em;
  background: var(--gold);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
  animation: accent-underline 0.9s var(--ease) 0.95s forwards;
}
@keyframes accent-underline {
  to { transform: scaleX(1); }
}
.hero h1 .gold-dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  background: var(--gold);
  border-radius: 999px;
  vertical-align: 0.04em;
  margin-left: 0.04em;
  opacity: 0;
  transform: scale(0.4);
  animation: gold-pop 0.5s var(--ease) 1.1s forwards;
}
@keyframes gold-pop {
  to { opacity: 1; transform: scale(1); }
}
.hero-tag {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.hero-tag .arrow {
  color: var(--gold);
  font-family: var(--ff-sans);
  letter-spacing: 0;
}
.hero-tag .rule {
  flex: 0 0 auto;
  width: 36px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
}
.hero-sub {
  margin-top: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: end;
}
.hero-sub p {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 36ch;
  margin: 0;
  text-wrap: pretty;
}
.hero-sub .meta-block {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: right;
  align-self: end;
}
.hero-sub .meta-block span {
  display: block;
  margin-bottom: 4px;
}
@media (max-width: 720px) {
  .hero-sub {
    grid-template-columns: 1fr;
  }
  .hero-sub .meta-block {
    text-align: left;
  }
}

/* ============================
   CEO 인사말
   ============================ */
.ceo {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.ceo-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
@media (max-width: 860px) {
  .ceo-grid {
    grid-template-columns: 1fr;
  }
}
.ceo h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
  margin: 18px 0 0;
}
.ceo .ceo-quote {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: pretty;
}
.ceo .ceo-quote em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(184, 146, 74, 0.25) 60%);
  padding: 0 2px;
}
.ceo .ceo-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 18px;
  max-width: 58ch;
  text-wrap: pretty;
}
.ceo-sign {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ceo-sign strong {
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 17px;
  letter-spacing: -0.02em;
  font-weight: 600;
  white-space: nowrap;
}

/* ============================
   사업영역
   ============================ */
.biz {
  background: var(--bg-ink);
  color: #f3f1ea;
}
.biz .eyebrow {
  color: rgba(243, 241, 234, 0.55);
}
.biz .eyebrow::before {
  background: rgba(243, 241, 234, 0.4);
}
.biz h2 {
  font-size: clamp(38px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 600;
  margin: 20px 0 0;
  max-width: 16ch;
}
.biz h2 .gold {
  color: var(--gold-soft);
  font-style: italic;
  font-family: "Times New Roman", "Pretendard", serif;
  font-weight: 400;
}
.biz-rows {
  margin-top: clamp(60px, 9vw, 120px);
  border-top: 1px solid rgba(243, 241, 234, 0.18);
}
.biz-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 24px;
  padding: clamp(32px, 5vw, 56px) 0;
  border-bottom: 1px solid rgba(243, 241, 234, 0.18);
  transition: padding 0.4s var(--ease);
  cursor: default;
}
.biz-row:hover {
  padding-left: 18px;
}
.biz-row .num {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(243, 241, 234, 0.4);
  padding-top: 12px;
}
.biz-row .title {
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 500;
  color: #f3f1ea;
}
.biz-row .items {
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.biz-row .items span {
  font-size: 15px;
  color: rgba(243, 241, 234, 0.7);
  letter-spacing: -0.005em;
  padding-left: 18px;
  position: relative;
}
.biz-row .items span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--gold-soft);
}
@media (max-width: 720px) {
  .biz-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .biz-row .num {
    padding-top: 0;
  }
  .biz-row .items {
    padding-top: 6px;
  }
}

/* ============================
   Approach — flow grid (on dark bg)
   ============================ */
.flow-grid {
  margin-top: clamp(60px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(243, 241, 234, 0.18);
  border-top: 1px solid rgba(243, 241, 234, 0.18);
  border-bottom: 1px solid rgba(243, 241, 234, 0.18);
}
.flow-step {
  background: var(--bg-ink);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: background 0.3s var(--ease);
}
.flow-step:hover {
  background: #0d1932;
}
.flow-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold-soft);
}
.flow-arrow {
  color: rgba(243, 241, 234, 0.3);
  font-size: 18px;
  font-family: var(--ff-sans);
}
.flow-titles {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.flow-ko {
  font-family: "Noto Serif KR", "Pretendard", serif;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 500;
  color: #f3f1ea;
}
.flow-en {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: rgba(243, 241, 234, 0.45);
  text-transform: uppercase;
}
.flow-desc {
  margin: 4px 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(243, 241, 234, 0.78);
  letter-spacing: -0.005em;
  text-wrap: pretty;
  max-width: 30ch;
}
.flow-items {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 241, 234, 0.14);
}
.flow-items li {
  font-size: 14px;
  color: rgba(243, 241, 234, 0.78);
  padding-left: 18px;
  position: relative;
  letter-spacing: -0.005em;
}
.flow-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--gold-soft);
}
@media (max-width: 860px) {
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .flow-arrow {
    display: none;
  }
}
.flow-foot {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 32px;
  border-top: 1px solid rgba(243, 241, 234, 0.18);
  display: flex;
  justify-content: flex-end;
}
.flow-foot span {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(243, 241, 234, 0.65);
  letter-spacing: -0.005em;
  text-align: right;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .flow-foot span {
    text-align: left;
  }
}

/* ============================
   Products — category grid
   ============================ */
.products {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.products-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.products-header h2 {
  font-size: clamp(38px, 5.4vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 600;
  margin: 18px 0 0;
}
.products-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0;
  text-wrap: pretty;
  padding-bottom: 6px;
}
@media (max-width: 720px) {
  .products-header {
    grid-template-columns: 1fr;
  }
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
.product-card {
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 320px;
  transition: background 0.3s var(--ease);
  cursor: default;
  position: relative;
}
.product-card:hover {
  background: var(--bg-soft);
}
.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.product-num {
  color: var(--brand);
}
.product-code {
  color: var(--gold);
}
.product-title {
  font-family: "Noto Serif KR", "Pretendard", serif;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 500;
  margin: 8px 0 0;
  color: var(--ink);
}
.product-en {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.product-rule {
  margin: 4px 0;
  width: 28px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  transition: width 0.4s var(--ease);
}
.product-card:hover .product-rule {
  width: 56px;
  opacity: 1;
}
.product-desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

/* ============================
   공고 게시판
   ============================ */
.notices {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.notices-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.notices-header h2 {
  font-size: clamp(38px, 5.4vw, 76px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  font-weight: 600;
  margin: 18px 0 0;
}
.notices-header .legal-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .notices-header {
    grid-template-columns: 1fr;
  }
}

.notices-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  position: relative;
}
.search-input input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 12px 12px 32px;
  outline: none;
  color: var(--ink);
}
.search-input svg {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.filter-select {
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 10px 32px 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.btn {
  font-family: inherit;
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  font-weight: 500;
}
.btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-danger {
  color: var(--danger);
  border-color: rgba(177, 58, 58, 0.3);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.notices-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notice-item {
  display: grid;
  grid-template-columns: 110px 130px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}
.notice-item:hover {
  background: var(--bg-soft);
  padding-left: 14px;
  padding-right: 14px;
}
.notice-item .date {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.notice-type {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--brand);
  border: 1px solid var(--line);
  width: fit-content;
  white-space: nowrap;
}
.notice-item .title {
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
}
.notice-item .meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.notice-item .actions {
  display: flex;
  gap: 6px;
}
.notice-item .actions button {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .notice-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .notice-item .actions {
    margin-top: 4px;
  }
}

.empty {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 15px;
}

/* Notice detail modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 26, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.25s var(--ease);
}
/* `hidden` 속성이 위 display:flex 보다 우선하도록 — 모달 기본 숨김/닫힘 보장 */
.modal-backdrop[hidden] {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--bg);
  border-radius: 4px;
  max-width: 720px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  animation: rise 0.35s var(--ease);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal .close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--muted);
}
.modal .close:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.modal h3 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 18px 0 12px;
  font-weight: 600;
}
.modal .modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.modal .modal-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: keep-all;
}

/* Admin form */
.form-grid {
  display: grid;
  gap: 18px;
}
.field label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 12px 14px;
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
}
.field textarea {
  min-height: 200px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.7;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-bar {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(10, 31, 68, 0.06);
  border: 1px solid rgba(10, 31, 68, 0.15);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.admin-bar .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 2s infinite var(--ease);
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ============================
   문의
   ============================ */
.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
}
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact h2 {
  font-size: clamp(38px, 5.4vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 600;
  margin: 18px 0 28px;
}
.contact .info dl {
  margin: 0;
  display: grid;
  grid-template-columns: 100px 1fr;
  row-gap: 18px;
  column-gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.contact .info dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  padding-top: 2px;
}
.contact .info dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.55;
}
.contact .info dd a:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ============================
   Footer
   ============================ */
footer {
  background: var(--bg-ink);
  color: rgba(243, 241, 234, 0.65);
  padding: clamp(60px, 8vw, 100px) 0 40px;
  font-size: 13px;
  letter-spacing: -0.005em;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
@media (max-width: 720px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}
footer h4 {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(243, 241, 234, 0.45);
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
footer .footer-col p,
footer .footer-col a {
  display: block;
  margin: 0 0 6px;
  color: rgba(243, 241, 234, 0.75);
}
footer .footer-col a:hover {
  color: var(--gold-soft);
}
footer .footer-bottom {
  border-top: 1px solid rgba(243, 241, 234, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 241, 234, 0.5);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* ============================
   Scroll animations
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }

/* ============================
   Misc
   ============================ */
::selection {
  background: var(--brand);
  color: var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

/* ============================
   Supplemental — Rails additions
   (flash toasts, admin pages, contact success)
   ============================ */

/* Flash toast */
.flash-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(520px, calc(100% - 32px));
}
.flash {
  background: var(--bg-ink);
  color: #f3f1ea;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 40px rgba(10, 20, 40, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: rise 0.35s var(--ease);
}
.flash.flash-alert {
  background: var(--danger);
}
.flash::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  flex: 0 0 auto;
}
.flash.flash-alert::before {
  background: #fff;
}

/* Form errors */
.form-errors {
  background: rgba(177, 58, 58, 0.08);
  border: 1px solid rgba(177, 58, 58, 0.3);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 8px;
  color: var(--danger);
  font-size: 14px;
}
.form-errors ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

/* Contact success panel */
.contact-success {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--bg);
}
.contact-success .ok {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.contact-success p {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0;
}

/* ============================
   Admin pages
   ============================ */
.admin-page {
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 12vw, 120px);
  min-height: 70vh;
}
.admin-page .admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vw, 56px);
}
.admin-page h1 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 600;
  margin: 16px 0 0;
}
.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Login page is centered */
.admin-login {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(120px, 16vw, 200px) var(--pad) 80px;
}
.admin-login .login-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(32px, 5vw, 48px);
  background: var(--bg);
}
.admin-login h1 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin: 14px 0 8px;
  font-weight: 600;
}
.admin-login p.sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 28px;
}
.demo-hint {
  margin-top: 24px;
  padding: 14px;
  background: var(--bg-soft);
  border-radius: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.6;
}
.demo-hint strong { color: var(--ink); }

/* Admin notices table reuses notice-item look */
.admin-notice-item {
  display: grid;
  grid-template-columns: 110px 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.admin-notice-item .title {
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 500;
}
.admin-notice-item .actions {
  display: flex;
  gap: 6px;
}
.admin-notice-item .actions .btn {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 6px;
}
@media (max-width: 720px) {
  .admin-notice-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.back-link {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.back-link:hover { color: var(--brand); }

/* ============================
   Admin dashboard nav (tabs)
   ============================ */
.admin-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}
.admin-nav .back-link { margin-right: 4px; }
.admin-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
}
.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.admin-tab:hover { color: var(--brand); }
.admin-tab.active {
  color: var(--brand);
  background: rgba(10, 31, 68, 0.06);
  border-color: rgba(10, 31, 68, 0.15);
}
.admin-tab .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1;
}

/* Inquiry list */
.admin-inquiry-item {
  display: grid;
  grid-template-columns: 110px 72px 200px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.admin-inquiry-item.is-unread {
  background: rgba(184, 146, 74, 0.06);
}
.admin-inquiry-item .status-unread,
.admin-inquiry-item .status-read {
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.admin-inquiry-item .status-unread {
  color: var(--danger);
  border: 1px solid rgba(177, 58, 58, 0.3);
  background: rgba(177, 58, 58, 0.06);
}
.admin-inquiry-item .status-read {
  color: var(--muted);
  border: 1px solid var(--line);
}
.admin-inquiry-item .who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.admin-inquiry-item .who .name {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.admin-inquiry-item .who .email {
  font-family: var(--ff-mono);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-inquiry-item .title {
  font-size: 15px;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.admin-inquiry-item.is-unread .title { color: var(--ink); font-weight: 500; }
.admin-inquiry-item .actions { display: flex; gap: 6px; }
.admin-inquiry-item .actions .btn { font-size: 11px; padding: 6px 12px; border-radius: 6px; }
@media (max-width: 860px) {
  .admin-inquiry-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ============================
   문의 — 개인정보 동의 박스
   ============================ */
.consent {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 18px 16px;
  background: var(--bg);
}
.consent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-bottom: 14px;
}
.consent-table th,
.consent-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  letter-spacing: -0.01em;
}
.consent-table th {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  font-weight: 500;
}
.consent-table td { color: var(--ink-2); }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.consent-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--brand);
  cursor: pointer;
}
.consent-check strong { color: var(--danger); font-weight: 600; }
.consent-check em {
  font-style: normal;
  background: linear-gradient(transparent 60%, rgba(184, 146, 74, 0.25) 60%);
  padding: 0 2px;
}

/* ============================
   Snackbar (상단 중앙) + 문의 전송 완료 모달
   ============================ */
.snackbar-stack {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: max-content;
  max-width: calc(100% - 32px);
  pointer-events: none;
}
.snackbar {
  background: var(--bg-ink);
  color: #f3f1ea;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 40px rgba(10, 20, 40, 0.28);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.snackbar::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--danger);
  flex: 0 0 auto;
}
.snackbar.in {
  opacity: 1;
  transform: translateY(0);
}

/* 전송 완료 모달 — 정적(닫기 없음) */
.modal-static { cursor: default; }
.success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  animation: gold-pop 0.5s var(--ease);
}
