/* =========================================================
   임정민 Portfolio — v2
   Reference: Cargo "sidebar index + feed" (3187535) with a
   nod to the Finder/OS metaphor (3461855): folder dots,
   live clock, systematic archive feel.
   Re-skin everything from the :root variables below.
   ========================================================= */

:root {
  --bg:      #f4f4f2;
  --panel:   #ffffff;
  --fg:      #16150f;
  --muted:   #9a988f;
  --faint:   #c9c7bd;
  --line:    #e2e0d7;
  --accent:  #2b57ff;          /* link / active */

  /* folder dots (Ref A) */
  --dot-1: #e8a13a;
  --dot-2: #4fae6a;
  --dot-3: #a95ad1;
  --dot-4: #d15a7a;

  --sans: "Helvetica Neue", Inter, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Pretendard", sans-serif;
  --serif: "Times New Roman", "Iowan Old Style", Georgia,
           "Apple SD Gothic Neo", serif;

  --sidebar: 340px;
  --pad: clamp(20px, 3.2vw, 44px);

  /* Realistic macOS folder (closed, tab + front panel) */
  --mac-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 104'%3E%3Cdefs%3E%3ClinearGradient id='bk' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%235cb0ef'/%3E%3Cstop offset='1' stop-color='%234593e2'/%3E%3C/linearGradient%3E%3ClinearGradient id='fr' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%239bccf8'/%3E%3Cstop offset='1' stop-color='%234e9fe8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M16 24v-4.5a4.5 4.5 0 0 1 4.5-4.5h20a4 4 0 0 1 3.5 2l3.6 7z' fill='url(%23bk)'/%3E%3Crect x='12' y='23' width='96' height='69' rx='11' fill='url(%23bk)'/%3E%3Crect x='12' y='33' width='96' height='59' rx='10' fill='url(%23fr)'/%3E%3Cpath d='M15 33.6h90' stroke='%23ffffff' stroke-opacity='0.75' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M21 16.6h18' stroke='%23ffffff' stroke-opacity='0.4' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:    #121210;
    --panel: #1a1a17;
    --fg:    #ecebe3;
    --muted: #7c7a70;
    --faint: #4a483f;
    --line:  #2a2924;
    --accent:#7d97ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.arrow::after { content: " ↗"; font-size: .85em; }

/* =========================================================
   APP SHELL — fixed sidebar + scrolling main
   ========================================================= */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; }

/* ---------- Sidebar : macOS Finder card ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 14px;
}
.finder {
  height: 100%;
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.07);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (prefers-color-scheme: dark) {
  .finder { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.5); }
}

/* Title bar : traffic lights + window title */
.titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 10px;
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.wtitle { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.wtitle small { color: var(--muted); font-weight: 400; }

/* Group label */
.finder .glabel {
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 10px;
  margin: 12px 0 3px;
  letter-spacing: 0.01em;
}

/* Sidebar item row */
.fitem {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.2;
}
.fitem:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }
.fitem.active,
.fitem[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 500;
}
.fitem .name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem .tag { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }

/* Icon (mask → follows text color) */
.fitem .ico {
  width: 19px; height: 16px; flex: none;
  background-color: var(--muted);
  -webkit-mask: no-repeat center / contain;
  mask: no-repeat center / contain;
}
.fitem:hover .ico { background-color: var(--fg); }
.fitem.active .ico,
.fitem[aria-current="page"] .ico { background-color: var(--accent); }

.ico.folder {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M2.6 5.1c0-.9.7-1.6 1.6-1.6h3.6c.4 0 .8.2 1.1.5l.8.8c.3.3.7.5 1.1.5h6.9c.9 0 1.6.7 1.6 1.6v6.9c0 .9-.7 1.6-1.6 1.6H4.2c-.9 0-1.6-.7-1.6-1.6z' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 18'%3E%3Cpath d='M2.6 5.1c0-.9.7-1.6 1.6-1.6h3.6c.4 0 .8.2 1.1.5l.8.8c.3.3.7.5 1.1.5h6.9c.9 0 1.6.7 1.6 1.6v6.9c0 .9-.7 1.6-1.6 1.6H4.2c-.9 0-1.6-.7-1.6-1.6z' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
}
.ico.doc {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20'%3E%3Cpath d='M3 2.3h7.5L15 6.8v10.9c0 .3-.3.6-.6.6H3.6c-.3 0-.6-.3-.6-.6V2.9c0-.3.3-.6.6-.6z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M10.3 2.5v4.4H14.7' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 20'%3E%3Cpath d='M3 2.3h7.5L15 6.8v10.9c0 .3-.3.6-.6.6H3.6c-.3 0-.6-.3-.6-.6V2.9c0-.3.3-.6.6-.6z' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3Cpath d='M10.3 2.5v4.4H14.7' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E");
}
.ico.mail {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Crect x='2' y='2.5' width='16' height='11' rx='1.6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Cpath d='M2.6 3.6 10 9l7.4-5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Crect x='2' y='2.5' width='16' height='11' rx='1.6' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3Cpath d='M2.6 3.6 10 9l7.4-5.4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E");
}
.ico.link {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 11.5a3 3 0 0 0 4.2 0l2.8-2.8a3 3 0 0 0-4.2-4.2l-1.3 1.2' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M11.5 8.5a3 3 0 0 0-4.2 0L4.5 11.3a3 3 0 0 0 4.2 4.2l1.3-1.2' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 11.5a3 3 0 0 0 4.2 0l2.8-2.8a3 3 0 0 0-4.2-4.2l-1.3 1.2' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M11.5 8.5a3 3 0 0 0-4.2 0L4.5 11.3a3 3 0 0 0 4.2 4.2l1.3-1.2' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.fitem .tag.d1 { background: var(--dot-1); }
.fitem .tag.d2 { background: var(--dot-2); }
.fitem .tag.d3 { background: var(--dot-3); }
.fitem .tag.d4 { background: var(--dot-4); }
.fitem .ext { color: var(--muted); font-size: 12px; }

/* Colored brand icons (links) — full color, no mask recolor */
.fitem .ico.brand {
  width: 18px; height: 18px;
  background-color: transparent !important;
  -webkit-mask: none; mask: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.ico.ig { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3CradialGradient id='g' cx='30%25' cy='107%25' r='140%25'%3E%3Cstop offset='0' stop-color='%23fdf497'/%3E%3Cstop offset='0.45' stop-color='%23fd5949'/%3E%3Cstop offset='0.6' stop-color='%23d6249f'/%3E%3Cstop offset='0.9' stop-color='%23285AEB'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='url(%23g)'/%3E%3Crect x='6' y='6' width='12' height='12' rx='4' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3Ccircle cx='12' cy='12' r='3.1' fill='none' stroke='%23fff' stroke-width='1.7'/%3E%3Ccircle cx='16.4' cy='7.6' r='1.1' fill='%23fff'/%3E%3C/svg%3E"); }
.ico.yt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='5' width='20' height='14' rx='4.5' fill='%23FF0000'/%3E%3Cpath d='M10 8.5L16 12l-6 3.5z' fill='%23fff'/%3E%3C/svg%3E"); }
.ico.blog { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='6' fill='%2303C75A'/%3E%3Ctext x='12' y='15.5' font-family='Helvetica,Arial,sans-serif' font-size='7.5' font-weight='700' fill='%23fff' text-anchor='middle'%3Eblog%3C/text%3E%3C/svg%3E"); }
.ico.li { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='4' fill='%230A66C2'/%3E%3Ctext x='12' y='16.5' font-family='Helvetica,Arial,sans-serif' font-size='11' font-weight='700' fill='%23fff' text-anchor='middle'%3Ein%3C/text%3E%3C/svg%3E"); }

/* Footer inside card */
.finder .foot {
  margin-top: auto;
  padding: 12px 10px 4px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.clock { font-variant-numeric: tabular-nums; }

/* ---------- Main ---------- */
.main { padding: var(--pad); min-width: 0; }
.main-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.main-head h1 { font-size: 15px; font-weight: 600; margin: 0; }
.main-head .r { color: var(--muted); font-variant-numeric: tabular-nums; }

/* =========================================================
   INDEX — project feed
   ========================================================= */
.feed { display: flex; flex-direction: column; gap: clamp(40px, 7vw, 96px); }

.work {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1040px;
}
.work .frame {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 56px);
}
.work .shot {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--faint);
  background:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px), var(--faint) 50%,
      transparent calc(50% + 0.5px));
  position: relative;
}
.work .shot.tall { aspect-ratio: 3 / 4; }
.work .shot::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; color: var(--muted);
}
.work .cap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px 24px;
}
.work .cap .t { font-size: clamp(17px, 2.2vw, 22px); font-weight: 500; letter-spacing: -0.01em; }
.work .cap .meta { font-family: var(--serif); color: var(--muted); line-height: 1.4; }
.work .cap .meta div { white-space: nowrap; }
.work .cap .view {
  font-family: var(--serif);
  align-self: end;
  white-space: nowrap;
}
.work .cap .view a::before { content: "["; }
.work .cap .view a::after  { content: "]"; }

/* index-only about block */
.about { max-width: 60ch; margin-top: clamp(48px, 8vw, 120px); }
.about h2 { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.about p { margin: 0 0 14px; }

/* =========================================================
   FINDER DESKTOP GRID (index Overview)
   ========================================================= */
.desktop { padding-top: 2px; }
.dgroup {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 2px;
  justify-items: center;
}
.dsep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.ditem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 10px;
  padding: 14px 6px 12px;
  border-radius: 10px;
  color: var(--fg);
  width: 100%;
}
.dgroup { align-items: start; }
.ditem:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.ditem .ic {
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}
.ditem.folder-item .ic { width: 110px; height: 95px; }
.ditem.file-item   .ic { width: 78px;  height: 96px; }

/* Realistic macOS folder (closed, correct proportions) */
.folderthumb {
  width: 110px; height: 95px;
  filter: drop-shadow(0 2px 4px rgba(40,90,150,0.22));
  background: no-repeat center / contain var(--mac-folder);
}
.folderthumb img { display: none; }
.ditem .lab {
  font-size: 13.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.35;
  max-width: 15ch;
  text-wrap: balance;
}
.ditem:hover .lab { color: var(--fg); }
.ditem .lab .tag { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.ditem .ext { color: var(--faint); }

.tag.d1 { background: var(--dot-1); }
.tag.d2 { background: var(--dot-2); }
.tag.d3 { background: var(--dot-3); }
.tag.d4 { background: var(--dot-4); }

.ic-folder { background-image: var(--mac-folder); }

.ic-rtf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 120'%3E%3Cpath d='M14 6h48l24 24v78c0 4-3 7-7 7H14c-4 0-7-3-7-7V13c0-4 3-7 7-7z' fill='%23ffffff' stroke='%23dbd9cf' stroke-width='1.5'/%3E%3Cpath d='M62 6l24 24H69c-4 0-7-3-7-7z' fill='%23eceae0'/%3E%3Crect x='22' y='44' width='8' height='11' rx='2.5' fill='%23e5533a'/%3E%3Crect x='33' y='44' width='8' height='11' rx='2.5' fill='%23e5533a'/%3E%3Crect x='48' y='48' width='26' height='3.5' rx='1.7' fill='%23e5533a'/%3E%3Crect x='22' y='66' width='52' height='3.5' rx='1.7' fill='%23e5533a'/%3E%3Crect x='22' y='78' width='52' height='3.5' rx='1.7' fill='%23e5533a'/%3E%3C/svg%3E"); }

.ic-pdf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 120'%3E%3Cpath d='M14 6h48l24 24v78c0 4-3 7-7 7H14c-4 0-7-3-7-7V13c0-4 3-7 7-7z' fill='%23ffffff' stroke='%23dbd9cf' stroke-width='1.5'/%3E%3Cpath d='M62 6l24 24H69c-4 0-7-3-7-7z' fill='%23eceae0'/%3E%3Crect x='24' y='40' width='16' height='14' rx='2' fill='%23cfd4d8'/%3E%3Crect x='46' y='42' width='26' height='3.5' rx='1.7' fill='%23d7dbdf'/%3E%3Crect x='46' y='50' width='20' height='3.5' rx='1.7' fill='%23d7dbdf'/%3E%3Crect x='24' y='64' width='48' height='3.5' rx='1.7' fill='%23e2e0d7'/%3E%3Crect x='24' y='74' width='48' height='3.5' rx='1.7' fill='%23e2e0d7'/%3E%3Ctext x='48' y='104' font-family='Helvetica,Arial' font-size='15' font-weight='700' fill='%23b7bcc0' text-anchor='middle'%3EPDF%3C/text%3E%3C/svg%3E"); }

/* =========================================================
   PROJECT (detail) PAGE
   ========================================================= */
.detail { max-width: 900px; }
.detail .lede-block { margin-bottom: clamp(28px, 5vw, 56px); }
.detail h2.title {
  font-size: clamp(26px, 4.5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 20px;
  max-width: 22ch;
}
.detail .lede { font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); max-width: 58ch; margin: 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  margin: 32px 0 clamp(32px, 5vw, 56px);
  font-size: 13px;
}
.facts dt { color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 15px; }

.media { margin: clamp(24px, 4vw, 48px) 0; }
.media .shot {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--faint);
  background: var(--panel);
  background-image:
    linear-gradient(to top right,
      transparent calc(50% - 0.5px), var(--faint) 50%,
      transparent calc(50% + 0.5px));
  position: relative;
}
.media .shot.tall { aspect-ratio: 3 / 4; }
.media .shot::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px;
  font-size: 11px; color: var(--muted);
}
.media img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 2px; }
.media figcaption { margin-top: 10px; color: var(--muted); font-family: var(--serif); }
/* Adjustable image grid (columns set inline) */
.imggrid { display: grid; gap: clamp(10px, 2vw, 20px); margin: clamp(24px, 4vw, 48px) 0; }
.imggrid figure { margin: 0; }
.imggrid img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 2px; }
.imggrid figcaption { margin-top: 8px; color: var(--muted); font-family: var(--serif); font-size: 13px; }
.media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 20px); }

.block {
  display: grid;
  grid-template-columns: 8rem minmax(0, 44rem);
  gap: 20px;
  padding: clamp(24px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
}
.block .k { color: var(--muted); font-size: 13px; }
.block h3 { font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 14px; }
.block p { margin: 0 0 14px; }
.block ul { margin: 0; padding-left: 1.1em; }
.block li { margin-bottom: 9px; }
.block :last-child { margin-bottom: 0; }
.mark { background: #eef000; color: #16150f; padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
@media (prefers-color-scheme: dark) { .mark { background: #d8ff3e; } }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.metric .big { font-size: clamp(34px, 6vw, 68px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.metric .lab { color: var(--muted); font-family: var(--serif); margin-top: 10px; max-width: 24ch; }

.next { border-top: 1px solid var(--line); margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; }
.next a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: clamp(20px, 3.5vw, 34px); font-weight: 600; letter-spacing: -0.02em; }
.next a:hover { opacity: .55; color: inherit; }
.next .k { font-family: var(--serif); font-size: 14px; font-weight: 400; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px 14px 0; }
  .finder { height: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
  .media-2 { grid-template-columns: 1fr; }
  .block { grid-template-columns: 1fr; gap: 6px; }
  .work .cap { grid-template-columns: 1fr; }
  .work .cap .view { align-self: start; }
}
