:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --surface: #ffffff;
  --surface-2: #f0eeea;
  --ink: #0a0a0a;
  --ink-2: #45443f;
  --muted: #85827a;
  --line: rgba(10,10,10,.10);
  --line-strong: rgba(10,10,10,.20);
  --red: #e8332a;
  --red-deep: #b8241d;
  --red-soft: rgba(232,51,42,.10);
  --gold: #c9962c;
  --shadow: 0 24px 60px rgba(10,10,10,.10);
  --shadow-soft: 0 10px 26px rgba(10,10,10,.07);
  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max: 1240px;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Pretendard, "Noto Sans KR", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-weight: 800; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }

/* motion: scroll reveal (visible by default; only animates when motion is allowed) */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s cubic-bezier(.16,.8,.3,1), transform .6s cubic-bezier(.16,.8,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* cine21-style bracket tag: [ 텍스트 ] in red, mono-leaning brackets */
.tag-bracket {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  color: var(--red);
  margin-bottom: 16px;
}
.tag-bracket .bk { font-family: var(--font-mono); font-weight: 700; }

.section-title { font-size: clamp(25px, 3vw, 36px); line-height: 1.32; font-weight: 900; letter-spacing: -.01em; }
.section-desc { margin-top: 14px; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  width: min(calc(100% - 28px), calc(var(--max) + 12px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; }
.brand-mark img { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--red); transition: right .25s cubic-bezier(.16,.8,.3,1);
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }
.main-nav a:hover { color: var(--red); }
.nav-cta {
  background: var(--red);
  color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 14px;
  border: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--red-deep); }
/* .main-nav a(0,1,1)가 .nav-cta(0,1,0)를 이겨 글자가 회색·빨강이 되던 문제 — 2026-09-22 */
.main-nav a.nav-cta,
.main-nav a.nav-cta:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }

/* hero: full-bleed cinematic banner */
.hero { padding: 0 0 96px; }
.hero-cinema {
  position: relative;
  width: 100%;
  height: 66vh;
  min-height: 480px;
  max-height: 780px;
  background: #050505;
  overflow: hidden;
}
.hero-cinema-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-cinema-slide.is-active { opacity: 1; }
.hero-cinema-slide img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.05);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-cinema-slide.is-active img { animation: heroKenBurns 6.5s cubic-bezier(.16,.8,.3,1) forwards; }
}
@keyframes heroKenBurns {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}
.hero-cinema-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,5,5,.62) 0%, rgba(5,5,5,.05) 30%, rgba(5,5,5,.10) 52%, rgba(5,5,5,.88) 100%);
}
.hero-cinema-content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 0 clamp(20px, 4vw, 64px) 44px;
}
.hero-cinema-dots {
  position: absolute; right: clamp(20px, 4vw, 64px); top: 24px; z-index: 3;
  display: flex; gap: 8px;
}
.hero-cinema-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0;
  background: rgba(255,255,255,.42); cursor: pointer; transition: width .2s ease, background .2s ease;
}
.hero-cinema-dot.is-active { width: 22px; border-radius: 4px; background: var(--red); }
.hero-cinema-dot:hover { background: rgba(255,255,255,.7); }
.hero-cinema-content .tag-bracket { color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .hero-cinema-content .tag-bracket,
  .hero-cinema-title,
  .hero-cinema-subtitle {
    opacity: 0;
    animation: heroContentIn .8s cubic-bezier(.16,.8,.3,1) forwards;
  }
  .hero-cinema-content .tag-bracket { animation-delay: .15s; }
  .hero-cinema-title { animation-delay: .3s; }
  .hero-cinema-subtitle { animation-delay: .48s; }
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-cinema-title {
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -.01em;
  white-space: pre-line;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero-cinema-subtitle {
  margin-top: 16px;
  color: rgba(255,255,255,.86);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-body { padding-top: 40px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 14px 26px; border-radius: 3px; font-weight: 800; font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--red); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.hero-highlight { margin-top: 24px; font-size: 13.5px; color: var(--muted); font-weight: 700; letter-spacing: .01em; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); }
.stat-item { text-align: center; padding: 22px 12px; background: var(--surface); }
.stat-value { font-size: 21px; font-weight: 800; color: var(--red); letter-spacing: -.01em; }
.stat-label { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* icon */
.svc-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
  transition: transform .3s cubic-bezier(.16,.8,.3,1), background .3s ease;
}
.svc-icon svg { width: 24px; height: 24px; }
.card:hover .svc-icon { transform: scale(1.1) rotate(-6deg); background: var(--red); color: #fff; }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-soft); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.card-hook { margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--red); line-height: 1.5; }
.card-no { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.card-title { font-size: 18.5px; margin-top: 6px; font-weight: 800; }
.card-desc { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.card-bullets { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.card-bullets li { font-size: 13.5px; color: var(--muted); padding-left: 16px; position: relative; }
.card-bullets li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 2px; background: var(--red); }

/* trust: 고민 카드 */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.trust-card { padding: 26px; background: var(--surface); }
.trust-q { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .01em; }
.trust-title { font-size: 16.5px; margin-top: 8px; font-weight: 800; }
.trust-desc { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

/* about */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-lead { font-size: 22px; font-weight: 800; line-height: 1.5; }
.about-paragraphs { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.about-quote { padding: 28px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.6; border-left: 4px solid var(--red); }

/* portfolio: review-card treatment */
/* auto-fit 은 남는 트랙을 접어버려서, 필터로 1건만 남으면 카드가 1240px로 늘어난다.
   auto-fill 은 빈 트랙을 유지해 몇 건이 남든 카드 크기가 같다. */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.portfolio-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-soft); background: var(--surface); }
.portfolio-thumb { position: relative; aspect-ratio: 16/9; background: #050505; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; opacity: .9; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.06); }
.portfolio-play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  transition: transform .3s cubic-bezier(.16,.8,.3,1);
}
.portfolio-card:hover .portfolio-play { transform: scale(1.12); }
@media (prefers-reduced-motion: no-preference) {
  .portfolio-play { animation: playPulse 2.6s ease-in-out infinite; }
  @keyframes playPulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 0 rgba(232,51,42,.35); }
    50% { box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 0 9px rgba(232,51,42,0); }
  }
}
.portfolio-play svg { width: 16px; height: 16px; }
.portfolio-body { padding: 18px 20px; }
.portfolio-cat { font-size: 12px; font-weight: 800; color: var(--red); letter-spacing: .01em; }
.portfolio-title { font-size: 17px; margin-top: 8px; font-weight: 800; }
.portfolio-desc { margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* history list, cine21 article-list tone */
.history-list { display: flex; flex-direction: column; }
.history-row {
  display: flex; gap: 24px; align-items: baseline; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.history-year { flex: 0 0 88px; font-family: var(--font-mono); font-weight: 700; color: var(--red); font-size: 16px; }
.history-detail { color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.pricing-card { position: relative; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft); }
.pricing-card.featured { border-color: var(--red); box-shadow: var(--shadow); }
.pricing-badge { display: inline-block; font-size: 11.5px; font-weight: 800; color: var(--red); background: var(--red-soft); padding: 5px 12px; border-radius: 3px; letter-spacing: .01em; }
.pricing-name { font-size: 18.5px; margin-top: 12px; font-weight: 800; }
.pricing-price { font-size: 15px; font-weight: 800; color: var(--ink); margin-top: 4px; }
.pricing-desc { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.pricing-features { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pricing-features li { font-size: 13.5px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 8px; }
.pricing-features li::before {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / contain no-repeat;
}
.ico-ext { width: 12px; height: 12px; vertical-align: -1px; margin-left: 3px; }
.ico-lock { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.pricing-factors { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.factor-title { font-weight: 800; font-size: 14px; }
.factor-text { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pricing-note { margin-top: 32px; padding: 16px 20px; border-radius: var(--radius-md); background: var(--surface-2); font-size: 13.5px; color: var(--ink-2); border-left: 3px solid var(--red); }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.process-no { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--red); }
.process-title { font-size: 16.5px; margin-top: 8px; font-weight: 800; }
.process-desc { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.process-deliverable { margin-top: 12px; font-size: 12.5px; color: var(--muted); font-weight: 700; }

/* faq accordion (custom, animatable height via grid-template-rows) */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-summary {
  width: 100%; padding: 18px 22px; font-weight: 800; font-size: 15px; cursor: pointer;
  background: none; border: none; color: var(--ink); text-align: left; font-family: inherit;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-summary .q-mark { font-family: var(--font-mono); color: var(--red); margin-right: 8px; }
.faq-icon { font-size: 20px; color: var(--red); flex: none; line-height: 1; transition: transform .3s cubic-bezier(.16,.8,.3,1); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.16,.8,.3,1); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-panel-inner { min-height: 0; overflow: hidden; }
.faq-answer { padding: 0 22px 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.faq-answer .a-mark { font-family: var(--font-mono); color: var(--red); font-weight: 700; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.contact-chip { font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); }
.contact-form { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-soft); }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.form-row input, .form-row select, .form-row textarea {
  padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line-strong); font: inherit; color: var(--ink); background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.form-agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.form-agree input { margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { align-self: flex-start; }
.form-msg { font-size: 13.5px; font-weight: 600; }
.form-msg.ok { color: #1a7a4c; }
.form-msg.err { color: var(--red-deep); }
.board-preview { margin-top: 32px; }
.board-preview-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.board-preview-list { display: flex; flex-direction: column; gap: 8px; }
.board-preview-list a { font-size: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.board-preview-list a:hover { color: var(--red); }
.board-preview-empty { font-size: 13.5px; color: var(--muted); }

/* board table */
.board-table-wrap { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.board-table th, .board-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.board-table th { background: var(--surface-2); font-size: 12.5px; color: var(--muted); font-weight: 700; }
.board-table tr:hover td { background: var(--bg-soft); }
.board-table .col-no { width: 64px; color: var(--muted); font-family: var(--font-mono); }
.board-table .col-date { width: 120px; color: var(--muted); white-space: nowrap; font-family: var(--font-mono); font-size: 13px; }
.board-empty { padding: 48px 0; text-align: center; color: var(--muted); }
.board-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }

/* footer */
.site-footer { padding: 48px 0; border-top: 2px solid var(--ink); background: var(--surface-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13.5px; color: var(--muted); }

/* responsive */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .hero-cinema { height: 58vh; min-height: 440px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .main-nav { position: fixed; inset: 72px 0 0 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  body.menu-open .main-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta { order: -1; }
  .hero-cinema { height: 66vh; min-height: 420px; }
  .hero-cinema-title { font-size: clamp(24px, 7vw, 34px); }
}
@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .history-row { flex-direction: column; gap: 4px; }
  .history-year { flex: none; }
}


/* 모바일 하단 고정 문의바 — 8,225px 길이의 페이지 어디서든 바로 연결 */
.mobile-contact-bar { display: none; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) {
  .mobile-contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1.15fr;
    gap: 1px;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--line, rgba(10,10,10,.10));
    border-top: 2px solid var(--ink);
    box-shadow: 0 -10px 26px rgba(10,10,10,.10);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-contact-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: #fff; color: var(--ink);
    padding: 12px 6px 14px;
    font-size: 12px; font-weight: 800; text-decoration: none;
    min-height: 56px;
  }
  .mobile-contact-bar a.is-primary { background: var(--red); color: #fff; }
  .mobile-contact-bar svg { width: 20px; height: 20px; }
  .site-footer { padding-bottom: 108px; }
}

/* 포트폴리오 — 사이트 안 재생 표식 */
.portfolio-thumb { position: relative; }
.portfolio-inplace {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 2px;
  background: rgba(229, 0, 18, .92); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.portfolio-inplace svg { width: 11px; height: 11px; }

/* 영상 모달 */
body.modal-open { overflow: hidden; }
.video-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.video-modal.is-open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 8, .82); backdrop-filter: blur(3px); }
.video-modal-panel {
  position: relative; z-index: 1; width: min(960px, 100%);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column;
}
.video-modal-head { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px 14px; }
.video-modal-cat { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--muted); }
.video-modal-title { margin: 4px 0 0; font-size: 19px; font-weight: 800; }
.video-modal-close {
  margin-left: auto; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(10, 10, 10, .18); background: #fff; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.video-modal-close svg { width: 18px; height: 18px; }
.video-modal-stage { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-modal-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-yt {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 12px 20px 16px; font-size: 13px; font-weight: 700;
  color: var(--muted); text-decoration: none;
}
.video-modal-yt:hover { color: var(--red); }
@media (max-width: 768px) {
  .video-modal.is-open { padding: 14px; align-items: flex-start; padding-top: 64px; }
  .video-modal-title { font-size: 16px; }
}

/* ── 포트폴리오 서비스 × 업종 필터 ────────────────────────────────
   칩은 사각 3px 라디우스 · 모노 숫자로 나머지 UI 톤을 그대로 따른다.        */
.pf-filters { margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.pf-axis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pf-axis-label {
  flex: 0 0 46px; font-size: 12px; font-weight: 800; color: var(--muted);
  letter-spacing: .02em;
}
.pf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 3px; font-size: 13px; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid transparent; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pf-chip:hover { border-color: var(--line-strong); }
/* [hidden] 의 UA 기본값(display:none)은 위의 display:inline-flex 에 밀린다 — 명시해야 실제로 숨는다. */
.pf-chip[hidden] { display: none; }
.pf-chip .pf-n {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--muted); min-width: 10px; text-align: right;
}
.pf-chip.is-on { background: var(--ink); color: #fff; }
.pf-chip.is-on .pf-n { color: rgba(255,255,255,.62); }
.pf-count {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px;
}
.pf-empty {
  padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px;
}
.pf-empty[hidden] { display: none; }

@media (max-width: 720px) {
  .pf-axis-label { flex: 0 0 100%; }
}

/* ── 견적 카드: 누구를 위한 안인지 한 줄 + 안마다 다른 버튼 ── */
.pricing-card { display: flex; flex-direction: column; }
.pricing-audience {
  margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--red);
  line-height: 1.5; word-break: keep-all;
}
.pricing-cta { margin-top: 18px; width: 100%; padding: 12px 18px; font-size: 14px; }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pricing-card.featured .btn-ghost { background: var(--ink); color: #fff; border-color: var(--ink); }
.pricing-card.featured .btn-ghost:hover { background: var(--red); border-color: var(--red); }
/* 기능 목록이 카드마다 길이가 달라도 버튼 줄이 맞도록 */
.pricing-features { flex: 1 1 auto; }

/* ── 이력 아래 연도 범위 한 줄 ── */
.history-span {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  padding: 18px 0 0; font-family: var(--font-mono);
}
.history-span-k { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.history-span-v { font-size: 15px; font-weight: 700; color: var(--ink); margin-right: 6px; }
