/* minji.fit brand tokens — deep sage on ivory, IBM Plex type system */
:root {
  --bg: #F7F5F1;
  --stone: #E4E1DA;
  --paper: #FFFFFF;
  --ink: #1A1A18;
  --text: #4A4844;
  --muted: #7A7873;
  --line: rgba(26, 26, 24, 0.12);
  --accent: #3E8A6B;       /* 딥 세이지 */
  --accent-deep: #2C6B52;
  --accent-soft: #7FCDAF;  /* 어두운 배경 위 포인트 */
  --accent-tint: rgba(127, 205, 175, 0.42);
  --on-accent: #F7F5F1;
  --radius: 14px;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "IBM Plex Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.mono { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.wordmark { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; line-height: 1; }
.wordmark i, .wordmark .dot { font-style: normal; color: var(--accent); }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; }
.progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 24px;
  background: rgba(247, 245, 241, 0.74);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  border-radius: 999px;
  z-index: 50;
  transition: transform 0.5s var(--ease);
}
.nav.hide { transform: translate(-50%, -120%); }
.logo { font-size: 26px; padding-bottom: 3px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 15px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  will-change: transform;
}
.btn:hover { background: var(--accent); color: var(--on-accent); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-light { background: var(--accent); color: var(--on-accent); }
.btn-light:hover { background: var(--bg); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--bg); border: 1px solid rgba(247, 245, 241, 0.3); }
.btn-ghost:hover { border-color: var(--accent-soft); background: transparent; color: var(--accent-soft); }
.btn-block { width: 100%; justify-content: center; }

.link-underline { font-weight: 500; position: relative; padding: 4px 0; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor;
  transform-origin: right; transition: transform 0.4s var(--ease);
}
.link-underline:hover::after { transform: scaleX(0); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 130px var(--pad) 64px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 44px;
  max-width: 1440px; margin: 0 auto;
}
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.tagline { font-size: 14px; letter-spacing: 0.04em; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink); font-weight: 500;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

/* flow visual — echoes the business-card back */
.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 0 4px;
}
.flow-line {
  position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 2px;
  background-image: linear-gradient(90deg, rgba(26, 26, 24, 0.22) 50%, transparent 50%);
  background-size: 10px 2px;
}
.flow-line::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 33.333%;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s var(--ease) 0.5s;
}
.is-loaded .flow-line::before { transform: scaleX(1); }
.flow-dot {
  position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint);
  opacity: 0; animation: travel 3.2s var(--ease) 1.8s infinite;
}
@keyframes travel {
  0% { left: 0; opacity: 0; transform: scale(1); }
  8% { opacity: 1; }
  55% { left: 33.333%; opacity: 1; transform: scale(1); }
  75%, 100% { left: 33.333%; opacity: 0; transform: scale(2.4); }
}
.flow-node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.flow-node::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; margin: 9px 0 14px;
  background: #807D77; box-shadow: 0 0 0 5px var(--bg); position: relative; z-index: 1;
}
.flow-node .mono { color: var(--muted); font-size: 11px; }
.flow-node b { font-size: clamp(14px, 1.3vw, 17px); font-weight: 500; letter-spacing: -0.02em; }
.flow-node:nth-child(4) b, .flow-node:nth-child(4) .mono { opacity: 0.38; }
.flow-node:nth-child(4)::before { background: rgba(128, 125, 119, 0.4); }
.flow-node.stop::before { background: var(--ink); box-shadow: 0 0 0 5px var(--bg), 0 0 0 9px var(--accent-tint); animation: ring 2s ease-in-out 2.6s infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 5px var(--bg), 0 0 0 15px rgba(127, 205, 175, 0); } }
.flow-node.stop em {
  font-style: normal; font-size: 12px; font-weight: 500; margin-top: 8px;
  padding: 4px 11px; border-radius: 999px; background: var(--ink); color: var(--accent-soft); white-space: nowrap;
}
.flow-node.goal::before { width: 16px; height: 16px; margin: 7px 0 12px; background: transparent; border: 2px solid var(--accent); }
.flow-node.goal b { color: var(--accent); opacity: 0.8; }
.is-loaded .flow-node { opacity: 1; transform: none; }
.flow-node:nth-child(2) { transition-delay: 0.30s; }
.flow-node:nth-child(3) { transition-delay: 0.42s; }
.flow-node:nth-child(4) { transition-delay: 0.54s; }
.flow-node:nth-child(5) { transition-delay: 0.66s; }

.hero-title {
  font-size: clamp(40px, 7.6vw, 118px);
  line-height: 1.12; letter-spacing: -0.045em; font-weight: 700;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: 0.12s; }
.is-loaded .hero-title .line > span { transform: none; }

.hl { font-style: normal; position: relative; white-space: nowrap; z-index: 0; color: var(--accent-deep); }
.hl::before {
  content: ""; position: absolute; left: -0.04em; right: -0.04em; bottom: 0.1em; height: 0.34em;
  background: var(--accent-tint); z-index: -1;
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease) 0.85s;
}
.is-loaded .hl::before { transform: scaleX(1); }

.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 580px; font-weight: 400; }
.hero-lead strong { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; align-items: center; gap: 26px; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink); color: var(--bg);
  padding: 22px 0; overflow: hidden;
  transform: rotate(-1.2deg); margin: 20px -2vw 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  font-size: clamp(20px, 2.3vw, 30px); font-weight: 500; letter-spacing: -0.02em;
  animation: marquee 34s linear infinite;
}
.marquee-track b { color: var(--accent-soft); font-size: 0.6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { max-width: 1440px; margin: 0 auto; padding: clamp(96px, 13vw, 180px) var(--pad) 0; }
.section-label { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; margin-bottom: 26px; color: var(--text); }
.section-label::before { content: ""; width: 28px; height: 3px; background: var(--accent); }
.section-label .mono { color: var(--muted); font-size: 12px; }
.section-head { margin-bottom: 56px; }
h2 { font-size: clamp(30px, 4.3vw, 60px); line-height: 1.25; letter-spacing: -0.04em; font-weight: 700; }
.sub { font-size: 15px; font-weight: 600; margin: 64px 0 18px; display: flex; align-items: center; gap: 10px; }
.sub::before { content: ""; width: 18px; height: 2px; background: var(--ink); }
.note { margin-top: 18px; font-size: 13px; color: var(--muted); max-width: 520px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.65; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.about-card {
  position: sticky; top: 110px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: grid; gap: 18px;
}
.avatar {
  aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; position: relative;
  background: var(--ink);
  display: grid; place-items: center;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  transform: scale(1.02); transition: transform 0.8s var(--ease);
}
.about-card:hover .avatar img { transform: scale(1.06); }
/* keeps the wordmark legible over the photo */
.avatar::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(26, 26, 24, 0.68));
}
.avatar-mark { position: absolute; left: 18px; bottom: 16px; z-index: 1; color: var(--bg); font-size: 20px; }
.avatar-mark i { color: var(--accent-soft); }
.about-id { display: grid; }
.about-id strong { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; }
.about-id small { font-size: 15px; font-weight: 400; color: var(--text); margin-left: 4px; }
.about-id span { font-size: 14px; color: var(--muted); }
.about-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.about-tags li { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.insta { font-family: var(--mono); font-size: 14px; font-weight: 500; padding-top: 14px; border-top: 1px solid var(--line); transition: color 0.2s; }
.insta:hover { color: var(--accent); }

.about-text h2 { margin-bottom: 36px; }
.about-text > p { font-size: clamp(16px, 1.35vw, 18px); color: var(--text); max-width: 660px; margin-bottom: 20px; }
.about-text strong { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 64%, var(--accent-tint) 64%); }
.fit-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fit {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.fit:hover { transform: translateY(-4px); border-color: var(--accent); }
.fit .mono { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); margin-bottom: 14px; }
.fit p { font-weight: 500; font-size: 16px; line-height: 1.5; }

/* ---------- program ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.stat .mono { color: var(--muted); }
.stat b { display: block; font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.25; margin: 8px 0 4px; }
.stat .count { font-family: var(--mono); font-weight: 500; letter-spacing: -0.04em; color: var(--accent); }
.stat p { font-size: 14px; color: var(--muted); }

.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.service {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; min-height: 360px;
  display: flex; flex-direction: column;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease);
}
.service::before {
  content: ""; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border-radius: 50%;
  background: var(--accent); transform: scale(0); transition: transform 0.7s var(--ease);
}
.service > * { position: relative; }
.service:hover { background: var(--ink); color: var(--bg); transform: translateY(-4px); }
.service:hover::before { transform: scale(1); }
.service .num { color: var(--muted); }
.service:hover .num { color: var(--on-accent); }
.service h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; letter-spacing: -0.035em; margin: 48px 0 12px; line-height: 1.3; }
.service p { color: var(--muted); font-size: 15px; transition: color 0.5s; }
.service:hover p { color: rgba(247, 245, 241, 0.7); }
.service ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 24px; }
.service li { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); transition: border-color 0.5s; }
.service:hover li { border-color: rgba(247, 245, 241, 0.22); }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.process-head { position: sticky; top: 110px; margin-bottom: 0; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); font-size: 13px;
  transition: background 0.5s var(--ease) 0.3s, color 0.5s var(--ease) 0.3s, border-color 0.5s var(--ease) 0.3s;
}
.step.in .step-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { font-size: clamp(18px, 1.6vw, 23px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.35; margin: 6px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }
.when {
  font-family: var(--mono); font-size: 12px; font-weight: 500; white-space: nowrap;
  padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-top: 6px;
}
.step.key .when, .step:nth-child(3) .when { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- sample ---------- */
.cases { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.case {
  border-radius: var(--radius); padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.case:hover { box-shadow: 0 30px 60px -30px rgba(26, 26, 24, 0.28); }
.case-a { grid-column: span 7; grid-row: span 2; background: var(--ink); color: var(--bg); border-color: transparent; }
.case-b { grid-column: span 5; background: var(--accent); color: var(--on-accent); border-color: transparent; }
.case-c { grid-column: span 5; }
.case-d { grid-column: span 12; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; overflow: hidden; background: var(--stone); border-color: transparent; }

.case-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(26, 26, 24, 0.07); }
.case-a .tag, .case-b .tag { background: rgba(247, 245, 241, 0.14); }
.case-top .mono { opacity: 0.55; font-size: 11px; }
.case h3 { font-size: clamp(21px, 2.1vw, 28px); font-weight: 600; line-height: 1.35; letter-spacing: -0.035em; }
.case p { font-size: 15px; opacity: 0.72; }

/* funnel */
.funnel { margin: auto 0; padding: 18px 0; display: grid; gap: 4px; }
.f-row { display: grid; grid-template-columns: 80px 1fr 48px; align-items: center; gap: 14px; }
.f-label { font-size: 14px; color: rgba(247, 245, 241, 0.75); }
.f-bar { height: 34px; border-radius: 6px; background: rgba(247, 245, 241, 0.06); overflow: hidden; }
.f-bar i {
  display: block; height: 100%; width: var(--w); border-radius: 6px; background: rgba(247, 245, 241, 0.82);
  transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease);
}
.f-bar i.hot { background: var(--accent-soft); }
.case-a.in .f-bar i { transform: scaleX(1); }
.f-row:nth-child(3) .f-bar i { transition-delay: 0.15s; }
.f-row:nth-child(5) .f-bar i { transition-delay: 0.3s; }
.f-row:nth-child(7) .f-bar i { transition-delay: 0.45s; }
.f-row b { font-family: var(--mono); font-weight: 500; font-size: 20px; text-align: right; }
.f-gap { margin-left: 94px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(247, 245, 241, 0.45); padding: 2px 0; }
.f-gap span::before { content: "↓ "; }
.f-gap.hot { color: var(--accent-soft); }
.f-gap em { font-style: normal; font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.45; } }

/* directions */
.directions { display: grid; gap: 10px; }
.directions li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid rgba(247, 245, 241, 0.22); }
.directions .mono { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--accent-deep); font-weight: 600; }
.directions b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.directions p { font-size: 14px; opacity: 0.8; }

/* checklist */
.checklist { display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.checklist li:last-child { border-bottom: 0; }
.checklist i {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink); position: relative;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.checklist i::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform 0.35s var(--ease);
}
.case-c.in .checklist i { background: var(--accent); border-color: var(--accent); }
.case-c.in .checklist i::after { transform: rotate(45deg) scale(1); }
.checklist li:nth-child(1) i, .checklist li:nth-child(1) i::after { transition-delay: 0.4s; }
.checklist li:nth-child(2) i, .checklist li:nth-child(2) i::after { transition-delay: 0.7s; }
.checklist li:nth-child(3) i, .checklist li:nth-child(3) i::after { transition-delay: 1.0s; }
.checklist li:nth-child(4) i, .checklist li:nth-child(4) i::after { transition-delay: 1.3s; }

/* report doc */
.case-d-text { display: flex; flex-direction: column; gap: 18px; }
.doc { position: relative; height: 340px; display: grid; place-items: center; }
.doc-page {
  position: relative; width: min(280px, 80%); aspect-ratio: 1 / 1.3;
  background: var(--bg); border-radius: 4px;
  box-shadow: 0 26px 50px -24px rgba(26, 26, 24, 0.34), 0 2px 6px rgba(26, 26, 24, 0.1);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transform: rotate(-4deg) translateY(30px); transition: transform 0.7s var(--ease);
}
.doc-page.back { position: absolute; background: var(--ink); transform: rotate(5deg) translate(18px, 30px); }
.case-d:hover .doc-page:not(.back) { transform: rotate(0) translateY(0); }
.case-d:hover .doc-page.back { transform: rotate(9deg) translate(36px, 10px); }
.doc-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.doc-head .mono { font-size: 10px; }
.doc-head .mono:first-child { font-family: var(--serif); font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: 0.02em; color: var(--ink); }
.doc-title { font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -0.035em; }
.doc-title::before { content: ""; display: block; width: 22px; height: 3px; background: var(--accent); margin-bottom: 10px; }
.doc-toc { display: grid; gap: 7px; margin-top: auto; }
.doc-toc li { display: flex; gap: 10px; font-size: 12px; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.doc-toc span { font-family: var(--mono); color: var(--accent); font-weight: 600; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 14px; align-items: start; }
.price-card {
  position: sticky; top: 110px;
  background: var(--ink); color: var(--bg); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 40px); overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 138, 107, 0.65), transparent 65%);
  animation: float 8s ease-in-out infinite;
}
.price-card > * { position: relative; }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-top .mono { color: var(--accent-soft); font-size: 12px; }
.badge { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.price-name { margin-top: 36px; font-size: 15px; color: rgba(247, 245, 241, 0.7); }
.price { display: grid; margin: 6px 0 28px; }
.price s { font-size: 15px; color: rgba(247, 245, 241, 0.45); }
.price b { font-family: var(--mono); font-weight: 500; font-size: clamp(48px, 5.2vw, 76px); letter-spacing: -0.06em; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 0.34em; font-weight: 400; letter-spacing: -0.02em; margin-left: 6px; }
.price-meta { display: grid; margin-bottom: 26px; border-top: 1px solid rgba(247, 245, 241, 0.14); }
.price-meta li { display: grid; grid-template-columns: 56px 1fr; font-size: 15px; padding: 12px 0; border-bottom: 1px solid rgba(247, 245, 241, 0.14); }
.price-meta span { color: rgba(247, 245, 241, 0.5); font-size: 13px; }
.price-card .btn { background: var(--accent); color: var(--on-accent); }
.price-card .btn:hover { background: var(--bg); color: var(--ink); }
.price-card .fine { color: rgba(247, 245, 241, 0.5); text-align: center; }

.scope { display: grid; gap: 14px; }
.scope-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 34px); }
.scope-block h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
.scope-block.muted { background: transparent; }
.ticks, .crosses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.ticks li, .crosses li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.ticks li::before {
  content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600;
}
.crosses li { color: var(--muted); }
.crosses li::before {
  content: "×"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 14px;
}
.prep { display: grid; }
.prep li { display: grid; grid-template-columns: 36px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.prep .mono { color: var(--accent); font-weight: 600; padding-top: 2px; }
.scope-block .fine b { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact {
  position: relative; overflow: hidden;
  margin: clamp(96px, 13vw, 180px) 14px 0;
  border-radius: 28px; background: var(--ink); color: var(--bg);
  padding: clamp(72px, 10vw, 140px) var(--pad);
}
.contact::before {
  content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -18vw; bottom: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 138, 107, 0.6), transparent 62%);
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-40px, -50px) scale(1.08); } }
.contact-inner { position: relative; max-width: 1180px; margin: 0 auto; }
.contact-inner > .mono { color: var(--accent-soft); }
.contact-title { font-size: clamp(38px, 6.6vw, 96px); line-height: 1.18; margin: 22px 0 28px; letter-spacing: -0.045em; }
.contact-inner > p { color: rgba(247, 245, 241, 0.66); font-size: clamp(15px, 1.3vw, 18px); max-width: 680px; }
.contact-inner > p strong { color: var(--bg); font-weight: 600; }
.dm-handle {
  display: inline-flex; align-items: center; gap: 0.3em;
  margin: 44px 0 32px;
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(34px, 6.4vw, 96px); letter-spacing: -0.05em; line-height: 1.1;
  border-bottom: 2px solid rgba(247, 245, 241, 0.25); padding-bottom: 12px;
  transition: color 0.3s, border-color 0.3s;
  will-change: transform;
  max-width: 100%; overflow-wrap: anywhere;
}
.dm-handle:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.dm-handle .ig { width: 0.78em; height: 0.78em; flex: none; margin-right: 0.12em; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dm-handle .ig .ig-dot { fill: var(--accent-soft); stroke: none; }
.dm-handle .arrow { font-size: 0.6em; transition: transform 0.4s var(--ease); }
.dm-handle:hover .arrow { transform: translate(6px, -6px); }

.dm-guide { margin-bottom: 28px; }
.dm-guide-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.dm-guide-title .mono { padding: 3px 8px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.contact-list li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(247, 245, 241, 0.2); font-size: 14px; }
.contact-list .mono { color: var(--accent-soft); font-size: 11px; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-actions .btn { padding: 18px 30px; font-size: 16px; }
.contact .dm-note { color: rgba(247, 245, 241, 0.5); }

.alt-contact {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(247, 245, 241, 0.14);
  font-size: 14px; color: rgba(247, 245, 241, 0.55);
}
.alt-contact a { color: var(--bg); font-family: var(--mono); border-bottom: 1px solid rgba(247, 245, 241, 0.35); transition: color 0.2s, border-color 0.2s; }
.alt-contact a:hover { color: var(--accent-soft); border-color: var(--accent-soft); }
.alt-contact button { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(247, 245, 241, 0.25); color: rgba(247, 245, 241, 0.75); transition: border-color 0.2s, color 0.2s; }
.alt-contact button:hover { border-color: var(--accent-soft); color: var(--accent-soft); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--accent); color: var(--on-accent); font-weight: 500;
  padding: 12px 22px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease); z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  border: 1px solid rgba(247, 245, 241, 0.16);
  box-shadow: 0 12px 28px -12px rgba(26, 26, 24, 0.5);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top:hover { background: var(--accent); transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top-ring { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2; }
.to-top-ring .track { stroke: rgba(247, 245, 241, 0.14); }
.to-top-ring .bar { stroke: var(--accent-soft); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--scroll, 0) * 100); }
.to-top:hover .to-top-ring .bar { stroke: var(--bg); }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--pad) 36px; font-size: 13px; color: var(--muted);
  max-width: 1440px; margin: 0 auto;
}
.footer-brand { display: inline-flex; align-items: baseline; gap: 10px; letter-spacing: 0.06em; }
.footer-brand .wordmark { font-size: 22px; color: var(--ink); letter-spacing: 0.02em; }
.footer a:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.case.reveal.in:hover { transform: translateY(-6px); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 300px; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .about-grid, .process-grid, .pricing-grid { grid-template-columns: 1fr; }
  .about-card { position: relative; top: 0; grid-template-columns: 120px 1fr; align-items: center; }
  .about-card .avatar { grid-row: span 3; aspect-ratio: 1; }
  .about-card .avatar-mark { display: none; }
  .about-card .avatar::after { display: none; }
  .about-card .insta { grid-column: 1 / -1; }
  .process-head, .price-card { position: relative; top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .case-a, .case-b, .case-c, .case-d { grid-column: span 12; }
  .case-d { grid-template-columns: 1fr; gap: 10px; }
  .doc { height: 400px; }
  .doc-page { transform: rotate(-4deg); }
  .doc-page.back { transform: rotate(5deg) translate(18px, 0); }
  .br-pc { display: none; }
}
@media (max-width: 640px) {
  .fit-list, .service-list, .ticks, .crosses { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 96px 1fr; }
  .about-tags { grid-column: 1 / -1; }
  .service { min-height: 0; }
  .service h3 { margin-top: 28px; }
  .step { grid-template-columns: 44px 1fr; }
  .step .when { grid-column: 2; justify-self: start; margin-top: 0; }
  .hero-cta { width: 100%; justify-content: space-between; }
  .tagline { font-size: 13px; }
  .flow-node.stop em { font-size: 11px; padding: 3px 8px; }
  .f-row { grid-template-columns: 64px 1fr 40px; gap: 10px; }
  .f-gap { margin-left: 74px; }
  .contact { margin-inline: 8px; border-radius: 22px; }
  .to-top { width: 48px; height: 48px; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
