/* ==========================================================================
   Korean Ice Co.
   Hanji paper, ink, wood lattice, one red seal.
   ========================================================================== */

:root {
  --paper: #F3EEE3;
  --paper-2: #E9E2D3;
  --paper-light: #F8F3E8;
  --ink: #1D1915;
  --ink-2: #241E18;
  --ink-3: #4A3F33;
  --rule: rgba(29, 25, 21, .18);
  --rule-strong: rgba(29, 25, 21, .4);
  --indigo: #23428A;
  --indigo-deep: #16264A;
  --serif-brush: "Nanum Brush Script", "Nanum Myeongjo", serif;
  --wood: #1E2F55;
  --seal: #C33328;
  --blue: #0142AC;
  --roof: #3B3A38;
  --roof-2: #6B6863;

  --serif-head: "Nanum Myeongjo", "Times New Roman", serif;
  --serif-body: "Gowun Batang", "Nanum Myeongjo", Georgia, serif;

  --max: 1160px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 84px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1.05rem/1.75 var(--serif-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p, figure, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .5em .9em; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.5em; border: 1px solid var(--ink); border-radius: 2px;
  font: 700 .95rem/1 var(--serif-body); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-ink { background: var(--ink); color: var(--paper-light); }
.btn-ink:hover { background: var(--seal); border-color: var(--seal); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-light); }
.btn-paper { background: var(--paper-light); color: var(--ink); border-color: var(--paper-light); }
.btn-paper:hover { background: transparent; color: var(--paper-light); }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--seal); }
.text-link--light { color: var(--paper-light); }
.text-link--light:hover { color: #F0B6AC; }
.label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }

/* ---------- Seal (낙관) ---------- */
.seal {
  display: grid; place-items: center; width: 58px; padding: 10px 0;
  background: var(--seal); color: #F7E7DC; border-radius: 3px;
  font: 800 1.2rem/1.05 var(--serif-head); writing-mode: vertical-rl; letter-spacing: .15em;
  box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4.5px rgba(247, 231, 220, .7);
}

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: var(--paper) var(--grain); border-bottom: 3px double var(--rule-strong); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 70px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-weight: 700; text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav ul a:hover, .site-nav ul a.is-active { border-bottom-color: var(--seal); color: var(--seal); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.hero-copy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.hero-vertical { writing-mode: vertical-rl; font: 700 1.05rem/1 var(--serif-head); letter-spacing: .5em; color: var(--ink-3); padding-left: 18px; border-left: 1px solid var(--rule); }
.kicker { display: flex; align-items: center; gap: 14px; font-size: .95rem; color: var(--ink-2); margin-bottom: 22px; }
.kicker [lang="ko"] { font: 800 1rem/1 var(--serif-head); color: var(--seal); padding-right: 14px; border-right: 1px solid var(--rule-strong); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.1; }
.hero-lead { margin-top: 24px; max-width: 30em; font-size: 1.12rem; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-status { margin-top: 26px; font-size: .92rem; color: var(--ink-3); }
[data-open="true"] .hero-status::before { content: "● "; color: #3F7A4E; }
[data-open="false"] .hero-status::before { content: "● "; color: var(--seal); }

/* Lattice window with a round opening (만월창) */
.window { position: relative; aspect-ratio: 1263 / 1245; width: 100%; max-width: 500px; justify-self: center; margin-bottom: 44px;
  /* hanji paper behind the lattice gaps (kept inside the outer frame) */
  background: linear-gradient(var(--paper-light), var(--paper-light)) center / 94% 94% no-repeat; }
/* Lattice window artwork (assets/img/lattice-window.webp, transparent PNG) sits over the photo circle */
.window-frame { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("assets/img/lattice-window.webp") center / 100% 100% no-repeat; }
.window-opening {
  position: absolute; z-index: 1; left: 15.6%; right: 16.9%; top: 15.3%; bottom: 15.3%;
  border-radius: 50%; overflow: hidden; background: #FFFFFF;
}
.window .seal, .window figcaption { z-index: 3; }
.window-opening img { position: absolute; left: 50%; top: 50%; width: 150%; max-width: none; height: auto; translate: -50% -46%; opacity: 0; transition: opacity 1s ease; }
.window-opening img.is-active { opacity: 1; }
.window .seal { position: absolute; right: -16px; bottom: 9%; transform: rotate(4deg); }
.window figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-size: .95rem; color: var(--ink-2); }
.window figcaption [lang="ko"] { font-family: var(--serif-head); font-weight: 800; color: var(--ink); margin-right: 8px; }

/* Roof-tile eaves (기와 처마) — seamless strip, white removed (assets/img/giwa-strip.webp, 8 tiles per repeat) */
.eaves {
  height: clamp(64px, 8.5vw, 112px);
  background: url("assets/img/giwa-strip.webp") 0 0 / auto 100% repeat-x;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--rule-strong); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head p { max-width: 30em; color: var(--ink-2); }
h2 [lang="ko"] { display: block; margin-bottom: 10px; font-size: 1rem; letter-spacing: .35em; color: var(--seal); }

/* ---------- Menu ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 40px; }
.chip { padding: 4px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-3); font: 700 1rem/1.4 var(--serif-body); cursor: pointer; }
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); border-bottom-color: var(--seal); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(24px, 3vw, 40px); }
.menu-card[hidden] { display: none; }
.menu-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3) translateY(2%); mix-blend-mode: multiply; }
.menu-photo--low img { transform: scale(1.15) translateY(6%); }
.menu-photo--tight img { object-fit: contain; object-position: center bottom; transform: scale(.6) translateY(-4%); transform-origin: center bottom; }
.menu-num { font: 800 1rem/1 var(--serif-head); color: var(--seal); margin-bottom: 8px; }
.menu-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.menu-card h3 [lang="ko"] { display: block; font-size: .95rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; letter-spacing: .02em; }
.menu-card > p:last-child { color: var(--ink-2); font-size: .98rem; line-height: 1.65; }
.menu-foot { display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule-strong); font-size: .92rem; color: var(--ink-2); }
.menu-foot strong { color: var(--ink); margin-right: 10px; }

/* ---------- Visit ---------- */
.visit { background: var(--paper-2) var(--grain); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.ledger > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
address { font-style: normal; }
.ledger a { text-decoration: underline; text-underline-offset: 4px; }
.ledger small { display: block; margin-top: 6px; color: var(--ink-3); font-size: .85rem; }
.hours { border-collapse: collapse; }
.hours th, .hours td { padding: 0 0 2px; text-align: left; font-weight: 400; }
.hours th { padding-right: 28px; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.visit-photo { padding: 12px; background: var(--paper-light); border: 1px solid var(--rule); }
.visit-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; }
.visit-photo figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }

/* ---------- How + about ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 4px clamp(20px, 3vw, 36px) 8px; border-left: 1px solid var(--rule); }
.steps li:first-child { padding-left: 0; border-left: 0; }
.step-num { display: block; font: 800 2.4rem/1 var(--serif-head); color: var(--seal); margin-bottom: 18px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule-strong); }
.story-text { max-width: 36em; }
.story-text h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 24px; }
.story-text p + p { margin-top: 16px; }
.story-text p { color: var(--ink-2); font-size: 1.1rem; }
.story-vertical { writing-mode: vertical-rl; font: 800 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif-head); letter-spacing: .4em; color: var(--ink); padding-right: 8px; border-right: 2px solid var(--seal); }

/* ---------- Catering ---------- */
.catering {
  background-color: var(--wood); color: rgba(248, 243, 232, .85);
  background-image: linear-gradient(90deg, rgba(248, 243, 232, .06) 1px, transparent 1px), linear-gradient(0deg, rgba(248, 243, 232, .06) 1px, transparent 1px);
  background-size: 36px 36px;
}
.catering-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; align-items: end; gap: 40px; }
.catering h2 { color: var(--paper-light); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.catering h2 [lang="ko"] { color: #E9A598; }
.catering p { max-width: 32em; font-size: 1.08rem; }
.catering-actions { display: flex; align-items: center; gap: 24px; }

/* ---------- Instagram ---------- */
.section-head--row { align-items: center; }
.gram-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gram-grid img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--paper-2); mix-blend-mode: multiply; }
.gram-grid img:nth-child(2) { mix-blend-mode: normal; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(248, 243, 232, .7); }
.dancheong { height: 10px; background: repeating-linear-gradient(90deg, #2F6B5E 0 22px, #C33328 22px 34px, #E0B14A 34px 42px, #1E3A6E 42px 62px, #F1E9DA 62px 66px); }
.footer-inner { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 80px); padding-block: 56px 44px; border-bottom: 1px solid rgba(248, 243, 232, .14); }
.footer-logo img { width: 150px; height: auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer .label { color: #B9A88F; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--paper-light); }
.footer-bottom { padding-block: 20px 28px; font-size: .85rem; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .9s ease; }
.js [data-reveal].is-visible { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .brand img { height: 54px; }
  .nav-toggle { display: inline-block; padding: .55em 1em; border: 1px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink); font: 700 .95rem/1 var(--serif-body); cursor: pointer; }
  .nav-open .nav-toggle { background: var(--ink); color: var(--paper-light); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px; padding: 4px var(--gutter) 24px;
    background: var(--paper); border-bottom: 3px double var(--rule-strong);
    display: none;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 1.1rem; }
  .site-nav .btn { margin-top: 12px; }

  .hero-inner, .visit-grid, .catering-inner { grid-template-columns: minmax(0, 1fr); }
  .window { max-width: 400px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { padding: 0 0 0 20px; border-left: 2px solid var(--rule); }
  .steps li:first-child { padding-left: 20px; border-left: 2px solid var(--rule); }
  .gram-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .seal--footer { position: absolute; right: var(--gutter); top: 56px; }
}
@media (max-width: 560px) {
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-vertical { display: none; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-vertical { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .ledger > div { grid-template-columns: 84px minmax(0, 1fr); }
  .window .seal { right: -6px; width: 48px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transition: none; }
  .window-opening img { transition: none; }
}

/* ==========================================================================
   Brush layer: indigo ink washes after the mural
   ========================================================================== */
:root {
  --brush-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 18' preserveAspectRatio='none'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6 .09' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='6'/%3E%3C/filter%3E%3Cpath d='M4 10 C90 4 260 5 596 7 C560 11 330 14 8 14 Z' fill='%2323428A' filter='url(%23b)'/%3E%3C/svg%3E");
  --brush-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' preserveAspectRatio='none'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4' seed='9'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='16'/%3E%3C/filter%3E%3Crect x='10' y='10' width='380' height='280' fill='white' filter='url(%23e)'/%3E%3C/svg%3E");
}

/* Brush hangul labels */
h2 [lang="ko"] { font: 400 clamp(2rem, 3.2vw, 2.6rem)/1 var(--serif-brush); letter-spacing: .02em; color: var(--indigo); margin-bottom: 6px; }
.kicker [lang="ko"] { font: 400 1.7rem/1 var(--serif-brush); color: var(--seal); }
.catering h2 [lang="ko"] { color: #F0B6AC; }

/* Brush-stroke dividers instead of ruled lines */
.section-head { border-bottom: 0; background: var(--brush-line) left bottom / 100% 14px no-repeat; padding-bottom: 26px; }
.menu-foot, .story { border-top: 0; background: var(--brush-line) left top / 100% 10px no-repeat; }
.menu-foot { padding-top: 24px; }
.site-header { border-bottom: 0; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 10px; background: var(--brush-line) center / 100% 100% no-repeat; opacity: .85; }

/* Hero: ink-wash hills and a low red sun */
.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(140px, 22vw, 260px); }
.window::before { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; right: -12%; top: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 126, 104, .55) 0%, rgba(232, 126, 104, .25) 45%, transparent 70%); }
.hero h1 { color: var(--indigo-deep); }

/* Steps: brush numerals */
.step-num { font: 400 2.6rem/1 var(--serif-brush); color: var(--indigo); }
.menu-num { color: var(--indigo); }
.chip.is-active { border-bottom-color: var(--indigo); }

/* Story with the mural */
.story { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; }
.story-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 60% 50%; -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat; }
.story-vertical { border-right-color: var(--indigo); }
.visit-photo { padding: 0; background: none; border: 0; }
.visit-photo img { -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat; }

/* Catering: deep indigo with the peony from the mural */
.catering { position: relative; overflow: hidden; background-color: var(--indigo-deep); background-image: none; }
.catering-art { position: absolute; right: 0; top: 50%; translate: 0 -50%; height: 150%; width: auto; max-width: none; opacity: .55; -webkit-mask: linear-gradient(90deg, transparent 0%, #000 55%); mask: linear-gradient(90deg, transparent 0%, #000 55%); }
.catering-inner { position: relative; z-index: 1; }
.btn-ink { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn-line { border-color: var(--indigo-deep); color: var(--indigo-deep); }
.btn-line:hover { background: var(--indigo-deep); }

/* Footer in deep indigo */
.site-footer { background: #121D38; }

@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story-vertical { display: none; }
  .catering-art { height: 120%; opacity: .3; }
}

/* ==========================================================================
   Scroll-driven shaving
   ========================================================================== */
.shave { position: relative; background: var(--paper-light) var(--grain); }
.shave-track { height: 340vh; }
.shave-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.shave-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.shave-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(24px, 4vh, 44px); }
.shave-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.6vh, 26px); }
.shave-steps li { padding-left: 22px; border-left: 2px solid var(--rule); opacity: .32; transition: opacity .4s, border-color .4s; }
.shave-steps li.is-active { opacity: 1; border-left-color: var(--indigo); }
.shave-steps .step-num { font-size: 1.9rem; margin-bottom: 4px; }
.shave-steps h3 { font-size: 1.35rem; margin-bottom: 4px; }
.shave-steps p { color: var(--ink-2); font-size: .98rem; max-width: 26em; }
.shave-progress { margin-top: clamp(20px, 4vh, 40px); height: 3px; background: var(--rule); max-width: 320px; }
.shave-progress i { display: block; height: 100%; width: 0; background: var(--indigo); }
.shave-stage { position: relative; justify-self: center; width: 100%; max-width: 560px; aspect-ratio: 1; max-height: calc(100vh - var(--header-h) - 48px); }
.shave-canvas { width: 100%; height: 100%; display: block; }
.about { padding-top: clamp(64px, 9vw, 112px); }
.about .story { margin-top: 0; padding-top: 0; background: none; }

@media (max-width: 860px) {
  .shave-track { height: 300vh; }
  .shave-inner { grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: center; }
  .shave-stage { order: -1; max-width: 340px; max-height: 46vh; }
  .shave-copy h2 { display: none; }
  .shave-steps { position: relative; min-height: 8.5em; }
  .shave-steps li { position: absolute; inset: 0 0 auto 0; opacity: 0; }
  .shave-steps li.is-active { opacity: 1; }
  .shave-progress { margin: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .shave-track { height: auto; }
  .shave-sticky { position: static; height: auto; padding-block: 72px; }
  .shave-steps li { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .shave-steps { min-height: 0; }
  .shave-steps li { position: static; }
}

/* ==========================================================================
   Film: the scholar looking for bingsu
   ========================================================================== */
.film { padding-top: clamp(20px, 3vw, 36px); }
.film-frame { position: relative; }
.film-video {
  display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; object-fit: cover; background: var(--paper-2);
  -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat;
}
.film-inscription {
  position: absolute; top: 7%; right: 6%; writing-mode: vertical-rl;
  font: 400 clamp(1.3rem, 2.6vw, 2.2rem)/1.25 var(--serif-brush); letter-spacing: .12em; color: var(--indigo-deep);
  white-space: nowrap; text-shadow: 0 0 12px rgba(243, 238, 227, .9);
}
.film-seal { position: absolute; right: 3.2%; bottom: 10%; width: 46px; font-size: 1rem; transform: rotate(-3deg); }
.film-toggle {
  position: absolute; left: 3%; bottom: 8%; padding: .45em .9em; border: 1px solid var(--ink); border-radius: 2px;
  background: rgba(243, 238, 227, .85); color: var(--ink); font: 700 .8rem/1 var(--serif-body); cursor: pointer;
}
.film-toggle:hover { background: var(--ink); color: var(--paper-light); }
.film + .hero { padding-top: clamp(32px, 5vw, 64px); }
@media (max-width: 560px) {
  .film-inscription { top: 6%; right: 4%; font-size: 1.05rem; letter-spacing: .06em; }
  .film-seal { display: none; }
}

/* Crossfade loop: the second clip sits on top and fades in/out at each loop point */
.film-video--next { position: absolute; left: 0; top: 0; height: 100%; opacity: 0; transition: opacity 1.2s linear; }
.film-video--next.is-shown { opacity: 1; }

/* 3D layer (shave3d.js). The 2D canvas stays as a fallback. */
.shave-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: none; touch-action: pan-y; }
.shave.is-3d .shave-3d { display: block; }
.shave.is-3d .shave-canvas { visibility: hidden; }

/* ---------- Cookie note ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cookie {
  position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; margin: 0 auto; max-width: 860px;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: start;
  padding: 22px 24px; background: var(--paper-light) var(--grain); color: var(--ink);
  border: 1px solid var(--ink); box-shadow: 6px 6px 0 rgba(29,25,21,.18);
  transform: translateY(0); opacity: 1; transition: transform .45s ease, opacity .45s ease;
}
.cookie.is-leaving { transform: translateY(24px); opacity: 0; }
.cookie-seal { width: 44px; font-size: .95rem; }
.cookie-title { margin: 2px 0 6px; font: 700 1.15rem/1.3 var(--serif-head); }
.cookie-text { margin: 0; font-size: .95rem; color: var(--ink-2); max-width: 46em; }
.cookie-prefs { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cookie-prefs label { display: flex; align-items: baseline; gap: 10px; font-size: .95rem; }
.cookie-prefs input { accent-color: var(--indigo); transform: translateY(1px); }
.cookie-prefs span { color: var(--ink-3); font-size: .85rem; }
.cookie-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cookie-actions .btn { padding: .7em 1.2em; }
.cookie-actions .link-btn { font-size: .92rem; color: var(--ink-2); margin-left: 4px; }
@media (max-width: 560px) {
  .cookie { grid-template-columns: 1fr; padding: 18px; bottom: 12px; left: 12px; right: 12px; }
  .cookie-seal { display: none; }
  .cookie-actions .btn { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }
.cookie[hidden], .cookie [hidden] { display: none !important; }

/* ---------- Reviews ---------- */
.reviews-card {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: center;
  padding: clamp(28px, 4vw, 44px); background: var(--paper-light) var(--grain); border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(29,25,21,.12);
}
.reviews-score { display: flex; align-items: center; gap: 18px; padding-right: 48px; border-right: 1px solid var(--rule-strong); grid-row: span 2; }
.reviews-num { margin: 0; font: 700 clamp(3.6rem, 8vw, 5.4rem)/.9 var(--serif-head); color: var(--indigo-deep); }
.reviews-count { margin: 8px 0 0; font-size: .92rem; color: var(--ink-3); }
.stars {
  --pct: calc(var(--rating) / 5 * 100%);
  display: block; width: 7.5rem; height: 1.5rem;
  background: linear-gradient(90deg, var(--seal) var(--pct), var(--rule-strong) var(--pct));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") left / 1.5rem 1.5rem repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") left / 1.5rem 1.5rem repeat-x;
}
.reviews-text { margin: 0; max-width: 34em; font-size: 1.08rem; color: var(--ink-2); }
.reviews-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.reviews-seal { position: absolute; top: -18px; left: 24px; transform: rotate(-5deg); }
@media (max-width: 720px) {
  .reviews-card { grid-template-columns: 1fr; }
  .reviews-score { grid-row: auto; padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
  .reviews-seal { left: auto; right: 14px; width: 44px; font-size: 1rem; }
}
.reviews-text p { margin: 0 0 10px; }
.reviews-themes { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.reviews-themes li { position: relative; padding-left: 22px; font-size: 1rem; }
.reviews-themes li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--seal); border-radius: 2px; transform: rotate(45deg); }
.ledger [hidden] { display: none; }
/* Review carousel (Yelp embeds) */
.reviews-carousel { min-width: 0; }
.reviews-track { position: relative; }
.review-slide { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.review-slide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity .6s ease; }
.review-slide iframe { width: 100% !important; min-width: 0 !important; max-width: 100% !important; border: 0; display: block; }
.review-slide .yelp-review { display: block; padding: 22px 24px; background: #fff; border: 1px solid var(--rule-strong); font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.review-slide .yelp-review::before { content: "★★★★★"; display: block; color: var(--seal); letter-spacing: .12em; margin-bottom: 6px; }
.reviews-nav { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.reviews-arrow { width: 36px; height: 36px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; border-radius: 2px; }
.reviews-arrow:hover { background: var(--ink); color: var(--paper-light); }
.reviews-dots { display: flex; gap: 8px; }
.reviews-dots button { width: 9px; height: 9px; padding: 0; border: 0; background: var(--rule-strong); transform: rotate(45deg); cursor: pointer; }
.reviews-dots button[aria-current="true"] { background: var(--seal); }
@media (prefers-reduced-motion: reduce) { .review-slide, .review-slide.is-active { transition: none; } }
@media (max-width: 560px) { .reviews-card { padding: 30px 14px 22px; } }
@media (max-width: 900px) {
  .reviews-card { grid-template-columns: 1fr; }
  .reviews-score { grid-row: auto; padding-right: 0; padding-bottom: 20px; border-right: 0; border-bottom: 1px solid var(--rule-strong); }
}
@media (max-width: 560px) { .reviews-carousel { margin-inline: -14px; } .reviews-nav { padding-inline: 14px; } }

/* Review quote cards (no rating block) */
.reviews-card { grid-template-columns: 1fr; }
.reviews-track { min-height: 150px; }
.review-slide { margin: 0; padding: 8px clamp(4px, 3vw, 40px) 0; text-align: center; }
.review-stars { display: block; color: var(--seal); letter-spacing: .28em; font-size: 1.05rem; margin-bottom: 14px; }
.review-quote { position: relative; margin: 0 auto; max-width: 40em; font: 400 clamp(1.15rem, 2.2vw, 1.5rem)/1.65 var(--serif-head); color: var(--ink); }
.review-quote p { margin: 0; }
.review-quote::before { content: "“"; display: block; font: 700 4.2rem/.6 var(--serif-head); color: var(--indigo); opacity: .35; margin-bottom: 10px; }
.review-quote--link::before { display: none; }
.review-slide figcaption { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .95rem; color: var(--ink-3); }
.review-slide figcaption strong { font: 700 1.05rem var(--serif-head); color: var(--ink); }
.review-slide figcaption a { margin-top: 6px; color: var(--indigo); font-size: .9rem; }
.reviews-nav { justify-content: center; }
.reviews-actions { justify-content: center; }
@media (max-width: 560px) { .reviews-carousel { margin-inline: 0; } .reviews-nav { padding-inline: 0; } }
/* Footage: frames are color-matched to --paper (#F3EEE3); only a soft edge fade remains */
.shave[data-mode="frames"] .shave-canvas {
  /* thin feather on the four edges only, so the whole cup stays solid */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 16%, #000 84%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 97%, transparent);
          mask-composite: intersect;
}

/* ---------- Visit card (Handel's-style layout, hanji + indigo frame) ---------- */
.visit-card {
  position: relative; padding: clamp(36px, 5vw, 64px) clamp(22px, 4.5vw, 64px) clamp(30px, 4vw, 52px);
  background: var(--paper-light) var(--grain);
  border: 3px solid var(--indigo-deep);
  outline: 1px solid var(--indigo-deep); outline-offset: -10px;
}
/* stepped lattice corners (like the 창살 window corners) */
.vc-corner { position: absolute; width: 34px; height: 34px; background: var(--paper-light); }
.vc-corner::before, .vc-corner::after { content: ""; position: absolute; border: 0 solid var(--indigo-deep); }
.vc-corner::before { inset: 0; }
.vc-corner::after { width: 16px; height: 16px; }
.vc-corner--tl { top: -3px; left: -3px; }
.vc-corner--tl::before { border-width: 0 3px 3px 0; border-bottom-right-radius: 0; inset: 0 0 auto auto; width: 20px; height: 20px; }
.vc-corner--tl::after { right: 0; bottom: 0; border-width: 3px 0 0 3px; }
.vc-corner--tr { top: -3px; right: -3px; }
.vc-corner--tr::before { border-width: 0 0 3px 3px; inset: 0 auto auto 0; width: 20px; height: 20px; }
.vc-corner--tr::after { left: 0; bottom: 0; border-width: 3px 3px 0 0; }
.vc-corner--bl { bottom: -3px; left: -3px; }
.vc-corner--bl::before { border-width: 3px 3px 0 0; inset: auto 0 0 auto; width: 20px; height: 20px; }
.vc-corner--bl::after { right: 0; top: 0; border-width: 0 0 3px 3px; }
.vc-corner--br { bottom: -3px; right: -3px; }
.vc-corner--br::before { border-width: 3px 0 0 3px; inset: auto auto 0 0; width: 20px; height: 20px; }
.vc-corner--br::after { left: 0; top: 0; border-width: 0 3px 3px 0; }

.visit-head { text-align: center; margin-bottom: clamp(26px, 4vw, 44px); }
.visit-kicker { margin: 0 0 6px; font: 400 1.35rem/1 var(--serif-brush); color: var(--indigo); letter-spacing: .1em; }
.visit-head h2 { margin: 0; font: 800 clamp(2.8rem, 7vw, 5rem)/1 var(--serif-head); color: var(--indigo-deep); letter-spacing: .02em; }
.visit-status { margin: 12px 0 0; font-size: .95rem; color: var(--ink-3); }
.visit-status span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--seal); vertical-align: 2px; }
:root[data-open="true"] .visit-status span::before { background: #3C8A4E; }

.visit-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(22px, 3.5vw, 48px); align-items: start; }
.visit-where address { font: 700 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--serif-head); font-style: normal; color: var(--indigo-deep); }
.visit-phone { margin: 6px 0 0; font: 700 1.15rem var(--serif-head); }
.visit-phone a { color: var(--indigo-deep); text-decoration: none; }
.visit-directions { display: inline-block; margin-top: 18px; font: 800 1.05rem var(--serif-head); letter-spacing: .06em; text-transform: uppercase; color: var(--seal); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.visit-directions:hover { color: var(--indigo-deep); }
.visit-notes { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; color: var(--ink-2); }
.visit-notes li::before { content: "·"; margin-right: 8px; color: var(--seal); font-weight: 700; }
.visit-ig { display: inline-flex; margin-top: 22px; color: var(--indigo-deep); }
.visit-ig[hidden] { display: none; }

.visit-map { border: 3px solid var(--indigo-deep); outline: 1px solid var(--indigo-deep); outline-offset: 4px; background: var(--paper-2); aspect-ratio: 4 / 3; }
.visit-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.85) contrast(.98); }

.day-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day-hours li { display: flex; justify-content: space-between; gap: 12px; font: 700 1.02rem/1.5 var(--serif-head); color: var(--indigo-deep); text-transform: uppercase; letter-spacing: .04em; }
.day-hours li span:first-child { min-width: 3em; }
.day-hours li.is-closed { color: var(--ink-3); }
.day-hours li.is-today { color: var(--seal); }
.day-hours li.is-today span:first-child::after { content: " ·"; }
.visit-small { margin: 14px 0 0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.visit-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; margin-top: clamp(30px, 4vw, 48px); }
.btn-notch {
  display: block; text-align: center; padding: 1em 1.4em; background: var(--seal); color: #FBF1E7;
  font: 800 1.15rem var(--serif-head); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background .2s;
}
.btn-notch:hover { background: var(--indigo-deep); }
.visit-seal { transform: rotate(-4deg); }

@media (max-width: 900px) {
  .visit-body { grid-template-columns: 1fr 1fr; }
  .visit-map { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 560px) {
  .visit-body { grid-template-columns: 1fr; }
  .visit-actions { grid-template-columns: 1fr 1fr; }
  .visit-seal { display: none; }
}

/* ---------- 빙수 seal artwork (replaces the CSS-drawn seal) ---------- */
.seal--img {
  width: 58px; height: auto; aspect-ratio: 1019 / 1543; padding: 0;
  background: url("assets/img/seal-bingsu.webp") center / contain no-repeat;
  box-shadow: none; border-radius: 0; color: transparent; font-size: 0; overflow: hidden;
  filter: drop-shadow(1px 2px 2px rgba(29,25,21,.25));
}

/* ---------- English headings in brush (East Sea Dokdo) ---------- */
:root { --brush-en: "East Sea Dokdo", "Nanum Brush Script", serif; }
h1, h2, h3, .visit-head h2 { font-family: var(--brush-en); font-weight: 400; letter-spacing: 0; line-height: 1; }
h1 [lang="ko"], h3 [lang="ko"] { font-family: var(--serif-head); }
.hero h1 { font-size: clamp(3.4rem, 7.2vw, 6rem); line-height: .95; }
.section-head h2, .story-text h2, .catering h2, .reviews h2 { font-size: clamp(3.2rem, 6.5vw, 5rem); }
.menu-card h3 { font-size: 2rem; }
.shave-steps h3 { font-size: 1.9rem; }
.visit-head h2 { font-size: clamp(4rem, 10vw, 7rem); }

/* ---------- Menu: description appears over the photo on hover ---------- */
.menu-photo { position: relative; }
.menu-desc {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 18px 20px 20px; background: rgba(22, 38, 74, .9); color: #F6EFE3;
  font-size: .98rem; line-height: 1.6;
  opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.menu-desc::before { content: ""; display: block; width: 26px; height: 2px; margin-bottom: 10px; background: var(--seal); }
.menu-photo:hover .menu-desc, .menu-photo:focus-visible .menu-desc, .menu-photo:focus-within .menu-desc { opacity: 1; transform: none; }
.menu-photo:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; }
/* touch screens have no hover: show the description under the photo instead */
@media (hover: none) {
  .menu-photo { overflow: hidden; margin-bottom: 0; }
  .menu-desc { position: static; opacity: 1; transform: none; background: none; color: var(--ink-2); padding: 14px 0 0; }
  .menu-desc::before { display: none; }
  .menu-card .menu-num { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .menu-desc { transition: none; } }
.menu-photo--flat img { transform: none; object-fit: cover; }

/* Visit card: blue-painted wood frame, cut from the lattice window artwork */
.visit-card {
  border: 22px solid transparent; outline: 0;
  border-image: url("assets/img/lattice-window.webp") 66 / 22px / 0 stretch;
  background-clip: padding-box;
  box-shadow: 0 10px 24px -14px rgba(22, 38, 74, .45);
}
.visit-actions { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .visit-card { border-width: 15px; border-image-width: 15px; } }

/* Visit: solid blue wood frame (assets/img/frame-wood.webp, 9-slice: 70px rails + corner blocks) */
.visit { background: transparent; }
.visit-card {
  border-width: 30px;
  border-image: url("assets/img/frame-wood.webp") 70 / 30px / 0 stretch;
  box-shadow: 0 22px 40px -22px rgba(22, 38, 74, .55), 0 2px 0 rgba(22, 38, 74, .08);
}
@media (max-width: 560px) { .visit-card { border-width: 20px; border-image-width: 20px; } }
.day-hours li span:last-child { white-space: nowrap; }
@media (max-width: 1080px) {
  .visit-body { grid-template-columns: 1fr 1fr; }
  .visit-map { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 7; }
}
@media (max-width: 560px) { .visit-body { grid-template-columns: 1fr; } .visit-map { aspect-ratio: 4 / 3; } }

/* Instagram tiles: real posts, reels marked with a play badge */
.gram-tile { position: relative; display: block; overflow: hidden; background: var(--paper-2); }
.gram-tile img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; mix-blend-mode: normal; transition: transform .5s ease; }
.gram-tile:hover img, .gram-tile:focus-visible img { transform: scale(1.05); }
.gram-tile.is-reel::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(22, 38, 74, .75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23F6EFE3'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Visit map: tinted, logo pin, click for directions ---------- */
.visit-map { --crop: 150px; position: relative; display: block; overflow: hidden; text-decoration: none; isolation: isolate; }
/* hide Google's "Open in Maps" box by pushing the top edge out of view (attribution stays visible at the bottom) */
.visit-map iframe {
  position: absolute; left: 0; top: calc(-1 * var(--crop)); width: 100%; height: calc(100% + var(--crop));
  pointer-events: none; filter: grayscale(1) contrast(1.08) brightness(1.04);
}
.visit-map::before {   /* hanji tint */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #EFE2C8; mix-blend-mode: multiply; opacity: 1;
}
.visit-map::after {    /* indigo wash on roads + soft vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(22, 38, 74, .18) 100%), var(--indigo);
  mix-blend-mode: color; opacity: .4;
}
/* pin sits where Google's marker is: iframe center, shifted up by half the crop */
.map-pin {
  position: absolute; z-index: 2; left: 50%; top: calc(50% - var(--crop) / 2);
  width: 74px; height: 74px; translate: -50% -100%;
  display: grid; place-items: center; background: var(--paper-light);
  border: 3px solid var(--indigo-deep); border-radius: 50% 50% 50% 0; rotate: -45deg;
  box-shadow: 0 10px 18px -6px rgba(22, 38, 74, .55);
  transition: translate .3s ease;
}
.map-pin img { width: 56px; height: auto; rotate: 45deg; }
.map-pin::after {   /* ripple on the spot */
  content: ""; position: absolute; left: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--seal); rotate: 45deg; box-shadow: 0 0 0 0 rgba(195, 51, 40, .5); animation: pin-pulse 2.2s ease-out infinite;
}
@keyframes pin-pulse { to { box-shadow: 0 0 0 18px rgba(195, 51, 40, 0); } }
.map-label {
  position: absolute; z-index: 2; left: 50%; top: calc(50% - var(--crop) / 2 + 10px); translate: -50% 0;
  padding: 5px 12px; background: var(--indigo-deep); color: #F6EFE3; white-space: nowrap;
  font: 700 .85rem/1.2 var(--serif-head); letter-spacing: .04em;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.map-label [lang="ko"] { color: #F0B6AC; margin-right: 4px; }
.map-cta {
  position: absolute; z-index: 2; right: 12px; top: 12px; padding: 7px 12px;
  background: var(--seal); color: #FBF1E7; font: 700 .8rem var(--serif-head); letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; translate: 0 -6px; transition: opacity .25s, translate .25s;
}
.visit-map:hover .map-cta, .visit-map:focus-visible .map-cta { opacity: 1; translate: 0 0; }
.visit-map:hover .map-pin { translate: -50% calc(-100% - 6px); }
.visit-map:focus-visible { outline: 3px solid var(--seal); outline-offset: 6px; }
@media (hover: none) { .map-cta { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }
@media (max-width: 560px) {
  .visit-map { --crop: 90px; aspect-ratio: 1 / 1; }
  .map-cta { display: none; }
  .map-pin { width: 60px; height: 60px; }
  .map-pin img { width: 44px; }
}

/* Static colour map: shop is the exact centre of the image */
.visit-map .map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.visit-map::before, .visit-map::after { content: none; }
.visit-map { --crop: 0px; }
.map-pin { top: 50%; }
.map-label { top: calc(50% + 10px); }
.map-credit { position: absolute; z-index: 2; right: 6px; bottom: 5px; padding: 2px 6px; font: 500 .66rem/1.2 system-ui, sans-serif; color: #4B4238; background: rgba(248, 243, 232, .85); }
.visit-social { display: flex; gap: 16px; margin-top: 22px; }
.visit-social .visit-ig { margin-top: 0; }
.visit-yelp { color: #C33328; }
.visit-ig:hover, .visit-yelp:hover { color: var(--seal); }

/* ---------- Reviews: written on a sheet of hanji ---------- */
:root {
  /* long paper fibres + specks, like mulberry hanji */
  --hanji-fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .09' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .36 0 0 0 -2.6 1.55'/%3E%3C/filter%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='1' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .33 0 0 0 0 .25 0 0 0 -9 7.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='.16'/%3E%3Crect width='100%25' height='100%25' filter='url(%23s)' opacity='.35'/%3E%3C/svg%3E");
}
.reviews-card {
  position: relative; isolation: isolate;
  border: 0; box-shadow: none; background: none;
  padding: clamp(46px, 6vw, 72px) clamp(26px, 6vw, 80px) clamp(40px, 5vw, 60px);
}
/* the sheet itself, with torn (deckled) edges */
.reviews-card { filter: drop-shadow(0 10px 12px rgba(60, 45, 25, .14)); }
.reviews-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grain), radial-gradient(ellipse at 50% 40%, #FFFDF7 0%, #FBF6EA 65%, #F3EADA 100%);
  -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat;
}
.reviews-card::after { content: none; }

/* ink-brush writing */
.review-stars { font-size: 1.15rem; letter-spacing: .32em; filter: drop-shadow(0 0 .5px rgba(195,51,40,.6)); }
.review-quote { font: 400 clamp(1.7rem, 3.4vw, 2.5rem)/1.25 var(--brush-en); color: #1E1A16; letter-spacing: .01em; }
.review-quote::before { color: var(--indigo); opacity: .5; }
.review-slide figcaption strong { font: 400 1.6rem var(--brush-en); color: var(--indigo-deep); }
.review-slide figcaption a { color: var(--seal); }
.reviews-arrow { border-color: rgba(30, 26, 22, .5); background: transparent; border-radius: 50%; }
.reviews-actions .btn-ink { background: var(--indigo-deep); }
/* About artwork: animated watercolor already has its own torn edge + paper; let it melt into the page */
.story-art--anim img { aspect-ratio: auto; object-fit: contain; -webkit-mask: none; mask: none; mix-blend-mode: multiply; max-width: 470px; margin-inline: auto; display: block; }

/* "Follow" link drawn as a small hanok: tiled roof, wooden posts, hanji wall, stone base */
.hanok-follow { display: inline-flex; flex-direction: column; align-items: center; width: 300px; text-decoration: none; color: var(--ink); transition: translate .25s ease; }
.hanok-follow:hover { translate: 0 -3px; }
.hanok-roof { display: block; width: 100%; height: 64px; filter: drop-shadow(0 3px 2px rgba(22, 38, 74, .25)); }
.hanok-body { display: flex; align-items: stretch; width: 74%; margin-top: -4px; }
.hanok-post { width: 9px; background: #8A5A3B; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18); }
.hanok-text {
  flex: 1; padding: 12px 10px; text-align: center; white-space: nowrap;
  font: 700 1rem var(--serif-head); letter-spacing: .02em; color: var(--indigo-deep);
  background: var(--grain), #FBF6EA;
  border-top: 3px solid #8A5A3B; border-bottom: 3px solid #8A5A3B;
  background-image: var(--grain), linear-gradient(90deg, transparent calc(50% - 1px), rgba(138, 90, 59, .25) calc(50% - 1px), rgba(138, 90, 59, .25) calc(50% + 1px), transparent calc(50% + 1px));
}
.hanok-follow:hover .hanok-text { color: var(--seal); }
.hanok-base { width: 82%; height: 9px; background: linear-gradient(#B9AE9A, #9C917D); border-radius: 2px; }
@media (max-width: 560px) { .hanok-follow { width: 260px; } .hanok-text { font-size: .9rem; } }
.story-art--anim img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 9%, #000 91%, transparent);
          mask-composite: intersect;
}

/* =====================================================================
   A touch of LA ballpark (Dodger-blue accent, baseball seams, jersey
   numbers, ticket stubs). No team marks: just the feel.
   ===================================================================== */
:root {
  --dodger: #0142AC;          /* same blue as our logo */
  --dodger-deep: #003087;
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='12'%3E%3Cpath d='M2 2 L8 6 L2 10 M10 2 L16 6 L10 10' fill='none' stroke='%23C8102E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --jersey: "Graduate", "Nanum Myeongjo", serif;
}

/* 1. Dodger-blue primary buttons */
.btn-ink { background: var(--dodger); border-color: var(--dodger); color: #fff; }
.btn-ink:hover { background: var(--seal); border-color: var(--seal); }
.reviews-actions .btn-ink { background: var(--dodger); }


/* 4. Pickup / Delivery as ballpark ticket stubs */
.btn-notch {
  position: relative; clip-path: none; border-radius: 4px;
  font-family: var(--jersey); font-weight: 400; letter-spacing: .12em;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.btn-notch::before { /* perforation */
  content: ""; position: absolute; top: 8px; bottom: 8px; right: 54px; border-left: 2px dashed rgba(255, 255, 255, .55);
}
.btn-notch::after { /* stub label */
  content: "ADMIT ONE"; position: absolute; right: 27px; top: 50%; translate: 50% -50%; rotate: -90deg;
  font: 400 .42rem/1 var(--jersey); letter-spacing: .04em; opacity: .85; white-space: nowrap;
}
.visit-actions .btn-notch:first-child { background: var(--dodger); }
.visit-actions .btn-notch:hover { background: var(--dodger-deep); }

/* No. 1 patch on the hero window */
.no1-patch {
  position: absolute; z-index: 3; left: -34px; top: -30px; width: clamp(96px, 11vw, 132px); height: auto;
  rotate: -12deg; filter: drop-shadow(0 6px 8px rgba(22, 38, 74, .35));
  transition: rotate .4s ease;
}
.window:hover .no1-patch { rotate: -4deg; }
@media (max-width: 560px) { .no1-patch { left: -10px; top: -22px; width: 88px; } }
/* About artwork: crop to the painted area so it fills the frame */
.story-art--anim img {
  width: 100%; max-width: none; aspect-ratio: 453 / 340; object-fit: cover; object-position: 50% 49%;
  -webkit-mask-image: none; mask-image: none;
  -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat;
  mix-blend-mode: normal;
}
/* Follow banner artwork (hanok roof + signboard) */
.hanok-follow--img { width: clamp(260px, 30vw, 380px); }
.hanok-follow--img img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 86%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 66% at 50% 50%, #000 86%, transparent 100%);
}
.hanok-follow--img:hover img { filter: brightness(1.04) saturate(1.08); }
/* Follow banner: transparent cut-out, centred under the Instagram grid */
.hanok-follow--img { display: block; width: min(460px, 86%); margin: clamp(28px, 4vw, 44px) auto 0; }
.hanok-follow--img img { -webkit-mask-image: none; mask-image: none; mix-blend-mode: normal; }

/* Faint logo pattern over the hanji background (two offset grids, like branded wrapping paper) */
body {
  background:
    url("assets/logo-watermark.svg?v=2") 0 0 / 260px auto repeat,
    url("assets/logo-watermark.svg?v=2") 130px 124px / 260px auto repeat,
    var(--grain),
    var(--paper);
  background-attachment: fixed, fixed, scroll, scroll;
}
@media (max-width: 560px) {
  body { background-size: 170px auto, 170px auto, auto, auto; background-position: 0 0, 85px 81px, 0 0, 0 0; }
}

/* Readability: body copy a touch larger/heavier on the busy paper */
body { color: #18140F; }
.hero-lead, .story-text p, .section-head p, .menu-desc, .visit-notes, .reviews-text p { font-weight: 700; }
.hero-lead { color: var(--ink-2); }

/* Stronger text everywhere: Gowun Batang bold for body copy, darker ink */
body { font-weight: 700; -webkit-font-smoothing: auto; }
p, li, dd, dt, small, figcaption, address, td, th, label, .text-link, .chip, .btn { font-weight: 700; }
.kicker, .hero-status, .visit-status, .visit-small, .review-slide figcaption span, .menu-card h3 [lang="ko"] { color: var(--ink-2); }

/* Store mural (clouds + two kids on the wall) as a faint, fixed sky behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/img/mural-clouds.webp") center 30% / cover no-repeat;
  opacity: .1; mix-blend-mode: multiply;
}
@media (prefers-reduced-transparency: reduce) { body::before { display: none; } }
/* Storefront sketch beside the About text */
.story-shop { margin: 26px 0 0; }
.story-shop img {
  display: block; width: 100%; max-width: 440px; height: auto; mix-blend-mode: multiply;
  -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat;
}

/* ---------- Phone layout fixes ---------- */
@media (hover: none) {
  .menu-card > .menu-desc { padding: 6px 0 0; margin: 0; }
}
@media (max-width: 560px) {
  /* menu: two per row, compact */
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .menu-photo { margin-bottom: 10px; }
  .menu-card h3 { font-size: 1.35rem; }
  .menu-card h3 [lang="ko"] { font-size: .8rem; }
  .menu-card .menu-num { margin-top: 0; }
  .menu-card > .menu-desc { font-size: .82rem; line-height: 1.5; }
  /* tickets: one per row so the label clears the perforation */
  .visit-actions { grid-template-columns: 1fr; gap: 12px; }
  .btn-notch { font-size: 1.05rem; padding: .9em 1em; }
}
@media (max-width: 560px) { .menu-grid .menu-card > p.menu-desc { font-size: .8rem; line-height: 1.5; color: var(--ink-2); } }
.story-shop img { margin-inline: auto; }
/* Storefront sketch -> next picture (scholar walking past): slides like a photo carousel, loops */
.story-shop { position: relative; max-width: 440px; margin-inline: auto; overflow: hidden;
  -webkit-mask: var(--brush-edge) center / 100% 100% no-repeat; mask: var(--brush-edge) center / 100% 100% no-repeat; }
.story-shop-track { display: flex; width: 300%; animation: shop-slide 12s cubic-bezier(.45, 0, .25, 1) infinite; }
.story-shop-track img { width: 33.3334%; max-width: none; flex: none; -webkit-mask: none; mask: none; }
/* always moves left: A -> B -> A(copy), then snaps back to the identical first frame */
@keyframes shop-slide {
  0%, 38%   { transform: translateX(0); }
  50%, 88%  { transform: translateX(-33.3333%); }
  100%      { transform: translateX(-66.6667%); }
}
@media (prefers-reduced-motion: reduce) { .story-shop-track { animation: none; } }
.story-shop .story-shop-track img { margin: 0; display: block; height: auto; }

/* Less "rendered": let the seal and the lattice take on the paper, like ink and paint on hanji */
.seal--img { filter: saturate(.92) sepia(.06) drop-shadow(1px 2px 1.5px rgba(29,25,21,.2)); }
.window-frame { filter: saturate(.94) sepia(.05); }
.visit-card { border-image-source: url("assets/img/frame-wood.webp"); }
.story-text .story-lead { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.25 var(--brush-en); color: var(--indigo-deep); margin: 0 0 12px; }
.menu-photo--flat img { transform: scale(1.32); transform-origin: 50% 100%; }

/* Blue moving frame around the film (curved), text drawn in SVG by script.js */
.film-frame { --band: clamp(24px, 2.4vw, 30px); padding: var(--band); }
.film-frame .film-video { -webkit-mask: none; mask: none; border-radius: calc(var(--band) * .7); }
.film-video--next { left: var(--band); top: var(--band); width: calc(100% - 2 * var(--band)); height: calc(100% - 2 * var(--band)); }
.film-band { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.film-inscription { top: calc(7% + var(--band)); right: calc(6% + var(--band)); }
.film-seal { right: calc(3.2% + var(--band)); bottom: calc(10% + var(--band)); }
@media (max-width: 560px) { .film-frame { --band: 22px; } }

/* copy deterrent: no long-press save / drag on photos */
img, video { -webkit-user-drag: none; -webkit-touch-callout: none; }
