/* ==========================================================================
   FRAMEFORM — styles
   Palette: black / deep blue / white, orange used only as the "tally light"
   (primary action, recording dot, focus ring).
   ========================================================================== */

:root {
  --black: #000000;
  --blue-950: #050f22;
  --blue-900: #081a36;
  --blue-800: #0e2750;
  --blue-600: #23497f;
  --white: #f3f5f8;
  --silver: #a7b1c0;
  --silver-dim: #8893a5; /* min 4.9:1 on --blue-900 */
  --orange: #ff8a3d;
  --orange-hover: #ffa262;
  --error: #ff8f8f;
  --success: #8fe0b0;
  --line: rgba(167, 177, 192, 0.2);
  --line-strong: rgba(167, 177, 192, 0.42);

  --font-display: 'Archivo', 'Pretendard Variable', Pretendard, system-ui, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;

  /* type scale (1.25) */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 1.75rem;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius-s: 4px;
  --radius-m: 10px;
  --header-h: 64px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--orange); color: var(--black);
  padding: 0.6rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  border: 1px solid transparent; border-radius: var(--radius-s);
  font-weight: 650; font-size: var(--fs-sm); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { min-height: 40px; padding: 0.45rem 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--black); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.link-btn {
  background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
  color: var(--silver); text-decoration: underline; text-underline-offset: 3px; font-size: var(--fs-sm);
}
.link-btn:hover { color: var(--white); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.logo {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 500; font-size: 1.05rem; letter-spacing: 0.18em;
  text-decoration: none; margin-right: auto;
}
.site-nav { order: 3; }
.header-cta { order: 2; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 1.5px; background: var(--white); position: relative;
  transition: transform .2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.nav-list {
  display: none;
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--black); border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.nav-list.is-open { display: block; }
.nav-list a {
  display: block; padding: 0.85rem 0; text-decoration: none;
  font-family: var(--font-display); font-variation-settings: 'wdth' 112;
  font-size: var(--fs-lg); font-weight: 400; border-bottom: 1px solid var(--line);
}
.nav-list a[aria-current="true"] { color: var(--orange); }

@media (min-width: 960px) {
  .site-nav { order: 1; margin-right: 1.5rem; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex; position: static; padding: 0; border: 0; background: none; gap: 1.6rem;
  }
  .nav-list a {
    padding: 0.25rem 0; border: 0; font-size: var(--fs-sm); color: var(--silver);
    font-variation-settings: 'wdth' 100; letter-spacing: 0.02em;
  }
  .nav-list a:hover { color: var(--white); }
  .nav-list a[aria-current="true"] { color: var(--white); box-shadow: inset 0 -1px 0 var(--orange); }
}

/* ---------- hero: the one bold moment, a letterboxed viewfinder ---------- */
.hero {
  background: var(--black);
  padding: clamp(0.75rem, 2.5vw, 2rem) var(--gutter);
}
.hero-frame {
  position: relative; overflow: hidden;
  max-width: 1440px; margin-inline: auto;
  min-height: min(calc(100svh - var(--header-h) - 3rem), 860px);
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(120% 90% at 78% 18%, rgba(35, 73, 127, 0.55), transparent 60%),
    linear-gradient(180deg, var(--blue-950), var(--blue-900));
  border-radius: 2px;
}
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.hero-media::after { /* keep text readable over any reel */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5, 15, 34, 0.9) 0%, rgba(5, 15, 34, 0.55) 55%, rgba(5, 15, 34, 0.2) 100%);
}
.crop { position: absolute; width: 22px; height: 22px; border: 0 solid var(--line-strong); pointer-events: none; }
.crop-tl { top: 18px; left: 18px; border-top-width: 1px; border-left-width: 1px; }
.crop-tr { top: 18px; right: 18px; border-top-width: 1px; border-right-width: 1px; }
.crop-bl { bottom: 18px; left: 18px; border-bottom-width: 1px; border-left-width: 1px; }
.crop-br { bottom: 18px; right: 18px; border-bottom-width: 1px; border-right-width: 1px; }

.hero-content { position: relative; padding-block: 5.5rem 6rem; container-type: inline-size; }
@media (max-width: 479px) { .hero-subtitle { letter-spacing: 0.16em; } }
.hero-subtitle {
  font-family: var(--font-display); font-variation-settings: 'wdth' 100;
  font-size: var(--fs-xs); letter-spacing: 0.28em; color: var(--silver);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 250;
  font-size: 9vw;
  font-size: min(11.2cqi, 10rem);
  white-space: nowrap;
  line-height: 0.92;
  letter-spacing: 0.04em;
  margin-left: -0.04em;
}
.hero-slogan {
  font-family: var(--font-display); font-variation-settings: 'wdth' 85;
  font-weight: 500; font-size: clamp(1.35rem, 3.2vw, 2.4rem);
  margin-top: 1.5rem; letter-spacing: -0.005em;
}
.hero-intro { margin-top: 0.5rem; color: var(--silver); font-size: var(--fs-md); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0 calc(18px + 2rem) 26px;
  font-family: var(--font-display); font-variation-settings: 'wdth' 75;
  font-size: var(--fs-xs); color: var(--silver); font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.tally { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero-ratio { margin-left: auto; }

@media (min-width: 720px) {
  .hero-content { padding-block: 7rem 8rem; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-blue { background: var(--blue-900); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title {
  font-family: var(--font-display);
  font-variation-settings: 'wdth' 125;
  font-weight: 250;
  font-size: clamp(2.5rem, 8vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0.01em;
  margin-left: -0.03em;
}
.section-lead { margin-top: 1.25rem; color: var(--silver); font-size: var(--fs-md); max-width: 40ch; }
.sub-title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.25rem; }

.section-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.section-cta p { color: var(--silver); }
.section-cta-left { justify-content: flex-start; }

/* ---------- services ---------- */
.services { border-top: 1px solid var(--line-strong); }
.service {
  display: grid; gap: 1rem 2.5rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.service-name {
  font-family: var(--font-display); font-variation-settings: 'wdth' 110;
  font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.1;
}
.service-ko { display: block; margin-top: 0.4rem; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--silver); font-weight: 500; }
.service-summary { font-size: var(--fs-md); max-width: 38ch; }
.service-list-title { font-size: var(--fs-xs); color: var(--silver); font-weight: 600; margin: 1.25rem 0 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: var(--fs-sm); padding: 0.2rem 0.7rem;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--white);
}
.ticks li { position: relative; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--white); }
.ticks li + li { margin-top: 0.3rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 6px; height: 1px; background: var(--silver); }
.service-note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--silver); }
.service-note strong { color: var(--white); font-weight: 600; }

@media (min-width: 860px) {
  .service { grid-template-columns: 5fr 7fr; }
  .service-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
  .service-body .service-summary { grid-column: 1 / -1; }
}

/* ---------- pricing ---------- */
.plans { display: grid; gap: 1rem; }
.plan {
  display: flex; flex-direction: column;
  background: var(--blue-950); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2rem);
}
.plan-name {
  font-family: var(--font-display); font-variation-settings: 'wdth' 125;
  font-weight: 400; font-size: var(--fs-xl); letter-spacing: 0.06em; line-height: 1.1;
}
.plan-title { color: var(--silver); font-size: var(--fs-sm); margin-top: 0.3rem; }
.plan-price {
  margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.25rem;
  font-family: var(--font-display); font-variation-settings: 'wdth' 100;
  font-weight: 300; font-size: clamp(2.25rem, 5vw, 2.75rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.plan-price small { font-family: var(--font-body); font-size: var(--fs-md); font-weight: 500; }
.plan-price-note { font-size: var(--fs-xs); color: var(--silver); margin-top: 0.4rem; min-height: 1.4em; }
.plan-specs {
  display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem;
  margin-top: 1.5rem; padding-block: 1.1rem; border-block: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.plan-specs dt { color: var(--silver); }
.plan-specs dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-includes { margin-top: 1.25rem; flex: 1; }
.plan-includes-title { font-size: var(--fs-xs); color: var(--silver); font-weight: 600; margin-bottom: 0.6rem; }
.plan-for { margin-top: 1.25rem; font-size: var(--fs-sm); color: var(--silver); }
.plan .btn { margin-top: 1.5rem; }
.plan.is-selected { border-color: var(--orange); }

@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}

.fine-print { margin-top: 1.5rem; display: grid; gap: 0.35rem; }
.fine-print li, .fine-print-p { font-size: var(--fs-sm); color: var(--silver); position: relative; padding-left: 1rem; }
.fine-print-p { padding-left: 0; margin-top: 0.9rem; }
.fine-print li::before { content: '*'; position: absolute; left: 0; }

.pricing-extra { display: grid; gap: 3rem; margin-top: clamp(3rem, 7vw, 5rem); }
@media (min-width: 900px) { .pricing-extra { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.price-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.price-table th, .price-table td { padding: 0.8rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { color: var(--silver); font-weight: 500; font-size: var(--fs-xs); border-bottom-color: var(--line-strong); }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.price-table td:last-child { font-weight: 600; }

.policy-list { margin-top: 1.25rem; display: grid; gap: 0.45rem; }
.policy-list li { position: relative; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--silver); }
.policy-list li::before { content: ''; position: absolute; left: 0; top: 0.78em; width: 6px; height: 1px; background: var(--silver); }

/* ---------- calculator ---------- */
.calc {
  display: grid; gap: 1.5rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  background: var(--blue-950); border: 1px solid var(--line-strong); border-radius: var(--radius-m);
}
@media (min-width: 900px) {
  .calc { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: start; }
  .calc-summary { position: sticky; top: calc(var(--header-h) + 1.25rem); }
}
.calc-group { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.calc-group legend { font-size: var(--fs-sm); color: var(--silver); font-weight: 600; margin-bottom: 0.75rem; padding: 0; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.seg-item { position: relative; }
.seg-item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-item label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.1rem;
  min-height: 64px; padding: 0.65rem 0.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.seg-name { font-family: var(--font-display); font-variation-settings: 'wdth' 110; font-weight: 500; font-size: var(--fs-sm); letter-spacing: 0.04em; }
.seg-price { font-size: var(--fs-xs); color: var(--silver); font-variant-numeric: tabular-nums; }
@media (max-width: 559px) {
  .seg { grid-template-columns: 1fr; }
  .seg-item label { flex-direction: row; justify-content: space-between; align-items: center; min-height: 52px; }
}
.seg-item.is-checked label { border-color: var(--orange); background: rgba(255, 138, 61, 0.08); }
.seg-item.is-checked .seg-price { color: var(--white); }
.seg-item input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }

.calc-options { display: grid; gap: 0.5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt label {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 0.25rem 0.8rem; align-items: start;
  padding: 0.85rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer;
  transition: border-color .15s;
}
.opt label:hover { border-color: var(--line-strong); }
.opt-box {
  width: 20px; height: 20px; margin-top: 0.15rem; border: 1.5px solid var(--silver); border-radius: 3px;
  display: grid; place-items: center;
}
.opt-box::after {
  content: ''; width: 10px; height: 6px; border: 2px solid var(--black); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.opt input:checked + label { border-color: var(--orange); }
.opt input:checked + label .opt-box { background: var(--orange); border-color: var(--orange); }
.opt input:checked + label .opt-box::after { opacity: 1; }
.opt input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.opt-name { font-weight: 600; font-size: var(--fs-sm); }
.opt-price { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt-hint { grid-column: 2 / -1; font-size: var(--fs-xs); color: var(--silver); line-height: 1.55; }
.opt.is-included label { cursor: default; border-style: dashed; }
.opt.is-included .opt-box { border-color: var(--silver-dim); background: transparent; }
.opt.is-included .opt-box::after { opacity: 1; border-color: var(--silver); }
.opt.is-included .opt-price { color: var(--silver); }

.calc-summary {
  background: var(--blue-900); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.calc-summary-title { font-size: var(--fs-sm); color: var(--silver); font-weight: 600; margin-bottom: 0.75rem; }
.calc-lines { display: grid; grid-template-columns: 1fr auto; font-size: var(--fs-sm); }
.calc-lines dt, .calc-lines dd { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.calc-lines dd { text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; white-space: nowrap; }
.calc-lines .is-muted { color: var(--silver); }
.calc-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
}
.calc-total span { font-weight: 600; }
.calc-total output {
  font-family: var(--font-display); font-variation-settings: 'wdth' 100; font-weight: 400;
  font-size: clamp(1.75rem, 5vw, 2.25rem); font-variant-numeric: tabular-nums; line-height: 1.1;
}
.calc-notice { margin: 1rem 0 1.25rem; font-size: var(--fs-xs); color: var(--silver); line-height: 1.6; }

/* ---------- portfolio ---------- */
.filters { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1.75rem; scrollbar-width: thin; }
.filter {
  flex: none; min-height: 40px; padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-strong); border-radius: 999px; background: none; cursor: pointer;
  font-family: var(--font-display); font-variation-settings: 'wdth' 100; font-size: var(--fs-xs); letter-spacing: 0.06em;
  color: var(--silver);
}
.filter:hover { color: var(--white); }
.filter[aria-pressed="true"] { background: var(--white); color: var(--black); border-color: var(--white); }

.works { display: grid; gap: 2rem 1.25rem; }
@media (min-width: 640px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .works { grid-template-columns: repeat(3, 1fr); } }
.work-thumb {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--blue-900); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0;
  cursor: pointer;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-play {
  position: absolute; left: 0.75rem; bottom: 0.75rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.72); color: var(--white); font-size: var(--fs-xs); font-weight: 600;
}
.work-play::before { content: ''; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent var(--orange); }
.work-thumb:hover { border-color: var(--line-strong); }
.work-cat { font-family: var(--font-display); font-variation-settings: 'wdth' 100; font-size: var(--fs-xs); color: var(--silver); letter-spacing: 0.06em; margin-top: 0.9rem; }
.work-title { font-size: var(--fs-md); font-weight: 650; margin-top: 0.2rem; line-height: 1.4; }
.work-field { font-size: var(--fs-sm); color: var(--white); margin-top: 0.2rem; }
.work-desc { font-size: var(--fs-sm); color: var(--silver); margin-top: 0.35rem; }
.work-meta { margin-top: 0.7rem; display: grid; gap: 0.25rem; }
.work-meta div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: baseline; }
.work-meta dt { font-family: var(--font-display); font-variation-settings: 'wdth' 100; font-size: var(--fs-xs); color: var(--silver); letter-spacing: 0.06em; opacity: 0.75; }
.work-meta dd { font-size: var(--fs-xs); color: var(--white); margin: 0; }

.work.is-placeholder .work-thumb {
  cursor: default; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(167, 177, 192, 0.05) 14px 15px), var(--blue-950);
  border-style: dashed; border-color: var(--line-strong);
}
.placeholder-label { font-size: var(--fs-sm); color: var(--silver); text-align: center; padding: 1rem; }
.works-empty { color: var(--silver); padding: 2rem 0; }

/* video player dialog */
.player {
  width: min(1100px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem);
  padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-m);
  background: var(--black); color: var(--white);
}
.player::backdrop { background: rgba(0, 0, 0, 0.85); }
.player-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.player-title { font-size: var(--fs-base); font-weight: 600; }
.player-close { min-height: 40px; padding: 0.3rem 0.9rem; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-s); cursor: pointer; }
.player-close:hover { border-color: var(--white); }
.player-body { aspect-ratio: 16 / 9; background: var(--black); }
.player-body iframe, .player-body video { width: 100%; height: 100%; border: 0; }

/* ---------- process ---------- */
.steps { display: grid; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 3.25rem 1fr; gap: 0 1rem;
  padding-bottom: 2rem;
}
.step::before { /* timeline rail */
  content: ''; position: absolute; left: calc(1.25rem - 0.5px); top: 2.75rem; bottom: 0.25rem;
  width: 1px; background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step-num {
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--line-strong); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-variation-settings: 'wdth' 100; font-size: var(--fs-sm); font-variant-numeric: tabular-nums;
  background: var(--blue-900);
}
.step:last-child .step-num { border-color: var(--orange); }
.step-name { font-family: var(--font-display); font-variation-settings: 'wdth' 115; font-weight: 450; font-size: var(--fs-lg); letter-spacing: 0.04em; line-height: 2.5rem; }
.step-ko { font-size: var(--fs-sm); color: var(--silver); font-weight: 600; }
.step-text { margin-top: 0.35rem; font-size: var(--fs-sm); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(6, 1fr); gap: 0 1.25rem; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step::before { left: 2.75rem; right: -1.25rem; top: 1.25rem; bottom: auto; width: auto; height: 1px; }
  .step-name { margin-top: 1.25rem; line-height: 1.3; font-size: var(--fs-md); }
  .step-ko { margin-top: 0.25rem; }
}

/* ---------- FAQ ---------- */
@media (min-width: 960px) {
  .faq-layout { display: grid; grid-template-columns: 4fr 8fr; gap: 4rem; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(var(--silver), var(--silver)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--silver), var(--silver)) center / 1.5px 12px no-repeat;
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 1.4rem; color: var(--silver); max-width: 60ch; }
.refund { margin-top: 3.5rem; }

/* ---------- contact & form ---------- */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .contact-layout { grid-template-columns: 5fr 7fr; gap: 4.5rem; }
  .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.contact-response { margin-top: 1.5rem; font-size: var(--fs-sm); color: var(--silver); }
.channels { margin-top: 2rem; border-top: 1px solid var(--line); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a {
  display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; text-decoration: none; font-size: var(--fs-sm);
}
.channels a span:first-child { color: var(--silver); }
.channels a:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }

.inquiry {
  background: var(--blue-950); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
.form-legend-note { font-size: var(--fs-xs); color: var(--silver); margin-bottom: 1.5rem; }
.req { color: var(--orange); }
.form-block { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.form-block > legend, .form-optional > summary {
  font-size: var(--fs-md); font-weight: 700; padding: 0 0 0.75rem; margin-bottom: 1.25rem;
  width: 100%; border-bottom: 1px solid var(--line);
}
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field-label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.45rem; padding: 0; }
.field-hint-inline { font-weight: 400; color: var(--silver); font-size: var(--fs-xs); margin-left: 0.25rem; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font-size: 1rem; /* 16px avoids iOS zoom */ color: var(--white);
  transition: border-color .15s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--silver) 50%), linear-gradient(135deg, var(--silver) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field input[type="date"] { color-scheme: dark; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field ::placeholder { color: #7d8799; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--silver); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: var(--fs-xs); color: var(--silver); margin-top: 0.4rem; }
.error { font-size: var(--fs-xs); color: var(--error); margin-top: 0.4rem; font-weight: 600; }
.error:empty { display: none; }

.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check, .field label.check { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; margin: 0; }
.checks .check { min-height: 44px; padding: 0.45rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); }
.checks .check:has(input:checked) { border-color: var(--orange); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); flex: none; }
.checks[aria-invalid="true"] .check { border-color: var(--error); }

.form-optional { margin-bottom: 2rem; }
.form-optional > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; }
.form-optional > summary::-webkit-details-marker { display: none; }
.form-optional > summary::after { content: '열기'; font-size: var(--fs-xs); color: var(--silver); font-weight: 500; }
.form-optional[open] > summary::after { content: '닫기'; }
.form-optional > summary .field-hint-inline { margin-right: auto; margin-left: 0.5rem; }
.form-optional:not([open]) > summary { margin-bottom: 0; }

.consent { padding-top: 0.5rem; }
.consent .hint { margin-left: calc(18px + 0.55rem); }
.consent .error { margin-left: calc(18px + 0.55rem); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.estimate-chip {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.1rem; margin-bottom: 1.75rem;
  border: 1px solid var(--orange); border-radius: var(--radius-s); background: rgba(255, 138, 61, 0.06);
}
.estimate-chip .link-btn { flex: none; white-space: nowrap; }
.estimate-chip-title { font-size: var(--fs-xs); font-weight: 700; color: var(--orange); }
.estimate-chip-body { font-size: var(--fs-sm); margin-top: 0.25rem; }

.form-submit { margin-top: 1.5rem; }
.form-status { margin-top: 1rem; font-size: var(--fs-sm); }
.form-status:empty { display: none; }
.form-status.is-sending { color: var(--silver); }
.form-status.is-success { color: var(--success); padding: 1rem; border: 1px solid rgba(143, 224, 176, 0.4); border-radius: var(--radius-s); }
.form-status.is-error { color: var(--error); padding: 1rem; border: 1px solid rgba(255, 143, 143, 0.45); border-radius: var(--radius-s); }
.form-status strong { color: var(--white); }
.spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; margin-right: 0.4rem;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer-inner { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: end; gap: 2.5rem; } }
.footer-logo { font-family: var(--font-display); font-variation-settings: 'wdth' 125; font-weight: 500; letter-spacing: 0.18em; }
.footer-slogan, .footer-copy { font-size: var(--fs-xs); color: var(--silver); margin-top: 0.25rem; }
.footer-channels { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--fs-sm); }
.footer-channels a { color: var(--silver); text-decoration: none; }
.footer-channels a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: grid; gap: 0.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: var(--fs-xs); }
.footer-links a { color: var(--silver); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-links strong { font-weight: 650; color: var(--white); }
.footer-biz { font-size: var(--fs-xs); color: var(--silver-dim); }
.footer-biz a { color: inherit; }

.noscript { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 99; padding: 1rem; background: var(--orange); color: var(--black); font-weight: 600; border-radius: var(--radius-s); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .spinner { animation: none; border-right-color: currentColor; opacity: .6; }
}
.is-muted { color: var(--silver); }

/* 다량 주문·정기 계약 (별도 견적) */
.bulk-deal {
  display: grid; gap: 1.25rem; align-items: center;
  margin-top: 1rem; padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--blue-900); border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
}
.bulk-name {
  font-family: var(--font-display); font-variation-settings: 'wdth' 125;
  font-weight: 400; font-size: var(--fs-lg); letter-spacing: 0.04em;
}
.bulk-price { color: var(--orange); font-weight: 700; margin-top: 0.35rem; }
.bulk-text { color: var(--silver); font-size: var(--fs-sm); margin-top: 0.5rem; max-width: 46ch; }
.bulk-deal .btn { justify-self: start; }
@media (min-width: 900px) {
  .bulk-deal { grid-template-columns: 1.4fr 1fr auto; gap: 2.5rem; }
}

/* ==========================================================================
   ABOUT — two columns: identity on the left, statement on the right,
   a wide muted tagline along the bottom.
   ========================================================================== */
.about-grid { display: grid; gap: 2.5rem; }
.about-id { container-type: inline-size; }
.about-eyebrow {
  font-family: var(--font-display); font-variation-settings: 'wdth' 100;
  font-size: var(--fs-xs); letter-spacing: 0.28em; color: var(--silver);
  margin-bottom: 1rem;
}
.about-name {
  font-family: var(--font-display); font-variation-settings: 'wdth' 125;
  font-weight: 800; line-height: 0.95; letter-spacing: 0.01em;
  font-size: clamp(2.25rem, 11vw, 5rem);
  font-size: min(11.4cqi, 5.5rem);
  white-space: nowrap; margin-left: -0.04em;
}
.about-roles {
  margin-top: 1.1rem; max-width: 40rem; text-wrap: balance;
  font-family: var(--font-display); font-variation-settings: 'wdth' 100;
  font-size: var(--fs-xs); letter-spacing: 0.08em; line-height: 1.6; color: var(--silver);
}
.about-headline { font-size: var(--fs-xl); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.about-body { margin-top: 1.5rem; color: var(--silver); line-height: 1.85; }
.about > .wrap { container-type: inline-size; }
.about-tagline {
  margin-top: clamp(3rem, 7vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-variation-settings: 'wdth' 125;
  font-weight: 300; letter-spacing: 0.08em; line-height: 1.4; color: var(--silver-dim);
  font-size: clamp(0.8125rem, 1.9cqi, 1.6rem);
  text-wrap: balance;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 40rem); gap: 4rem; align-items: start; }
  .about-line { display: block; } /* config의 줄바꿈을 데스크톱에서 유지 */
}

/* ==========================================================================
   CINEMA — scroll-scrubbed scenes (js/cinema.js writes the per-frame values).
   - html.cine-stack: hero zoom track + scene tracks that pin briefly and cross-dissolve
   - html.cine-seq:   title-sequence heading wipes and soft entrances
   - .cine-film:      light vignette + faint grain
   Everything is opt-in via classes added by JS. Without JS, or with reduced
   motion, none of it applies and the page is the plain stacked layout.
   ========================================================================== */
.cine-mark { display: block; height: 0; }

/* 1. hero: a tall track, the letterboxed frame stays put while you zoom through it */
html.cine-stack .hero { overflow: clip; } /* clips the zoomed frame without breaking sticky */
/* the zoom distance lives in the content box (sticky cannot travel through padding) */
html.cine-stack .hero::after { content: ''; display: block; height: 100svh; }
html.cine-stack .hero-frame {
  position: sticky; top: calc(var(--header-h) + clamp(0.75rem, 2.5vw, 2rem));
  transform-origin: 50% 50%;
}
html.cine-stack .hero-content { transform-origin: 20% 50%; }

/* 2. scenes cross-dissolve in place.
   .cine-track (scroll length) > .cine-pin (start pin) > section (end pin). Heights, margins and
   sticky offsets are set by JS from measured sizes. */
html.cine-stack main { overflow-x: clip; } /* scaled scenes never cause sideways scroll */
/* tracks overlap the previous scene by design; their empty boxes must never catch clicks or taps.
   Only the scene itself is interactive (JS turns that off only while it is nearly invisible). */
.cine-track { position: relative; pointer-events: none; }
.cine-pin { position: sticky; top: 0; pointer-events: none; }
html.cine-stack .cine-track .cine-sec { pointer-events: auto; }
html.cine-stack .cine-sec:not(.hero) {
  position: sticky;
  min-height: 100svh; /* every scene fills the frame, so dissolves never show an edge */
  display: flex; flex-direction: column; justify-content: center;
  background: var(--black);
}
html.cine-stack .cine-sec.section-blue { background: var(--blue-900); }

/* 4. title sequence: headings wipe up line by line, then lead and cards fade up */
html.cine-seq .wipe {
  clip-path: inset(100% -0.3em -0.3em -0.3em);
  translate: 0 0.35em;
  transition:
    clip-path 850ms cubic-bezier(0.65, 0, 0.35, 1),
    translate 850ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(60ms + var(--w-i, 0) * 80ms);
}
html.cine-seq .cine-sec.is-shot .wipe { clip-path: inset(-0.3em); translate: none; }

html.js .rv {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 900ms cubic-bezier(0.22, 0.8, 0.24, 1),
    translate 900ms cubic-bezier(0.22, 0.8, 0.24, 1),
    filter 900ms ease-out;
  transition-delay: calc(var(--rv-base, 0ms) + var(--rv-i, 0) * 70ms);
}
html.js .rv.rv-drift { translate: 20px 0; }
html.js .rv.is-in { opacity: 1; translate: none; filter: none; }
/* nothing in a scene shows before its title sequence has started */
html.cine-seq .cine-sec:not(.is-shot) .rv { opacity: 0; }
@media (min-width: 960px) and (hover: hover) {
  html.js .rv:not(.is-in) { filter: blur(3px); }
}

/* film: vignette + grain, above content but under the header and slate */
.cine-film {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden;
  background: radial-gradient(ellipse 120% 95% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.24) 100%);
}
.cine-film::before {
  content: ''; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.035;
  animation: cine-grain 1.2s steps(6) infinite;
  will-change: transform;
}
@keyframes cine-grain {
  0% { transform: translate3d(0, 0, 0); }
  17% { transform: translate3d(-37px, 21px, 0); }
  33% { transform: translate3d(23px, -44px, 0); }
  50% { transform: translate3d(-58px, -13px, 0); }
  67% { transform: translate3d(41px, 52px, 0); }
  83% { transform: translate3d(-19px, 66px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* scene slate */
.slate {
  position: fixed; z-index: 46; pointer-events: none;
  left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.4rem 0.75rem 0.4rem 0.65rem;
  background: rgba(0, 0, 0, 0.78); border: 1px solid var(--line); border-radius: 2px;
  font-family: var(--font-display); font-variation-settings: 'wdth' 75;
  font-size: var(--fs-xs); line-height: 1.4; letter-spacing: 0.08em; color: var(--silver);
  font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity 600ms ease, transform 600ms ease;
}
.slate-tally { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }
.slate-scene { display: grid; color: var(--white); }
.slate-label { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity 600ms ease, transform 600ms ease; }
.slate-label.is-on { opacity: 1; transform: none; }
.slate-sep { margin-inline: 0.45em; color: var(--silver-dim); }
.slate-tc { padding-left: 0.65rem; border-left: 1px solid var(--line-strong); }
.slate.is-home, .slate.is-quiet, .slate.is-resting { opacity: 0; transform: translateY(6px); }

/* portfolio as a film strip: perforated edges on every frame */
.work-thumb::before, .work-thumb::after {
  content: ''; position: absolute; left: 0; right: 0; height: 12px; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(243, 245, 248, 0.22) 0 8px, transparent 8px) 6px 50% / 18px 5px repeat-x,
    rgba(0, 0, 0, 0.8);
}
.work-thumb::before { top: 0; }
.work-thumb::after { bottom: 0; }
.work-play { z-index: 2; bottom: calc(12px + 0.6rem); }
.work.is-placeholder .work-thumb::before, .work.is-placeholder .work-thumb::after { opacity: 0.55; }

/* section anchors receive focus (tabindex=-1) after a nav jump; no ring on the whole scene */
.cine-sec[tabindex="-1"]:focus { outline: none; }

/* phones and touch devices: lighter film, still grain, shorter travel */
@media (max-width: 719px), (hover: none) {
  .cine-film { background: radial-gradient(ellipse 130% 100% at 50% 45%, transparent 62%, rgba(0, 0, 0, 0.15) 100%); }
  .cine-film::before { animation: none; opacity: 0.028; }
  html.js .rv { translate: 0 10px; }
  html.js .rv.rv-drift { translate: 12px 0; }
  .slate { font-size: 0.75rem; gap: 0.5rem; padding: 0.3rem 0.6rem 0.3rem 0.5rem; }
}

/* reduced motion: plain layout, content shown immediately (JS adds none of the classes; this is a safety net) */
@media (prefers-reduced-motion: reduce) {
  .cine-film { display: none; }
  html.js .rv, html.js .rv.rv-drift { opacity: 1; translate: none; filter: none; transition: none; }
  html.cine-seq .wipe { clip-path: none; translate: none; transition: none; }
  .slate, .slate-label { transition: none; }
}
@media print {
  .cine-film, .slate { display: none; }
  html.js .rv, html.cine-seq .wipe { opacity: 1; translate: none; filter: none; clip-path: none; }
}

/* 패키지 5종: 넓은 화면에서는 윗줄 쇼츠 2칸 + 아랫줄 롱폼 3칸 (6열 그리드) */
@media (min-width: 1200px) {
  .plans { grid-template-columns: repeat(6, 1fr); }
  .plans .plan { grid-column: span 2; }
  .plans .plan:nth-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 560px) { .seg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 600px) { .seg { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .seg { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px) {
  .plans .plan-name { font-size: clamp(1.2rem, 1.55vw, 1.55rem); white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .plans .plan-name { white-space: nowrap; }
}

/* ---------- language toggle (KO | EN), injected by js/i18n.js ---------- */
.lang-toggle {
  order: 2; display: inline-flex; align-items: center; flex: none;
  font-family: var(--font-display); font-size: var(--fs-xs); letter-spacing: 0.08em;
}
.lang-btn {
  background: none; border: 0; color: var(--silver); cursor: pointer;
  min-width: 32px; min-height: 40px; padding: 0 0.35rem; font: inherit; letter-spacing: inherit;
}
.lang-btn:hover { color: var(--white); }
.lang-btn[aria-pressed="true"] { color: var(--white); font-weight: 600; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.lang-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }
.lang-sep { color: var(--line-strong); }
.logo, .header-cta { white-space: nowrap; flex: none; }
@media (max-width: 479px) {
  .header-inner { gap: 0.4rem; }
  .logo { font-size: 0.95rem; letter-spacing: 0.1em; }
  .lang-btn { min-width: 26px; padding: 0 0.15rem; }
  .header-cta { padding-inline: 0.6rem; font-size: var(--fs-xs); }
  .header-cta .cta-more { display: none; }
  .nav-toggle { width: 40px; height: 40px; }
}

/* English: the Korean subtitles under English headings would just repeat them */
.lang-en .service-ko, .lang-en .step-ko { display: none; }
.plan-price { white-space: nowrap; }
.lang-en .plan-specs dd:not(:nth-of-type(3)) { white-space: nowrap; } /* 원본 길이(3번째)는 긴 문장이라 줄바꿈 허용 */
.plan-specs dt, .plan-specs dd { overflow-wrap: normal; }
.header-cta { gap: 0.28em; }

/* ---------- 월간·연간 구독 ---------- */
.subs { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.subs-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.subs-toggle { display: inline-flex; padding: 0.25rem; border: 1px solid var(--line-strong); border-radius: 999px; }
.subs-toggle button {
  min-width: 4.5rem; padding: 0.5rem 1rem; border: 0; border-radius: 999px; background: none;
  color: var(--silver); font: inherit; font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.subs-toggle button.is-on { background: var(--orange); color: var(--blue-950); }
.subs-plans { display: grid; gap: 1rem; }
.sub-plan {
  display: flex; flex-direction: column;
  background: var(--blue-950); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: clamp(1.5rem, 3vw, 2rem);
}
.sub-plan.is-featured { border-color: var(--orange); }
.sub-plan .ticks { margin-top: 1.25rem; flex: 1; }
.sub-plan .btn { margin-top: 1.5rem; }
.sub-price {
  margin-top: 1.25rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.25rem;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 4.5vw, 2.5rem); line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sub-price small { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 500; color: var(--silver); }
@media (min-width: 900px) { .subs-plans { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 타이포 다듬기: 줄바꿈·크기·행간 ---------- */
/* 제목은 줄 길이를 고르게, 본문은 마지막 줄에 한 단어만 남지 않게 */
h1, h2, h3, h4, .faq-item summary, .hero-intro, .hero-slogan { text-wrap: balance; }
p, li, dd, .section-lead { text-wrap: pretty; }
.sub-title, .faq-item summary, .plan-title { line-height: 1.45; }
.section-lead { line-height: 1.6; }

/* 원본 영상 길이처럼 긴 값은 오른쪽 좁은 칸 대신 한 줄 전체를 쓰게 */
.plan-specs dt:nth-of-type(3) { grid-column: 1 / -1; }
.plan-specs dd:nth-of-type(3) {
  grid-column: 1 / -1; margin-top: -0.3rem;
  text-align: left; font-weight: 500; line-height: 1.55; color: var(--white);
}
.plan-specs dd:nth-of-type(3) + dt { margin-top: 0.15rem; }

/* 작은 휴대폰(360~479px): 카드 이름·FAQ 질문이 덜 꺾이게 한 단계 작게 */
@media (max-width: 479px) {
  .plan-name { font-size: 1.375rem; letter-spacing: 0.04em; }
  .faq-item summary { font-size: var(--fs-base); padding-block: 1.1rem; }
  .section-lead, .hero-intro { font-size: 1.0625rem; }
  .plan-price { font-size: 2.25rem; }
  .sub-price { font-size: 2rem; }
}

/* 넓은 화면: 본문 줄 길이를 읽기 좋은 폭으로 */
@media (min-width: 1200px) {
  .section-lead { max-width: 42ch; }
  .faq-item p { max-width: 62ch; }
}

/* 구독 카드 */
.subs-head .sub-title { margin-bottom: 0; }
.sub-plan .plan-for { text-wrap: pretty; }
.sub-price small { white-space: nowrap; }
.plan-price-note { line-height: 1.5; }

/* ---------- 구독 조합기 (패키지·옵션 × 월 건수) ---------- */
.subs-lead { color: var(--silver); font-size: var(--fs-sm); line-height: 1.6; margin-bottom: 1.25rem; max-width: 48ch; }
.subs-builder { display: grid; gap: 1rem; align-items: start; }
.subs-groups { display: grid; gap: 1rem; }
.subs-group {
  background: var(--blue-950); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: clamp(1rem, 2.5vw, 1.5rem);
}
.subs-group ul { display: grid; }
.subs-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.8rem; border-top: 1px solid var(--line);
}
.subs-group li:first-child { border-top: 0; }
.subs-row-text { display: grid; gap: 0.1rem; min-width: 0; }
.subs-row-name { font-weight: 600; line-height: 1.35; }
.subs-row-sub, .subs-row-price { font-size: var(--fs-xs); color: var(--silver); line-height: 1.45; }
.subs-row.is-on .subs-row-name { color: var(--orange); }
.stepper { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; }
.stepper button {
  width: 2.5rem; height: 2.5rem; border: 0; background: none; color: inherit;
  font-size: 1.15rem; line-height: 1; cursor: pointer; border-radius: 999px;
}
.stepper button:hover { background: var(--blue-900); }
.stepper output { min-width: 1.75rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.subs-summary {
  background: var(--blue-900); border: 1px solid var(--orange);
  border-radius: var(--radius-m); padding: clamp(1.25rem, 3vw, 1.75rem);
}
.subs-summary-title { font-size: var(--fs-xs); color: var(--silver); font-weight: 600; }
.subs-empty { margin-top: 0.75rem; color: var(--silver); font-size: var(--fs-sm); }
.subs-lines { margin-top: 0.75rem; display: grid; gap: 0.35rem; font-size: var(--fs-sm); }
.subs-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.subs-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.subs-perk { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--orange); font-weight: 600; }
.subs-summary .btn { margin-top: 1.25rem; }
.subs-summary .btn.is-disabled { opacity: 0.45; pointer-events: none; }
@media (min-width: 900px) {
  .subs-builder { grid-template-columns: 1.6fr 1fr; }
  .subs-summary { position: sticky; top: 6rem; }
}
@media (min-width: 1200px) { .subs-groups { grid-template-columns: 1fr 1fr; } }

/* ---------- 엔터프라이즈 ---------- */
#enterprise-deal { margin-top: clamp(2rem, 4vw, 3rem); }
.enterprise-deal { border-color: var(--orange); background: linear-gradient(135deg, var(--blue-900), var(--blue-950)); }
.ent-kicker { font-size: var(--fs-xs); color: var(--orange); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 0.35rem; }

.link-ask { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.subs-opt-label { display: flex; align-items: center; gap: 0.75rem; width: 100%; cursor: pointer; }
.subs-opt-label input { width: 1.15rem; height: 1.15rem; accent-color: var(--orange); flex: none; }
.subs-tag { margin-left: 0.4rem; padding: 0.1rem 0.5rem; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }

/* ---------- AI VIDEO STUDIO (js/ai-studio.js) ---------- */
.ai-studio { margin-top: clamp(3.5rem, 8vw, 6rem); padding-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line-strong); }
.ai-studio-head { max-width: 46rem; margin-bottom: 2rem; }
.ai-svc { display: grid; gap: 1.5rem; padding-block: clamp(1.75rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
.ai-svc-name {
  font-family: var(--font-display); font-variation-settings: 'wdth' 125; font-weight: 400;
  font-size: var(--fs-xl); letter-spacing: 0.06em; line-height: 1.15; margin: 0.25rem 0 0.6rem;
}
.ai-svc-text { color: var(--silver); font-size: var(--fs-sm); margin-bottom: 1rem; max-width: 34rem; }
.ai-svc .tags { margin-bottom: 1rem; }
.ai-specs { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; font-size: var(--fs-sm); }
.ai-specs dt { color: var(--silver); }
.ai-specs dd { font-weight: 600; }
.ai-tiers { display: grid; gap: 1rem; }
.ai-tier .plan-price { margin-top: 1rem; font-size: clamp(1.9rem, 4vw, 2.3rem); }
.ai-tier .plan-title { margin-top: 0.6rem; flex: 1; }
.ai-addon .btn { margin-top: 1.25rem; }
.ai-custom { color: var(--silver); font-weight: 400 !important; text-align: left !important; white-space: normal !important; }
.ai-quote { margin-top: 2.5rem; }
.aiq-grid { display: grid; gap: 0.9rem 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
.aiq-field label { display: block; font-size: var(--fs-xs); color: var(--silver); font-weight: 600; margin-bottom: 0.35rem; }
.aiq-field select, .aiq-field input { width: 100%; }
.aiq-price {
  font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1.1; margin: 0.75rem 0 0.5rem; font-variant-numeric: tabular-nums;
}
@media (min-width: 560px) { .aiq-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .ai-svc { grid-template-columns: minmax(16rem, 1fr) 2fr; gap: 2.5rem; align-items: start; }
  .ai-tiers { grid-template-columns: repeat(3, 1fr); }
}

/* 2026-11-14: 견적 계산기 패키지 박스 크기 통일 (단어 중간 줄바꿈 금지, 가격은 아래 정렬) */
.seg-item label { height: 100%; }
.seg-name { overflow-wrap: normal; word-break: keep-all; line-height: 1.25; }
.seg-price { margin-top: auto; }
@media (min-width: 560px) {
  .seg-item label { min-height: 84px; }
  .seg-name { font-size: 0.8125rem; letter-spacing: 0.02em; }
}
@media (max-width: 559px) { .seg-price { margin-top: 0; } }

/* 2026-11-14: AI 티어 이름(STANDARD 등) 데스크톱에서 한 줄 → 가격 위치 통일 */
.ai-tier .plan-name { white-space: nowrap; }
@media (min-width: 900px) {
  .ai-tier { padding: 1.5rem 1.25rem; }
  .ai-tier .plan-name { font-size: clamp(1.05rem, 1.5vw, 1.4rem); letter-spacing: 0.04em; }
}

/* 2026-11-15: 4개 언어 버튼(KO|EN|JA|CN) 추가 후 데스크톱 메뉴가 글자 단위로 줄바꿈되던 문제 */
@media (min-width: 960px) {
  .nav-list a { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1279px) {
  .site-nav { margin-right: 0.75rem; }
  .nav-list { gap: 1rem; }
  .lang-btn { min-width: 26px; padding: 0 0.2rem; }
}
@media (min-width: 960px) and (max-width: 1099px) {
  .nav-list { gap: 0.7rem; }
  .nav-list a { font-size: var(--fs-xs); }
}

/* 일본어·중국어 CTA 는 띄어쓰기 없이 붙여 씀 */
.lang-ja .header-cta, .lang-zh .header-cta { gap: 0; word-spacing: 0; }
.lang-ja .header-cta .cta-more, .lang-zh .header-cta .cta-more { margin: 0; }

/* 2026-11-15: YouTube Shorts(세로 릴스)는 플레이어를 9:16 으로 */
.player.is-vertical { width: min(420px, calc(100vw - 2rem), calc((100vh - 6rem) * 9 / 16)); }
.player.is-vertical .player-body { aspect-ratio: 9 / 16; }

/* ---------- 모바일 상단: 로그인 + 견적 문의 버튼 줄 (데스크톱은 메뉴 안 "로그인" 링크를 그대로 사용) ----------
   959px 이하: 1줄 = 로고 · 언어 · 메뉴, 2줄 = [로그인] [견적 문의] 반반 */
.header-login { order: 2; white-space: nowrap; flex: none; }
@media (min-width: 960px) { .header-login { display: none; } }
@media (max-width: 959px) {
  :root:has(.header-login) { --header-h: 112px; }
  .site-header:has(.header-login) .header-inner { flex-wrap: wrap; align-content: center; column-gap: 0.5rem; row-gap: 0.45rem; }
  .site-header .header-login, .site-header:has(.header-login) .header-cta {
    order: 4; flex: 1 1 calc(50% - 0.25rem); justify-content: center; font-size: var(--fs-sm); padding-inline: 0.6rem;
  }
  .site-header:has(.header-login) .header-cta .cta-more { display: inline; }
}

/* AI 자동 견적: 퀄리티·해상도 하/중/상 선택 (2026-11-15) */
.aiq-group { margin: 1.25rem 0 0; }
.aiq-group .seg-item label { min-height: 72px; }
.aiq-level { display: inline-block; margin-left: 0.3rem; padding: 0 0.4rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.6875rem; line-height: 1.5; color: var(--silver); vertical-align: 0.1em; }
.seg-item.is-checked .aiq-level { border-color: var(--orange); color: var(--orange); }
.aiq-group .seg-price { line-height: 1.35; word-break: keep-all; }
.seg-item.is-disabled label { opacity: 0.4; cursor: not-allowed; }
.ai-quote .calc-notice { margin-top: 1rem; }

/* 견적 계산기: 수량·묶음 할인 (2026-11-15) */
.calc-qty { display: flex; align-items: center; gap: 0.6rem; }
.calc-qty input { width: 6.5rem; }
.calc-lines .is-sub { color: var(--silver); }

/* 분야별 페이지 링크 + 카테고리 페이지 (2026-11-15) */
.cat-nav { margin: 0 0 2.5rem; }
.cat-cards { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cat-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 0.3rem; padding: 1.1rem 2.75rem 1.1rem 1.15rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; height: 100%; }
.cat-card:hover, .cat-card:focus-visible { border-color: var(--orange); background: rgba(255, 138, 61, 0.06); }
.cat-card.is-current { border-color: var(--orange); background: rgba(255, 138, 61, 0.1); }
.cat-card-name { font-family: var(--font-display); font-variation-settings: 'wdth' 115; font-weight: 600; letter-spacing: 0.06em; font-size: var(--fs-sm); }
.cat-card-title { font-size: var(--fs-xs); color: var(--silver); word-break: keep-all; }
.cat-card-go { position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--orange); }
.hero-cat .hero-title { font-size: clamp(2rem, 6vw, 4.25rem); line-height: 1.1; word-break: keep-all; letter-spacing: 0; }
.hero-cat .hero-intro { max-width: 40rem; }

/* 홈: 서비스 선택 카드 (2026-11-15) */
.choose-cards { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .choose-cards { grid-template-columns: repeat(3, 1fr); } }
.choose-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line-strong); border-radius: var(--radius-s); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; background: rgba(255,255,255,0.02); }
.choose-card:hover, .choose-card:focus-visible { border-color: var(--orange); transform: translateY(-3px); }
.choose-thumb { display: block; aspect-ratio: 16 / 9; background: #0b1426; overflow: hidden; }
.choose-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .2s, transform .4s; }
.choose-card:hover .choose-thumb img { opacity: 1; transform: scale(1.03); }
.choose-body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.choose-name { font-family: var(--font-display); font-variation-settings: 'wdth' 115; font-weight: 600; letter-spacing: 0.06em; font-size: var(--fs-lg, 1.25rem); }
.choose-title { font-size: var(--fs-sm); color: var(--white); font-weight: 600; word-break: keep-all; }
.choose-intro { font-size: var(--fs-sm); color: var(--silver); line-height: 1.6; word-break: keep-all; flex: 1; }
.choose-go { margin-top: 0.5rem; color: var(--orange); font-weight: 600; font-size: var(--fs-sm); }

/* ===== 가격 UX: 탭 · 단계 · 수량 슬라이더 · 요약 카드 · 단가표 · 상담 띠 (2026-11-15) ===== */
.ptabs { display: inline-flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.35rem; margin: 0 0 2.25rem; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.ptabs button { border: 0; background: transparent; color: var(--silver); font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 0.6rem 1.15rem; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s; }
.ptabs button:hover { color: var(--white); }
.ptabs button[aria-selected="true"] { background: var(--white); color: #000; }
.ptabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
@media (max-width: 559px) { .ptabs { display: flex; border-radius: var(--radius-s); } .ptabs button { flex: 1 1 auto; padding: 0.6rem 0.7rem; border-radius: calc(var(--radius-s) - 2px); } }
.ppanel[hidden] { display: none; }
.ppanel .pricing-extra { margin-top: 0; }

.step-no { display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; margin-right: 0.5rem; border-radius: 50%; background: var(--white); color: #000; font-size: 0.75rem; font-weight: 700; vertical-align: 0.05em; font-variant-numeric: tabular-nums; }
.calc-group legend { display: flex; align-items: center; color: var(--white); font-size: var(--fs-sm); }
.aiq-field label { display: flex; align-items: center; color: var(--white); }

.qty-box { border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 1rem 1.1rem 1.1rem; background: rgba(0, 0, 0, 0.18); }
.qty-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.qty-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.05rem; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font: inherit; font-size: var(--fs-sm); font-weight: 600; padding: 0.45rem 0.75rem; border-radius: var(--radius-s); cursor: pointer; transition: border-color .15s, background-color .15s; }
.qty-chip small { font-size: 0.6875rem; font-weight: 500; color: var(--silver); }
.qty-chip:hover { border-color: var(--orange); }
.qty-chip.is-on { background: var(--white); color: #000; border-color: var(--white); }
.qty-chip.is-on small { color: #333; }
.qty-scale { display: flex; justify-content: space-between; align-items: baseline; margin: 1.1rem 0 0.35rem; font-size: var(--fs-xs); color: var(--silver); font-variant-numeric: tabular-nums; }
.qty-scale output { font-size: var(--fs-md, 1.125rem); font-weight: 700; color: var(--orange); }
.qty-box input[type="range"] { --fill: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--orange) var(--fill), var(--line-strong) var(--fill)); outline: none; margin: 0.4rem 0 0.2rem; }
.qty-box input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); cursor: pointer; }
.qty-box input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--orange); cursor: pointer; }
.qty-box input[type="range"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.qty-box .opt-hint { margin-top: 0.75rem; display: block; }

.calc-cond { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin: 0 0 0.75rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.05); font-size: var(--fs-xs); color: var(--silver); }
.calc-cond strong { color: var(--white); font-size: var(--fs-sm); text-align: right; word-break: keep-all; }
.calc-bar { margin: 1rem 0 0.25rem; }
.calc-bar-head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--silver); margin-bottom: 0.4rem; }
.calc-bar-head span:last-child { color: var(--orange); font-weight: 600; }
.calc-bar-track { position: relative; height: 8px; border-radius: 999px; background: var(--orange); overflow: hidden; }
.calc-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--white); border-radius: 999px; transition: width .25s; }
.calc-avg { margin: 0.35rem 0 0; text-align: right; font-size: var(--fs-xs); color: var(--silver); font-variant-numeric: tabular-nums; }
.calc-avg:empty { display: none; }

.price-matrix { margin-top: 2rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: rgba(0, 0, 0, 0.18); }
.price-matrix summary { list-style: none; cursor: pointer; display: grid; gap: 0.25rem; padding: 1.1rem 3rem 1.1rem 1.2rem; position: relative; }
.price-matrix summary::-webkit-details-marker { display: none; }
.price-matrix summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--orange); }
.price-matrix[open] summary::after { content: '−'; }
.pm-title { font-weight: 700; font-size: var(--fs-sm); }
.pm-hint { font-size: var(--fs-xs); color: var(--silver); }
.price-matrix .table-scroll { overflow-x: auto; padding: 0 1.2rem; }
.price-matrix .price-table { min-width: 560px; }
.price-matrix .price-table th small { font-weight: 500; color: var(--orange); }
.price-matrix .price-table td, .price-matrix .price-table thead th { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-matrix .price-table thead th:first-child { text-align: left; }
.price-matrix .fine-print-p { padding: 0 1.2rem 1.2rem; }

.help-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.6rem 1.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: rgba(255, 255, 255, 0.04); }
.help-title { font-size: var(--fs-md, 1.125rem); font-weight: 700; margin: 0 0 0.35rem; }
.help-text { font-size: var(--fs-sm); color: var(--silver); margin: 0; }
.help-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ==========================================================================
   UI UX Pro Max refresh (2026-11-15)
   Source of truth: design-system/frameform/MASTER.md
   Style: Motion-Driven, pure black + zinc surfaces, orange stays the only accent.
   Everything below only overrides tokens / adds states; no markup or JS hooks changed.
   To roll back: delete this block.
   ========================================================================== */
:root {
  /* deep blue retired → zinc near-black (names kept so every existing rule follows) */
  --blue-950: #070708;
  --blue-900: #0c0c0d;
  --blue-800: #18181b;
  --blue-600: #3f3f46;
  --silver: #b4b4bd;      /* 9.6:1 on #0c0c0d */
  --silver-dim: #9a9aa4;  /* 6.9:1 on #0c0c0d */
  --line: rgba(250, 250, 250, 0.09);
  --line-strong: rgba(250, 250, 250, 0.2);
  --surface-raised: #141416;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;
}

/* hero: neutral graded frame instead of blue wash; warm tally glow bottom-left */
.hero-frame {
  background:
    radial-gradient(90% 70% at 82% 12%, rgba(250, 250, 250, 0.07), transparent 60%),
    radial-gradient(60% 50% at 8% 100%, rgba(255, 138, 61, 0.09), transparent 70%),
    linear-gradient(180deg, #0b0b0c, #050505);
  box-shadow: inset 0 0 0 1px var(--line);
}
.hero-media::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.hero-title { font-weight: 300; }
.hero-meta .tally { box-shadow: 0 0 0 4px rgba(255, 138, 61, 0.18); animation: ff-tally 2.4s ease-in-out infinite; }
@keyframes ff-tally { 50% { opacity: 0.35; } }

/* sections: alternating bands read by hairlines, not by hue */
.section-blue, html.cine-stack .cine-sec.section-blue {
  background: var(--blue-900);
  box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line);
}
.section-title { font-weight: 300; letter-spacing: -0.005em; }
.section-title::after {
  content: ''; display: block; width: 2.5rem; height: 2px; margin-top: 1.1rem;
  background: var(--orange); border-radius: 2px;
}
.section-lead { color: var(--silver); }

/* buttons: 44px+ targets kept; clear hover / press / focus feedback */
.btn {
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 6px 24px -8px rgba(255, 138, 61, 0.6); }
.btn-ghost:hover { background: rgba(250, 250, 250, 0.05); }
.btn:active:not([disabled]) { transform: translateY(1px) scale(0.99); }
.nav-list a { transition: color var(--dur-fast) var(--ease-out); }
.nav-list a:hover { color: var(--white); }

/* service cards: raised surface, image-first, one consistent hover */
.choose-card {
  background: var(--surface-raised); border-color: var(--line);
  transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.choose-card:hover, .choose-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 138, 61, 0.35);
}
.choose-thumb { background: linear-gradient(135deg, #1a1a1d, #0c0c0d); }
.choose-go { display: inline-flex; align-items: center; gap: 0.35rem; transition: gap var(--dur-fast) var(--ease-out); }
.choose-card:hover .choose-go { gap: 0.6rem; }

/* portfolio: thumbnails get the same lift + a clearer play affordance */
.work-thumb { transition: border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.work-thumb img { transition: transform 600ms var(--ease-out), opacity var(--dur-med); }
.work-thumb:hover { transform: translateY(-3px); border-color: rgba(255, 138, 61, 0.45); }
.work-thumb:hover img { transform: scale(1.04); }
.work-play { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* FAQ / form: calmer fields on raised surface, orange focus */
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  background: #0a0a0b; border-color: var(--line-strong);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field input:not([type="checkbox"]):not([type="radio"]):hover, .field select:hover, .field textarea:hover { border-color: rgba(250, 250, 250, 0.34); }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.18); outline: none;
}
.field ::placeholder { color: #8a8a94; }
.inquiry { background: var(--surface-raised); border-color: var(--line); }

/* header: slightly deeper glass so content scrolling under it stays legible */
.site-header { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }

/* everything clickable says so */
a, button, summary, label.check, [role="tab"] { cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  .hero-meta .tally { animation: none; }
  .btn, .choose-card, .work-thumb, .work-thumb img, .choose-go { transition: none; }
  .choose-card:hover, .work-thumb:hover, .btn:active:not([disabled]) { transform: none; }
  .work-thumb:hover img { transform: none; }
}

/* ==========================================================================
   REDESIGN — readability & routing (2026-11-15b)
   Principles: every section opens the same way (scene number → title → one lead line → items),
   the home "Services" cards are the main router, short text blocks with icon/tag pairs,
   repeated obvious actions (header CTA + mobile action bar), quick jumps from the hero.
   Video slots for Higgsfield loops: js/media.js + docs/video-slots.md.
   No copy changed. To roll back: delete this block and the markup notes in index.html
   (backups/pre-redesign-2026-11-15/).
   ========================================================================== */
:root {
  --ink-lead: #e4e4e7;                 /* lead text: 15.9:1 on #000, 14.9:1 on #0c0c0d */
  --surface-card: #0f0f11;
  --section-y: clamp(4rem, 9vw, 7.5rem);
  --head-gap: clamp(2.25rem, 5vw, 3.75rem);
  --radius-l: 14px;
  --ab-h: 68px;                        /* mobile action bar height (without safe area) */
}
body { font-size: 1.0625rem; }        /* 17px body: easier Hangul reading; components keep their own sizes */

/* ---------- section heads: scene number → title → lead ---------- */
#main { counter-reset: scene; }
#main .hero, #main .section { counter-increment: scene; } /* hero = 01, same numbers as the cinema slate */
.section-head::before, .contact-aside::before, .about > .wrap::before {
  content: counter(scene, decimal-leading-zero);
  display: block; margin-bottom: 1.15rem; padding-left: 1.15rem;
  font-family: var(--font-display); font-variation-settings: 'wdth' 75;
  font-size: var(--fs-xs); line-height: 1.6; letter-spacing: 0.14em; color: var(--silver);
  font-variant-numeric: tabular-nums;
  background:
    radial-gradient(circle, var(--orange) 0 3.5px, transparent 4px) 0 50% / 8px 8px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) 3.4rem 50% / calc(100% - 3.4rem) 1px no-repeat;
}
.about > .wrap::before { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head { margin-bottom: var(--head-gap); }
.section-title { font-size: clamp(2.25rem, 6.4vw, 4.25rem); line-height: 1.02; }
.section-title::after { display: none; }
.section-lead {
  margin-top: 1rem; max-width: 36ch;
  color: var(--ink-lead); font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.7;
}
@media (min-width: 960px) {
  .wrap:not(.faq-layout) > .section-head {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    column-gap: clamp(2rem, 5vw, 5rem); align-items: end; max-width: none;
  }
  .wrap:not(.faq-layout) > .section-head::before { grid-column: 1 / -1; }
  .wrap:not(.faq-layout) > .section-head > .section-lead { margin-top: 0; padding-bottom: 0.4rem; max-width: 34ch; }
}

/* sub-sections and closing prompts read as quiet bands, not more text */
.section-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 1.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: rgba(250, 250, 250, 0.025);
}
.section-cta p { color: var(--ink-lead); font-size: var(--fs-md); font-weight: 600; }
.help-band { border-radius: var(--radius-l); border-color: var(--line); }
@media (max-width: 559px) {
  .section-cta, .help-band { padding: 1.25rem; }
  .section-cta .btn, .help-actions, .help-actions .btn { width: 100%; }
}

/* ---------- hero: brighter supporting text, video-ready overlay, quick jumps ---------- */
.hero-subtitle { color: #d4d4d8; }
.hero-media { z-index: 0; } /* own stacking layer: video + overlay always stay under the text */
.hero-intro { color: var(--ink-lead); }
.hero-media::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, transparent 38%);
}
@media (max-width: 719px) {
  /* text spans the full width on phones, so the overlay is even */
  .hero-media::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.72) 60%, rgba(0, 0, 0, 0.85) 100%); }
}
.hero-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; max-width: 40rem; }
.jump-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 44px; padding: 0 1rem 0 0.8rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.4);
  font-family: var(--font-display); font-variation-settings: 'wdth' 100;
  font-size: var(--fs-xs); letter-spacing: 0.06em; color: #d4d4d8; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.jump-link::before {
  content: ''; flex: none; width: 10px; height: 10px; background: var(--orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.jump-link:hover { color: var(--white); border-color: rgba(250, 250, 250, 0.45); background: rgba(250, 250, 250, 0.06); }
@media (max-width: 479px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .jump-link { padding: 0 0.85rem 0 0.7rem; }
}

/* ---------- video slots (js/media.js) ---------- */
.choose-thumb { position: relative; }
.slot-video, .slot-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot-video { transition: opacity 800ms var(--ease-out); }
.hero-media > .slot-video, .hero-media > .slot-poster { opacity: 0.6; }
.has-video:not(.is-playing) > .slot-video:not([poster]) { opacity: 0; } /* old look stays until the loop actually plays */

/* ---------- home: service cards are the main router ---------- */
#choose .choose-cards { margin-top: 0; gap: 1rem; }
.choose-card {
  position: relative; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-card);
}
.choose-card:hover, .choose-card:focus-visible {
  transform: none; border-color: rgba(255, 138, 61, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 138, 61, 0.35), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
}
.choose-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.choose-thumb { aspect-ratio: 16 / 9; }
.choose-thumb::after { /* fades the picture into the card body */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(15, 15, 17, 0.9) 100%);
}
.choose-card:hover .choose-thumb img { transform: none; }
.choose-body { position: relative; z-index: 2; gap: 0.55rem; padding: 0 1.35rem 1.35rem; }
.choose-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin: -24px 0 0.5rem;
  border-radius: 12px; border: 1px solid rgba(255, 138, 61, 0.45); background: #1a120c; color: var(--orange);
}
.choose-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.choose-name { font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.16em; color: var(--silver); font-variation-settings: 'wdth' 110; }
.choose-title { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--white); }
.choose-intro { flex: none; font-size: var(--fs-sm); line-height: 1.7; color: var(--silver); }
.choose-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.35rem; }
.choose-tags span { font-size: 0.8125rem; line-height: 1.5; padding: 0.15rem 0.65rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-lead); }
.choose-go {
  display: flex; align-items: center; min-height: 48px; margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--line); font-size: var(--fs-sm);
}
.choose-card:hover .choose-go { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 600px) and (max-width: 899px) {
  /* tablets: picture left, text right, so the three routes stay on one screen */
  .choose-card { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); }
  .choose-thumb { aspect-ratio: auto; min-height: 100%; }
  .choose-thumb::after { background: linear-gradient(90deg, transparent 55%, rgba(15, 15, 17, 0.9) 100%); }
  .choose-body { padding: 1.35rem; }
  .choose-icon { margin-top: 0; }
}

/* ---------- pricing: icon + label pairs, softer cards ---------- */
.plan, .sub-plan, .bulk-deal, .calc, .inquiry, .price-matrix { border-radius: var(--radius-l); }
.plan { background: var(--surface-card); }
.plan-specs dt { display: flex; align-items: center; gap: 0.5rem; }
.plan-specs dt::before {
  content: ''; flex: none; width: 16px; height: 16px; background: var(--orange);
  -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat;
}
.plan-specs dt:nth-of-type(1) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.plan-specs dt:nth-of-type(2) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3'/%3E%3Cpath d='M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E"); }
.plan-specs dt:nth-of-type(3) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M7.5 5v14M16.5 5v14M3 12h4.5M16.5 12H21'/%3E%3C/svg%3E"); }
.plan-specs dt:nth-of-type(4) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.plan-for { color: var(--ink-lead); }

/* ---------- FAQ: bigger tap rows, refund terms as a framed block ---------- */
.faq-item summary { min-height: 56px; }
.faq-item summary:hover { color: var(--white); }
.faq-item p { color: var(--ink-lead); line-height: 1.75; }
.refund { padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-card); }
.refund .policy-list li { color: var(--ink-lead); }

/* ---------- mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 959px) {
  body { padding-bottom: calc(var(--ab-h) + env(safe-area-inset-bottom)); }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 52;
    display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 0.5rem; align-items: stretch;
    min-height: calc(var(--ab-h) + env(safe-area-inset-bottom));
    padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    background: rgba(9, 9, 11, 0.92); border-top: 1px solid var(--line-strong);
    backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-med);
  }
  .action-bar.ab-two { grid-template-columns: 1fr 1.6fr; }
  html.ab-on .action-bar { transform: none; visibility: visible; transition: transform var(--dur-med) var(--ease-out), visibility 0s; }
  html.ffc-open .action-bar { visibility: hidden; }
  .ab-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.15rem;
    min-height: 52px; padding: 0.25rem 0.4rem; border-radius: 10px;
    color: var(--ink-lead); text-decoration: none; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; text-align: center;
  }
  .ab-item:hover { background: rgba(250, 250, 250, 0.06); }
  .ab-item:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .ab-icon { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .ab-icon .ab-fill { fill: currentColor; stroke: none; }
  .ab-primary { flex-direction: row; gap: 0.45rem; background: var(--orange); color: var(--black); font-size: var(--fs-sm); font-weight: 700; }
  .ab-primary:hover { background: var(--orange-hover); }
  .ab-primary .cta-more { margin-right: 0.25em; }
  /* chat button and scene slate step up above the bar */
  .ffc-fab, .slate { transition: bottom var(--dur-med) var(--ease-out), opacity 600ms ease, transform 600ms ease, background-color .15s; }
  html.ab-on .ffc-fab, html.ab-on .slate { bottom: calc(var(--ab-h) + 0.75rem + env(safe-area-inset-bottom)); }
  html.ab-on .ffc-panel { bottom: calc(var(--ab-h) + 4.5rem + env(safe-area-inset-bottom)); height: min(540px, calc(100vh - 16rem)); }
}
@media (max-width: 640px) { html.ab-on .ffc-panel { bottom: 0; height: 100dvh; } }
@media (max-width: 520px) {
  html.ab-on .ffc-fab { bottom: calc(var(--ab-h) + 0.75rem + 2.6rem + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .action-bar, .jump-link, .slot-video { transition: none !important; }
}
@media print { .action-bar, .hero-jump { display: none !important; } }
/* category pages with exactly three packages (/editing/): three equal columns instead of 3+3 / 2 */
@media (min-width: 1200px) {
  .plans:has(> .plan:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
  .plans:has(> .plan:nth-child(3):last-child) > .plan { grid-column: auto; }
}
/* category hero titles are Korean phrases: let them wrap between words (the home logo title stays on one line) */
.hero-cat .hero-title { white-space: normal; text-wrap: balance; }

/* mobile: the scene slate covered card text above the action bar, so hide it (readability) */
@media (max-width: 959px) { .slate { display: none; } }

/* ==========================================================================
   HOME HOOK (2026-11-15c) — js/hook.js, copy in config.hook
   hero promise + contact-sheet backdrop · Sound familiar? cards · Selected Work reel ·
   Why FRAMEFORM · final call to action. All of it is hidden on category pages.
   Roll back: delete this block, js/hook.js, the 4 hook sections in index.html, config.hook.
   ========================================================================== */

/* ---------- hero: one-line promise ---------- */
.hero-promise {
  margin-top: 1.5rem; max-width: 38ch; padding-left: 1rem; border-left: 3px solid var(--orange);
  font-size: clamp(1.125rem, 2.1vw, 1.5rem); font-weight: 700; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--white); text-wrap: balance;
}
.hero-promise:not([hidden]) + .hero-actions { margin-top: 1.75rem; }

/* contact sheet of real work behind the hero until a showreel loop is added (media.js hero-home) */
.hero-sheet {
  position: absolute; inset: -10% -5%; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  opacity: 0.5; transform: rotate(-4deg); transition: opacity 800ms var(--ease-out);
}
.sheet-row { display: flex; gap: 14px; width: max-content; animation: ff-sheet-pan 120s linear infinite; }
.sheet-row + .sheet-row { animation-direction: reverse; margin-left: -12rem; }
.sheet-frame {
  flex: none; height: clamp(110px, 21vh, 210px); aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  background: #111; filter: grayscale(0.4) contrast(1.05);
}
.sheet-frame.is-vertical { aspect-ratio: 4 / 5; }
.hero-media .sheet-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero-media.is-playing .hero-sheet { opacity: 0; }
@keyframes ff-sheet-pan { to { transform: translateX(-50%); } }

/* ---------- Sound familiar? (swipe row under 1100px, five columns above) ---------- */
.pains {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(-1 * var(--gutter)); padding: 0.35rem var(--gutter) 1.1rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.pains > li { flex: 0 0 min(80vw, 19.5rem); scroll-snap-align: start; }
@media (min-width: 1100px) {
  .pains { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
}
.pain {
  position: relative; display: flex; flex-direction: column; gap: 0.9rem; height: 100%;
  padding: 1.35rem 1.25rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--surface-raised); color: inherit; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.pain:hover { border-color: rgba(255, 138, 61, 0.7); background: #18120e; }
.pain:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pain-tag {
  align-self: flex-start; padding: 0.2rem 0.7rem; border: 1px solid rgba(255, 138, 61, 0.5); border-radius: 999px;
  background: rgba(255, 138, 61, 0.08); color: var(--orange); font-size: 0.8125rem; font-weight: 700; line-height: 1.5;
}
.pain-quote { position: relative; flex: 1; padding-top: 1.5rem; font-size: 1.0625rem; font-weight: 700; line-height: 1.55; color: var(--white); }
.pain-quote::before {
  content: '\201C'; position: absolute; top: -0.4rem; left: -0.15rem;
  font-family: var(--font-display); font-size: 2.75rem; line-height: 1; color: rgba(250, 250, 250, 0.28);
}
.pain-solve { display: block; padding-top: 0.9rem; border-top: 1px dashed var(--line-strong); font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-lead); }
.pain-solve-label { display: block; margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--orange); }
.pain-go {
  align-self: flex-end; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--black); transition: transform var(--dur-fast) var(--ease-out);
}
.pain-go svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pain:hover .pain-go { transform: translateX(3px); }

/* ---------- Selected Work: slow reel of real thumbnails ---------- */
.hook-reel { --rh: clamp(150px, 15vw, 200px); overflow-x: clip; }
.hook-reel .section-head { margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.reel {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reel-track { display: flex; gap: 1rem; width: max-content; padding-block: 0.5rem; } /* 이동은 js/hook.js (rAF translateX) */
.reel-item a { display: block; width: calc(var(--rh) * 16 / 9); color: inherit; text-decoration: none; border-radius: 10px; }
.reel-item.is-vertical a { width: calc(var(--rh) * 0.8); }
.reel-item a:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.reel-thumb { display: block; height: var(--rh); overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #111; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.reel-item a:hover .reel-thumb { border-color: rgba(255, 138, 61, 0.6); }
.reel-item a:hover .reel-thumb img { transform: scale(1.04); }
.reel-cap { display: grid; gap: 0.15rem; padding-top: 0.7rem; }
.reel-title {
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; color: var(--white);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.reel-open { font-size: 0.8125rem; font-weight: 600; color: var(--orange); }
.reel.is-static { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
.reel.is-static .reel-track { padding-inline: var(--gutter); }
.reel.is-static .reel-item { scroll-snap-align: start; }
.reel.is-static .reel-item[aria-hidden="true"] { display: none; }
/* 화살표·멈춤 버튼 스타일은 파일 끝 'Selected Work: arrows' 블록 */

/* ---------- Why FRAMEFORM ---------- */
.why-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .why-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-item {
  display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem 1.35rem 1.6rem;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-card);
}
.why-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.4rem; border-radius: 14px;
  border: 1px solid rgba(255, 138, 61, 0.4); background: rgba(255, 138, 61, 0.1); color: var(--orange);
}
.why-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-label { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.why-text { font-size: var(--fs-sm); line-height: 1.7; color: var(--silver); }
@media (max-width: 639px) {
  .why-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; padding: 1.25rem; }
  .why-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
}

/* ---------- final call to action ---------- */
.hook-cta { padding-block: clamp(3rem, 7vw, 5.5rem); }
.cta-band {
  position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 138, 61, 0.45); border-radius: 20px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 138, 61, 0.16), transparent 55%), var(--surface-raised);
}
.cta-band::before, .cta-band::after { /* viewfinder corners, echoing the hero frame */
  content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid rgba(250, 250, 250, 0.35); pointer-events: none;
}
.cta-band::before { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.cta-band::after { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
.cta-title { max-width: 22ch; font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.cta-text { max-width: 44ch; margin-top: 0.9rem; font-size: var(--fs-md); line-height: 1.7; color: var(--ink-lead); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 559px) { .cta-actions .btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
  .sheet-row, .reel-track { animation: none !important; }
  .pain, .pain-go, .reel-thumb img { transition: none; }
  .pain:hover .pain-go, .reel-item a:hover .reel-thumb img { transform: none; }
}
@media print { .hero-sheet, .reel-controls { display: none !important; } }
@media (min-width: 960px) {
  /* desktop: message left, actions right, so the band reads as one line of intent */
  .cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3rem; align-items: center; }
  .cta-title, .cta-text { grid-column: 1; }
  .cta-actions { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; flex-direction: column; align-items: stretch; min-width: 15rem; }
}

/* ==========================================================================
   QUOTE CALCULATOR PAGE (/calculator/, 2026-11-15d) + free-consult notes
   html.is-calc-page · hero = category picker · then the shared calculator / AI quote.
   ========================================================================== */
.nav-list a[aria-current="page"] { color: var(--orange); }
@media (min-width: 960px) { .nav-list a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -1px 0 var(--orange); } }

/* compact hero: the calculator sits right under it */
.hero-calc .hero-frame { min-height: 0; }
.hero-calc .hero-content { padding-block: clamp(3rem, 7vw, 4.5rem) clamp(3.5rem, 7vw, 5rem); }
.hero-calc .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
html.cine-stack .hero-calc::after { height: 40svh; } /* shorter zoom track than the home hero */
.is-calc-page #pricing { padding-top: clamp(2rem, 5vw, 3.5rem); }
.is-calc-page #pricing .calc, .is-calc-page .ai-studio { margin-top: 0; padding-top: 0; border-top: 0; }
.is-calc-page #pricing .calc { padding-top: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--line-strong); }   /* 박스 위 테두리·여백 복구: 제목이 박스에 붙지 않게 */
.is-calc-page #pricing .ai-studio .ai-quote { margin-top: 2rem; } /* same gap as .price-matrix above it */

.calc-cats { margin-top: 1.75rem; }
.calc-pick { font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.01em; }
.calc-pick-hint { margin-top: 0.4rem; color: var(--ink-lead); font-size: var(--fs-sm); }
.calc-cat-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }
.calc-cat {
  display: flex; align-items: center; gap: 0.85rem; min-height: 56px; height: 100%;
  padding: 0.85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-l);
  background: rgba(0, 0, 0, 0.45); color: inherit; text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.calc-cat:hover { border-color: rgba(255, 138, 61, 0.7); background: rgba(255, 138, 61, 0.06); }
.calc-cat:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.calc-cat.is-on { border-color: var(--orange); background: rgba(255, 138, 61, 0.12); box-shadow: inset 0 0 0 1px var(--orange); }
.calc-cat-icon {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid rgba(255, 138, 61, 0.45); background: #1a120c; color: var(--orange);
}
.calc-cat-icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.calc-cat-text { display: grid; gap: 0.1rem; min-width: 0; }
.calc-cat-label { font-weight: 800; font-size: var(--fs-md); line-height: 1.3; }
.calc-cat-sub { font-size: var(--fs-xs); color: var(--silver); line-height: 1.45; }
.calc-cat-intro { margin-top: 0.35rem; font-size: var(--fs-sm); line-height: 1.65; color: var(--ink-lead); }
/* picked: segmented tabs in one row */
.calc-cat-list.is-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-width: 46rem; }
.calc-cat-list.is-tabs .calc-cat { justify-content: center; text-align: center; padding: 0.6rem 0.5rem; }
.calc-cat-list.is-tabs .calc-cat-icon { display: none; }
@media (max-width: 479px) { .calc-cat-list.is-tabs .calc-cat-sub { display: none; } }
/* before picking: three large choices */
.calc-cat-list.is-cards .calc-cat { align-items: flex-start; padding: 1.15rem 1.15rem 1.25rem; }
@media (min-width: 760px) { .calc-cat-list.is-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calc-free-note, .calc-free, .cta-free {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); font-weight: 700; color: var(--success);
}
.calc-free-note::before, .calc-free::before, .cta-free::before {
  content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(143, 224, 176, 0.18);
}
.calc-free-note { margin-top: 1.1rem; }
.calc-free { display: flex; justify-content: center; margin-top: 0.75rem; font-size: var(--fs-xs); }
.cta-free { margin-bottom: 0.85rem; }
@media (min-width: 960px) { .cta-free { grid-column: 1; } }

/* Why FRAMEFORM: link to the calculator */
.why-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; margin-top: auto;
  color: var(--orange); font-size: var(--fs-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 4px;
}
.why-link::after { content: ''; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
@media (max-width: 639px) { .why-link { grid-column: 2; } }
@media (min-width: 960px) { .cta-actions { grid-row: 1 / span 3; } }
/* 960–1199px: the nav gained "견적 계산기 / Calculator"; keep the header CTA fully visible */
@media (min-width: 960px) and (max-width: 1199px) {
  .header-inner { gap: 0.6rem; }
  .logo { letter-spacing: 0.1em; font-size: 0.95rem; }
  .site-nav { margin-right: 0.4rem; }
  .nav-list { gap: 0.65rem; }
  .header-cta { padding-inline: 0.75rem; }
  .header-cta .cta-more { display: none; }
  .lang-btn { min-width: 24px; padding: 0 0.15rem; }
}
@media (min-width: 960px) and (max-width: 1099px) { .nav-list { gap: 0.5rem; } }
@media (min-width: 1200px) and (max-width: 1499px) {
  .site-nav { margin-right: 0.75rem; }
  .nav-list { gap: 0.95rem; }
  .logo { letter-spacing: 0.14em; }
  .header-inner { gap: 0.75rem; }
}

/* ==========================================================================
   THEME A — trendy pass (2026-11-15e)
   Scoped to body.site (index.html and the pages generated from it), so admin / account pages that also
   load styles.css keep their look. Shared tokens (--orange, --white …) are unchanged.
   Signature: near-black #07070a · gradient #ffb36b → #ff8a3d → #ff5e6c with a coral glow ·
   glass cards (22px) · pill buttons and tags · 3D gradient icon tiles · soft light orbs.
   Text on the gradient is #140800: 6.7:1 against the coral end (#ff5e6c), 11:1 against #ffb36b.
   Roll back: delete this block (plus the INTRO block below) and remove class="site" from <body>.
   ========================================================================== */
body.site {
  --bg: #07070a;
  --grad: linear-gradient(135deg, #ffb36b 0%, #ff8a3d 45%, #ff5e6c 100%);
  --grad-h: linear-gradient(90deg, #ffb36b, #ff8a3d 50%, #ff5e6c);
  --on-grad: #140800;
  --glow: 0 10px 36px -10px rgba(255, 110, 80, 0.6);
  --glow-strong: 0 16px 44px -10px rgba(255, 110, 80, 0.75);
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-hover: linear-gradient(160deg, rgba(255, 138, 61, 0.14) 0%, rgba(255, 255, 255, 0.03) 100%);
  --glass-line: rgba(255, 255, 255, 0.12);
  --radius-xl: 22px;
  --tile-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(140, 30, 10, 0.28), 0 10px 24px -8px rgba(255, 94, 108, 0.6);
  background: var(--bg);
}
body.site .hero, html.cine-stack body.site .cine-sec:not(.hero) { background: var(--bg); }
body.site .section-blue, html.cine-stack body.site .cine-sec.section-blue { background: #0b0b0f; }
body.site .site-header { background: rgba(7, 7, 10, 0.68); border-bottom-color: rgba(255, 255, 255, 0.07); }

/* ---------- buttons: gradient pills ---------- */
body.site .btn { border-radius: 999px; }
body.site .btn-primary { background: var(--grad); color: var(--on-grad); border-color: transparent; box-shadow: var(--glow); }
body.site .btn-primary:hover { background: var(--grad); filter: brightness(1.06) saturate(1.05); box-shadow: var(--glow-strong); }
body.site .btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.22); }
body.site .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.42); }
body.site .ab-primary { background: var(--grad); color: var(--on-grad); box-shadow: var(--glow); border-radius: 999px; }
body.site .ab-primary:hover { background: var(--grad); filter: brightness(1.06); }
body.site .ab-item { border-radius: 14px; }
body.site .ptabs button[aria-selected="true"], body.site .qty-chip.is-on, body.site .filter[aria-pressed="true"] {
  background: var(--grad); color: var(--on-grad); border-color: transparent; box-shadow: var(--glow);
}
body.site .qty-chip.is-on small { color: rgba(20, 8, 0, 0.75); }
body.site .qty-chip { border-radius: 14px; }
body.site .step-no { background: var(--grad); color: var(--on-grad); box-shadow: 0 4px 12px -4px rgba(255, 94, 108, 0.7); }
body.site .qty-box input[type="range"] { background: linear-gradient(90deg, #ffb36b 0, #ff5e6c var(--fill), var(--line-strong) var(--fill)); }
body.site .pain-go { background: var(--grad); color: var(--on-grad); box-shadow: var(--glow); }
body.site .seg-item label, body.site .opt label, body.site .qty-box, body.site .calc-cond { border-radius: 14px; }
body.site .field input:not([type="checkbox"]):not([type="radio"]), body.site .field select, body.site .field textarea { border-radius: 14px; }
body.site .checks .check { border-radius: 999px; }
body.site .ffc-fab { background: var(--grad); color: var(--on-grad); box-shadow: var(--glow-strong); }
body.site .ffc-fab-icon::after { background: #ff8a3d; }
body.site .ffc-me .ffc-bubble { background: var(--grad); color: var(--on-grad); }
body.site .ffc-panel { background: #0d0d11; }
@media (min-width: 641px) { body.site .ffc-panel { border-radius: var(--radius-xl); border-color: var(--glass-line); } }

/* ---------- glass cards ---------- */
body.site :is(.choose-card, .pain, .why-item, .plan, .calc, .inquiry, .refund, .help-band, .section-cta, .calc-cat, .bulk-deal, .price-matrix, .sub-plan, .subs-group, .calc-summary) {
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-xl);
}
body.site :is(.choose-card, .pain, .why-item, .calc-cat) { -webkit-backdrop-filter: blur(16px) saturate(130%); backdrop-filter: blur(16px) saturate(130%); }
body.site .pain:hover, body.site .calc-cat:hover { background: var(--glass-hover); border-color: rgba(255, 138, 61, 0.6); }
body.site .choose-card:hover, body.site .choose-card:focus-visible { border-color: rgba(255, 138, 61, 0.65); }
body.site .plan.is-selected, body.site .calc-cat.is-on { border-color: var(--orange); }
body.site .calc-cat.is-on { background: linear-gradient(160deg, rgba(255, 138, 61, 0.2), rgba(255, 94, 108, 0.06)); }
body.site .enterprise-deal { border-color: rgba(255, 138, 61, 0.55); background: linear-gradient(140deg, rgba(255, 138, 61, 0.12), rgba(255, 255, 255, 0.02)); }
body.site .choose-thumb::after { background: linear-gradient(180deg, transparent 45%, rgba(12, 12, 16, 0.92) 100%); }
body.site .cta-band { border-radius: 28px; border-color: rgba(255, 138, 61, 0.45); background: radial-gradient(120% 160% at 100% 0%, rgba(255, 110, 80, 0.26), transparent 55%), radial-gradient(80% 120% at 0% 100%, rgba(255, 179, 107, 0.1), transparent 60%), rgba(255, 255, 255, 0.03); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
body.site .hero-frame { border-radius: 28px; background: radial-gradient(70% 60% at 85% 10%, rgba(255, 110, 80, 0.1), transparent 60%), #09090c; box-shadow: inset 0 0 0 1px var(--glass-line); }

/* ---------- 3D gradient icon tiles (dark line icon inside) ---------- */
body.site :is(.choose-icon, .why-icon, .calc-cat-icon), .ico-tile {
  display: grid; place-items: center; flex: none;
  background: var(--grad); color: #1a0a00; border: 0; border-radius: 14px; box-shadow: var(--tile-shadow);
}
.ico-tile { width: 44px; height: 44px; }
.ico-tile-sm { width: 36px; height: 36px; border-radius: 11px; }
body.site :is(.choose-icon, .why-icon, .calc-cat-icon, .ico-tile) svg { fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
body.site .plan-specs dt::before {
  width: 22px; height: 22px; border-radius: 7px; -webkit-mask: none; mask: none;
  background: var(--ic) center / 13px 13px no-repeat, var(--grad);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.55), 0 4px 10px -4px rgba(255, 94, 108, 0.65);
}
.pain-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- light orbs ---------- */
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-1 { width: 700px; height: 700px; right: -180px; top: -200px; background: radial-gradient(circle, rgba(255, 138, 61, 0.55) 0%, rgba(255, 77, 109, 0.32) 38%, transparent 68%); }
.orb-2 { width: 520px; height: 520px; left: 22%; bottom: -300px; background: radial-gradient(circle, rgba(255, 138, 61, 0.18) 0%, transparent 65%); }
@media (max-width: 719px) {
  .orb-1 { width: 420px; height: 420px; right: -190px; top: -150px; opacity: 0.75; }
  .orb-2 { width: 360px; height: 360px; left: -60px; bottom: -200px; }
}
body.site :is(#choose, #concerns, #why, #start) { isolation: isolate; overflow-x: clip; }
html:not(.cine-stack) body.site :is(#choose, #concerns, #why, #start) { position: relative; }
body.site :is(#choose, #concerns, #why, #start)::before {
  content: ''; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; pointer-events: none;
  top: -160px; right: -220px; background: radial-gradient(circle, rgba(255, 138, 61, 0.16) 0%, rgba(255, 94, 108, 0.07) 40%, transparent 68%);
}
body.site #why::before { right: auto; left: -240px; }
body.site #start::before { right: auto; left: 50%; top: -60px; transform: translateX(-50%); }
@media (max-width: 719px) { body.site :is(#choose, #concerns, #why, #start)::before { width: 380px; height: 380px; right: -200px; top: -120px; } }

/* ---------- hero: badge · gradient wordmark · big hook line ---------- */
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; padding: 0.35rem 0.95rem 0.35rem 0.8rem;
  border: 1px solid rgba(255, 138, 61, 0.42); border-radius: 999px; background: rgba(255, 138, 61, 0.12);
  color: #ffc49c; font-size: var(--fs-xs); font-weight: 700; line-height: 1.5;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad, #ff8a3d); box-shadow: 0 0 10px rgba(255, 110, 80, 0.8); }
body.site .hero:not(.hero-cat) .hero-title {
  display: inline-block; font-weight: 700; font-size: min(10.2cqi, 9rem);
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 56%, #ffb36b 76%, #ff5e6c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.has-hook body.site .hero:not(.hero-cat) .hero-intro { display: none; } /* the hook sub line carries it on home */
body.site .hero-promise {
  max-width: 22ch; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding-left: 0; border-left: 0;
  font-family: var(--font-body); font-size: clamp(1.875rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.035em;
  color: #fff; text-wrap: balance;
}
.hero-hook-sub { max-width: 42ch; margin-top: 0.9rem; font-size: clamp(1rem, 1.5vw, 1.1875rem); line-height: 1.65; color: var(--ink-lead); text-wrap: pretty; }
.hero-hook-sub:not([hidden]) + .hero-actions { margin-top: 1.75rem; }

/* section lead in two parts (concerns) */
.lead-strong { display: block; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 800; line-height: 1.35; letter-spacing: -0.02em; color: #fff; }
.lead-sub { display: block; margin-top: 0.35rem; color: var(--ink-lead); }
body.site .cta-text:empty, body.site .cta-text[hidden] { display: none; }
@media (min-width: 960px) {
  body.site .cta-band { grid-template-columns: minmax(0, 1fr) auto; }
  body.site .cta-actions { grid-row: 1 / span 3; }
}

/* ==========================================================================
   INTRO — first visit "render complete → delivered" (js/intro.js), ~2.3s, transform/opacity only
   ========================================================================== */
html.intro-pending body::before { content: ''; position: fixed; inset: 0; z-index: 199; background: #07070a; }
html.intro-on { overflow: hidden; }
.ff-intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer; color: #fff; font-family: var(--font-display); }
.ffi-half { position: absolute; left: 0; right: 0; height: 50.5%; transition: transform 620ms cubic-bezier(0.7, 0, 0.2, 1); will-change: transform; }
.ffi-top { top: 0; background: radial-gradient(80% 130% at 88% 0%, rgba(255, 110, 80, 0.3), transparent 60%), #07070a; }
.ffi-bottom { bottom: 0; background: radial-gradient(70% 130% at 12% 100%, rgba(255, 138, 61, 0.16), transparent 60%), #07070a; }
.ff-intro.is-open .ffi-top { transform: translateY(-101%); }
.ff-intro.is-open .ffi-bottom { transform: translateY(101%); }
.ff-intro.is-open .ffi-stage, .ff-intro.is-open .ffi-skip, .ff-intro.is-open .ffi-video { opacity: 0; transition: opacity 200ms; }
.ff-intro.is-fast .ffi-half { transition-duration: 340ms; }
.ffi-stage { position: relative; z-index: 1; width: min(560px, 88vw); height: 370px; }
.ffi-editor {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px 14px 16px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms;
}
.ffi-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 11px; color: #a1a1aa; }
.ffi-bar span { width: 8px; height: 8px; border-radius: 50%; background: #3f3f46; }
.ffi-bar span:first-child { background: #ff5e6c; }
.ffi-bar b { margin-left: 8px; font-weight: 500; letter-spacing: 0.04em; }
.ffi-tracks { position: relative; display: grid; gap: 6px; padding-block: 4px; overflow: hidden; }
.ffi-track { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; }
.ffi-track i { font-style: normal; font-size: 10px; color: #8a8a94; letter-spacing: 0.06em; }
.ffi-track > div { position: relative; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.ffi-clip { position: absolute; top: 2px; bottom: 2px; border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1); }
.ffi-track:nth-child(2) .ffi-clip { transition-delay: 60ms; }
.ffi-track:nth-child(3) .ffi-clip { transition-delay: 120ms; }
.is-run .ffi-clip { transform: none; }
.c-a { background: linear-gradient(90deg, #ffb36b, #ff8a3d); }
.c-b { background: linear-gradient(90deg, #ff8a3d, #ff5e6c); }
.c-c { background: #3f3f46; }
.c-w { background: repeating-linear-gradient(90deg, rgba(255, 179, 107, 0.75) 0 2px, transparent 2px 4px); }
.ffi-playhead { position: absolute; top: 0; bottom: 0; left: 34px; right: 0; transform: translateX(-100%); transition: transform 1100ms linear; pointer-events: none; }
.ffi-playhead::after { content: ''; position: absolute; top: 0; bottom: 0; right: -1px; width: 2px; background: #fff; box-shadow: 0 0 12px 2px rgba(255, 138, 61, 0.85); }
.is-run .ffi-playhead { transform: none; }
.ffi-render { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 14px; font-size: 11px; letter-spacing: 0.08em; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.ffi-pct { min-width: 3.2em; color: #fff; font-weight: 600; }
.ffi-progress { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.ffi-fill { display: block; height: 100%; background: linear-gradient(90deg, #ffb36b, #ff8a3d, #ff5e6c); transform: scaleX(0); transform-origin: left; transition: transform 1100ms cubic-bezier(0.5, 1, 0.89, 1); }
.is-run .ffi-fill { transform: none; }
.ffi-done {
  position: absolute; left: 50%; top: calc(100% + 18px); display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity 240ms, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-done .ffi-done { opacity: 1; transform: translate(-50%, 0); }
.ffi-check { position: relative; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, #ffb36b, #ff5e6c); box-shadow: 0 0 14px rgba(255, 110, 80, 0.8); }
.ffi-check::after { content: ''; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid #140800; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ffi-frame {
  position: absolute; z-index: 1; left: 50%; top: 52px; width: 150px; height: 84px; margin-left: -75px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: linear-gradient(135deg, #3a1d12 0%, #ff8a3d 120%);
  box-shadow: 0 18px 40px -12px rgba(255, 110, 80, 0.7); opacity: 0; transform: scale(0.6);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms;
}
.ffi-play { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.is-done .ffi-frame { opacity: 1; transform: none; }
.is-pack .ffi-editor { opacity: 0; transform: translateY(-16px) scale(0.94); }
.is-pack .ffi-done { opacity: 0; }
.is-pack .ffi-frame { transform: translateY(172px) scale(0.72); transition: transform 420ms cubic-bezier(0.55, 0, 0.8, 0.4); }
.is-closed .ffi-frame { opacity: 0; transition: opacity 60ms; }
.ffi-box {
  position: absolute; z-index: 2; left: 50%; top: 205px; width: 170px; height: 118px; margin-left: -85px; border-radius: 8px 8px 14px 14px;
  background: linear-gradient(160deg, #ffb36b 0%, #ff8a3d 50%, #e0563e 100%);
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.45), inset 0 -6px 14px rgba(120, 30, 10, 0.3), 0 24px 44px -16px rgba(255, 94, 108, 0.75);
  opacity: 0; transform: translateY(26px) scale(0.9); transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms;
}
.ffi-tape { position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; background: rgba(20, 8, 0, 0.16); }
.ffi-lid { position: absolute; top: -3px; width: 50%; height: 12px; border-radius: 3px; background: #f3803f; box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4); transition: transform 280ms cubic-bezier(0.55, 0, 0.6, 1); }
.ffi-lid-l { left: 0; transform-origin: 0 50%; transform: rotate(-118deg); }
.ffi-lid-r { right: 0; transform-origin: 100% 50%; transform: rotate(118deg); }
.is-pack .ffi-box { opacity: 1; transform: none; }
.is-closed .ffi-lid { transform: none; }
.ffi-label {
  position: absolute; left: 0; right: 0; top: 342px; display: flex; justify-content: center; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: 0.01em;
  opacity: 0; transform: translateY(6px); transition: opacity 240ms, transform 240ms;
}
.ffi-label::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #8fe0b0; box-shadow: 0 0 10px rgba(143, 224, 176, 0.8); }
.is-closed .ffi-label { opacity: 1; transform: none; }
.is-ship .ffi-box { transform: translateX(110vw) rotate(10deg); transition: transform 520ms cubic-bezier(0.6, 0, 0.9, 0.45); }
.is-ship .ffi-label { opacity: 0; }
.ffi-skip {
  position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  min-height: 44px; padding: 0 1.15rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 0.875rem var(--font-body); cursor: pointer;
}
.ffi-skip:hover { background: rgba(255, 255, 255, 0.12); }
.ffi-skip:focus-visible { outline: 2px solid #ff8a3d; outline-offset: 3px; }
.ffi-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms; }
@media (prefers-reduced-motion: reduce) { .ff-intro { display: none !important; } html.intro-on { overflow: auto; } }
/* concern card head: tile above the tag, same rhythm whatever the tag length */
.pain-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
/* the thumbnail contact sheet sits further back so the hook line reads first */
body.site .hero-sheet { opacity: 0.28; }
@media (max-width: 520px) { .hero-jump { padding-right: 64px; } } /* keep the floating chat button off the last chip */
@media (max-width: 959px) { .reel-controls { justify-content: flex-start; } } /* away from the floating chat button */

/* INTRO retime (~4s) + brand beat — overrides the timings above */
.ffi-clip { transition-duration: 700ms; }
.ffi-track:nth-child(2) .ffi-clip { transition-delay: 160ms; }
.ffi-track:nth-child(3) .ffi-clip { transition-delay: 320ms; }
.ffi-playhead { transition-duration: 1400ms; transition-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
.ffi-fill { transition-duration: 600ms; }
.is-run .ffi-fill { transform: scaleX(0); }
.is-render .ffi-fill { transform: none; }
.ffi-done { transition-duration: 300ms; }
.is-brand .ffi-box { opacity: 0; transform: translateY(18px) scale(0.86); transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms 120ms; }
.is-brand .ffi-lid-l { transform: rotate(-118deg); }
.is-brand .ffi-lid-r { transform: rotate(118deg); }
.is-brand .ffi-label { opacity: 0; transform: translateY(-6px); }
.ffi-brand {
  position: absolute; left: 50%; top: 50%; width: min(92vw, 860px); text-align: center; pointer-events: none;
  opacity: 0; transform: translate(-50%, -42%) scale(0.96); transition: opacity 420ms 120ms, transform 560ms 120ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-brand .ffi-brand { opacity: 1; transform: translate(-50%, -50%); }
.ffi-word {
  display: inline-block; font-family: var(--font-display); font-variation-settings: 'wdth' 125; font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 6rem); line-height: 1; letter-spacing: 0.04em; white-space: nowrap;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 56%, #ffb36b 76%, #ff5e6c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ffi-headline {
  margin-top: 1rem; font-family: var(--font-body); font-size: clamp(1.25rem, 3.2vw, 2rem); font-weight: 800;
  line-height: 1.3; letter-spacing: -0.03em; color: #fff; text-wrap: balance;
}
.ffi-word { font-size: clamp(2.2rem, 9.2vw, 6rem); } /* fits 360–390px phones */

/* ==========================================================================
   INTRO — cinematic variant (.ff-intro.is-cine, ?intro=cine or config.hook.intro.style = 'cine'), ~3.9s
   transform / opacity only. Letterbox bars live inside the two halves, so "bars open" = the halves part.
   ========================================================================== */
.ff-intro.is-cine .ffi-half { background: #08080b; }
.ffx-bar { position: absolute; left: 0; right: 0; height: 12.8%; background: #000; transform: scaleY(0); transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
.ffi-top .ffx-bar { top: 0; height: 25.6%; transform-origin: top; }      /* half of the screen → 2× the 12.8% letterbox */
.ffi-bottom .ffx-bar { bottom: 0; height: 25.6%; transform-origin: bottom; }
@media (max-width: 719px) { .ffi-top .ffx-bar, .ffi-bottom .ffx-bar { height: 40%; } }
.is-cine.is-run .ffx-bar { transform: none; }
.ffx-stage { position: absolute; inset: 0; width: auto; height: auto; animation: ffx-weave 0.42s steps(3) infinite; }
@keyframes ffx-weave { 0% { transform: translate(0, 0); } 33% { transform: translate(0.6px, -0.5px); } 66% { transform: translate(-0.5px, 0.7px); } 100% { transform: translate(0, 0); } }
.ffx-grain {
  position: absolute; inset: -50%; opacity: 0; transition: opacity 600ms;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px; animation: cine-grain 0.9s steps(6) infinite;
}
.is-cine.is-run .ffx-grain { opacity: 0.07; }
.ffx-slate {
  position: absolute; left: max(1.25rem, 5vw); top: calc(12.8% + 1rem); display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-variation-settings: 'wdth' 75; font-size: 0.75rem; letter-spacing: 0.12em; color: #b4b4bd;
  font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 500ms 200ms;
}
@media (max-width: 719px) { .ffx-slate { top: calc(20% + 0.75rem); } }
.ffx-tally { width: 7px; height: 7px; border-radius: 50%; background: #ff8a3d; box-shadow: 0 0 8px rgba(255, 138, 61, 0.9); }
.ffx-sep { color: #6b6b75; }
.ffx-tc { margin-left: 0.4rem; padding-left: 0.6rem; border-left: 1px solid rgba(255, 255, 255, 0.2); color: #e4e4e7; }
.is-cine.is-run .ffx-slate { opacity: 1; }
/* anamorphic flare: a long thin orange→coral line with a wide soft glow, sweeping left → right */
.ffx-streak { position: absolute; left: 0; top: 50%; width: 140%; height: 140px; margin-top: -70px; opacity: 0; transform: translateX(-75%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 110, 80, 0.28), transparent 70%); }
.ffx-streak-core { position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, #ffb36b 30%, #fff 50%, #ff5e6c 70%, transparent); box-shadow: 0 0 18px 4px rgba(255, 120, 80, 0.75); }
.is-cine.is-streak .ffx-streak { animation: ffx-sweep 1300ms cubic-bezier(0.45, 0, 0.55, 1) forwards; }
@keyframes ffx-sweep { 0% { opacity: 0; transform: translateX(-75%); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(10%); } }
/* render hairline on the inner edge of the bottom letterbox */
.ffx-hair { position: absolute; left: max(1.25rem, 5vw); right: max(1.25rem, 5vw); bottom: calc(12.8% + 1.1rem); height: 1px; background: rgba(255, 255, 255, 0.12); opacity: 0; transition: opacity 300ms; }
@media (max-width: 719px) { .ffx-hair { bottom: calc(20% + 1rem); } }
.ffx-hair-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #ffb36b, #ff8a3d, #ff5e6c); transform: scaleX(0); transform-origin: left; box-shadow: 0 0 8px rgba(255, 120, 80, 0.8); }
.is-cine.is-streak .ffx-hair { opacity: 1; }
.is-cine.is-streak .ffx-hair-fill { transform: none; transition: transform 1200ms cubic-bezier(0.5, 1, 0.89, 1); }
.ffx-hair-label { position: absolute; left: 0; top: 0.6rem; display: grid; font-family: var(--font-display); font-variation-settings: 'wdth' 75; font-size: 0.72rem; letter-spacing: 0.16em; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.ffx-render, .ffx-final { grid-area: 1 / 1; transition: opacity 250ms, transform 250ms; }
.ffx-render b { color: #fff; font-weight: 600; }
.ffx-final { opacity: 0; transform: translateY(4px); color: #ffc49c; }
.is-cine.is-title .ffx-render { opacity: 0; transform: translateY(-4px); }
.is-cine.is-title .ffx-final { opacity: 1; transform: none; }
.ffx-delivered { position: absolute; right: 0; top: 0.6rem; font-size: 0.75rem; font-weight: 700; color: #8fe0b0; opacity: 0; transform: translateY(4px); transition: opacity 250ms, transform 250ms; }
.is-cine.is-delivered .ffx-delivered { opacity: 1; transform: none; }
/* light leak behind the wordmark, then the push-in (1.08 → 1) */
.ffx-leak { position: absolute; left: 50%; top: 50%; width: 80vmin; height: 46vmin; margin: -23vmin 0 0 -40vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 138, 61, 0.45), rgba(255, 94, 108, 0.18) 55%, transparent); opacity: 0; transform: scale(0.4); }
.is-cine.is-title .ffx-leak { animation: ffx-leak 1300ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes ffx-leak { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; } 100% { opacity: 0.55; transform: scale(1.15); } }
.ffx-title { position: absolute; left: 50%; top: 50%; width: min(92vw, 900px); text-align: center; transform: translate(-50%, -50%); }
.ffx-word {
  display: inline-block; font-family: var(--font-display); font-variation-settings: 'wdth' 125; font-weight: 700;
  font-size: clamp(2.2rem, 9.2vw, 6.25rem); line-height: 1; letter-spacing: 0.06em; white-space: nowrap;
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 56%, #ffb36b 76%, #ff5e6c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: scale(1.08); transition: opacity 700ms ease-out, transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.is-cine.is-title .ffx-word { opacity: 1; transform: none; }
.ffx-tagline {
  margin-top: 1.1rem; font-family: var(--font-body); font-size: clamp(0.95rem, 2.4vw, 1.375rem); font-weight: 600; letter-spacing: 0.14em;
  line-height: 1.5; color: #e4e4e7; text-wrap: balance; opacity: 0; transform: translateY(8px); transition: opacity 600ms 500ms, transform 700ms 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.is-cine.is-title .ffx-tagline { opacity: 1; transform: none; }
.ff-intro.is-cine.is-open .ffi-half { transition-duration: 680ms; }
.ff-intro { overflow: hidden; }
/* cine: hairline labels sit above the line, inside the picture area (never across the letterbox edge) */
.ffx-hair-label, .ffx-delivered { top: auto; bottom: 0.6rem; }
/* 5-column concern cards (≥1100px): fixed 3-line quote block so dividers and "FRAMEFORM이라면" line up across cards */
@media (min-width: 1100px) {
  .pain-quote { flex: none; min-height: calc(1.5rem + 1.0625rem * 1.55 * 3); }
  .pain-solve { flex: 1; }
}

/* 답변 가능 시간: 줄 나눔 표시 (2026-11-15) */
.contact-response { white-space: pre-line; line-height: 1.75; }

/* "AI 작업은 이렇게 진행돼요" (config.aiNotice, js/ui.js) */
.ai-notice { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid rgba(255, 138, 61, 0.35); border-radius: var(--radius-xl, 22px);
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.1), rgba(255, 255, 255, 0.02)); }
.ai-notice-title, .ai-notice-compact > summary { display: flex; align-items: center; gap: 0.6rem; font-size: var(--fs-md); font-weight: 800; letter-spacing: -0.01em; }
.ai-notice-title::before, .ai-notice-compact > summary::before {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l1.8 4.6L18.5 10l-4.7 1.6L12 16l-1.8-4.4L5.5 10l4.7-1.4z'/%3E%3C/svg%3E") center / 16px no-repeat, linear-gradient(135deg, #ffb36b, #ff8a3d 45%, #ff5e6c);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.5), 0 6px 14px -6px rgba(255, 94, 108, 0.7);
}
.ai-notice-list { display: grid; gap: 0.65rem; margin-top: 1rem; counter-reset: ain; }
.ai-notice-list li { position: relative; padding-left: 2.1rem; font-size: var(--fs-sm); line-height: 1.7; color: var(--ink-lead, #e4e4e7); counter-increment: ain; }
.ai-notice-list li::before {
  content: counter(ain); position: absolute; left: 0; top: 0.1rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%;
  border: 1px solid rgba(255, 138, 61, 0.55); color: #ffc49c; font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ai-notice-compact { margin-top: 1.25rem; padding: 0; }
.ai-notice-compact > summary { list-style: none; cursor: pointer; min-height: 52px; padding: 0.75rem 3rem 0.75rem 1.1rem; position: relative; font-size: var(--fs-sm); }
.ai-notice-compact > summary::-webkit-details-marker { display: none; }
.ai-notice-compact > summary::after { content: '+'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--orange); font-size: 1.25rem; }
.ai-notice-compact[open] > summary::after { content: '−'; }
.ai-notice-compact .ai-notice-list { margin: 0; padding: 0 1.1rem 1.1rem; }
.is-calc-page .ai-notice { margin-top: 1.5rem; }

/* cine ending: a gradient light line splits the screen; the full-screen halves part over 1s with glowing edges,
   and the home page zooms out 1.04 → 1 underneath (html.intro-zoom → .intro-zoom-run) */
.ffx-line, .ffx-edge {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffb36b 18%, #ff8a3d 50%, #ff5e6c 82%, transparent 100%);
  box-shadow: 0 0 16px 3px rgba(255, 120, 80, 0.7), 0 0 70px 16px rgba(255, 94, 108, 0.28);
}
.ffx-line { top: 50%; margin-top: -1px; z-index: 2; opacity: 0; transform: scaleX(0); }
.is-cine.is-line .ffx-line { opacity: 1; transform: none; transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 150ms; }
.is-cine.is-line :is(.ffx-title, .ffx-leak, .ffx-slate, .ffx-hair, .ffx-streak) { opacity: 0; transition: opacity 280ms; }
.ffx-edge { opacity: 0; }
.ffi-top .ffx-edge { bottom: -1px; }
.ffi-bottom .ffx-edge { top: -1px; }
.ff-intro.is-cine.is-open:not(.is-fast) .ffx-edge { opacity: 1; transition: opacity 120ms; }
.ff-intro.is-cine.is-open:not(.is-fast) .ffi-half { transition: transform 1000ms cubic-bezier(0.7, 0, 0.2, 1); }
.ff-intro.is-cine.is-open:not(.is-fast) .ffi-top { transform: translateY(-101%); }
.ff-intro.is-cine.is-open:not(.is-fast) .ffi-bottom { transform: translateY(101%); }
html.intro-zoom #main { transform: scale(1.04); transform-origin: 50% 40vh; }
html.intro-zoom.intro-zoom-run #main { transform: none; transition: transform 1000ms cubic-bezier(0.6, 0, 0.2, 1); } /* follows the curtain curve */
@media (prefers-reduced-motion: reduce) { html.intro-zoom #main { transform: none !important; } }

/* ==========================================================================
   HOVER REVEAL (2026-11-15f) — desktop (hover + fine pointer) only; touch layouts unchanged
   ========================================================================== */
/* FAQ: smooth height (Chrome/Edge 131+, others just open instantly) */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height 260ms cubic-bezier(0.22, 1, 0.36, 1), content-visibility 260ms allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}
@media (hover: hover) and (pointer: fine) {
  .faq-item summary { transition: color 160ms; }
  .faq-item[data-hover-open] summary { color: #ffc49c; }

  /* concern cards: the quote first; "FRAMEFORM이라면" peeks at the bottom and slides up over the card on hover / keyboard focus */
  .pain { overflow: hidden; }
  .pain-solve {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: 1.1rem 1.25rem 4.5rem; border-top: 0;
    background: linear-gradient(180deg, rgba(42, 20, 12, 0.94) 0%, rgba(16, 12, 14, 0.98) 100%);
    box-shadow: 0 -18px 40px -20px rgba(0, 0, 0, 0.9);
    transform: translateY(calc(100% - 3.25rem)); transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .pain-solve::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, #ffb36b, #ff8a3d 45%, #ff5e6c); box-shadow: 0 0 12px rgba(255, 110, 80, 0.6); }
  .pain-solve-label { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.55rem; font-size: 0.8125rem; }
  .pain-solve-label::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: translateY(2px) rotate(45deg); transition: transform 300ms; }
  .pain:hover .pain-solve, .pain:focus-visible .pain-solve, .pain:focus-within .pain-solve { transform: none; }
  .pain:hover .pain-solve-label::after, .pain:focus-visible .pain-solve-label::after { transform: translateY(4px) rotate(225deg); }
  .pain-go { position: relative; z-index: 2; margin-top: auto; }
  .pain-quote { flex: 1; min-height: 0; padding-bottom: 3.25rem; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .pain-solve, .pain-solve-label::after { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .faq-item::details-content { transition: none; } }

/* ==========================================================================
   KOREAN DISPLAY TYPE (2026-11-15g, option A): Hangul in display lines = Pretendard 800, tight tracking.
   Scoped with :lang(ko) so EN / JA / ZH headings keep their current type. Pretendard Variable is the
   jsDelivr dynamic-subset file the site already loads (weights 45–920, so 800 is real, not synthesized).
   ========================================================================== */
:lang(ko) .hero-cat .hero-title {
  font-family: 'Archivo', 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-variation-settings: normal;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; font-size: clamp(2.1rem, 6vw, 4.5rem);
}
:lang(ko) :is(.hero-promise, .lead-strong, .cta-title, .calc-pick, .about-headline) { font-weight: 800; letter-spacing: -0.035em; line-height: 1.2; }
:lang(ko) :is(.why-label, .choose-title, .pain-quote, .ffi-headline) { font-weight: 800; letter-spacing: -0.025em; }
:lang(ko) .ffx-tagline { font-weight: 800; }
.grad-word {
  background: linear-gradient(100deg, #ffb36b 0%, #ff8a3d 45%, #ff5e6c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-right: 0.04em;
}
/* hover reveal, cleaner swap: the revealed panel covers everything below the persona tag (no half-covered quote line) */
@media (hover: hover) and (pointer: fine) {
  .pain-solve { min-height: calc(100% - 6.6rem); display: flex; flex-direction: column; justify-content: flex-start; }
  .pain-quote { transition: opacity 240ms; }
  .pain:hover .pain-quote, .pain:focus-visible .pain-quote, .pain:focus-within .pain-quote { opacity: 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) { .pain-quote { transition: none; } }

/* ==========================================================================
   FINAL CTA BAND v2 (2026-11-15h): text + 3 steps on the left, one big primary + two side-by-side pills on the right
   ========================================================================== */
.cta-text:not(:empty) { max-width: 46ch; }
.cta-steps { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; counter-reset: cstep; }
.cta-steps li { display: flex; align-items: center; gap: 0.55rem; counter-increment: cstep; flex: none; }
.cta-steps li:not(:last-child)::after { content: ''; width: clamp(1.25rem, 3vw, 2.75rem); height: 1px; margin-left: 0.2rem; background: linear-gradient(90deg, rgba(255, 138, 61, 0.7), rgba(255, 255, 255, 0.15)); }
.cta-step-dot {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, #ffb36b, #ff8a3d 45%, #ff5e6c); color: #140800; font-size: 0.8125rem; font-weight: 800;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.5), 0 6px 14px -6px rgba(255, 94, 108, 0.7);
}
.cta-step-dot::before { content: counter(cstep); }
.cta-step-label { font-size: var(--fs-sm); font-weight: 700; color: var(--white); white-space: nowrap; }
.cta-actions { display: grid; gap: 0.6rem; margin-top: 1.75rem; }
.cta-main { min-height: 56px; font-size: var(--fs-md); }
.cta-sub { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.6rem; }
.cta-sub .btn { padding-inline: 0.8rem; }
@media (min-width: 960px) {
  body.site .cta-band { grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  body.site .cta-band > :not(.cta-actions) { grid-column: 1; }
  body.site .cta-actions { grid-column: 2; grid-row: 1 / span 4; align-self: center; flex-direction: initial; min-width: 0; margin-top: 0; }
}
@media (max-width: 559px) {
  .cta-steps { gap: 0.4rem; justify-content: space-between; }
  .cta-steps li { flex-direction: column; gap: 0.4rem; flex: 1 1 0; text-align: center; position: relative; }
  .cta-steps li:not(:last-child)::after { position: absolute; top: 15px; left: calc(50% + 20px); width: calc(100% - 40px); margin: 0; }
  .cta-step-label { white-space: normal; font-size: 0.8125rem; line-height: 1.35; }
  .cta-actions .btn { flex: initial; }
}

/* ==========================================================================
   Selected Work: arrows (2026-11-15)
   ◀ ▶ 유리 원형 버튼으로 한 장씩 빠르게 넘기고, 그 사이에는 천천히 자동으로 흐름(js/hook.js).
   멈춤/재생은 글자 없는 작은 아이콘 버튼(aria-label). 되돌리기: 이 블록 삭제 + backups/pre-reelarrows-2026-11-15.
   ========================================================================== */
.reel-stage { position: relative; }
.reel:not(.is-static) { touch-action: pan-y; }
.reel-track { will-change: transform; }
.reel-nav {
  position: absolute; z-index: 2; top: calc(0.5rem + var(--rh) / 2); transform: translateY(-50%);
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%;
  border: 1px solid var(--glass-line, rgba(255, 255, 255, 0.12));
  background: var(--glass, linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02))), rgba(12, 12, 16, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white, #fafafa); cursor: pointer;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.8);
  transition: background var(--dur-fast, 160ms) var(--ease-out, ease), box-shadow var(--dur-fast, 160ms) var(--ease-out, ease), color var(--dur-fast, 160ms), transform var(--dur-fast, 160ms) var(--ease-out, ease);
}
.reel-prev { left: max(12px, calc(var(--gutter) - 26px)); }
.reel-next { right: max(12px, calc(var(--gutter) - 26px)); }
.reel-nav svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.reel-nav:hover { background: var(--grad, #ff8a3d); color: var(--on-grad, #140800); border-color: transparent; box-shadow: var(--glow, 0 10px 36px -10px rgba(255, 110, 80, 0.6)); }
.reel-nav:active { transform: translateY(-50%) scale(0.94); }
.reel-nav:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.reel-nav[hidden] { display: none; }

.reel-controls { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.reel-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--glass, rgba(255, 255, 255, 0.04));
  color: var(--ink-lead); cursor: pointer;
  transition: border-color var(--dur-fast, 160ms), color var(--dur-fast, 160ms);
}
.reel-toggle svg { fill: currentColor; }
.reel-toggle .ic-play, .reel-toggle.is-paused .ic-pause { display: none; }
.reel-toggle.is-paused .ic-play { display: block; }
.reel-toggle:hover { border-color: rgba(250, 250, 250, 0.45); color: var(--white); }
.reel-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.reel-toggle[hidden] { display: none; }

@media (max-width: 959px), (hover: none) {
  .reel-nav { width: 44px; height: 44px; }
  .reel-nav svg { width: 18px; height: 18px; }
  .reel-prev { left: 8px; }
  .reel-next { right: 8px; }
}
@media (max-width: 959px) { .reel-controls { justify-content: flex-start; } } /* 떠 있는 채팅 버튼과 겹치지 않게 (위 1988행 규칙 유지) */
@media print { .reel-nav { display: none !important; } }

/* 상세 요청 "해당 사항 없음" 체크 (2026-11-15) */
.details-none { margin-top: 0.5rem; }
#f-details:disabled { opacity: 0.45; cursor: not-allowed; }

/* 모바일 상단 "견적 문의": 다른 버튼과 구분되는 흰 바탕 (2026-11-15). 링크는 문의 양식(#contact)으로만 이동 */
@media (max-width: 959px) {
  body.site .site-header .header-cta { background: #fff; color: #000; border-color: #fff; box-shadow: none; }
  body.site .site-header .header-cta:hover { background: #ececec; }
}

/* 모바일 하단 바: 견적 계산기 · 상담원 연결(채팅, 테두리 버튼) · 견적 문의(양식, 채운 버튼) — 두 경로를 색과 모양으로 구분 (2026-11-15)
   바가 보일 때는 떠 있는 말풍선을 숨겨 같은 기능이 두 번 보이지 않게 합니다 (바가 없을 때는 말풍선 + "상담원 연결" 꼬리표) */
.ab-chat[hidden] { display: none !important; }
@media (max-width: 959px) {
  .action-bar { grid-template-columns: 0.9fr 1.15fr 1.35fr; }
  .action-bar.ab-two { grid-template-columns: 1fr 1.6fr; }
  .ab-chat {
    flex-direction: row; gap: 0.4rem; font: inherit; font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
    background: transparent; color: #ffb36b; border: 1.5px solid #ff8a3d;
  }
  .ab-chat:hover { background: rgba(255, 138, 61, 0.1); }
  .ab-primary .cta-more { display: none; }
  html.ab-on .ffc-fab { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* 모바일: 희망 납기일(date) 칸이 폼 밖으로 넘치지 않게 — iOS/안드로이드 date 입력의 고유 최소 너비 제거 (2026-11-15) */
.field { min-width: 0; }
.field input[type="date"] { display: block; min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 959px) { .field input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; } }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
@media (max-width: 400px) {
  .ab-chat span, .ab-primary span { white-space: nowrap; }
  .ab-chat { font-size: 0.8125rem; gap: 0.3rem; padding-inline: 0.3rem; }
  .ab-chat .ab-icon { width: 17px; height: 17px; }
}

/* ---------- 문의 양식: 의뢰 유형 카드 (개인·크리에이터 / ENTERPRISE) (2026-11-15) ---------- */
.req-type-grid { display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .req-type-grid { grid-template-columns: 1fr 1fr; } }
.req-type-card {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem; cursor: pointer;
  padding: 1rem 1rem 1rem 2.75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: rgba(255, 255, 255, 0.02); transition: border-color .15s, background-color .15s;
}
.req-type-card:hover { border-color: var(--silver); }
.req-type-card input { position: absolute; left: 1rem; top: 1.1rem; width: 18px; height: 18px; accent-color: #ff8a3d; margin: 0; }
.req-type-card.is-checked { border-color: #ff8a3d; background: rgba(255, 138, 61, 0.08); }
.req-type-card:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.req-type-name { font-weight: 700; font-size: var(--fs-sm); color: var(--white); }
.req-type-text { font-size: var(--fs-xs); color: var(--ink-lead, #c9c9c9); line-height: 1.55; }
.req-type-items { font-size: var(--fs-xs); color: var(--silver); line-height: 1.5; }

/* ---------- 문의 양식: "견적 확인" 창 (js/quote-step.js) — Pricing 의 계산기를 잠시 빌려와 보여 줍니다 ---------- */
.quote-step {
  width: min(1100px, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; margin: auto;
  background: #0d0d10; color: var(--white); border: 1px solid var(--line-strong); border-radius: 16px;
  display: none; flex-direction: column; overflow: hidden;
}
.quote-step[open] { display: flex; }
.quote-step::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.qs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem 1rem; border-bottom: 1px solid var(--line-strong); }
.qs-kicker { margin: 0 0 0.25rem; font-size: var(--fs-xs); letter-spacing: 0.12em; color: #ff8a3d; font-weight: 700; }
.qs-title { margin: 0; font-size: 1.35rem; font-weight: 800; }
.qs-lead { margin: 0.4rem 0 0; font-size: var(--fs-sm); color: var(--silver); line-height: 1.55; }
.qs-close { flex: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font-size: 1.5rem; cursor: pointer; }
.qs-close:hover { border-color: var(--silver); }
.qs-body { overflow-y: auto; padding: 1rem 1.5rem; -webkit-overflow-scrolling: touch; }
.qs-body > .calc { margin: 0; }                       /* keep the card padding so the title is not pushed against the top edge */
.qs-body .calc-summary { top: 0; }
.qs-skip { margin: 0; padding: 0.75rem 1.5rem 1rem; border-top: 1px solid var(--line-strong); text-align: center; }
.qs-skip-btn { background: none; border: 0; color: var(--silver); text-decoration: underline; font: inherit; font-size: var(--fs-sm); cursor: pointer; padding: 0.5rem; }
.qs-skip-btn:hover { color: var(--white); }
html.qs-open { overflow: hidden; }
html.qs-open .action-bar, html.qs-open .ffc-fab { visibility: hidden; }
@media (max-width: 640px) {
  .quote-step { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .qs-head { padding: 1rem 1rem 0.75rem; }
  .qs-body { padding: 0.75rem 1rem; }
  .qs-title { font-size: 1.15rem; }
}

/* ---------- 문의 양식: 선택 패키지 아래에 펼쳐지는 계산기 (js/quote-step.js) ---------- */
.qs-inline { margin: 0.25rem 0 1.5rem; padding: 1rem; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.qs-inline[hidden] { display: none; }
.qs-inline-lead { margin: 0 0 0.75rem; font-size: var(--fs-sm); color: var(--silver); line-height: 1.55; }
.qs-inline > .calc, .qs-inline > .ai-quote { margin: 0; }
.qs-inline .calc-summary { top: 0; position: static; }
.qs-inline #calc-apply, .qs-inline #aiq-apply { display: none; }   /* 보낼 때 자동 첨부되므로 버튼 숨김 */
@media (max-width: 640px) { .qs-inline { padding: 0.75rem; margin-left: -0.25rem; margin-right: -0.25rem; } }
/* 양식 칸은 좁아서 계산기를 한 줄(위: 선택, 아래: 견적 내역)로 쌓는다 */
.qs-inline .calc { grid-template-columns: 1fr; gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.5rem); }
.qs-inline .calc-summary { position: static; }
/* 선택 패키지 칸 바로 아래에 오도록: 넓은 화면은 두 칸 줄 다음, 좁은 화면은 패키지와 제작 목적 사이 */
.field-row > .qs-inline { grid-column: 1 / -1; }
@media (min-width: 640px) { .field-row > .qs-inline { order: 3; } }
.qs-inline, .qs-inline .calc, .qs-inline .calc > * { min-width: 0; }
@media (min-width: 640px) { .qs-inline .seg { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); } }
/* 펼친 계산기: 바깥 테두리 없이 계산기 카드만, 안내 문구는 제목·설명 바로 아래 */
.qs-inline { padding: 0; border: 0; background: none; }
.qs-inline-note { margin: 0.6rem 0 1.25rem; padding: 0.65rem 0.85rem; border-radius: 10px; background: rgba(255, 138, 61, 0.1); border: 1px solid rgba(255, 138, 61, 0.35); color: #ffd2b3; font-size: var(--fs-sm); line-height: 1.55; }
