/* 하트레코드 한 장짜리 사이트.
   배치: 촬영 중인 화면(모서리 프레임 선, REC 표시)에서 시작해 작업물 띠 → 만드는 것 → 맡길 이유(어두운 띠) → 과정 → 질문 → 신청.
   색 조합은 두 가지를 준비해 두었다. 사이트는 "낮"(아이보리 + 하트 빨강)으로 정했고(2026-11-22), index.html 의 <html data-palette="day"> 가 그 표시다.
   이 표시가 없으면 "밤"(남색 + 녹화 주황)으로 보인다. 주소 뒤에 ?palette=night 를 붙여도 밤으로 볼 수 있다.
   한 조합으로 정하면 안 쓰는 쪽 토막을 지우면 된다. */

:root {
  color-scheme: light;

  /* 밤: 어두운 남색 첫 화면, 차가운 흰 바탕, 녹화 표시 주황 */
  --hero-bg: #0b101a;
  --hero-fg: #f3f5f9;
  --hero-muted: #a8b2c4;
  --hero-line: rgba(243, 245, 249, 0.18);
  --hero-glow: rgba(255, 90, 31, 0.16);
  --hero-accent: #ff6a33;
  --bg: #f5f6f9;
  --bg-alt: #e9ecf2;
  --card: #ffffff;
  --fg: #101624;
  --muted: #556077;
  --line: rgba(16, 22, 36, 0.13);
  --ink: #0b101a;
  --ink-2: #151c2b;
  --on-ink: #f3f5f9;
  --on-ink-muted: #a8b2c4;
  --line-on-ink: rgba(243, 245, 249, 0.16);
  --accent: #ff5a1f;
  --accent-ink: #14100c;
  --accent-deep: #b93c0b;
  --accent-bright: #ff6a33;
  --header-bg: rgba(11, 16, 26, 0.9);
  --header-solid: #0b101a;
  --header-fg: #f3f5f9;
  --header-line: rgba(243, 245, 249, 0.14);

  /* 글자: 제목은 명조 계열, 본문은 고딕, 영어 표시와 숫자는 고정폭 */
  --font-display: 'Hahmlet', 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-body: 'IBM Plex Sans KR', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 20px;
  --radius: 8px;
  --header-h: 60px;
}

/* 낮: 따뜻한 아이보리 바탕, 짙은 고동색 글자, 하트 빨강 */
:root[data-palette='day'] {
  --hero-bg: #f1eadd;
  --hero-fg: #1b1612;
  --hero-muted: #675c51;
  --hero-line: rgba(27, 22, 18, 0.2);
  --hero-glow: rgba(214, 50, 31, 0.1);
  --hero-accent: #c22a19;
  --bg: #fbf8f2;
  --bg-alt: #f1eadd;
  --card: #ffffff;
  --fg: #1b1612;
  --muted: #675c51;
  --line: rgba(27, 22, 18, 0.14);
  --ink: #1b1612;
  --ink-2: #2a221c;
  --on-ink: #f7f2e9;
  --on-ink-muted: #b9ac9c;
  --line-on-ink: rgba(247, 242, 233, 0.16);
  --accent: #d6321f;
  --accent-ink: #ffffff;
  --accent-deep: #b3261a;
  --accent-bright: #ff7b66;
  --header-bg: rgba(251, 248, 242, 0.92);
  --header-solid: #fbf8f2;
  --header-fg: #1b1612;
  --header-line: rgba(27, 22, 18, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

/* 휴대폰 위쪽 띠(시계·배터리 자리)를 머리줄과 같은 색으로 칠한다 */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--header-solid);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

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

/* 숨김 표시(hidden)를 붙인 것은 display를 따로 준 요소라도 보이지 않게 한다 */
[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 8px);
}

/* ---------- 공통 틀 ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.band {
  padding-block: clamp(64px, 10vw, 116px);
}

.band-base {
  background: var(--bg);
}

.band-alt {
  background: var(--bg-alt);
}

.band-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.label::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.band-ink .label {
  color: var(--accent-bright);
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 5.4vw, 2.9rem);
  line-height: 1.22;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  border-color: var(--hero-line);
  color: var(--hero-fg);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--hero-fg);
}

.btn-line {
  border-color: var(--line);
  background: var(--card);
  color: var(--fg);
}

.btn-line:hover {
  border-color: var(--fg);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.round-btn:hover {
  border-color: var(--fg);
}

.round-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.round-btn svg {
  width: 20px;
  height: 20px;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- 머리줄 ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-fg);
  border-bottom: 1px solid var(--header-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: none;
  gap: 28px;
  font-size: 0.95rem;
}

.site-nav a {
  padding-block: 6px;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.15s ease;
}

.site-nav a:hover {
  opacity: 1;
}

/* ---------- 첫 화면 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg); /* 오른쪽 위의 붉은 기운은 .hero::after 에 있다(맨 아래 유리 로고 구역) */
  color: var(--hero-fg);
}

/* 카메라 화면의 모서리 프레임 선 */
.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--hero-line);
  pointer-events: none;
}

.corner-tl {
  top: 16px;
  left: 16px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.corner-tr {
  top: 16px;
  right: 16px;
  border-top-width: 2px;
  border-right-width: 2px;
}

.corner-bl {
  bottom: 16px;
  left: 16px;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.corner-br {
  bottom: 16px;
  right: 16px;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 44px;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 96px);
}

.rec-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  margin-bottom: 26px;
  color: var(--hero-muted);
  font-size: 1.02rem;
}

.rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.6s steps(2, start) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.rec-text,
.timecode {
  font-family: var(--font-mono);
  font-size: 0.91rem;
  letter-spacing: 0.1em;
}

.rec-text {
  color: var(--hero-fg);
}

.rec-sep {
  width: 25px;
  height: 1px;
  background: var(--hero-line);
}

.rec-kind {
  color: var(--hero-fg);
  font-weight: 500;
}

/* 폭이 좁은 휴대폰(360px 등)에서는 이 줄이 두 줄로 넘어가지 않게 한 단계만 키운다 */
@media (max-width: 400px) {
  .rec-line {
    gap: 8px 10px;
    font-size: 0.97rem;
  }

  .rec-dot {
    width: 10px;
    height: 10px;
  }

  .rec-text,
  .timecode {
    font-size: 0.86rem;
  }

  .rec-sep {
    width: 22px;
  }
}

h1 {
  font-size: clamp(2.6rem, 10.5vw, 4.9rem);
  line-height: 1.12;
}

.lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--hero-muted);
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.facts {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--hero-line);
}

.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--hero-line);
}

.facts dt {
  color: var(--hero-muted);
  font-size: 0.92rem;
}

.facts dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

/* 첫 화면의 세로 영상 세 장: 가운데가 가장 최근 게시물 */
.hero-reels {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding-inline: 4px;
}

.phone {
  position: relative;
  flex: none;
  width: 44%;
  max-width: 236px;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: #0a0a0c;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s ease;
}

.phone:nth-child(1),
.phone:nth-child(3) {
  width: 36%;
  max-width: 194px;
  z-index: 1;
}

.phone:nth-child(1) {
  transform: translateX(16%) rotate(-7deg);
}

.phone:nth-child(2) {
  z-index: 2;
}

.phone:nth-child(3) {
  transform: translateX(-16%) rotate(7deg);
}

.phone:nth-child(3) .phone-top {
  right: 12px;
  left: auto;
}

.phone:nth-child(3) .phone-bottom {
  padding-left: 34%;
  text-align: right;
}

.phone:nth-child(1) .phone-bottom {
  padding-right: 34%;
}

/* 커서를 올리면(PC) 또는 손가락으로 누르면(휴대폰, main.js 가 is-pressed 를 붙인다) 떠오른다 */
.phone:nth-child(2):hover,
.phone:nth-child(2).is-pressed {
  transform: translateY(-6px);
}

/* 양쪽 카드도 기울기와 자리는 그대로 두고 가운데와 같은 만큼 떠오른다 */
.phone:nth-child(1):hover,
.phone:nth-child(1).is-pressed {
  transform: translateX(16%) translateY(-6px) rotate(-7deg);
}

.phone:nth-child(3):hover,
.phone:nth-child(3).is-pressed {
  transform: translateX(-16%) translateY(-6px) rotate(7deg);
}

.phone-blur {
  position: absolute;
  inset: -14%;
  width: 128%;
  max-width: none;
  height: 128%;
  object-fit: cover;
  filter: blur(22px) brightness(0.55) saturate(1.25);
}

.phone-shot {
  position: absolute;
  top: 46%;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transform: translateY(-50%);
}

.phone-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.phone-top svg {
  width: 15px;
  height: 15px;
}

.phone-bottom {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 36px 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.72rem;
  line-height: 1.45;
}

.phone-bottom b {
  font-weight: 600;
}

.phone-bottom span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  opacity: 0.9;
}

/* ---------- 작업물(인스타그램 띠) ---------- */

.work-head {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.work-side {
  display: grid;
  gap: 18px;
  justify-items: start;
  color: var(--muted);
}

.reel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-block: 4px 10px;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reel-track::-webkit-scrollbar {
  display: none;
}

/* 넓은 화면(PC)에서는 띠가 본문 칸 안에서만 움직인다. 좁은 화면에서는 화면 끝까지 흘러 다음 카드가 살짝 보인다 */
@media (min-width: 1160px) {
  .reel-track {
    max-width: calc(var(--wrap) - 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
}

.reel-card {
  flex: 0 0 min(70vw, 264px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.reel-card:hover {
  border-color: var(--fg);
  transform: translateY(-3px);
}

.reel-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 9px;
  background: var(--bg-alt);
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
}

.reel-badge svg {
  width: 16px;
  height: 16px;
}

.reel-caption {
  display: -webkit-box;
  overflow: hidden;
  padding-inline: 6px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.93rem;
  line-height: 1.55;
}

.reel-more {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-inline: 6px;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.reel-more svg {
  width: 14px;
  height: 14px;
}

.reel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.reel-progress {
  flex: 1;
  height: 2px;
  margin-left: 10px;
  overflow: hidden;
  background: var(--line);
}

.reel-progress span {
  display: block;
  width: 20%;
  height: 100%;
  background: var(--fg);
  transform-origin: left;
  transition: transform 0.15s linear;
}

.widget-slot {
  min-height: 320px;
}

.widget-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.widget-shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ---------- 만드는 것 ---------- */

.trio {
  display: grid;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 52px);
}

.trio-item {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.trio-kicker {
  margin-bottom: 18px;
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.trio-item h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.trio-item p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
}

/* 카드 위쪽, 가운데에서 오른쪽으로 조금 간 자리에 옅게 깔리는 3D 그림(기획=클립보드, 촬영=카메라, 편집=편집 줄).
   그림은 카드그림/trio3d.html 에서 도구/카드그림_만들기.mjs 로 뽑는다.
   글을 가리지 않게: 제목 줄 옆(글이 없는 자리)에서만 또렷하고,
   설명 글이 시작되는 높이부터는 거의 비치기만 하다가 사라진다. 제목 쪽인 왼쪽 끝도 살짝 옅어진다 */
.trio-item {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.trio-art {
  position: absolute;
  z-index: -1;
  top: -40px;
  /* 가로로는 카드 한가운데에서 오른쪽으로 조금 간 자리(가운데와 오른쪽 끝 사이의 4분의 1 지점).
     카드가 좁을 때(태블릿의 세 칸)는 제목 글자와 겹치지 않게 왼쪽에서 72px 안으로는 들어오지 않는다 */
  left: max(72px, calc(62.5% - 120px));
  width: 204px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 48%, rgba(0, 0, 0, 0.16) 66%, transparent 88%), linear-gradient(270deg, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 48%, rgba(0, 0, 0, 0.16) 66%, transparent 88%), linear-gradient(270deg, #000 72%, transparent 100%);
  mask-composite: intersect;
}

.scope {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.scope > div {
  display: grid;
  gap: 4px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.scope dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.scope dd {
  font-weight: 500;
}

/* ---------- 맡길 이유 ---------- */

.reasons {
  display: grid;
  gap: 0 48px;
  margin-top: clamp(32px, 5vw, 52px);
}

.reason {
  padding-block: 26px;
  border-top: 1px solid var(--line-on-ink);
}

.reason h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.32rem;
}

.reason p {
  color: var(--on-ink-muted);
  font-size: 0.99rem;
}

/* ---------- 진행 과정 ---------- */

.steps {
  display: grid;
  margin-top: clamp(32px, 5vw, 52px);
}

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 2px 8px;
  padding-bottom: 26px;
}

/* 단계를 잇는 선 */
.steps li::before {
  content: '';
  position: absolute;
  top: 34px;
  bottom: -2px;
  left: 17px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::before {
  display: none;
}

.steps li:last-child {
  padding-bottom: 0;
}

.step-no {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.steps h3 {
  padding-top: 4px;
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- 자주 묻는 질문 ---------- */

.faq-grid {
  display: grid;
  gap: 28px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* 펼침 표시(+ / −) */
.faq-list summary::before,
.faq-list summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 14px;
  height: 2px;
  background: var(--accent-deep);
  transition: transform 0.2s ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details p {
  padding: 0 40px 22px 0;
  color: var(--muted);
}

/* ---------- 상담 신청 ---------- */

.contact {
  display: grid;
  gap: 36px;
}

.contact-lead {
  margin-top: 16px;
  color: var(--muted);
}

.contact-quick {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-quick > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-quick dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-quick dd {
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.contact-quick a {
  text-decoration: none;
}

.contact-quick a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-card {
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-row {
  display: grid;
  gap: 18px;
}

label {
  font-size: 0.93rem;
  font-weight: 600;
}

.optional {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

input[type='text'],
input[type='tel'],
input[type='email'],
textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid rgba(16, 22, 36, 0.28);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

textarea {
  resize: vertical;
}

::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #c2261a;
  background: #fdf1ef;
}

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

.consent {
  display: grid;
  gap: 12px;
}

.consent-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--bg-alt);
  font-size: 0.86rem;
  line-height: 1.55;
}

.consent-box > div {
  display: grid;
  grid-template-columns: 4.6em minmax(0, 1fr);
  gap: 10px;
}

.consent-box dt {
  color: var(--muted);
}

.consent-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.check.is-invalid span {
  color: #c2261a;
}

.form-error {
  padding: 12px 14px;
  border-radius: 6px;
  background: #fdf1ef;
  color: #a51f14;
  font-size: 0.93rem;
}

.thanks {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-block: 12px;
}

.thanks-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}

.thanks-mark svg {
  width: 24px;
  height: 24px;
}

.thanks h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.thanks-preview {
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- 바닥 ---------- */

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-block: clamp(48px, 8vw, 76px) 32px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.footer-tag {
  margin-top: 6px;
  color: var(--on-ink-muted);
  font-size: 0.95rem;
}

.footer-info {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.footer-info > div {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr);
  gap: 12px;
}

.footer-info dt {
  color: var(--on-ink-muted);
}

.footer-info dd {
  overflow-wrap: anywhere;
}

.footer-info a {
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px calc(28px + env(safe-area-inset-bottom, 0px));
  color: var(--on-ink-muted);
  font-size: 0.86rem;
}

.footer-legal::before {
  content: '';
  position: absolute;
  top: 0;
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  height: 1px;
  background: var(--line-on-ink);
}

.footer-legal p:first-child {
  display: flex;
  gap: 18px;
}

.footer-legal a {
  text-underline-offset: 3px;
}

/* ---------- 재생 창 (인스타그램 재생 화면을 페이지 안에 띄운다) ---------- */

.player {
  /* 화면이 낮으면 폭을 줄여서 머리줄과 영상 칸이 스크롤 없이 한눈에 들어오게 한다(영상 칸 높이는 폭의 1.25배) */
  width: min(400px, calc(100% - 24px), max(326px, calc((100dvh - 150px) / 1.25)));
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #1b1612;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.player[open] {
  display: flex;
  flex-direction: column;
}

.player::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(27, 22, 18, 0.14);
}

.player-head h2 {
  font-size: 1.05rem;
}

.player-head .round-btn {
  width: 40px;
  height: 40px;
  border-color: rgba(27, 22, 18, 0.14);
  background: #ffffff;
  color: #1b1612;
}

.player-body {
  position: relative;
  min-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* 재생 화면이 뜨기 전까지 보이는 글 */
.player-body::before {
  content: '영상을 불러오는 중입니다';
  position: absolute;
  inset: 0 0 auto;
  padding-top: 110px;
  color: #675c51;
  font-size: 0.92rem;
  text-align: center;
}

.player-body iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 708px;
  border: 0;
}

/* ---------- 개인정보처리방침 창 ---------- */

.policy {
  width: min(680px, calc(100% - 32px));
  max-height: min(84vh, 780px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.policy[open] {
  display: flex;
  flex-direction: column;
}

.policy::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.policy-head h2 {
  font-size: 1.3rem;
}

.policy-body {
  overflow-y: auto;
  padding: 20px 20px 28px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-body h3 {
  margin: 22px 0 6px;
  font-size: 1rem;
}

.policy-body p {
  color: var(--muted);
}

/* ---------- 시안에서만 쓰는 고르기 막대 ---------- */

.pick-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 22, 0.94);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.pick-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pick-group > span {
  opacity: 0.7;
}

.pick-bar button {
  min-width: 36px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pick-bar button[aria-pressed='true'] {
  border-color: #ffffff;
  background: #ffffff;
  color: #121216;
}

/* ---------- 넓은 화면 ---------- */

@media (min-width: 720px) {
  .facts {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0 36px;
    border-top: 1px solid var(--hero-line);
    padding-top: 22px;
  }

  .facts > div {
    display: grid;
    gap: 2px;
    justify-content: start;
    padding-block: 0;
    border-bottom: 0;
  }

  .facts > div + div {
    padding-left: 36px;
    border-left: 1px solid var(--hero-line);
  }

  .work-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 48px;
  }

  .trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
  }

  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
  }

  .steps li::before {
    display: none;
  }

  .step-no {
    grid-row: auto;
    width: auto;
    height: auto;
    margin-bottom: 10px;
    border: 0;
    border-radius: 0;
    background: none;
    justify-content: start;
    font-size: 0.84rem;
    letter-spacing: 0.1em;
  }

  .steps h3 {
    padding-top: 0;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
  }

  .footer-info {
    grid-template-rows: repeat(3, auto);
    grid-template-columns: repeat(2, minmax(0, auto));
    grid-auto-flow: column;
    justify-content: start;
    gap: 10px 56px;
  }

  .footer-info > div:nth-child(n + 4) {
    grid-template-columns: 3.4em minmax(0, 1fr);
  }

  .reel-card {
    flex-basis: 252px;
  }

  .corner {
    width: 30px;
    height: 30px;
  }

  .corner-tl,
  .corner-tr {
    top: 24px;
  }

  .corner-bl,
  .corner-br {
    bottom: 24px;
  }

  .corner-tl,
  .corner-bl {
    left: 24px;
  }

  .corner-tr,
  .corner-br {
    right: 24px;
  }
}

@media (min-width: 960px) {
  .site-nav {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 40px;
  }

  .steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .contact {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    align-items: start;
  }

  .contact-copy {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rec-dot {
    animation: none;
  }

  .btn,
  .phone,
  .reel-card,
  .reel-progress span {
    transition: none;
  }
}

/* ---------- 첫 화면의 유리 로고 영상 ---------- */
/* 유리 로고를 뒤에 두고 세로 영상 세 장이 그 앞에 겹친다. */
/* 로고 영상은 바탕을 첫 화면 바탕색(--hero-bg, 낮 색 #f1eadd)과 같은 색 한 가지로 뽑은 것이다(로고영상/원본/logo3d.html 의 사이트무지개, shot=whole).
   테두리·상자 없이 올리고 가장자리를 흐리게 지워서, 유리 막대와 그림자만 사이트 위에 놓인 것처럼 보이게 한다.
   첫 화면 바탕색을 바꾸면 영상도 그 색으로 다시 뽑아야 한다(도구/읽어보기.md). */

/* 첫 화면 오른쪽 위의 붉은 기운은 바탕에 두면 영상 자리만 네모나게 빠져 보인다. 그래서 영상 위·글자와 카드 아래에 얹는다 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(70% 70% at 88% 12%, var(--hero-glow), transparent 70%);
  pointer-events: none;
}

.hero .corner,
.hero-copy {
  z-index: 2;
}

.hero-copy {
  position: relative;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 칸보다 넓은 로고 화면이 칸 자체를 넓히지 않게 */
  justify-items: center;
}

/* 영상 화면은 칸보다 넓게 잡는다(보이는 것은 가운데의 유리 막대뿐이라 칸 밖으로 나가는 부분은 빈 바탕이다) */
.logo-screen {
  position: relative;
  display: block;
  width: 128%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  margin: -5% 0 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  mask-composite: intersect;
}

.logo-screen video,
.logo-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 세로 영상 세 장을 조금 줄여 유리 로고의 그림자 바로 아래에 겹친다 */
.hero-visual .hero-reels {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: -17%;
}

.hero-visual .phone {
  width: 39%;
  max-width: 204px;
}

.hero-visual .phone:nth-child(1),
.hero-visual .phone:nth-child(3) {
  width: 32%;
  max-width: 168px;
}
