/* jobclaw — warm editorial design system */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..800,30..100&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #F6F1E8;
  --paper-2: #EFE7D7;
  --paper-3: #E6DAC5;
  --ink: #2A2522;
  --ink-2: #4A413A;
  --ink-3: #7A6E62;
  --ink-4: #A89A89;
  --line: #DDD0B8;
  --line-soft: #E8DDC8;
  --accent: #B65A3C;        /* terracotta */
  --accent-2: #8C3F2A;
  --accent-soft: #E8C9B4;
  --olive: #6B6A3E;
  --plum: #6F4053;
  --shadow-1: 0 1px 0 rgba(60,40,20,0.04), 0 6px 24px -12px rgba(60,40,20,0.10);
  --shadow-2: 0 1px 0 rgba(60,40,20,0.05), 0 18px 50px -28px rgba(60,40,20,0.18);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  --serif: "Fraunces", "Source Serif Pro", Georgia, serif;
  --sans: "Pretendard", "Apple SD Gothic Neo", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

.page {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}
.page::before {
  /* paper grain */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(60,40,20,0.035) 1px, transparent 1px),
    radial-gradient(rgba(60,40,20,0.025) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}
.page > * { position: relative; z-index: 1; }

.serif { font-family: var(--serif); font-optical-sizing: auto; font-variation-settings: "SOFT" 50; letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6;
}

/* Test mode banner */
.testbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 9px 24px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono);
}
.testbar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }

/* Header */
.hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.hdr-brand { display: flex; align-items: center; gap: 12px; }
.hdr-brand .mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-style: italic;
  font-size: 18px;
}
.hdr-brand .name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.hdr-brand .tag {
  font-size: 11px; color: var(--ink-3);
  border-left: 1px solid var(--line); padding-left: 12px; margin-left: 4px;
  font-family: var(--mono); letter-spacing: 0.02em;
}
.hdr-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--ink-2); }
.hdr-nav a { color: inherit; text-decoration: none; padding: 12px 4px; transition: color .2s ease; }
.hdr-nav a:hover { color: var(--accent-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: transform .2s ease, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-soft { background: var(--paper-2); color: var(--ink); border-color: var(--line); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* Hero */
.hero { padding: 80px 56px 72px; max-width: 1200px; margin: 0 auto; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-bottom: 28px; max-width: 720px; }
.chip {
  font-size: 12px; padding: 6px 12px;
  border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line-soft); color: var(--ink-2);
  font-family: var(--mono); letter-spacing: 0.01em;
}
.chip.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .chips .chip {
  opacity: 0;
  transform: translateY(8px);
  animation: chipReveal 480ms ease-out forwards;
}
.hero .chips .chip:nth-child(1) { animation-delay: 220ms; }
.hero .chips .chip:nth-child(2) { animation-delay: 290ms; }
.hero .chips .chip:nth-child(3) { animation-delay: 360ms; }
.hero .chips .chip:nth-child(4) { animation-delay: 430ms; }
.hero .chips .chip:nth-child(5) { animation-delay: 500ms; }
.hero .chips .chip:nth-child(6) { animation-delay: 570ms; }
.hero .chips .chip:nth-child(7) { animation-delay: 640ms; }
.hero .chips .chip:nth-child(8) { animation-delay: 710ms; }
@keyframes chipReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Hero entry cascade — 다이나믹 첫 인상 */
.hero .beta-badge,
.hero .h1,
.hero .lede,
.hero .hero-cta,
.hero .hero-meta,
.hero-art {
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp 700ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.hero-art        { animation-delay: 80ms;  transform: translateY(0) scale(0.97); }
.hero .beta-badge { animation-delay: 180ms; }
.hero .h1        { animation-delay: 240ms; }
.hero .lede      { animation-delay: 760ms; }
.hero .hero-cta  { animation-delay: 840ms; }
.hero .hero-meta { animation-delay: 920ms; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero .chips .chip,
  .hero .beta-badge,
  .hero .h1,
  .hero .lede,
  .hero .hero-cta,
  .hero .hero-meta,
  .hero-art {
    animation: none; opacity: 1; transform: none;
  }
}
.h1 {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 360;
  margin: 0 0 28px;
  font-variation-settings: "SOFT" 30;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.h1 em { font-style: italic; color: var(--accent-2); font-weight: 380; }
.h1 .ko { font-family: var(--sans); font-weight: 700; letter-spacing: -0.025em; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0 0 32px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 22px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); flex-wrap: wrap; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.beta-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 12px; color: var(--ink-2);
  margin-bottom: 24px;
}
.beta-badge .pill { background: var(--accent); color: var(--paper); border-radius: 999px; padding: 3px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; }

.hero-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: end; }
.hero-art {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.hero-art .stripe-bg {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--paper-2), var(--paper-2) 14px, var(--paper-3) 14px, var(--paper-3) 16px);
  opacity: .8;
}
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12%; filter: saturate(0.9) contrast(0.95); }
.hero-art .frame-meta {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--ink-3);
}

/* Section frame */
.sect { padding: 96px 56px; max-width: 1200px; margin: 0 auto; }
.sect-head { margin-bottom: 56px; max-width: 760px; }
.sect-head h2 {
  font-family: var(--sans);
  font-size: 44px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 14px 0 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.sect-head h2 .em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-2); letter-spacing: -0.02em; }
.sect-head p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 560px; }

.divider { border: 0; height: 1px; background: var(--line-soft); margin: 0; }

/* Cards grid */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.card .num {
  font-family: var(--serif); font-size: 13px; font-style: italic; color: var(--accent-2);
}
.card h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-3);
}

/* Skill cards w/ slash */
.skill-reveal { display: block; }
.skill-reveal-summary {
  display: none;
  list-style: none;
  cursor: pointer;
  padding: 14px 22px;
  margin: 24px auto 0;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--paper-2);
  transition: background .2s ease, transform .2s ease;
}
.skill-reveal-summary::-webkit-details-marker { display: none; }
.skill-reveal-summary::before { content: "+ 4개 스킬 더 보기"; }
.skill-reveal[open] .skill-reveal-summary::before { content: "− 접기"; }
.skill-reveal-summary:hover { background: var(--paper-3); transform: translateY(-1px); }
.skill-reveal[open] .skill-extra {
  animation: skillReveal 380ms ease-out forwards;
}
@keyframes skillReveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .skill-reveal[open] .skill-extra { animation: none; }
}
.skill-card { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 22px; }
.skill-card .cmd { font-family: var(--mono); font-size: 13px; color: var(--accent-2); background: var(--paper-2); border: 1px solid var(--line-soft); padding: 4px 10px; border-radius: 6px; display: inline-block; margin-bottom: 14px; }
.skill-card h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.skill-card p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.step { padding: 36px 32px; border-right: 1px solid var(--line-soft); }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--serif); font-size: 56px; font-weight: 300; color: var(--accent); font-style: italic; line-height: 1; margin-bottom: 22px; letter-spacing: -0.04em; }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.step p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

/* Data sources — unified console with tabs */
.ds-console {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 280px 1fr;
}
.ds-tabs {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line-soft);
}
.ds-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--sans);
  color: var(--ink-2);
  position: relative;
  transition: background .18s ease, color .18s ease;
}
.ds-tab:last-child { border-bottom: 0; }
.ds-tab:hover { background: var(--paper-2); }
.ds-tab.is-active {
  background: var(--paper-2);
  color: var(--ink);
}
.ds-tab.is-active::before {
  content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: var(--accent); border-radius: 2px;
}
.ds-tab-cmd { font-family: var(--mono); font-size: 11px; color: var(--accent-2); letter-spacing: 0.02em; }
.ds-tab-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.ds-tab-count { font-family: var(--mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.ds-panels { padding: 32px 32px 28px; }
.ds-panel { display: none; }
.ds-panel.is-active { display: block; animation: dsPanelIn 320ms ease-out; }
.ds-panel ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ds-panel li { font-size: 13px; color: var(--ink-2); line-height: 1.55; padding-left: 16px; position: relative; }
.ds-panel li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); }
.ds-panel li b { color: var(--ink); font-weight: 600; }
.ds-panel .out { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-family: var(--mono); font-size: 12px; color: var(--accent-2); }
@keyframes dsPanelIn {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ds-panel.is-active { animation: none; }
}

/* Telegram demo */
.tg { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 0; overflow: hidden; }
.tg-head {
  background: var(--paper); border-bottom: 1px solid var(--line-soft);
  padding: 14px 18px; display: flex; align-items: center; gap: 12px;
}
.tg-head .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 17px;
}
.tg-head .who { line-height: 1.2; }
.tg-head .who b { font-size: 14px; }
.tg-head .who small { font-size: 11px; color: var(--ink-3); display: block; margin-top: 2px; }
.tg-head .label { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.tg-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 240px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble .time { display: block; font-size: 10px; opacity: .6; margin-top: 6px; font-family: var(--mono); }
.bubble .file { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: rgba(255,255,255,0.1); border-radius: 8px; font-family: var(--mono); font-size: 11px; margin-bottom: 6px; }
.bubble.bot ul { margin: 6px 0 0; padding-left: 16px; }
.bubble.bot li { margin-bottom: 4px; }

/* Before / After */
.ba { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.ba-head { padding: 22px 28px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ba-head h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.ba-head .case { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ba-cmp { display: grid; grid-template-columns: 1fr 1fr; }
.ba-side { padding: 24px 28px; }
.ba-side.before { background: var(--paper-2); border-right: 1px solid var(--line-soft); }
.ba-side.after { background: var(--paper); }
.ba-side .lbl { font-family: var(--serif); font-style: italic; font-size: 12px; letter-spacing: 0.04em; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ba-side.before .lbl { color: var(--ink-3); }
.ba-side.after .lbl { color: var(--accent-2); }
.ba-side .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ba-side p, .ba-side li { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.ba-side ol { padding-left: 18px; margin: 0; }
.ba-side .quote { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink); font-style: italic; }
.ba-foot { padding: 18px 28px; border-top: 1px dashed var(--line); background: var(--paper-2); font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ba-foot b { color: var(--ink); }

/* Reviews */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rv-grid .rv:nth-child(1) { grid-column: span 2; }
.rv-scroll-hint { display: none; }
.rv { background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rv .qm { font-family: var(--serif); font-size: 64px; line-height: 0.6; color: var(--accent); height: 28px; }
.rv blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.rv .meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: auto; }
.rv .stars { color: var(--accent); font-family: var(--mono); }

/* Footer */
.ftr { padding: 64px 56px 32px; background: var(--ink); color: var(--paper); }
.ftr-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.ftr h4 { margin: 0 0 18px; font-size: 12px; font-family: var(--mono); letter-spacing: 0.06em; color: rgba(246,241,232,0.5); text-transform: uppercase; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr ul a { color: rgba(246,241,232,0.85); text-decoration: none; display: inline-block; padding: 6px 0; min-height: 28px; transition: color .2s ease; }
.ftr ul a:hover { color: var(--paper); }
.ftr .brand-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.ftr .brand-copy { font-size: 14px; line-height: 1.6; color: rgba(246,241,232,0.65); max-width: 320px; }
.ftr .brand-tag { font-family: var(--mono); font-size: 11px; color: rgba(246,241,232,0.4); margin-top: 16px; }
.ftr-meta { max-width: 1200px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(246,241,232,0.12); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: rgba(246,241,232,0.4); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; color: var(--ink-3); font-family: var(--mono); letter-spacing: 0.02em; }
.field input, .field select {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; font-size: 15px;
  font-family: var(--sans); color: var(--ink); min-height: 48px;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(182,90,60,0.10); }
.field input::placeholder { color: var(--ink-4); }

/* Mobile-specific tweaks.
 *
 * Two parallel triggers, same effect:
 *  1. `.page.mobile` — used by the jobclaw_redesign/ JSX design canvas to
 *     preview a phone-sized layout next to the desktop one in a single page.
 *  2. `@media (max-width: 768px)` — fires on actual mobile viewports in
 *     production. Without this, the desktop 1200px grid stays active on
 *     phones and the layout overflows horizontally.
 *
 * Keep the two blocks in lock-step — every rule that lives in one should
 * have a twin in the other. */
.page.mobile .hdr { padding: 14px 16px; }
.page.mobile .hdr-brand .tag { display: none; }
.page.mobile .hdr-brand .name { font-size: 20px; }
.page.mobile .hero { padding: 24px 20px 32px; }
.page.mobile .hero-grid { grid-template-columns: 1fr; gap: 24px; }
.page.mobile .hero-grid > div:first-child { order: 2; }
.page.mobile .hero-grid .hero-art { order: 1; aspect-ratio: 16/10; max-height: 260px; }
.page.mobile .h1 { font-size: 40px; line-height: 1.05; }
.page.mobile .sect { padding: 44px 20px; }
.page.mobile .sect-head h2 { font-size: 26px; }
.page.mobile .sect-head { margin-bottom: 24px; }
.page.mobile .divider { margin-bottom: 56px !important; }
.page.mobile .grid-4, .page.mobile .grid-3, .page.mobile .grid-2 { grid-template-columns: 1fr; }
.page.mobile #demo .grid-3 {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 20px;
  margin: 0 -20px;
  padding: 4px 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page.mobile #demo .grid-3::-webkit-scrollbar { display: none; }
.page.mobile #demo .grid-3 .tg {
  flex: 0 0 86%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page.mobile .rv-grid {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 20px;
  margin: 0 -20px;
  padding: 4px 20px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.page.mobile .rv-grid::-webkit-scrollbar { display: none; }
.page.mobile .rv-grid .rv {
  flex: 0 0 84%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.page.mobile .rv-grid .rv:nth-child(1) { grid-column: auto; }
.page.mobile .rv-scroll-hint {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}
.page.mobile .rv-scroll-hint::before { content: "←"; }
.page.mobile .rv-scroll-hint::after { content: "→"; }
.page.mobile .ds-console { grid-template-columns: 1fr; }
.page.mobile .ds-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
.page.mobile .ds-tab { padding: 14px 16px; flex: 0 0 auto; min-width: 160px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
.page.mobile .ds-tab:last-child { border-right: 0; }
.page.mobile .ds-tab.is-active::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; }
.page.mobile .ds-panels { padding: 24px 20px; }
.page.mobile .ds-panel ul { grid-template-columns: 1fr; }
.page.mobile .rv-grid .rv:nth-child(1) { grid-column: auto; }
.page.mobile .steps { grid-template-columns: 1fr; }
.page.mobile .step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
.page.mobile .step:last-child { border-bottom: 0; }
.page.mobile .ba-cmp { grid-template-columns: 1fr; }
.page.mobile .ba-side.before { border-right: 0; border-bottom: 1px solid var(--line-soft); }
.page.mobile .ftr { padding: 48px 20px 24px; }
.page.mobile .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
.page.mobile .ftr-meta { flex-direction: column; gap: 8px; }
.page.mobile .testbar { font-size: 11px; padding: 8px 16px; text-align: center; }
.page.mobile .hdr-nav { display: none; }
.page.mobile .hero .chips .chip-extra { display: none; }
.page.mobile .hero-meta { gap: 12px 16px; }
.page.mobile .hero-meta .hero-meta-extra { display: none; }
.page.mobile .skill-reveal-summary { display: inline-block; }
.page.mobile .skill-reveal:not([open]) .skill-extra { display: none; }

@media (max-width: 768px) {
  .hdr { padding: 14px 16px; }
  .hdr-brand .tag { display: none; }
  .hdr-brand .name { font-size: 20px; }
  .hero { padding: 24px 20px 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid > div:first-child { order: 2; }
  .hero-grid .hero-art { order: 1; aspect-ratio: 16/10; max-height: 260px; }
  .h1 { font-size: clamp(26px, 8.5vw, 40px); line-height: 1.08; }
  .lede { font-size: 15px; }
  .sect { padding: 44px 20px; }
  .sect-head h2 { font-size: clamp(20px, 5.5vw, 26px); word-break: keep-all; overflow-wrap: break-word; }
  .sect-head p { font-size: 15px; }
  .sect-head { margin-bottom: 24px; }
  .divider { margin-bottom: 56px !important; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  #demo .grid-3 {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    margin: 0 -20px;
    padding: 4px 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #demo .grid-3::-webkit-scrollbar { display: none; }
  #demo .grid-3 .tg {
    flex: 0 0 86%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .rv-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    margin: 0 -20px;
    padding: 4px 20px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .rv-grid::-webkit-scrollbar { display: none; }
  .rv-grid .rv {
    flex: 0 0 84%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .rv-scroll-hint {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-3);
  }
  .rv-scroll-hint::before { content: "←"; }
  .rv-scroll-hint::after { content: "스와이프"; }
  .ds-console { grid-template-columns: 1fr; }
  .ds-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .ds-tab { padding: 14px 16px; flex: 0 0 auto; min-width: 160px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .ds-tab:last-child { border-right: 0; }
  .ds-tab.is-active::before { left: 12px; right: 12px; top: auto; bottom: 0; width: auto; height: 2px; }
  .ds-panels { padding: 24px 20px; }
  .ds-panel ul { grid-template-columns: 1fr; }
  .rv-grid .rv:nth-child(1) { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .step:last-child { border-bottom: 0; }
  .ba-cmp { grid-template-columns: 1fr; }
  .ba-side.before { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .ftr { padding: 48px 20px 24px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr-meta { flex-direction: column; gap: 8px; }
  .testbar { font-size: 11px; padding: 8px 16px; text-align: center; }
  .hdr-nav { display: none; }
  .hero .chips .chip-extra { display: none; }
  .hero-meta { gap: 12px 16px; }
  .hero-meta .hero-meta-extra { display: none; }
  .skill-reveal-summary { display: inline-block; }
  .skill-reveal:not([open]) .skill-extra { display: none; }
}
