/* =====================================================================
   Rabyeol Comms — Event Agency Landing
   Shared stylesheet (landing + blog)
   Base: white · Point: #C3141B · Type: Archivo / Pretendard / JetBrains Mono
   Conventions borrowed from Figma-Inspired DS: pill geometry, dashed focus,
   mono uppercase eyebrows, micro-weight hierarchy, white gallery feel.
   ===================================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css");

:root {
  /* ---------- color ---------- */
  --red: #c3141b;
  --red-deep: #9c0f15;
  --red-darker: #720b10;
  --red-soft: #fbe9ea;
  --red-soft-2: #f6d3d5;
  --red-tint: rgba(195, 20, 27, 0.08);

  --ink: #181311;
  --ink-2: #46403e;
  --muted: #7d7674;
  --muted-2: #a59f9c;
  --line: rgba(24, 19, 17, 0.10);
  --line-soft: rgba(24, 19, 17, 0.06);

  --paper: #ffffff;
  --paper-2: #faf7f6;
  --paper-3: #f3eeec;
  --black: #15110f;

  /* ---------- type ---------- */
  --font-display: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --font-sans: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
  --font-mono: "Pretendard Variable", "Pretendard", system-ui, sans-serif;

  /* ---------- layout ---------- */
  --container: 1240px;
  --container-wide: 1440px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 50px;

  --nav-h: 76px;

  --shadow-1: 0 2px 10px rgba(24, 19, 17, 0.05);
  --shadow-2: 0 18px 50px rgba(24, 19, 17, 0.12);
  --shadow-red: 0 16px 40px rgba(195, 20, 27, 0.28);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-feature-settings: "kern" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:where(button, a, [role="button"], input, textarea, select, [tabindex]):focus-visible {
  outline: dashed 2px var(--red);
  outline-offset: 3px;
}

/* ---------- shared atoms ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1vw, 12.5px);
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.on-red { color: #fff; }
.eyebrow.on-red::before { background: #fff; }
.eyebrow.no-rule::before { display: none; }

/* display type — english poster headlines */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* korean section heading */
.kr-head {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  font-size: clamp(28px, 4.4vw, 50px);
  text-wrap: balance;
}
.kr-head .accent { color: var(--red); }

.lead {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 13px 14px 13px 24px;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  flex: none;
  transition: transform .2s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary .arrow { background: #fff; color: var(--red); }
.btn-primary:hover { background: var(--red-deep); box-shadow: var(--shadow-red); }
.btn-primary:hover .arrow { transform: rotate(45deg); }

/* prominent package CTA */
.pkg-cta {
  font-size: 17px;
  padding: 16px 28px;
  box-shadow: 0 0 40px rgba(195,20,27,.28);
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
}
.pkg-cta .arrow { width: 34px; height: 34px; }
.pkg-cta:hover { background: var(--red); transform: translateY(-3px); box-shadow: 0 0 56px rgba(195,20,27,.5); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light .arrow { background: var(--red); color: #fff; }
.btn-light:hover { opacity: .92; }
.btn-light:hover .arrow { transform: rotate(45deg); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark .arrow { background: var(--red); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-dark:hover .arrow { transform: rotate(45deg); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
  padding: 12px 22px;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-red { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.on-red:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: all .18s ease;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.icon-btn:disabled:hover { border-color: var(--line); }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(72px, 9vw, 132px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .head-copy { max-width: 640px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 18px; }
.capabilities .section-head,
.packages .section-head,
.areas .section-head { margin-bottom: clamp(18px, 2.5vw, 32px); }
.capabilities .section-head { margin-bottom: clamp(8px, 1.4vw, 16px); }

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease, color .3s ease;
  color: #fff;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand .mark { width: 26px; height: 26px; flex: none; color: var(--red); }
.brand .logo { height: 28px; width: auto; display: block; }
.brand .logo-red { display: none; }
.nav.scrolled .brand .logo-white { display: none; }
.nav.scrolled .brand .logo-red { display: block; }
.footer .brand .logo { height: 30px; }
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: .65;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-link {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 0;
  transition: opacity .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: currentColor;
  transition: width .22s ease;
}
.nav-link:hover::after { width: 100%; }
.nav.scrolled .nav-link { color: var(--red); }
/* active link follows the nav's contrast: white over the dark/red hero,
   red once the nav turns solid on scroll. underline uses currentColor so
   it always matches the text and stays visible in both states. */
.nav-link[aria-current="page"] { color: #fff; font-weight: 600; }
.nav-link[aria-current="page"]::after { width: 100%; background: currentColor; }
.nav.scrolled .nav-link[aria-current="page"] { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav .btn-nav-cta {
  background: #fff; color: var(--red);
  padding: 11px 13px 11px 20px; font-size: 14px;
}
.nav .btn-nav-cta .arrow { background: var(--red); color: #fff; width: 26px; height: 26px; }
.nav.scrolled .btn-nav-cta { background: var(--red); color: #fff; }
.nav.scrolled .btn-nav-cta .arrow { background: #fff; color: var(--red); }
.nav.scrolled .btn-nav-cta:hover { background: var(--red-deep); }

.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; color: inherit; }
.nav-toggle svg { width: 26px; height: 26px; }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--red);
  color: #fff;
  padding: calc(var(--nav-h) + 20px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(34px, 11vw, 56px);
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.mobile-menu .mm-kr { font-family: var(--font-sans); font-size: 16px; opacity: .7; display: block; letter-spacing: 0; text-transform: none; font-weight: 500; margin-top: 2px; }
.mobile-menu .btn { margin-top: 28px; align-self: flex-start; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  background: var(--red);
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 84px));
  padding-bottom: clamp(48px, 7vw, 88px);
  overflow: hidden;
}
.hero::after {
  /* subtle inner radial to add depth on the flat red */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(255,255,255,.12), transparent 60%),
              radial-gradient(ellipse 60% 70% at 0% 100%, rgba(0,0,0,.18), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.025em;
  font-size: clamp(52px, 12.5vw, 168px);
  margin: 0;
}
.hero-headline .row {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}
.hero-headline .tint { color: var(--red-soft-2); }
.hero-headline .row:has(.hero-tile.sq) { gap: clamp(8px, 1.3vw, 19px); }
.hero-headline .outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.85);
}
/* inline image tiles tucked into the headline */
.hero-tile {
  --h: clamp(48px, 9.5vw, 128px);
  height: var(--h);
  width: clamp(96px, 19vw, 256px);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(-6%);
}
.hero-tile.sq { width: var(--h); border-radius: 40%; transform: translateY(-2px); }
/* decorative shape tiles (instead of photos) */
.hero-tile.shape { display: grid; place-items: center; overflow: visible; }
.hero-tile.glass { background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.55); box-shadow: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transform: translateY(calc(-6% + 3px)); }
.hero-tile.glass svg { width: 74%; height: 56%; }
.hero-tile.glass svg path { fill: #fff; }
.hero-tile.solid { background: #fff; color: var(--red); }
.hero-tile.solid svg { width: 52%; height: 52%; }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: clamp(32px, 4vw, 52px);
}
.hero-intro { max-width: 440px; }
.hero-intro p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,.9);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-chip {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  backdrop-filter: blur(4px);
  min-width: 120px;
}
.stat-chip .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-chip .lbl {
  font-size: 12.5px;
  margin-top: 8px;
  color: rgba(255,255,255,.78);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* logo marquee under hero */
.marquee {
  background: var(--red-deep);
  color: rgba(255,255,255,.9);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.14);
}
.marquee-track {
  display: flex;
  gap: 64px;
  align-items: center;
  padding: 20px 0;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .85;
}
.marquee-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   PROJECTS — horizontal carousel
   ===================================================================== */
.projects { background: var(--paper); padding-bottom: clamp(40px, 5vw, 72px); }
.projects .section-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.carousel {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  scroll-padding-left: 0;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-edge {
  /* full-bleed within container */
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
}
.carousel-wrap { position: relative; }
.carousel { cursor: grab; }
.carousel.dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel.dragging image-slot { pointer-events: none; }
.project-card {
  position: relative;
  flex: 0 0 auto;
  width: min(80vw, 460px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--paper-3);
}
.project-card image-slot { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover image-slot { transform: scale(1.06); }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-2);
  transition: transform .2s ease, background .2s ease, color .2s ease, opacity .25s ease;
}
.carousel-nav.prev { left: 14px; }
.carousel-nav.next { right: 14px; }
.carousel-nav:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-nav:disabled { opacity: 0; pointer-events: none; }
.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-3);
}
.project-thumb image-slot { width: 100%; height: 100%; }
.project-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.project-card:hover .project-thumb::after { opacity: 1; }
.project-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 50px;
  z-index: 3;
}
.project-meta { padding-top: 18px; }
.project-meta .ttl {
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.project-meta .ttl .go { color: var(--red); opacity: 0; transform: translateX(-6px); transition: all .25s ease; }
.project-card:hover .project-meta .ttl .go { opacity: 1; transform: translateX(0); }
.project-meta .desc { color: var(--muted); font-size: 14px; margin-top: 6px; letter-spacing: -0.01em; }
.project-meta .date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); margin-top: 10px; letter-spacing: .3px; }

.carousel-controls { display: flex; gap: 10px; }

/* =====================================================================
   SERVICE AREAS — 4 categories
   ===================================================================== */
.areas { background: var(--paper-2); }
.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
.area-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.area-card:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red);
}
.area-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 1px;
  transition: color .3s ease;
}
.area-card:hover .area-num { color: rgba(255,255,255,.8); }
.area-ico {
  width: 54px; height: 54px;
  color: var(--red);
  margin: 18px 0 auto;
  transition: color .3s ease, transform .4s ease;
}
.area-card:hover .area-ico { color: #fff; transform: scale(1.08) rotate(-4deg); }
.area-ico svg { width: 100%; height: 100%; }
.area-card .a-ttl {
  font-weight: 800;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.03em;
  margin-top: 24px;
}
.area-card .a-en {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-2);
  margin-top: 8px;
  transition: color .3s ease;
}
.area-card:hover .a-en { color: rgba(255,255,255,.7); }
.area-card .a-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.65;
  letter-spacing: -0.01em;
  transition: color .3s ease;
}
.area-card:hover .a-desc { color: rgba(255,255,255,.88); }

/* =====================================================================
   CAPABILITIES — stacked expandable rows
   ===================================================================== */
.capabilities { background: var(--paper); padding-top: clamp(40px, 5vw, 72px); }
.cap-list { display: flex; flex-direction: column; gap: 0; }
.cap-row {
  border-top: 1px solid var(--line);
  background: transparent;
}
.cap-row:first-child { border-top: none; }
.cap-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 30px) 0 clamp(6px, 1vw, 12px);
  text-align: left;
  color: inherit;
}
.cap-head .cap-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  width: 40px;
  flex: none;
}
.cap-head .cap-ttl {
  font-weight: 600;
  font-size: clamp(18px, 2.1vw, 27px);
  letter-spacing: -1.8px;
  flex: 1;
}
.cap-body {
  display: grid;
  grid-template-rows: 1fr;
}
.cap-body-inner { overflow: hidden; }
.cap-body-content {
  padding: 0 0 clamp(22px, 2.6vw, 30px) clamp(60px, 6vw, 60px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
}
.cap-body-content p {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.7;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .3px;
  padding: 7px 13px;
  border-radius: 50px;
  border: 1px solid transparent;
  background: #fbe9ea;
  color: var(--ink-2);
}

/* =====================================================================
   PACKAGES — 5 service tiers
   ===================================================================== */
.packages { background: var(--black); color: #fff; }
.packages .lead { color: rgba(255,255,255,.72); }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* all-in-one feature package (full width, above the 5 cards) */
.pkg-allinone {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px);
  flex-wrap: wrap;
  background: var(--red);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.6vw, 36px) clamp(26px, 3vw, 44px);
  margin-bottom: 16px;
}
.aio-left { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.aio-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--red);
  background: #fff;
  padding: 6px 12px;
  border-radius: 50px;
}
.aio-ttl { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.aio-desc { font-size: clamp(13px, 1.3vw, 15px); color: rgba(255,255,255,.85); line-height: 1.6; max-width: 540px; letter-spacing: -0.01em; }
.aio-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.aio-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  padding: 8px 14px;
  border-radius: 50px;
  white-space: nowrap;
}
.pkg-card {
  padding: clamp(26px, 2.4vw, 34px) clamp(20px, 1.8vw, 28px);
  border-right: 1px solid rgba(255,255,255,.14);
  display: flex;
  flex-direction: column;
  transition: background .3s ease;
  position: relative;
}
.pkg-card:last-child { border-right: none; }
.pkg-card:hover { background: rgba(255,255,255,.04); }
.pkg-card .pkg-no {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  color: #fff;
  letter-spacing: .5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 8px 13px;
  background: var(--red);
  border-radius: 50px;
}
.pkg-card .pkg-en {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.3vw, 17px);
  letter-spacing: 0;
  color: rgba(255,255,255,.5);
  margin-top: 28px;
}
.pkg-card .pkg-ttl {
  font-weight: 800;
  font-size: clamp(20px, 1.9vw, 25px);
  letter-spacing: -0.03em;
  margin-top: 4px;
}
.pkg-card .pkg-bar { width: 34px; height: 3px; background: var(--red); margin: 18px 0 20px; border-radius: 2px; }
.pkg-feat { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.pkg-feat li {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
  letter-spacing: -0.01em;
  padding-left: 20px;
  position: relative;
}
.pkg-feat li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
}
.pkg-scale {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12.5px;
  color: rgba(255,255,255,.55);
  font-family: var(--font-mono);
  letter-spacing: .2px;
  line-height: 1.5;
}
.pkg-scale b { color: #fff; font-weight: 700; }

/* =====================================================================
   FAQ
   ===================================================================== */
.faq { background: var(--paper); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 2.4vw, 30px) 0;
  text-align: left;
}
.faq-q .q-no { font-family: var(--font-mono); font-size: 13px; color: var(--red); font-weight: 600; flex: none; }
.faq-q .q-txt { flex: 1; font-weight: 700; font-size: clamp(16px, 1.7vw, 20px); letter-spacing: -0.02em; }
.faq-q .q-ico {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all .3s ease;
  position: relative;
}
.faq-q .q-ico::before {
  content: ""; position: absolute;
  width: 8px; height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s ease, border-color .3s ease;
}
.faq-item.open .q-ico,
.faq-item:hover .q-ico { background: var(--red); border-color: var(--red); }
.faq-item.open .q-ico::before,
.faq-item:hover .q-ico::before { border-color: #fff; transform: translateY(2px) rotate(225deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq-item.open .faq-a,
.faq-item:hover .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 0 28px 33px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.75;
  letter-spacing: -0.01em;
  max-width: 640px;
}

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.cta-band::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 100%, rgba(0,0,0,.22), transparent 55%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(64px, 9vw, 120px); }
.cta-inner .display {
  font-size: clamp(38px, 8vw, 104px);
  margin: 0 auto 14px;
  max-width: 14ch;
}
.cta-inner .display .tint { color: var(--red-soft-2); }
.cta-inner .cta-kr { font-size: clamp(15px, 2vw, 19px); color: rgba(255,255,255,.9); margin-bottom: 34px; letter-spacing: -0.01em; }
.cta-inner .btn { font-size: 16px; padding: 16px 16px 16px 28px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--black); color: #fff; padding-block: clamp(56px, 6vw, 84px) 36px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-brand-col { max-width: 520px; }
.footer .brand { color: #fff; font-size: 24px; }
.footer .brand .mark { color: var(--red); }
.footer-about { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.7; margin-top: 20px; max-width: 440px; letter-spacing: -0.01em; white-space: pre-line; }
.footer-legal {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-legal p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.55);
  letter-spacing: -0.01em;
}
.footer-legal b { color: rgba(255,255,255,.85); font-weight: 600; }
.footer-legal a { color: rgba(255,255,255,.55); transition: color .2s ease; }
.footer-legal a:hover { color: var(--red-soft-2); }
.footer-legal .sep { margin: 0 10px; color: rgba(255,255,255,.25); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.82); font-size: 14.5px; padding: 7px 0; letter-spacing: -0.01em; transition: color .2s ease; }
.footer-col a:hover { color: var(--red-soft-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-family: var(--font-mono);
  letter-spacing: .2px;
}

/* =====================================================================
   MODAL — consultation form
   ===================================================================== */
.modal-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(24,19,17,.55);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(24px) scale(.98);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  box-shadow: var(--shadow-2);
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  background: var(--red);
  color: #fff;
  padding: clamp(26px, 4vw, 36px) clamp(26px, 4vw, 38px) clamp(22px, 3vw, 30px);
  position: relative;
}
.modal-head .eyebrow { margin-bottom: 12px; }
.modal-head h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; line-height: .95; }
.modal-head .mh-kr { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); letter-spacing: -0.01em; }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.modal-body { padding: clamp(24px, 4vw, 34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.field label .req { color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
  letter-spacing: -0.01em;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); background: #fff; outline: none; }
.field input.invalid, .field select.invalid { border-color: var(--red); background: var(--red-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  font-size: 13.5px; font-weight: 600;
  padding: 9px 15px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  transition: all .18s ease;
}
.chip-opt:hover { border-color: var(--ink); }
.chip-opt.active { background: var(--red); border-color: var(--red); color: #fff; }
.modal .btn-submit { width: 100%; justify-content: center; margin-top: 8px; padding: 15px; font-size: 16px; }
.modal-success { text-align: center; padding: clamp(40px, 6vw, 64px) 30px; }
.modal-success .check {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
}
.modal-success .check svg { width: 36px; height: 36px; }
.modal-success h3 { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; }
.modal-success p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* =====================================================================
   CONSULTATION PAGE (Contact.html)
   ===================================================================== */
.consult-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.consult-aside { display: flex; flex-direction: column; gap: 30px; }
.consult-block h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.consult-block p { color: var(--ink-2); font-size: 15.5px; line-height: 1.75; letter-spacing: -0.01em; }
.consult-block a { color: var(--ink-2); transition: color .2s ease; }
.consult-block a:hover { color: var(--red); }

.consult-form-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.4vw, 44px);
  box-shadow: var(--shadow-1);
}
.consult-form-card .btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 15px;
  font-size: 16px;
}

.form-success { text-align: center; padding: clamp(28px, 5vw, 56px) 16px; }
.form-success[hidden] { display: none; }
.form-success .check {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
}
.form-success .check svg { width: 36px; height: 36px; }
.form-success h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin-bottom: 12px; }
.form-success p { color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 820px) {
  .consult-grid { grid-template-columns: 1fr; gap: 32px; }
  .consult-aside { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
  .consult-block { flex: 1 1 200px; }
}

/* =====================================================================
   BLOG
   ===================================================================== */
.page-hero {
  background: var(--red);
  color: #fff;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 100px));
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 85% 10%, rgba(255,255,255,.12), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(44px, 9vw, 104px);
  letter-spacing: -0.025em;
  line-height: .92;
  margin-top: 18px;
}
.page-hero .ph-kr { margin-top: 20px; font-size: clamp(15px, 1.7vw, 18px); color: rgba(255,255,255,.88); max-width: 540px; line-height: 1.7; letter-spacing: -0.01em; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.post-card { cursor: pointer; display: flex; flex-direction: column; }
.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-3);
  position: relative;
}
.post-thumb image-slot { width: 100%; height: 100%; }
.post-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--red); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 11px; border-radius: 50px;
}
.post-body { padding-top: 20px; }
.post-body .p-date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); letter-spacing: .3px; }
.post-body .p-ttl {
  font-weight: 800; font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: -0.03em; margin-top: 12px; line-height: 1.3;
  transition: color .2s ease;
}
.post-card:hover .p-ttl { color: var(--red); }
.post-body .p-ex { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin-top: 12px; letter-spacing: -0.01em; }
.post-body .p-more { display: inline-flex; align-items: center; gap: 7px; color: var(--red); font-weight: 700; font-size: 14px; margin-top: 16px; }
.post-card:hover .p-more .go { transform: translateX(4px); }
.post-body .p-more .go { transition: transform .2s ease; }

/* blog post detail */
.article { max-width: 760px; margin: 0 auto; padding-block: clamp(48px, 6vw, 80px); }
.article .a-cat { color: var(--red); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.article h1 { font-weight: 800; font-size: clamp(30px, 4.5vw, 52px); letter-spacing: -0.035em; line-height: 1.12; margin: 16px 0 18px; }
.article .a-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); letter-spacing: .3px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article .a-hero { width: 100%; aspect-ratio: 16/8; border-radius: var(--radius-md); overflow: hidden; margin: 32px 0; background: var(--paper-3); }
.article .a-hero image-slot { width: 100%; height: 100%; }
.article p { font-size: 17px; line-height: 1.85; color: var(--ink-2); margin-bottom: 24px; letter-spacing: -0.01em; }
.article h2 { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.03em; margin: 40px 0 16px; }
.article .back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; font-size: 14px; margin-bottom: 28px; }

/* =====================================================================
   PROJECTS GALLERY PAGE
   ===================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--paper-3);
}
.gallery-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.gallery-item.tall { aspect-ratio: 4 / 5; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.gallery-item image-slot { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover image-slot { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  background: rgba(195, 20, 27, 0.8);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.gallery-item:hover .gallery-overlay,
.project-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay .g-inner { transform: translateY(10px); transition: transform .45s cubic-bezier(.2,.8,.2,1); max-width: 90%; text-shadow: 0 1px 10px rgba(0,0,0,.25); }
.gallery-item:hover .gallery-overlay .g-inner,
.project-card:hover .gallery-overlay .g-inner { transform: none; }
.g-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  display: block;
  margin-bottom: 12px;
}
.g-ttl {
  font-weight: 800;
  font-size: clamp(19px, 2vw, 25px);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.g-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.g-date { font-family: var(--font-mono); font-size: 11.5px; color: rgba(255,255,255,.72); margin-top: 14px; letter-spacing: .3px; }
/* hover overlay shows title + description only */
.g-cat, .g-date { display: none; }

@media (max-width: 980px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item, .gallery-item.tall, .gallery-item.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .gallery-overlay {
    opacity: 1;
    place-items: end start;
    text-align: left;
    background: linear-gradient(to top, rgba(24,19,17,.88), rgba(24,19,17,.1) 62%, transparent);
  }
  .gallery-overlay .g-inner { transform: none; }
  .g-cat { margin-bottom: 8px; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1080px) {
  .pkg-grid { grid-template-columns: repeat(2, 1fr); }
  .pkg-card:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.14); }
  .pkg-card { border-bottom: 1px solid rgba(255,255,255,.14); }
  .pkg-card:nth-child(even) { border-right: none; }
  .faq-wrap { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-body-content { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn-nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .area-grid { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-card, .pkg-card:nth-child(odd) { border-right: none; }
  .footer-top { align-items: flex-start; }
  .footer-legal { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .field-row { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-headline .outline { -webkit-text-stroke: 1.5px rgba(255,255,255,.85); }
  .cap-body-content { padding-left: clamp(20px, 6vw, 34px); }
}

/* =====================================================================
   CROSS-DOCUMENT VIEW TRANSITIONS
   Keeps the SEO/SSG-friendly multi-page structure (separate .html files)
   but animates navigation between them with no white flash — the fixed
   nav bar persists across pages, the body content cross-fades + lifts.
   Unsupported browsers (e.g. Firefox) simply navigate instantly. No JS.
   ===================================================================== */
@view-transition { navigation: auto; }

/* The fixed nav is a single, stable element on every page → let it
   persist (morph in place) instead of fading out and back in. */
.nav { view-transition-name: site-nav; }

/* Body content: gentle cross-fade with a small upward lift. */
::view-transition-old(root) {
  animation: vt-page-out .20s ease both;
}
::view-transition-new(root) {
  animation: vt-page-in .34s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes vt-page-out {
  to { opacity: 0; }
}
@keyframes vt-page-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav just cross-fades quickly between its transparent / scrolled states. */
::view-transition-old(site-nav),
::view-transition-new(site-nav) {
  animation-duration: .22s;
  animation-timing-function: ease;
}

/* Respect users who prefer less motion — instant swap, no animation. */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* =====================================================================
   Consistent text centering inside pills / tags / badges
   (horizontal + vertical), site-wide.
   ===================================================================== */
.project-tag,
.post-cat,
.cap-tag,
.aio-badge,
.aio-tags span,
.chip-opt,
.pkg-card .pkg-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* =====================================================================
   DATA-DRIVEN IMAGES (content.json → <img class="g-img">)
   Replaces <image-slot> inside content areas. Fills its container the
   same way and keeps the hover zoom on galleries.
   ===================================================================== */
.gallery-item .g-img,
.project-card .g-img,
.project-thumb .g-img,
.post-thumb .g-img,
.article .a-hero .g-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item .g-img,
.project-card .g-img {
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.gallery-item:hover .g-img,
.project-card:hover .g-img { transform: scale(1.06); }
.g-img-ph { background: var(--paper-3); }
.data-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  color: var(--muted-2);
  font-size: 15px;
}

/* =====================================================================
   CONSULT PANEL — right-docked, non-blocking, collapsible
   ===================================================================== */
.cm-panel {
  position: fixed;
  z-index: 280;
  top: auto;
  right: 18px;
  bottom: 18px;
  width: 388px;
  max-width: calc(100vw - 36px);
  height: auto;
  max-height: calc(100vh - var(--nav-h) - 30px);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform .42s cubic-bezier(.2,.85,.25,1), opacity .3s ease;
}
.cm-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.cm-panel.collapsed { transform: translateX(calc(100% + 28px)); opacity: 0; pointer-events: none; }

/* ---- title / action bar ---- */
.cm-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.cm-bar-title {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink);
}
.cm-bar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.cm-bar-actions { display: flex; align-items: center; gap: 4px; }
.cm-iconbtn {
  width: 34px; height: 34px; border-radius: 50%;
  background: transparent; color: var(--muted);
  display: grid; place-items: center;
  transition: background .18s ease, color .18s ease;
}
.cm-iconbtn:hover { background: var(--paper-3); color: var(--ink); }
.cm-iconbtn[hidden] { display: none; }
.cm-iconbtn svg { width: 18px; height: 18px; }

/* ---- collapsed launcher pill (bottom-right) ---- */
.cm-launcher {
  position: fixed;
  z-index: 280;
  right: 18px; bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  background: var(--red); color: #fff;
  border-radius: 50px;
  box-shadow: var(--shadow-red);
  transform: translateY(16px) scale(.96);
  opacity: 0; pointer-events: none;
  transition: transform .32s cubic-bezier(.2,1.2,.4,1), opacity .24s ease;
  text-align: left;
}
.cm-launcher.show { transform: none; opacity: 1; pointer-events: auto; }
.cm-launcher:hover { background: var(--red-deep); }
.cm-launcher-ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.16);
  display: grid; place-items: center; flex-shrink: 0;
}
.cm-launcher-ico svg { width: 20px; height: 20px; }
.cm-launcher-txt b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.cm-launcher-sub { display: block; font-size: 12px; color: rgba(255,255,255,.82); margin-top: 1px; letter-spacing: -0.01em; }

/* ---- top bar: progress ---- */
.cm-top {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  min-height: 54px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.cm-top.is-hidden { display: none; }
.cm-dots { display: flex; align-items: center; gap: 7px; }
.cm-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  transition: all .25s ease;
}
.cm-dot.done { background: var(--red); }
.cm-dot.current { background: var(--red); transform: scale(1.5); box-shadow: 0 0 0 4px var(--red-tint); }
.cm-step-count {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 1px;
  color: var(--muted-2);
  margin-left: 6px;
}

/* ---- scroll body ---- */
.cm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cm-screen { padding: 24px 24px 26px; }
.cm-screen[hidden] { display: none; }

/* step content entrance */
@media (prefers-reduced-motion: no-preference) {
  .cm-screen.cm-anim { animation: cmIn .34s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes cmIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- question header ---- */
.cm-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--red);
  display: block; margin-bottom: 11px;
}
.cm-q {
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  font-size: 22px;
  color: var(--ink);
  text-wrap: balance;
}
.cm-sub {
  margin-top: 9px; font-size: 14px; line-height: 1.55;
  color: var(--muted); letter-spacing: -0.01em;
}
.cm-field { margin-top: 20px; }

/* ---- inputs (reuse field look) ---- */
.cm-input, .cm-textarea {
  width: 100%; font-family: inherit; font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2); color: var(--ink);
  letter-spacing: -0.01em;
  transition: border-color .2s ease, background .2s ease;
}
.cm-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.cm-input:focus, .cm-textarea:focus { border-color: var(--red); background: #fff; outline: none; }
.cm-input::placeholder, .cm-textarea::placeholder { color: var(--muted-2); }

/* ---- chips ---- */
.cm-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.cm-chip {
  font-size: 14.5px; font-weight: 600;
  padding: 11px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  color: var(--ink-2);
  background: #fff;
  transition: all .16s ease;
}
.cm-chip:hover { border-color: var(--ink); }
.cm-chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.cm-custom-wrap { margin-top: 12px; }
.cm-custom-wrap[hidden] { display: none; }
.cm-custom-hint {
  margin: 8px 2px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ---- "미정" skip option ---- */
.cm-skip-row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.cm-skip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 16px 9px 13px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all .16s ease;
}
.cm-skip .cm-skip-box {
  width: 18px; height: 18px; border-radius: 6px;
  border: 1.5px solid var(--muted-2);
  display: grid; place-items: center;
  transition: all .16s ease;
}
.cm-skip .cm-skip-box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.6); transition: all .16s ease; color: #fff; }
.cm-skip:hover { border-color: var(--ink-2); color: var(--ink-2); }
.cm-skip.active { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.cm-skip.active .cm-skip-box { background: var(--ink); border-color: var(--ink); }
.cm-skip.active .cm-skip-box svg { opacity: 1; transform: none; }

/* ---- scope cards (multi-select) ---- */
.cm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-card {
  text-align: left;
  padding: 16px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all .16s ease;
  position: relative;
}
.cm-card:hover { border-color: var(--ink-2); }
.cm-card.active { border-color: var(--red); background: var(--red-tint); }
.cm-card-ttl { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.cm-card-desc { margin-top: 5px; font-size: 12.5px; line-height: 1.45; color: var(--muted); letter-spacing: -0.01em; }
.cm-card .cm-tick {
  position: absolute; top: 13px; right: 13px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  transition: all .16s ease;
}
.cm-card .cm-tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; transform: scale(.5); transition: all .16s ease; }
.cm-card.active .cm-tick { background: var(--red); border-color: var(--red); }
.cm-card.active .cm-tick svg { opacity: 1; transform: none; }
.cm-card.span-2 { grid-column: 1 / -1; }

/* ---- contact step ---- */
.cm-note-hint {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 22px; padding: 14px 16px;
  background: var(--paper-2); border-radius: 12px;
  font-size: 13px; line-height: 1.55; color: var(--ink-2); letter-spacing: -0.01em;
}
.cm-note-hint svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.cm-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; color: var(--ink-2); }
.cm-label .req { color: var(--red); }
.cm-label .opt { color: var(--muted-2); font-weight: 500; }
.cm-stack > * + * { margin-top: 16px; }

/* ---- footer nav ---- */
.cm-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 16px clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.cm-foot.is-hidden { display: none; }
.cm-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  padding: 12px 18px 12px 14px; border-radius: 50px;
  transition: background .18s ease;
}
.cm-back:hover { background: var(--paper-3); }
.cm-back svg { width: 16px; height: 16px; }
.cm-back[hidden] { display: none; }
.cm-next {
  margin-left: auto;
  padding: 13px 16px 13px 26px; font-size: 15.5px;
}
.cm-next:disabled { background: var(--paper-3); color: var(--muted-2); cursor: not-allowed; box-shadow: none; }
.cm-next:disabled .arrow { background: var(--muted-2); color: #fff; }
.cm-next:disabled:hover { background: var(--paper-3); }

/* ---- choice (entry) screen ---- */
.cm-choice-intro { margin-bottom: 18px; }
.cm-choice-lead {
  margin-top: 10px; font-size: 14px; line-height: 1.6;
  color: var(--ink-2); letter-spacing: -0.01em;
}
.cm-choice-body { display: flex; flex-direction: column; gap: 10px; }
.cm-choice-contact {
  margin-top: 18px; padding-top: 15px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px;
}
.cm-contact-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted); letter-spacing: -0.01em;
}
.cm-contact-item svg { width: 15px; height: 15px; color: var(--red); flex-shrink: 0; }
.cm-contact-sep { width: 1px; height: 12px; background: var(--line); }
.cm-opt {
  display: flex; align-items: center; gap: 16px;
  text-align: left; width: 100%;
  padding: 18px 20px; border-radius: 16px;
  border: 1.5px solid var(--line);
  background: #fff;
  transition: all .18s ease;
}
.cm-opt:hover { border-color: var(--red); }
.cm-opt-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.cm-opt-ico svg { width: 24px; height: 24px; }
.cm-opt-txt { flex: 1; }
.cm-opt-txt b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.cm-opt-txt span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; letter-spacing: -0.01em; }
.cm-opt-arrow { color: var(--muted-2); transition: transform .2s ease; }
.cm-opt:hover .cm-opt-arrow { transform: translateX(4px); color: var(--ink); }
.cm-opt.is-kakao .cm-opt-ico { background: #FEE500; color: #3C1E1E; }
.cm-opt.is-form .cm-opt-ico { background: var(--red); color: #fff; }

/* ---- success screen ---- */
.cm-done { text-align: center; padding: clamp(34px, 5vw, 46px) clamp(26px, 4vw, 40px) clamp(28px, 4vw, 38px); }
.cm-done .cm-check {
  width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  animation: cmPop .5s cubic-bezier(.2,1.3,.5,1) both;
}
.cm-done .cm-check svg { width: 36px; height: 36px; }
@keyframes cmPop { from { transform: scale(0); } to { transform: scale(1); } }
.cm-done h3 { font-weight: 800; font-size: clamp(22px, 3.5vw, 27px); letter-spacing: -0.03em; }
.cm-done > p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.65; letter-spacing: -0.01em; }
.cm-summary {
  margin: 26px 0 4px; text-align: left;
  border: 1.5px solid var(--line); border-radius: 16px;
  overflow: hidden;
}
.cm-summary-row { display: flex; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.cm-summary-row:last-child { border-bottom: none; }
.cm-summary-row dt {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted-2);
  flex-shrink: 0; width: 84px; padding-top: 2px;
}
.cm-summary-row dd { font-size: 14.5px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; line-height: 1.5; }
.cm-summary-row dd.muted { color: var(--muted-2); font-weight: 400; }
.cm-done .cm-next { margin: 22px 0 0; width: 100%; justify-content: center; }

/* ---- mobile: bottom sheet, still non-blocking + collapsible ---- */
@media (max-width: 600px) {
  .cm-panel {
    top: auto;
    left: 10px; right: 10px; bottom: 10px;
    width: auto; max-width: none;
    height: auto; max-height: min(86vh, 640px);
    transform: translateY(calc(100% + 20px));
  }
  .cm-panel.open { transform: none; }
  .cm-panel.collapsed { transform: translateY(calc(100% + 20px)); }
  .cm-launcher { right: 12px; bottom: 12px; }
  .cm-cards { grid-template-columns: 1fr; }
  .cm-card.span-2 { grid-column: auto; }
}
