:root {
      --ink: #192128;
      --muted: #66717c;
      --line: #d7ddd9;
      --paper: #f7f4ee;
      --white: #fffdf8;
      --green: #1f4a3d;
      --gold: #b3864b;
      --blue: #1b3047;
      --shadow: 0 24px 70px rgba(18, 31, 42, .16);
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      color: var(--ink);
      font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
      line-height: 1.65;
      background:
        radial-gradient(circle at 16% 10%, rgba(179, 134, 75, .18), transparent 28%),
        linear-gradient(135deg, #eef2ef 0%, var(--paper) 45%, #e8eeea 100%);
    }

    a { color: inherit; text-decoration: none; }

    .page {
      min-height: 100vh;
      padding: 32px;
      display: grid;
      place-items: center;
    }

    .site-shell {
      width: min(1340px, 100%);
      display: grid;
      grid-template-columns: 196px minmax(0, 1fr);
      gap: 22px;
      align-items: start;
    }

    .side-nav {
      position: sticky;
      top: 32px;
      display: grid;
      gap: 10px;
      padding: 14px;
      border: 1px solid rgba(31, 74, 61, .16);
      border-radius: 8px;
      background: rgba(255, 253, 248, .88);
      box-shadow: 0 18px 48px rgba(18, 31, 42, .12);
      backdrop-filter: blur(10px);
    }

    .side-nav-title {
      margin: 0 0 4px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .12em;
    }

    .side-nav a {
      min-height: 42px;
      padding: 8px 10px;
      display: flex;
      align-items: center;
      gap: 8px;
      border: 1px solid transparent;
      border-radius: 6px;
      color: #31404a;
      font-size: 14px;
      font-weight: 800;
    }

    .side-nav a::before {
      content: attr(data-icon);
      width: 24px;
      height: 24px;
      display: inline-grid;
      place-items: center;
      border-radius: 6px;
      background: rgba(31, 74, 61, .08);
      color: var(--green);
      font-size: 13px;
      line-height: 1;
    }

    .side-nav a.active {
      border-color: rgba(31, 74, 61, .22);
      background: var(--green);
      color: #fff;
    }

    .side-nav a.active::before {
      background: rgba(255, 255, 255, .18);
      color: #fff;
    }

    .view-stack { min-width: 0; }

    .site-view[hidden] { display: none; }

    .card {
      width: min(1120px, 100%);
      overflow: hidden;
      border: 1px solid rgba(31, 74, 61, .18);
      border-radius: 8px;
      background: var(--white);
      box-shadow: var(--shadow);
      display: grid;
      grid-template-columns: minmax(340px, 42%) 1fr;
    }

    .portrait {
      position: relative;
      min-height: 760px;
      background: #879095;
      isolation: isolate;
    }

    .portrait::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      background:
        linear-gradient(180deg, rgba(17, 31, 45, .04), rgba(17, 31, 45, .58)),
        linear-gradient(90deg, transparent 58%, rgba(255, 253, 248, .2));
      pointer-events: none;
    }

    .portrait img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 22%;
      filter: saturate(.95) contrast(1.02);
    }

    .photo-caption {
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 28px;
      z-index: 2;
      color: #fff;
    }

    .photo-caption span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      border: 1px solid rgba(255, 255, 255, .34);
      background: rgba(8, 21, 30, .36);
      backdrop-filter: blur(10px);
      border-radius: 999px;
      font-size: 13px;
      letter-spacing: .08em;
    }

    .photo-caption h1 {
      margin: 16px 0 4px;
      font-size: clamp(40px, 5vw, 64px);
      line-height: 1.05;
      font-weight: 800;
      letter-spacing: 0;
    }

    .photo-caption p {
      margin: 0;
      font-size: 16px;
      color: rgba(255, 255, 255, .88);
    }

    .content {
      padding: 44px 48px;
      display: flex;
      flex-direction: column;
      gap: 26px;
    }

    .profile-heading {
      display: grid;
      gap: 4px;
      margin-bottom: 18px;
    }

    .profile-name {
      margin: 0;
      color: var(--blue);
      font-size: clamp(30px, 3.4vw, 48px);
      line-height: 1.08;
      font-weight: 800;
      letter-spacing: 0;
    }

    .profile-role {
      margin: 0;
      color: #4d5962;
      font-size: 16px;
      font-weight: 700;
    }

    .eyebrow {
      margin: 0 0 10px;
      color: var(--gold);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .16em;
      text-transform: uppercase;
    }

    .headline {
      margin: 0;
      max-width: 760px;
      font-size: clamp(28px, 3.1vw, 46px);
      line-height: 1.18;
      font-weight: 800;
      letter-spacing: 0;
      color: var(--green);
    }

    .lead {
      margin: 16px 0 0;
      max-width: 720px;
      color: #38434d;
      font-size: 17px;
    }

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

    .button {
      min-height: 44px;
      padding: 10px 16px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid var(--green);
      background: var(--green);
      color: #fff;
      font-weight: 700;
      font-size: 15px;
    }

    .button.secondary { background: transparent; color: var(--green); }

    .section {
      padding-top: 24px;
      border-top: 1px solid var(--line);
    }

    .section h2 {
      margin: 0 0 14px;
      color: var(--blue);
      font-size: 18px;
      line-height: 1.25;
      letter-spacing: 0;
    }

    .section p { margin: 0; color: #3f4a52; }

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

    .service {
      min-height: 120px;
      padding: 16px;
      border: 1px solid rgba(31, 74, 61, .16);
      border-radius: 8px;
      background: #fbfaf6;
    }

    .service strong {
      display: block;
      margin-bottom: 6px;
      color: var(--green);
      font-size: 16px;
      line-height: 1.35;
    }

    .service span {
      display: block;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.55;
    }

    .chips { display: flex; flex-wrap: wrap; gap: 8px; }

    .chip {
      padding: 6px 10px;
      border: 1px solid rgba(46, 107, 88, .22);
      border-radius: 999px;
      background: rgba(46, 107, 88, .06);
      color: var(--green);
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .contact {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 18px;
      align-items: center;
      padding: 18px;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--green), #18362d);
      color: #fff;
    }

    .contact h2 { margin: 0 0 8px; color: #fff; font-size: 18px; }

    .contact p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14px; }

    .qr {
      width: 116px;
      height: 116px;
      border-radius: 6px;
      background:
        linear-gradient(90deg, #fff 12px, transparent 12px) 0 0 / 24px 24px,
        linear-gradient(#fff 12px, transparent 12px) 0 0 / 24px 24px,
        #d8c097;
      border: 8px solid #fff;
      box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
      flex: 0 0 auto;
    }

    .fineprint { color: var(--muted); font-size: 13px; }

    .subpage {
      width: min(1120px, 100%);
      padding: 42px;
      border: 1px solid rgba(31, 74, 61, .18);
      border-radius: 8px;
      background: var(--white);
      box-shadow: var(--shadow);
    }

    .subpage-header {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 18px;
      align-items: end;
      padding-bottom: 24px;
      border-bottom: 1px solid var(--line);
    }

    .subpage-kicker {
      margin: 0 0 8px;
      color: var(--gold);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .14em;
    }

    .subpage h2 {
      margin: 0;
      color: var(--green);
      font-size: clamp(30px, 4vw, 52px);
      line-height: 1.08;
      letter-spacing: 0;
    }

    .subpage-lead {
      margin: 12px 0 0;
      max-width: 760px;
      color: #3f4a52;
      font-size: 17px;
    }

    .subpage-note {
      width: 172px;
      padding: 14px;
      border-radius: 8px;
      background: rgba(31, 74, 61, .08);
      color: var(--green);
      font-size: 13px;
      font-weight: 800;
      line-height: 1.5;
    }

    .article-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 24px;
    }

    .article-composer {
      margin-top: 24px;
      padding: 18px;
      display: grid;
      gap: 14px;
      border: 1px solid rgba(31, 74, 61, .16);
      border-radius: 8px;
      background: #fbfaf6;
    }

    .composer-title {
      margin: 0;
      color: var(--blue);
      font-size: 18px;
      font-weight: 900;
      line-height: 1.25;
    }

    .composer-row {
      display: grid;
      grid-template-columns: 1fr 180px;
      gap: 12px;
    }

    .composer-field {
      display: grid;
      gap: 6px;
    }

    .composer-field label {
      color: var(--blue);
      font-size: 13px;
      font-weight: 900;
    }

    .composer-field input,
    .composer-field select,
    .article-body-editor {
      width: 100%;
      border: 1px solid rgba(31, 74, 61, .2);
      border-radius: 6px;
      background: #fffdf8;
      color: var(--ink);
      font: inherit;
    }

    .composer-field input,
    .composer-field select {
      min-height: 44px;
      padding: 9px 11px;
    }

    .article-body-editor {
      min-height: 170px;
      padding: 12px;
      outline: none;
    }

    .article-format-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(31, 74, 61, .14);
      border-radius: 6px;
      background: rgba(31, 74, 61, .05);
    }

    .format-btn,
    .format-select,
    .format-color {
      min-height: 34px;
      border: 1px solid rgba(31, 74, 61, .22);
      border-radius: 6px;
      background: #fffdf8;
      color: var(--ink);
      font: inherit;
      font-size: 13px;
      font-weight: 900;
    }

    .format-btn {
      min-width: 36px;
      padding: 5px 9px;
      cursor: pointer;
    }

    .format-select { padding: 5px 8px; }

    .format-color {
      width: 40px;
      padding: 3px;
      cursor: pointer;
    }

    .article-body-editor:empty::before {
      content: attr(data-placeholder);
      color: #8a949c;
    }

    .composer-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
    }

    .composer-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .file-button {
      position: relative;
      overflow: hidden;
    }

    .file-button input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }

    .composer-hint {
      margin: 0;
      color: var(--muted);
      font-size: 13px;
    }

    .article-photo-preview {
      min-height: 140px;
      display: none;
      overflow: hidden;
      border: 1px solid rgba(31, 74, 61, .16);
      border-radius: 8px;
      background: #e8eeea;
    }

    .article-photo-preview.has-image { display: block; }

    .article-photo-preview img {
      width: 100%;
      height: 220px;
      display: block;
      object-fit: cover;
    }

    .article-card {
      min-height: 260px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border: 1px solid rgba(31, 74, 61, .16);
      border-radius: 8px;
      background: #fbfaf6;
    }

    .article-cover {
      width: calc(100% + 36px);
      height: 150px;
      margin: -18px -18px 16px;
      overflow: hidden;
      border-radius: 8px 8px 0 0;
      background: linear-gradient(135deg, rgba(31, 74, 61, .18), rgba(179, 134, 75, .18));
    }

    .article-cover img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }

    .article-card span {
      color: var(--gold);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .1em;
    }

    .article-card h3 {
      margin: 12px 0 8px;
      color: var(--blue);
      font-size: 21px;
      line-height: 1.28;
      letter-spacing: 0;
    }

    .article-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      white-space: pre-line;
    }

    .article-content {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.65;
    }

    .article-content p,
    .article-content div {
      margin: 0 0 8px;
    }

    .article-content span,
    .article-content b,
    .article-content strong,
    .article-content i,
    .article-content em,
    .article-content u {
      line-height: inherit;
    }

    .article-card a {
      margin-top: 22px;
      color: var(--green);
      font-size: 14px;
      font-weight: 900;
    }

    .article-card button {
      margin-top: 18px;
      padding: 8px 10px;
      border: 1px solid rgba(168, 71, 51, .28);
      border-radius: 6px;
      background: transparent;
      color: #a84733;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
      align-self: flex-start;
    }

    .article-empty {
      margin: 16px 0 0;
      padding: 16px;
      border: 1px dashed rgba(31, 74, 61, .24);
      border-radius: 8px;
      color: var(--muted);
      background: rgba(255, 253, 248, .72);
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: 1.1fr .9fr .9fr;
      grid-auto-rows: 210px;
      gap: 14px;
      margin-top: 24px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(31, 74, 61, .72), rgba(27, 48, 71, .58)),
        linear-gradient(45deg, #c9d6cf, #f0e6d3);
      isolation: isolate;
    }

    .gallery-item.featured {
      grid-row: span 2;
    }

    .gallery-item::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .22) 20% 21%, transparent 21% 44%, rgba(255, 255, 255, .14) 44% 45%, transparent 45%),
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, .34), transparent 18%);
      opacity: .72;
    }

    .gallery-caption {
      position: absolute;
      left: 16px;
      right: 16px;
      bottom: 16px;
      z-index: 1;
      color: #fff;
    }

    .gallery-caption strong {
      display: block;
      font-size: 18px;
      line-height: 1.25;
    }

    .gallery-caption span {
      display: block;
      margin-top: 4px;
      color: rgba(255, 255, 255, .82);
      font-size: 13px;
    }

    @media (max-width: 860px) {
      .page { padding: 16px; }
      .site-shell { grid-template-columns: 1fr; }
      .side-nav {
        position: static;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .side-nav-title { grid-column: 1 / -1; }
      .card { grid-template-columns: 1fr; }
      .portrait { min-height: 560px; }
      .portrait img { object-position: 50% 18%; }
      .content { padding: 30px 22px; }
      .service-grid { grid-template-columns: 1fr; }
      .contact { grid-template-columns: 1fr; }
      .qr { width: 104px; height: 104px; }
      .subpage { padding: 28px 22px; }
      .subpage-header { grid-template-columns: 1fr; }
      .subpage-note { width: auto; }
      .composer-row { grid-template-columns: 1fr; }
      .article-grid { grid-template-columns: 1fr; }
      .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 230px; }
      .gallery-item.featured { grid-row: span 1; }
    }

    @media (max-width: 520px) {
      .portrait { min-height: 500px; }
      .photo-caption { left: 20px; right: 20px; bottom: 22px; }
      .actions { flex-direction: column; }
      .button { width: 100%; }
      .side-nav { grid-template-columns: 1fr; }
    }

    @media print {
      body { background: #fff; }
      .page { padding: 0; }
      .card { width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    }

.card-editor-panel {
      position: fixed;
      z-index: 50;
      left: 50%;
      bottom: 18px;
      width: min(980px, calc(100% - 24px));
      transform: translateX(-50%);
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 10px;
      align-items: center;
      padding: 10px;
      border: 1px solid rgba(25, 33, 40, .14);
      border-radius: 8px;
      background: rgba(255, 253, 248, .95);
      box-shadow: 0 16px 44px rgba(18, 31, 42, .18);
      backdrop-filter: blur(12px);
    }

    .card-editor-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

    .editor-btn,
    .editor-select,
    .editor-color {
      min-height: 38px;
      border: 1px solid rgba(31, 74, 61, .22);
      border-radius: 6px;
      background: #fffdf8;
      color: #192128;
      font-weight: 700;
      font-family: inherit;
    }

    .editor-btn { padding: 7px 11px; cursor: pointer; }
    .editor-btn.primary { background: #1f4a3d; color: #fff; }
    .editor-btn.warn { color: #a84733; border-color: rgba(168, 71, 51, .35); }
    .editor-select { padding: 7px 8px; }
    .editor-color { width: 42px; padding: 4px; }
    .editor-state { color: #66717c; font-size: 13px; white-space: nowrap; }

    body.card-editing [data-card-editable] {
      outline: 1px dashed rgba(179, 134, 75, .55);
      outline-offset: 3px;
      cursor: text;
    }

    body.card-editing [data-card-editable]:focus {
      outline: 2px solid #b3864b;
      background: rgba(255, 247, 220, .42);
    }

    body.card-editing .service { padding-right: 48px; }
    body.card-editing .card { margin-bottom: 96px; }

    .card-drag-handle {
      display: none;
      position: absolute;
      right: 10px;
      top: 10px;
      width: 30px;
      height: 30px;
      border: 1px solid rgba(31, 74, 61, .24);
      border-radius: 6px;
      background: rgba(255, 253, 248, .95);
      color: #1f4a3d;
      font-weight: 900;
      cursor: grab;
      place-items: center;
      user-select: none;
    }

    body.card-editing .card-drag-handle { display: grid; }
    body.card-editing .service.dragging { opacity: .55; transform: scale(.98); }

    .card-save-toast {
      position: fixed;
      right: 18px;
      bottom: 88px;
      z-index: 51;
      display: none;
      padding: 10px 14px;
      border-radius: 6px;
      background: #1f4a3d;
      color: #fff;
      box-shadow: 0 10px 30px rgba(18, 31, 42, .18);
      font-weight: 700;
    }

    .card-save-toast.show { display: block; }

    @media (max-width: 860px) {
      .card-editor-panel { grid-template-columns: 1fr; }
      body.card-editing .card { margin-bottom: 178px; }
    }

    @media print {
      .card-editor-panel, .card-save-toast, .card-drag-handle { display: none !important; }
      body.card-editing .card { margin-bottom: 0; }
      body.card-editing [data-card-editable] { outline: none; }
    }

/* Homepage prototype: quiet reading space */
body.home-prototype {
  --home-bg: #F8F7F2;
  --home-card: #FFFFFF;
  --home-ink: #2F3430;
  --home-muted: #6E756F;
  --home-sage: #7E9278;
  --home-sage-soft: #E5EBE2;
  --home-line: #E1DED4;
  --home-cream: #F2E9D6;
  --home-bluegray: #DDE6E8;
  --home-clay: #EBD9CC;
  --home-shadow: 0 14px 36px rgba(47, 52, 48, .08);
  margin: 0;
  color: var(--home-ink);
  background: var(--home-bg);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
}

.home-prototype a {
  color: inherit;
  text-decoration: none;
}

.home-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-mark {
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
}

.top-nav a {
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--home-muted);
  font-size: 14px;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--home-sage-soft);
  color: var(--home-ink);
}

.home-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.quiet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 54px;
  align-items: center;
  padding: 38px 0 58px;
}

.soft-label {
  margin: 0 0 10px;
  color: var(--home-sage);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 500;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 680px;
  color: var(--home-ink);
  font-size: 23px;
  line-height: 1.55;
}

.hero-note {
  margin: 16px 0 0;
  max-width: 680px;
  color: var(--home-muted);
  font-size: 17px;
}

.hero-scene {
  position: relative;
  min-height: 310px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.scene-window {
  position: absolute;
  left: 34px;
  top: 30px;
  width: 126px;
  height: 108px;
  border: 1px solid #D8D4C8;
  border-radius: 8px;
  background: #EEF2EF;
}

.scene-window::before,
.scene-window::after {
  content: "";
  position: absolute;
  background: #D8D4C8;
}

.scene-window::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.scene-window::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.scene-shelf {
  position: absolute;
  right: 36px;
  top: 52px;
  width: 150px;
  height: 96px;
  border-bottom: 7px solid #D7C8AA;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 12px 8px;
}

.scene-shelf span {
  display: block;
  width: 20px;
  border-radius: 4px 4px 2px 2px;
  background: var(--home-sage-soft);
}

.scene-shelf span:nth-child(1) { height: 64px; background: #DDE6E8; }
.scene-shelf span:nth-child(2) { height: 82px; background: #EBD9CC; }
.scene-shelf span:nth-child(3) { height: 54px; background: #E5EBE2; }
.scene-shelf span:nth-child(4) { height: 72px; background: #F2E9D6; }

.scene-table {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  background: #F3E7D5;
  border-top: 1px solid #E0D1BA;
}

.scene-book,
.scene-cup,
.scene-note {
  position: absolute;
  display: block;
}

.scene-book {
  left: 44px;
  bottom: 42px;
  width: 118px;
  height: 34px;
  border-radius: 4px;
  background: #FFFFFF;
  border: 1px solid #D8D4C8;
}

.scene-cup {
  right: 84px;
  bottom: 40px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 8px solid var(--home-sage-soft);
}

.scene-note {
  left: 190px;
  bottom: 34px;
  width: 86px;
  height: 58px;
  border-radius: 4px;
  background: #FFF9EA;
  border: 1px solid #DDD0B6;
}

.home-section {
  padding: 50px 0;
  border-top: 1px solid var(--home-line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2,
.about-brief h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 500;
}

.section-heading p:not(.soft-label),
.about-brief p {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 17px;
}

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

.story-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: var(--home-card);
  box-shadow: 0 8px 24px rgba(47, 52, 48, .05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  border-color: #D4D9CF;
  box-shadow: var(--home-shadow);
}

.story-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--home-sage-soft);
}

.story-cover::before,
.story-cover::after {
  content: "";
  position: absolute;
  transition: transform .28s ease;
}

.story-card:hover .story-cover::before,
.story-card:hover .story-cover::after {
  transform: scale(1.04);
}

.cover-system { background: #E5EBE2; }
.cover-ai { background: #DDE6E8; }
.cover-reading { background: #F2E9D6; }
.cover-law { background: #E7ECE5; }
.cover-coffee { background: #EBD9CC; }
.cover-photo { background: #E3E6E7; }

.story-cover::before {
  left: 12%;
  right: 12%;
  top: 20%;
  height: 52%;
  border: 1px solid rgba(47, 52, 48, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .54);
}

.story-cover::after {
  left: 20%;
  right: 20%;
  bottom: 22%;
  height: 8px;
  border-radius: 999px;
  background: rgba(126, 146, 120, .48);
  box-shadow: 0 18px 0 rgba(47, 52, 48, .08), 0 -18px 0 rgba(255, 255, 255, .66);
}

.story-body {
  padding: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--home-ink);
  font-size: 13px;
}

.tag-work { background: var(--home-sage-soft); }
.tag-reading { background: var(--home-cream); }
.tag-life { background: var(--home-bluegray); }
.tag-hobby { background: var(--home-clay); }

.story-card h3 {
  margin: 14px 0 0;
  color: var(--home-ink);
  font-size: 21px;
  line-height: 1.45;
  font-weight: 700;
}

.story-card p {
  min-height: 84px;
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}

.story-card time {
  display: block;
  margin-top: 16px;
  color: #8B918C;
  font-size: 13px;
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  transition: transform .22s ease, background .22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
}

.project-visual {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid rgba(47, 52, 48, .08);
}

.visual-room { background: #E5EBE2; }
.visual-ragic { background: #DDE6E8; }
.visual-ai { background: #F2E9D6; }

.project-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.project-card p {
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.6;
}

.about-brief {
  margin: 24px 0 12px;
  padding: 34px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.about-brief p {
  max-width: 760px;
  margin: 0;
  font-size: 18px;
}

.home-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 42px;
  color: var(--home-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 920px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .quiet-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .story-grid,
  .project-strip {
    grid-template-columns: 1fr;
  }

  .story-card p {
    min-height: auto;
  }

  .about-brief {
    grid-template-columns: 1fr;
    padding: 28px 0;
  }
}

@media (max-width: 560px) {
  .home-header,
  .home-main,
  .home-footer {
    width: min(100% - 28px, 1120px);
  }

  .top-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .top-nav a {
    flex: 1 1 calc(33.333% - 8px);
    display: inline-flex;
    justify-content: center;
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-scene {
    min-height: 260px;
  }

  .project-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
