  /* 한 가지 테마(다크)만 씁니다. 모양 규칙: 버튼 10px, 카드와 사진 16px, 배지는 원형 */
  :root {
    --bg: #161616;
    --bg-2: #1C1C1C;
    --card: #222222;
    --line: #2E2E2E;
    --text: #F4F4F2;
    --text-2: #C8C8C4;
    --muted: #8E8E8A;
    --red: #D9161F;
    --red-hover: #EA2830;
    --red-text: #FF4A52;
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }
  p { margin: 0; }
  h1, h2, h3 { margin: 0; letter-spacing: -0.035em; }
  .nowrap { white-space: nowrap; }

  /* 두 언어가 모두 HTML에 있고 선택한 쪽만 보입니다 */
  html[data-lang="ko"] .en,
  html[data-lang="en"] .ko { display: none !important; }

  .wrap { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
  section { padding-block: 104px; }
  .alt { background: var(--bg-2); border-block: 1px solid var(--line); }
  .label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
  .h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.15; }
  .label + .h2 { margin-top: 14px; }
  .lead { margin-top: 16px; max-width: 38em; font-size: 1.08rem; color: var(--text-2); }

  /* Header */
  .top { position: sticky; top: 0; z-index: 10; background: rgba(22, 22, 22, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .top .wrap { display: flex; align-items: center; gap: 28px; height: 70px; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand-logo { width: 40px; height: 40px; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; }
  .brand-name { font-weight: 800; font-size: 1.06rem; letter-spacing: 0.02em; }
  .nav { display: flex; gap: 24px; margin-left: auto; font-size: 0.95rem; font-weight: 600; }
  .nav a { text-decoration: none; color: var(--text-2); }
  .nav a:hover { color: var(--text); }
  .top-actions { display: flex; align-items: center; gap: 10px; }
  .lang { font: inherit; font-size: 0.85rem; font-weight: 700; background: none; color: var(--text-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; }
  .lang:hover { color: var(--text); border-color: var(--muted); }

  .btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; font-weight: 800; font-size: 1rem; text-decoration: none; padding: 15px 26px; border-radius: 10px; border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease, transform .1s ease; }
  .btn:active { transform: translateY(1px); }
  .btn-red { background: var(--red); color: #fff; }
  .btn-red:hover { background: var(--red-hover); }
  .btn-line { border-color: var(--line); color: var(--text); background: var(--bg-2); }
  .btn-line:hover { border-color: var(--muted); }
  .btn-sm { padding: 9px 16px; font-size: 0.9rem; }

  /* Hero */
  .hero { padding-block: 72px 56px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.045em; }
  html[lang="ko"] .hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
  .hero h1 mark { background: none; color: var(--red-text); box-shadow: inset 0 -0.16em 0 rgba(217, 22, 31, 0.35); }
  .hero .lead { margin-top: 26px; }
  .hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
  .hero-media { position: relative; margin: 0; }
  .hero-media .photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
  .badge { position: absolute; left: -26px; bottom: -34px; width: 128px; height: 128px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--red); }
  .badge img { width: 74%; }

  /* Stats */
  .stats { padding-block: 56px 96px; }
  .stats dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .stats dl > div { border-top: 2px solid var(--line); padding-top: 18px; }
  .stats dl > div:first-child { border-top-color: var(--red); }
  .stats dt { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
  .stats dd { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }

  /* Cards */
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
  .card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 30px; }
  .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-text); border: 1px solid rgba(255, 74, 82, 0.4); border-radius: 6px; padding: 3px 8px; }
  .card h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 800; }
  .card p { margin-top: 10px; color: var(--text-2); font-size: 0.97rem; }
  .card .meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
  .card.hl { border-color: rgba(255, 74, 82, 0.45); }

  /* Claude tools */
  .tools { grid-template-columns: repeat(3, 1fr); }
  .tools .card { padding: 30px 28px 26px; display: flex; flex-direction: column; align-items: flex-start; }
  .tools .card .meta { align-self: stretch; }
  .tools .card h3 { font-size: 1.32rem; }
  .tools .card .meta { margin-top: auto; }
  .tools .card p { margin-bottom: 20px; }
  .privacy { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
  .check { margin-top: 64px; }
  .check h3 { font-size: 1.32rem; font-weight: 800; }
  .check .lead { font-size: 1rem; margin-top: 10px; }
  .fixes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
  .fix { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px; }
  .fix .why { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
  .fix .before { margin-top: 12px; color: var(--muted); }
  .fix .before s { text-decoration-color: var(--red-text); text-decoration-thickness: 2px; }
  .fix .after { margin-top: 2px; font-size: 1.12rem; font-weight: 800; }

  /* Story */
  .story { list-style: none; margin: 48px 0 0; padding: 0; max-width: 860px; }
  .story li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
  .story li:last-child { border-bottom: 1px solid var(--line); }
  .story time { font-weight: 800; color: var(--red-text); font-variant-numeric: tabular-nums; }
  .story h3 { font-size: 1.1rem; font-weight: 700; }
  .story p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; }

  /* Studio */
  .studio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
  .studio figure { margin: 0; }
  .studio figure img { width: 100%; border-radius: 16px; border: 1px solid var(--line); }
  .studio figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }

  /* Contact */
  .contact .cards a { text-decoration: none; }
  .contact .card .big { display: block; margin-top: 12px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
  .contact .card a.big:hover { color: var(--red-text); }

  /* Footer */
  footer { border-top: 1px solid var(--line); padding-block: 36px 56px; font-size: 0.86rem; color: var(--muted); }
  footer .wrap { display: grid; gap: 8px; }
  footer .row { display: flex; flex-wrap: wrap; gap: 4px 20px; }
  footer a { color: var(--text-2); }

  /* About page */
  .nav a[aria-current="page"] { color: var(--text); }
  .about-hero { padding-block: 80px 72px; }
  .about-hero .h2 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); }
  .facts { margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .facts > div { padding: 18px 0; border-top: 1px solid var(--line); }
  .facts > div.wide { grid-column: 1 / -1; }
  .facts dt { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
  .facts dd { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; }
  .facts a, .records a, .note a { color: var(--text); }
  .facts a:hover, .records a:hover, .note a:hover { color: var(--red-text); }
  .records { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
  .records li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
  .records li > a { font-weight: 800; font-size: 1.08rem; }
  .records li p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }
  .note { margin-top: 24px; color: var(--text-2); }
  .prose { margin-top: 28px; max-width: 760px; display: grid; gap: 18px; color: var(--text-2); font-size: 1.05rem; }

  /* Responsive */
  @media (max-width: 1000px) {
    .nav { display: none; }
    .top-actions { margin-left: auto; }
    .hero .wrap, .studio-grid { grid-template-columns: 1fr; gap: 56px; }
    .hero-media { max-width: 620px; }
    .cards, .tools { grid-template-columns: repeat(2, 1fr); }
    .stats dl, .fixes { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 767px) {
    .wrap { padding-inline: 20px; }
    section { padding-block: 72px; }
    .hero { padding-block: 40px 40px; }
    .stats { padding-block: 64px 72px; }
    .hero .ctas .btn { flex: 1 1 auto; }
    .badge { width: 96px; height: 96px; left: 14px; bottom: -40px; }
    .cards, .tools, .fixes { grid-template-columns: 1fr; }
    .stats dl { gap: 28px 16px; }
    .story li { grid-template-columns: 1fr; gap: 6px; }
    .studio-grid { gap: 32px; }
    .facts { grid-template-columns: 1fr; }
    .about-hero { padding-block: 48px 48px; }
  }

  /* Detail pages (projects, notes, legal) */
  .doc-hero { padding-block: 80px 16px; }
  .wrap.narrow { max-width: 820px; }
  .doc-hero .h2 { margin-top: 14px; font-size: clamp(2rem, 4vw, 3rem); }
  .doc-body { padding-block: 24px 96px; }
  .prose-doc { color: var(--text-2); font-size: 1.05rem; line-height: 1.75; }
  .prose-doc h2 { color: var(--text); font-size: 1.45rem; font-weight: 800; margin: 40px 0 12px; }
  .prose-doc p, .prose-doc ul, .prose-doc ol { margin: 0 0 16px; }
  .prose-doc ul, .prose-doc ol { padding-left: 1.3em; }
  .prose-doc li { margin-bottom: 8px; }
  .prose-doc strong { color: var(--text); }
  .prose-doc a, .doc-meta a, .note-list a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .prose-doc a:hover, .doc-meta a:hover, .note-list a:hover { color: var(--red-text); }
  .doc-meta { margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
  .note-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
  .note-list li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
  .note-list li a { font-weight: 800; font-size: 1.1rem; }
  .note-list li p { margin: 6px 0 0; color: var(--muted); font-size: 0.95rem; }
  .card .more { margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--red-text); text-decoration: none; }
  .card .more:hover { text-decoration: underline; }
  footer .links { gap: 6px 18px; }
  @media (max-width: 767px) {
    .doc-hero { padding-block: 48px 8px; }
    .doc-body { padding-block: 16px 64px; }
  }
