/* 장림산업용품길 home (/): taste-skill redesign, adopted 2026-09-26 (previously previewed at /taste).
   Design read: B2B local-commerce directory for on-site buyers, trust-first calm language,
   native CSS + Pretendard + inline SVG icons (Phosphor paths) + restrained motion.
   Mode: Redesign, Preserve (brand tokens, IA, anchor IDs, nav labels and copy voice kept; visuals evolved).
   Dials: DESIGN_VARIANCE 6 / MOTION_INTENSITY 4 / VISUAL_DENSITY 5.
     VARIANCE 6: existing site reads ~4; "redesign" adds +1..2. Trust-first briefs sit at 3-4, so the
       asymmetry stays structural (7:5 hero with a bleeding image, 7:5 bento) while content stays aligned.
     MOTION 4: existing ~3 plus one step; older on-site users, so entry/reveal/feedback only, all off under reduced motion.
     DENSITY 5: a 30-shop directory needs a working grid, not gallery air.
   Theme: light only. The official logo exists only in purple/mint (no reversed version),
   so an automatic dark mode would drop it to ~2.9:1. Add dark tokens once a reversed logo exists.
   Shape rule: controls = pill; inputs & list thumbnails = 12px; cards and everything nested in a card
   (detail panel, detail photo, status box) = 16px; standalone section panels & hero media = 24px.
   Color rule: brand purple is the single interactive accent; mint appears only as a brand tint. */

/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  color-scheme: only light;

  --accent: #6a5095;       /* official brand purple */
  --accent-hover: #58427d;
  --accent-press: #463464;
  --accent-50: #f6f3fa;
  --accent-100: #ece6f4;
  --accent-200: #d9cde9;
  --accent-300: #bba8d4;
  --accent-800: #3f2f5a;
  --mint-50: #eff7f3;      /* official brand mint, tint only */
  --mint-100: #dcefe7;
  --mint-300: #a9d6c8;
  --mint-800: #2a5a4c;

  --ink: #312f30;          /* official brand charcoal */
  --ink-2: #4a474a;
  --muted: #67636a;
  --line: #e7e5e9;
  --line-strong: #d4d1d7;
  --input: #8e8993;
  --page: #fcfbfd;
  --surface: #ffffff;
  --surface-alt: #f6f5f8;
  --surface-sunk: #eeecf1;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-14: .875rem;
  --fs-15: .9375rem;
  --fs-16: 1rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-h2: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  --fs-display: clamp(2.375rem, 1.5rem + 3vw, 3.75rem);

  --r-input: 12px;
  --r-card: 16px;
  --r-panel: 24px;
  --r-pill: 999px;

  --shadow-card: 0 1px 2px rgb(49 47 48 / .05);
  --shadow-lift: 0 22px 44px -24px rgb(63 47 90 / .38), 0 4px 10px -6px rgb(63 47 90 / .12);
  --shadow-overlay: 0 32px 80px -24px rgb(33 22 50 / .45);

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --bleed: max(var(--gutter), (100vw - var(--maxw)) / 2);
  --header-h: 72px;
  --section-y: clamp(64px, 5vw + 32px, 104px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ─── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; min-width: 0; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* Static icons are <svg class="icon"><use href="#i-name"> symbols from the sprite at the top of <body>;
   JS-rendered ones are small stroke SVGs covered by the bare svg rule above. */
svg.icon { flex-shrink: 0; width: 1em; height: 1em; font-size: 1.2em; vertical-align: -.125em; fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent-100); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 600; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

/* ─── Controls ───────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-size: var(--fs-15); font-weight: 600; line-height: 1.3; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out), box-shadow .2s;
}
.button:not(:disabled):active { transform: translateY(1px) scale(.98); }
.primary { background: var(--accent); color: #fff; }
.soft { background: var(--surface); color: var(--accent-hover); border-color: var(--line-strong); }
.danger { background: #fdf1f3; color: #a33a50; border-color: #efc9d2; }
.button:disabled { background: var(--surface-sunk); border-color: var(--surface-sunk); color: var(--muted); }
@media (hover: hover) {
  .primary:not(:disabled):hover { background: var(--accent-hover); }
  .soft:not(:disabled):hover { background: var(--accent-50); border-color: var(--accent-200); }
}
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent); font-size: var(--fs-15); font-weight: 600; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease-out);
}
.icon-button:active { transform: scale(.94); }
@media (hover: hover) { .icon-button:hover { background: var(--surface-alt); } }

.search-box {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--input); border-radius: var(--r-pill);
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-100); }
.search-box > .icon { color: var(--muted); font-size: 1.35rem; }
.search-box input { flex: 1; width: 100%; padding: 10px 0; border: 0; background: transparent; font-size: var(--fs-16); outline: none; }
.search-box input::placeholder { color: #767279; }
.search-box input:focus-visible { outline: none; }
input[type=search]::-webkit-search-cancel-button { cursor: pointer; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: var(--fs-14); font-weight: 600; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--input); border-radius: var(--r-input);
  background: var(--surface); font-size: var(--fs-16);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.65; }
.field input::placeholder, .field textarea::placeholder { color: #767279; }
.field input:disabled, .field select:disabled, .field textarea:disabled { background: var(--surface-alt); border-color: var(--line-strong); border-style: dashed; color: var(--muted); -webkit-text-fill-color: var(--muted); opacity: 1; }
.field input[aria-invalid=true] { border-color: #a33a50; box-shadow: 0 0 0 4px #fbe4e9; }
.field-error { font-size: var(--fs-sm); font-weight: 600; color: #a33a50; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-help { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.65; color: var(--muted); }
.honey-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.preview-label, .status-label, .small-tag {
  display: inline-flex; align-items: center; padding: 3px 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; white-space: nowrap;
}

dialog { width: min(1100px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: var(--r-panel); color: var(--ink); box-shadow: var(--shadow-overlay); }
dialog::backdrop { background: rgb(28 22 38 / .5); backdrop-filter: blur(4px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-header h2 { font-size: var(--fs-20); }
.map-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 14px 0; }
.map-viewport { max-height: 65dvh; overflow: auto; touch-action: pan-x pan-y; cursor: grab; }
.map-viewport.dragging { cursor: grabbing; user-select: none; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgb(252 251 253 / .86); border-bottom: 1px solid transparent; backdrop-filter: saturate(160%) blur(18px); transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgb(49 47 48 / .45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand-logo { display: block; width: 196px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: var(--fs-15); font-weight: 600; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); transition: color .2s; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }
.site-header nav a:hover::after, .site-header nav a[aria-current]::after { transform: scaleX(1); }
/* 문의 stays a quiet outline until the inquiry form is actually connected. */
.site-header nav a:last-child { padding: 0 20px; border: 1px solid var(--accent-200); border-radius: var(--r-pill); background: transparent; color: var(--accent-hover); }
.site-header nav a:last-child::after { display: none; }
.site-header nav a:last-child:hover { background: var(--accent-50); color: var(--accent-hover); }
.site-header nav a:last-child[aria-current] { background: var(--accent-50); border-color: var(--accent-300); color: var(--accent); }
html:has(#inquiry-form[data-ready=true]) .site-header nav a:last-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.menu-toggle { display: none; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded=true] .icon-open { display: none; }
.menu-toggle[aria-expanded=true] .icon-close { display: block; }

.preview-notice { border-bottom: 1px solid var(--line); background: var(--surface-alt); font-size: var(--fs-sm); color: var(--muted); }
.preview-notice .container { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 9px; }
.preview-label { background: var(--accent-100); color: var(--accent-hover); }

/* ─── Hero: asymmetric split, image bleeds to the right edge ─ */
.hero { overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(40px, 5vw, 80px) clamp(48px, 6vw, 96px); }
.hero-eyebrow { margin-bottom: 20px; font-size: var(--fs-15); font-weight: 600; color: var(--accent); }
.hero h1 { font-size: var(--fs-display); line-height: 1.16; letter-spacing: -.035em; }
.hero-accent { color: var(--accent); }
.hero-description { max-width: 34ch; margin-top: 22px; font-size: var(--fs-lead); line-height: 1.7; color: var(--muted); }
.hero-search { margin-top: 36px; max-width: 600px; min-height: 68px; padding-left: 24px; box-shadow: 0 18px 40px -26px rgb(63 47 90 / .5); }
.hero-search:focus-within { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px var(--accent-100), 0 18px 40px -26px rgb(63 47 90 / .5); }
.hero-search .button { min-height: 54px; padding-inline: 30px; font-size: var(--fs-16); }
.quick-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: var(--fs-14); }
.quick-search > span { margin-right: 6px; color: var(--muted); }
.quick-search button { min-height: 40px; padding: 0 18px; border: 1px solid var(--accent-100); border-radius: var(--r-pill); background: var(--accent-50); color: var(--accent-hover); font-weight: 600; transition: background-color .2s, border-color .2s, transform .2s var(--ease-out); }
.quick-search button:active { transform: scale(.96); }
@media (hover: hover) { .quick-search button:hover { background: var(--accent-100); border-color: var(--accent-200); } }
.hero-visual { position: relative; align-self: stretch; min-height: 400px; margin-right: calc(-1 * var(--bleed)); overflow: hidden; border-radius: var(--r-panel) 0 0 var(--r-panel); background: var(--ink); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; }

.map-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface-alt); }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 26px; }
.map-heading h2 { font-size: var(--fs-20); }
.small-tag { border: 1px solid var(--line-strong); color: var(--muted); }
.map-content { padding: 0 22px 20px; }
.map-footer { padding: 14px 24px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.map-stage { position: relative; }
.map-stage > img { display: block; width: 100%; border-radius: var(--r-card); }
.map-pin { position: absolute; transform: translate(-50%, -50%); min-width: 36px; min-height: 36px; border: 2px solid #fff; border-radius: 50%; background: var(--mint-300); color: var(--mint-800); font-weight: 700; }
.map-open { width: 100%; margin-top: 12px; }

/* ─── Featured reel: the page's single marquee, full bleed ── */
.featured-section { padding-block: 40px 44px; background: var(--surface-alt); }
.section-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.inline-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.inline-heading h2 { font-size: var(--fs-24); }
.inline-heading p { font-size: var(--fs-15); color: var(--muted); }
.reel-controls .icon-button { color: var(--accent); }
/* The two reel rows (measured 174px at every width) are reserved before /api/shops arrives, so the directory below does not jump. */
.featured-reels { min-height: 174px; position: relative; display: flex; flex-direction: column; gap: 12px; overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 72px, #000 calc(100% - 72px), transparent); }
.reel { min-width: 0; padding: 3px 0; overflow: hidden; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.reel-track { display: flex; gap: 14px; width: max-content; animation: reel-flow var(--reel-duration, 56s) linear infinite; will-change: transform; }
.reel:nth-child(even) .reel-track { animation-direction: reverse; }
.reel-group { display: flex; flex: none; gap: 14px; }
.featured-card { display: flex; align-items: center; gap: 12px; flex-shrink: 0; width: 264px; min-height: 76px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.featured-copy { min-width: 0; }
.featured-card strong { display: block; font-size: var(--fs-16); font-weight: 600; letter-spacing: -.01em; }
.featured-card small { display: block; margin-top: 1px; font-size: var(--fs-sm); color: var(--muted); }
.featured-arrow svg { width: 18px; height: 18px; }
.featured-arrow { margin-left: auto; color: var(--line-strong); transition: color .2s, transform .25s var(--ease-out); }
@media (hover: hover) {
  .reel:hover .reel-track { animation-play-state: paused; }
  .featured-card:hover { border-color: var(--accent-200); box-shadow: var(--shadow-lift); }
  .featured-card:hover .featured-arrow { color: var(--accent); transform: translateX(3px); }
}
.featured-card:focus-visible { outline-offset: -3px; }
.featured-reels.is-paused .reel-track, .featured-reels.is-away .reel-track { animation-play-state: paused; }
.featured-reels.keyboard-browsing, .featured-reels.is-static { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; mask-image: none; }
.featured-reels.keyboard-browsing .reel-track, .featured-reels.is-static .reel-track { width: 100%; animation: none; transform: none; }
.featured-reels.keyboard-browsing .reel-group, .featured-reels.is-static .reel-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); width: 100%; gap: 12px; }
.featured-reels.keyboard-browsing .reel-duplicate, .featured-reels.is-static .reel-duplicate { display: none; }
.featured-reels.keyboard-browsing .featured-card, .featured-reels.is-static .featured-card { width: 100%; }
@keyframes reel-flow { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }

/* ─── Directory ──────────────────────────────────────────── */
.directory { padding-block: calc(var(--section-y) - 32px) calc(var(--section-y) - 8px); }
.directory-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.directory-heading h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.hero-stats { margin-top: 8px; font-size: var(--fs-15); color: var(--muted); font-variant-numeric: tabular-nums; }
.hero-stats:empty { display: none; }
.hero-stats strong { color: var(--ink); font-weight: 700; }
.hero-stats span { margin-inline: 6px; color: var(--line-strong); }
.search-box.compact { width: 360px; flex-shrink: 0; min-height: 52px; padding: 3px 3px 3px 18px; gap: 8px; }
.compact input { font-size: var(--fs-15); }
.compact .icon-button { border: 0; background: var(--accent-50); color: var(--accent); }
.filter-bar { display: flex; flex-direction: column; gap: 16px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); font-size: var(--fs-14); font-weight: 500; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease-out); }
.filter-button:active { transform: scale(.97); }
.filter-button .category-count { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .filter-button:hover { border-color: var(--accent-300); background: var(--accent-50); } }
.filter-button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter-button[aria-pressed=true] .category-count { color: var(--accent-100); }
#zone-filter-wrap { display: flex; align-items: center; gap: 10px; font-size: var(--fs-14); }
#zone-filter-wrap select { min-height: 42px; padding: 0 14px; border: 1px solid var(--input); border-radius: var(--r-input); background: var(--surface); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 24px 0 16px; font-size: var(--fs-14); }
.results-bar p { color: var(--muted); }
.results-bar strong { margin-inline: 2px; font-size: var(--fs-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.results-bar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sort-label { font-size: var(--fs-sm); color: var(--muted); }
.reset-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--accent); font-size: var(--fs-14); font-weight: 600; }

.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; margin: 0; padding: 0; list-style: none; }
.shop-item { min-width: 0; }
.shop-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; container-type: inline-size; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card); transition: border-color .25s, box-shadow .3s, transform .3s var(--ease-out); }
@media (hover: hover) { .shop-card:hover { border-color: var(--accent-200); box-shadow: var(--shadow-lift); transform: translateY(-3px); } }
.shop-card.is-open { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lift); transform: none; }
.shop-toggle { display: flex; flex: 1; flex-direction: column; gap: 10px; width: 100%; padding: 0 0 18px; overflow: hidden; border: 0; background: transparent; text-align: left; }
.shop-toggle > :not(.shop-photo) { margin-inline: 20px; }
.shop-toggle:focus-visible { outline-offset: -4px; border-radius: var(--r-card); }
.shop-card:not(.has-photo) .shop-toggle::before { content: ""; display: block; aspect-ratio: 2 / 1; border-bottom: 1px solid var(--line); background: var(--accent-50) url(/assets/brand-symbol.svg) center / 30px auto no-repeat; }
.shop-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: 50% 40%; background: var(--surface-sunk); }
/* Street-view captures carry map UI along the edges; crop it out until the photos are replaced. */
.shop-photo[src*="/naver-"] { width: 124%; max-width: none; margin-inline: -12%; aspect-ratio: 2.48 / 1; object-position: 50% 14%; }
.card-top { display: flex; align-items: center; gap: 8px; min-height: 22px; margin-top: 8px; }
.company-initial { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint-100); color: var(--mint-800); font-size: var(--fs-xs); font-weight: 700; }
.category-label { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.shop-toggle h3 { font-size: var(--fs-lead); line-height: 1.35; letter-spacing: -.025em; }
.shop-toggle .categories { display: -webkit-box; min-height: calc(2 * 1.6em); margin-top: 4px; overflow: hidden; font-size: var(--fs-14); line-height: 1.6; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.card-bottom > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.card-bottom .icon { font-size: 1.05rem; }
.card-bottom > svg { width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease-out); }
.is-open .card-bottom > svg { transform: rotate(180deg); color: var(--accent); }
.card-links { display: flex; gap: 8px; margin-top: auto; padding: 0 20px 20px; }
.card-links .button { flex: 1; min-width: 0; min-height: 44px; padding: 8px; gap: 5px; font-size: var(--fs-14); }
.action-call { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.action-call .icon, .action-map .icon { font-size: 1.05rem; }
/* Narrow cards: drop the phone glyph first (the number is the label), stack only when even that does not fit. */
@container (max-width: 300px) { .action-call .icon { display: none; } }
@container (max-width: 277px) { .card-links { flex-direction: column; } }

.detail-item { grid-column: 1 / -1; min-width: 0; }
.shop-detail { padding: 32px 36px 36px; border: 1px solid var(--accent-200); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-lift); }
.detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-kicker { font-size: var(--fs-sm); font-weight: 600; color: var(--accent); }
.detail-header h3 { margin-top: 4px; font-size: var(--fs-24); letter-spacing: -.03em; }
.detail-header h3:focus { outline: none; }
.detail-header h3:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 24px; }
.detail-main { grid-column: 1; grid-row: 1; min-width: 0; }
.detail-side { grid-column: 2; grid-row: 1; padding: 24px; border-radius: var(--r-card); background: var(--surface-alt); }
.detail-photo { margin-bottom: 22px; }
.detail-photo > a { display: block; overflow: hidden; border-radius: var(--r-card); background: var(--surface-sunk); }
.detail-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; transition: transform .6s var(--ease-out); }
.detail-photo img[src*="/naver-"] { width: 112%; max-width: none; margin-inline: -6%; aspect-ratio: 2.4 / 1; object-position: 50% 22%; }
.detail-photo figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }
.detail-photo figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.detail-intro { margin-bottom: 22px; font-size: var(--fs-16); line-height: 1.8; }
.detail-label { margin-bottom: 10px; font-size: var(--fs-sm); font-weight: 700; }
.product-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.product-list li { padding: 6px 14px; border-radius: var(--r-pill); background: var(--surface-alt); font-size: var(--fs-14); }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-tag { padding: 5px 14px; border-radius: var(--r-pill); background: var(--accent-50); color: var(--accent-hover); font-size: var(--fs-sm); font-weight: 600; }
.detail-tags p, .detail-main > p:not([class]) { font-size: var(--fs-15); color: var(--muted); }
.detail-caution { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
.detail-meta { display: grid; gap: 12px; }
.detail-meta div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; font-size: var(--fs-15); }
.detail-meta dt { color: var(--muted); }
.detail-meta dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.detail-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-top: 18px; }
.detail-actions:first-child { margin-top: 0; }
.detail-actions .button { min-width: 0; min-height: 50px; padding-inline: 12px; gap: 6px; }
.detail-share { display: flex; justify-content: center; margin-top: 6px; }
.share-link { gap: 8px; font-size: var(--fs-14); }
.share-link .icon { font-size: 1.1rem; }
.detail-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-note strong { display: block; margin-bottom: 4px; font-size: var(--fs-14); }
.detail-note p { font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }
.detail-note .detail-caution { margin-top: 6px; }

.empty-state { padding: 64px 20px; border-radius: var(--r-panel); background: var(--surface-alt); text-align: center; }
.empty-state > .icon { font-size: 2.5rem; color: var(--muted); }
.empty-state h3 { margin-top: 12px; font-size: var(--fs-20); }
.empty-state p { margin: 8px 0 22px; font-size: var(--fs-15); color: var(--muted); }
.directory:has(#empty-state:not([hidden])) .results-bar > div { display: none; }
.directory-tools { margin-top: 8px; }
.directory-tools .text-link { gap: 8px; font-size: var(--fs-14); }
.directory-tools .icon { font-size: 1.15rem; }
.directory-note { max-width: 80ch; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }

/* ─── Story & education: asymmetric two-cell bento ───────── */
.community-section { padding-block: 16px var(--section-y); }
.community-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.story-panel, .education-panel { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 52px); border-radius: var(--r-panel); }
.community-grid h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.3; letter-spacing: -.03em; }
.community-grid section p { margin-top: 18px; font-size: var(--fs-16); line-height: 1.85; }
.story-panel { min-height: 440px; background: var(--accent-800); color: #fff; }
.story-copy { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; max-width: 34rem; }
.story-panel p { color: rgb(255 255 255 / .84); }
.brand-meaning { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: auto; padding-top: 36px; font-size: var(--fs-15); color: rgb(255 255 255 / .92); }
.brand-meaning b { display: block; margin-bottom: 2px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; color: var(--mint-300); }
.story-mark { position: absolute; right: clamp(-48px, -3vw, -20px); bottom: -56px; width: clamp(180px, 22vw, 300px); height: auto; filter: brightness(0) invert(1); opacity: .1; pointer-events: none; }
.story-panel :focus-visible { outline-color: #fff; }
.education-panel { border: 1px solid var(--mint-100); background: var(--mint-50); }
.status-label { align-self: flex-start; margin-bottom: 22px; border: 1px solid var(--mint-300); background: var(--surface); color: var(--mint-800); }
.education-panel p { color: var(--ink-2); }
.education-meta { display: grid; gap: 10px; margin: 26px 0 12px; }
.education-meta > div { display: flex; gap: 16px; font-size: var(--fs-15); }
.education-meta dt { flex-shrink: 0; min-width: 36px; color: var(--mint-800); font-weight: 600; }
.education-meta dd { font-weight: 500; }
.education-panel .text-link { align-self: flex-start; margin-top: auto; padding-top: 12px; }

/* ─── Visit: verified facts only; parking and loading wait for the office's site check ─ */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: var(--section-y); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-panel); background: var(--surface-alt); }
.visit-intro h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.visit-intro p { margin-top: 14px; font-size: var(--fs-16); line-height: 1.8; color: var(--muted); }
.visit-intro .button { margin-top: 24px; }
.visit-list { display: grid; }
.visit-list > div { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; padding-block: 18px; }
.visit-list > div + div { border-top: 1px solid var(--line-strong); }
.visit-list > div:first-child { padding-top: 4px; }
.visit-list dt { display: flex; align-items: center; gap: 10px; font-size: var(--fs-15); font-weight: 700; }
.visit-list dt .icon { font-size: 1.3rem; color: var(--accent); }
.visit-list dd { font-size: var(--fs-15); line-height: 1.75; color: var(--ink-2); }

/* ─── FAQ: short answers from facts already on the page; the same text feeds the FAQPage structured data ─ */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-bottom: var(--section-y); }
.faq-intro h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
.faq-intro p { max-width: 36ch; margin-top: 14px; font-size: var(--fs-16); line-height: 1.8; color: var(--muted); }
.faq-list { display: grid; }
.faq-list > div { padding-block: 18px; }
.faq-list > div + div { border-top: 1px solid var(--line-strong); }
.faq-list > div:first-child { padding-top: 4px; }
.faq-list dt { font-size: var(--fs-16); font-weight: 700; }
.faq-list dd { max-width: 64ch; margin-top: 8px; font-size: var(--fs-15); line-height: 1.75; color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 60; width: max-content; max-width: min(440px, calc(100% - 32px)); padding: 14px 20px; border-radius: var(--r-card); background: var(--ink); color: #fff; font-size: var(--fs-15); font-weight: 500; line-height: 1.55; box-shadow: var(--shadow-overlay); opacity: 0; transform: translate(-50%, 12px); transition: opacity .25s, transform .35s var(--ease-out); pointer-events: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ─── Inquiry ────────────────────────────────────────────── */
.inquiry { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; padding-block: 0 var(--section-y); }
.inquiry-copy { position: sticky; top: calc(var(--header-h) + 32px); }
.inquiry-copy h2 { font-size: var(--fs-h2); line-height: 1.3; letter-spacing: -.03em; }
.inquiry-copy > p { margin-top: 18px; font-size: var(--fs-16); line-height: 1.85; color: var(--muted); }
.inquiry-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding: 18px 20px; border-radius: var(--r-card); background: var(--accent-50); }
.inquiry-status > .icon { margin-top: 2px; color: var(--accent); font-size: 1.25rem; }
.inquiry-status p { font-size: var(--fs-14); font-weight: 500; line-height: 1.65; }
.inquiry-copy > .button { margin-top: 16px; }
.inquiry-form { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-card); }
.inquiry-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.inquiry-form .form-help { margin: 0 0 16px; }
.submit-button { width: 100%; min-height: 56px; font-size: var(--fs-16); }

/* ─── Board entry & footer ───────────────────────────────── */
.board-entry { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: var(--section-y); padding: clamp(28px, 3vw, 44px) clamp(24px, 4vw, 56px); border: 1px solid var(--accent-100); border-radius: var(--r-panel); background: var(--accent-50); }
.board-entry h2 { font-size: var(--fs-24); }
.board-entry p { margin-top: 6px; font-size: var(--fs-16); color: var(--muted); }
.board-entry .button { flex-shrink: 0; }

.site-footer { padding-block: 48px 28px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.footer-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.site-footer .brand { justify-self: start; }
.site-footer .brand-logo { width: 172px; }
.footer-top > p { font-size: var(--fs-14); line-height: 1.8; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom p:first-child { display: flex; align-items: center; min-height: 44px; }
.footer-notice { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 12px; font-size: var(--fs-sm); line-height: 1.7; color: var(--muted); }
.footer-notice > p:first-child { max-width: 640px; }
.nowrap { white-space: nowrap; }
.footer-notice .text-link { min-height: 44px; white-space: nowrap; }

/* ─── Motion (MOTION_INTENSITY 4): entry, reveal, feedback ── */
@media (prefers-reduced-motion: no-preference) {
  /* Hero enters in reading order: eyebrow, headline, lead, search, shortcuts. */
  .hero-copy > * { animation: rise .8s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-copy > :nth-child(4) { animation-delay: .18s; }
  .hero-copy > :nth-child(5) { animation-delay: .24s; }
  .hero-visual img { animation: settle 1.4s var(--ease-out) both; }
  .shop-detail { animation: rise .45s var(--ease-out) both; }
  /* Sections below the fold arrive as the reader reaches them (class set by app.mjs). */
  .reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .reveal-ready.is-revealed { opacity: 1; transform: none; }
  /* Task surfaces (the directory search, the inquiry form) are never held back by a reveal. */
  .directory-heading.reveal-ready, .inquiry-form.reveal-ready { opacity: 1; transform: none; transition: none; }
  @media (hover: hover) { .detail-photo a:hover img { transform: scale(1.02); } }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: .4; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .br-wide { display: none; }
  .hero-visual { min-height: 400px; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .shop-photo, .shop-card:not(.has-photo) .shop-toggle::before { aspect-ratio: 2.5 / 1; }
  .shop-photo[src*="/naver-"] { aspect-ratio: 3.1 / 1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 176px; }
  .menu-toggle { display: inline-flex; }
  .site-header { border-color: var(--line); }
  .site-header nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line); background: var(--page); }
  .site-header nav.is-open { display: flex; box-shadow: 0 0 0 100vmax rgb(28 22 38 / .3); clip-path: inset(0 0 -100vmax 0); }
  html:has(#main-nav.is-open) { overflow: hidden; }
  .site-header nav a { min-height: 54px; padding: 0 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-16); }
  .site-header nav a::after { display: none; }
  .site-header nav a:last-child { justify-content: center; margin-top: 14px; border: 1px solid var(--accent-200); }

  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 0; }
  .hero-visual { align-self: auto; min-height: 0; height: clamp(180px, 38vw, 300px); margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .hero-description { max-width: none; }
  .hero-search { max-width: none; }
  .featured-section { margin-top: 0; }

  .inquiry, .visit, .faq { grid-template-columns: 1fr; gap: 28px; }
  .inquiry-copy { position: static; }
  .inquiry-copy h2 br { display: none; }
  .community-grid { grid-template-columns: 1fr; }
  .story-panel { min-height: 0; }
  .detail-body { grid-template-columns: 1fr; gap: 24px; }
  .detail-main, .detail-side { grid-column: auto; grid-row: auto; }
  .footer-top { grid-template-columns: 1fr auto; gap: 16px 24px; }
  .footer-top > p { grid-column: 1 / -1; grid-row: 2; }

  /* Compact horizontal card: thumbnail left, details right, actions below. */
  .shop-toggle { gap: 6px; padding: 16px 16px 12px; }
  .shop-toggle > :not(.shop-photo) { margin-inline: 0; }
  .shop-card:not(.has-photo) .shop-toggle::before { display: none; }
  .has-photo .shop-toggle { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; }
  .has-photo .shop-toggle > * { grid-column: 2; }
  .has-photo .shop-photo, .has-photo .shop-photo[src*="/naver-"] { grid-column: 1; grid-row: 1 / span 3; width: 88px; max-width: none; height: 88px; margin: 0; aspect-ratio: 1; object-position: 42% 32%; border-radius: var(--r-input); }
  .has-photo .shop-photo[src*="/naver-"] { transform: scale(1.32); transform-origin: 50% 30%; clip-path: inset(7% 12% 17% 12% round 9px); }
  .card-top { margin-top: 0; min-height: 0; }
  .shop-toggle h3 { font-size: var(--fs-body); }
  .shop-toggle .categories { min-height: 0; font-size: var(--fs-sm); }
  .card-bottom { margin-top: 2px; padding-top: 0; border-top: 0; }
  .card-links { padding: 0 16px 16px; }
  .shop-card:hover { transform: none; }
}

@media (max-width: 760px) {
  .directory-heading { flex-direction: column; align-items: stretch; gap: 18px; }
  .search-box.compact { width: 100%; }
}

@media (max-width: 600px) {
  body { font-size: var(--fs-16); }
  .preview-notice .container { align-items: flex-start; justify-content: flex-start; }
  .preview-notice p { font-size: var(--fs-xs); line-height: 1.6; }
  .hero-grid { gap: 28px; padding-top: 32px; }
  .hero-eyebrow { margin-bottom: 14px; font-size: var(--fs-14); }
  .hero h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 2.5rem); }
  .hero-description { margin-top: 14px; font-size: var(--fs-16); }
  .hero-search { min-height: 60px; margin-top: 24px; padding-left: 18px; gap: 8px; }
  .hero-search .button { min-height: 48px; padding-inline: 20px; }
  .quick-search button { min-height: 44px; }

  .featured-section { padding-block: 28px 32px; }
  .inline-heading h2 { font-size: var(--fs-20); }
  .inline-heading p { font-size: var(--fs-14); }
  .featured-card { width: 236px; min-height: 66px; padding: 12px 16px; }
  .featured-reels { mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent); }

  .category-filters { flex-wrap: nowrap; margin: -6px calc(-1 * var(--gutter)) -2px; padding: 8px var(--gutter); overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .category-filters::-webkit-scrollbar { display: none; }
  .filter-button { min-height: 44px; }
  .results-bar { margin: 16px 0 12px; }
  .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }

  .shop-detail { padding: 22px 18px 24px; }
  .detail-header h3 { font-size: var(--fs-20); }
  .detail-body { margin-top: 16px; gap: 18px; }
  .detail-side { padding: 0 0 18px; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
  .detail-meta div { grid-template-columns: 64px minmax(0, 1fr); }

  .story-panel, .education-panel { padding: 28px 24px; }
  .story-mark { width: 160px; bottom: -40px; }
  .visit { padding: 28px 22px; }
  .visit-list > div { grid-template-columns: 1fr; gap: 6px; }
  .visit-intro .button { width: 100%; white-space: normal; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inquiry-form { padding: 22px 18px; }
  .board-entry { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
  .board-entry .button { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 0; }
  .footer-notice { flex-direction: column; align-items: flex-start; gap: 4px; }
  .footer-links { flex-wrap: wrap; gap: 0 20px; }
  .site-footer .brand-logo { width: 152px; }
  dialog { padding: 16px; }
}

@media (max-width: 360px) {
  .hero-search { padding-left: 14px; gap: 6px; }
  .hero-search > .icon { display: none; }
  .hero-search .button { padding-inline: 16px; }
  .quick-search > span { flex-basis: 100%; margin: 0 0 2px; }
}

/* ─── Preferences ────────────────────────────────────────── */
@media (pointer: coarse) { .quick-search button, .filter-button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel { overflow-x: auto; }
  .reel-track { transform: none; }
  .reel-group[aria-hidden] { display: none; }
  .shop-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .filter-button[aria-pressed=true], .shop-card.is-open { outline: 3px solid CanvasText; outline-offset: -3px; }
  .site-header nav a[aria-current] { text-decoration: underline 2px; text-underline-offset: 6px; }
  .site-header nav a::after { display: none; }
}
@media print { .site-header, .featured-section, .inquiry-form, .board-entry, .skip-link { display: none; } }
