/* DOTE 공명 — phone layout (used when the screen is 760px wide or less) */
html.is-m, html.is-m body { height: auto; overflow: visible; }
html.is-m #stage { position: static; width: auto; height: auto; transform: none; }
html.is-m.menu-open, html.is-m.menu-open body, html.is-m.lock, html.is-m.lock body { overflow: hidden; }

.m { width: 100%; max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; overflow: hidden;
  background: #E8E6DE; color: #2D2C2A; font-family: 'Pretendard', sans-serif; display: flex; flex-direction: column;
  -webkit-text-size-adjust: 100%; }
.m::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 360px 420px at 10% 4%, rgba(255,253,247,0.6) 0%, rgba(255,253,247,0) 70%); }
.m .mono { font-family: 'IBM Plex Mono', 'Nanum Gothic Coding', monospace; }
.m .big { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 62%; line-height: 0.82; letter-spacing: -0.01em; white-space: nowrap; }

/* header + menu */
.m-head { position: sticky; top: 0; z-index: 20; height: 56px; flex: none; box-sizing: border-box; padding: 0 12px 0 20px;
  display: flex; align-items: center; justify-content: space-between; background: rgba(232,230,222,0.96);
  border-bottom: 1px dashed rgba(28,32,52,0.55); }
.m-logo { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 125%; font-size: 20px; letter-spacing: 0.08em; filter: url(#worn); }
.m-head-r { display: flex; align-items: center; gap: 6px; }
.m-ig { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.m-menu-btn { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px dashed #2D2C2A;
  font-size: 11px; letter-spacing: 0.1em; background: none; color: inherit; cursor: pointer; }
.m-menu { display: none; position: fixed; inset: 0; z-index: 50; background: #E8E6DE; flex-direction: column; overflow-y: auto; }
html.menu-open .m-menu { display: flex; }
.m-menu nav { padding: 12px 20px 30px; border-top: 1px solid #2D2C2A; margin: 0 0; }
.m-menu a.row, .m-index a.row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; height: 64px;
  border-bottom: 1px dashed rgba(45,44,42,0.45); }
.m-menu a.row[aria-current] .big, .m-menu a.row[aria-current] .mono { color: #2C4A2E; }
.row .no { font-size: 11px; color: #7A776F; }
.row .en { font-size: 36px; line-height: 1; }
.row .ko { font-size: 13px; color: #4A4843; display: flex; align-items: center; gap: 6px; }

/* fabric strip with the spliced word */
.m-strip { position: relative; flex: none; height: 140px; overflow: hidden; background-color: #E3DFD5;
  background-image: repeating-linear-gradient(-38deg, rgba(45,44,42,0.06) 0 1.4px, transparent 1.4px 5px); }
.m-strip::before, .m-strip::after { content: ''; position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(28,32,52,0.55); }
.m-strip::before { top: 7px; } .m-strip::after { bottom: 7px; }
.m-strip .half { position: absolute; top: 28px; height: 104px; width: 50%; overflow: hidden; filter: url(#washlight); }
.m-strip .half.l { left: 0; } .m-strip .half.r { left: 50%; }
.m-strip .half .big { position: absolute; top: 0; width: 200%; text-align: center; font-size: min(20.5vw, 112px); }
.m-strip .half.l .big { left: 0; color: #2F2E2B; }
.m-strip .half.r .big { left: -100%; top: 6px; color: #2F4C35; }
.m-strip .bleach { filter: url(#bleach); opacity: 0.78; }
.m-strip .bleach .big { color: #E3DFD5 !important; }
.m-strip .half.l.bleach { -webkit-mask-image: radial-gradient(ellipse 36% 60% at 30% 70%, #000 0%, rgba(0,0,0,0.7) 42%, transparent 100%), radial-gradient(ellipse 22% 26% at 82% 14%, rgba(0,0,0,0.5) 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 36% 60% at 30% 70%, #000 0%, rgba(0,0,0,0.7) 42%, transparent 100%), radial-gradient(ellipse 22% 26% at 82% 14%, rgba(0,0,0,0.5) 0%, transparent 100%); }
.m-strip .half.r.bleach { -webkit-mask-image: radial-gradient(ellipse 44% 34% at 56% 86%, #000 0%, rgba(0,0,0,0.7) 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 44% 34% at 56% 86%, #000 0%, rgba(0,0,0,0.7) 42%, transparent 100%); }
.m-strip .seam { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); border-left: 2px dashed #2D2C2A; }

/* page title block (sub pages) */
.m-title { flex: none; padding: 22px 20px 18px; border-bottom: 1px dashed rgba(28,32,52,0.55); }
.m-title h1 { margin: 0; font-size: min(16vw, 84px); filter: url(#rough); }
.m-title .sub { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.m-title .sub .mono { font-size: 11px; color: #2C4A2E; }
.m-title .sub b { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; }
.m-title p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #4A4843; }

/* sections and text */
.m-sec { flex: none; padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.m-sec + .m-sec { border-top: 1px dashed rgba(45,44,42,0.45); }
.m-label { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.1em; color: #4A4843; }
.m-label::before { content: ''; width: 24px; border-top: 1px solid #2D2C2A; }
.m-kicker { font-size: 11px; letter-spacing: 0.08em; color: #2C4A2E; }
.m-h { margin: 0; font-weight: 900; font-size: 38px; line-height: 1.12; letter-spacing: -0.045em; filter: url(#rough); }
.m-h span { display: block; }
.m-h .g { color: #2C4A2E; }
.m-h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -0.03em; line-height: 1.3; }
.m-p { margin: 0; font-size: 15px; line-height: 1.8; color: #4A4843; white-space: pre-line; }
.m-link { align-self: flex-start; font-size: 12px; letter-spacing: 0.08em; border-bottom: 1px dashed #2D2C2A; padding-bottom: 4px; }
.m-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.m-small { font-size: 11px; color: #4A4843; }
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chip { border: 1px dashed #2D2C2A; padding: 4px 10px; font-size: 11px; letter-spacing: 0.04em; }
.m-tabs { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.m-tabs::-webkit-scrollbar { display: none; }
.m-tab { flex: none; height: 36px; padding: 0 12px; font-size: 13px; font-weight: 600; border: 1px dashed #2D2C2A; background: none; color: #2D2C2A; cursor: pointer; font-family: inherit; }
.m-tab[aria-selected="true"] { background: #2C4A2E; border: 1px solid #2C4A2E; color: #E8E6DE; }
.m-tab.off { border-color: rgba(45,44,42,0.35); color: #7A776F; }
.m-tab small { font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 10px; margin-left: 3px; }
.m-dl { margin: 0; border-top: 1px solid #2D2C2A; }
.m-dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(45,44,42,0.4); align-items: baseline; }
.m-dl dt { font-size: 11px; letter-spacing: 0.04em; color: #4A4843; }
.m-dl dd { margin: 0; font-size: 14px; line-height: 1.55; }

/* photo frame: forest plate, frayed edge, navy topstitch */
.m-frame { position: relative; flex: none; width: 100%; box-sizing: border-box; padding: 0 10px 10px 0; }
.m-frame .plate { position: absolute; top: 10px; left: 10px; right: 0; bottom: 0; background: #2C4A2E; }
.m-frame .front { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background-color: #CBC7BB;
  background-image: repeating-linear-gradient(-38deg, rgba(45,44,42,0.07) 0 1.4px, transparent 1.4px 5px); }
.m-frame .front img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.25) sepia(0.12); }
.m-frame .front img.cover { object-fit: cover; }
.m-frame .stitch-m { position: absolute; inset: 6px; border: 1px dashed rgba(28,32,52,0.8); pointer-events: none; }
.m-frame .abr-m { position: absolute; pointer-events: none; overflow: visible; }
.m-frame .abr-m.f { top: 0; left: 0; width: calc(100% - 10px); height: calc(100% - 10px);
  -webkit-mask-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), radial-gradient(ellipse 45% 55% at 0% 100%, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%);
  mask-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), radial-gradient(ellipse 45% 55% at 0% 100%, #000 0%, rgba(0,0,0,0.8) 40%, transparent 100%); }
.m-frame .abr-m.b { top: 10px; left: 10px; width: calc(100% - 10px); height: calc(100% - 10px);
  -webkit-mask-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), radial-gradient(ellipse 22% 60% at 100% 60%, #000 0%, rgba(0,0,0,0.75) 45%, transparent 100%);
  mask-image: linear-gradient(rgba(0,0,0,0.18), rgba(0,0,0,0.18)), radial-gradient(ellipse 22% 60% at 100% 60%, #000 0%, rgba(0,0,0,0.75) 45%, transparent 100%); }
.m-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #4A4843; text-align: center; padding: 0 16px; }
.m-empty .mono { font-size: 11px; letter-spacing: 0.08em; color: #2D2C2A; }
.m-empty span:last-child { font-size: 12px; }

/* PROCESS: phase bar, sticky filter, grid, detail */
.m-phase { position: relative; height: 62px; }
.m-phase .band { position: absolute; top: 22px; left: 0; right: 0; height: 22px; display: flex; border: 1px solid #2D2C2A; box-sizing: border-box; }
.m-phase .band span { flex: none; box-sizing: border-box; font-size: 9.5px; font-weight: 600; padding-left: 4px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; border-right: 1px solid #E8E6DE; }
.m-phase .dot { position: absolute; border-radius: 50%; }
.m-phase .today { position: absolute; top: 16px; width: 2px; height: 34px; background: #2C4A2E; }
.m-phase .tk { position: absolute; top: 48px; font-size: 9px; color: #4A4843; white-space: nowrap; }
.m-filter { position: sticky; top: 56px; z-index: 10; background: rgba(232,230,222,0.97); padding: 10px 20px; flex: none;
  border-top: 1px dashed rgba(28,32,52,0.55); border-bottom: 1px dashed rgba(28,32,52,0.55); }
.m-group { flex: none; padding: 18px 20px 4px; }
.m-group h2 { margin: 0; font-size: 15px; font-weight: 900; }
.m-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.m-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background-color: #DCD8CC;
  background-image: repeating-linear-gradient(-38deg, rgba(45,44,42,0.06) 0 1.4px, transparent 1.4px 5px);
  border: 1px dashed rgba(28,32,52,0.45); padding: 0; cursor: pointer; font-family: inherit; color: inherit; text-align: left; width: 100%; }
.m-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) sepia(0.12); }
.m-tile .d { position: absolute; left: 0; bottom: 0; background: rgba(45,44,42,0.82); color: #E8E6DE; font-size: 10px; padding: 3px 6px; }
.m-tile .bd { position: absolute; top: 8px; left: 8px; font-size: 30px; }
.m-tile .tt { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 10.5px; line-height: 1.35; color: #4A4843;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-tile .n { position: absolute; top: 4px; right: 4px; background: #2D2C2A; color: #E8E6DE; font-size: 9px; padding: 1px 4px; }
.m-detail { position: fixed; inset: 0; z-index: 40; background: #E8E6DE; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.m-detail-in { max-width: 560px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.m-detail-top { position: sticky; top: 0; z-index: 2; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 20px; background: rgba(232,230,222,0.97); border-bottom: 1px dashed rgba(28,32,52,0.55); }
.m-icon-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; }
.m-nav { display: flex; justify-content: space-between; align-items: center; font-size: 12px; border-top: 1px dashed rgba(45,44,42,0.45); padding-top: 6px; }
.m-nav button { height: 44px; display: flex; align-items: center; gap: 4px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0 4px; }
.m-nav button:disabled { opacity: 0.35; }

/* REPORT / PORTFOLIO */
.m-toc { border-top: 1px solid #2D2C2A; }
.m-toc button { width: 100%; min-height: 54px; box-sizing: border-box; padding: 8px 10px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center; gap: 6px; border: 0; border-bottom: 1px dashed rgba(45,44,42,0.45); background: none; color: #2D2C2A; font: inherit; text-align: left; cursor: pointer; }
.m-toc button[aria-selected="true"] { background: #DEDACF; color: #2C4A2E; }
.m-toc .t { font-size: 16px; font-weight: 600; }
.m-toc .s { font-size: 10px; padding: 3px 7px; white-space: nowrap; }
.m-paper { background: #F6F4EE; box-shadow: 0 2px 0 rgba(45,44,42,0.08), 0 14px 28px rgba(45,44,42,0.14); padding: 24px 22px 30px; position: relative; }
.m-book { position: relative; width: 100%; overflow: hidden; }
.m-book-in { position: absolute; top: 0; left: 0; width: 660px; height: 467px; transform-origin: 0 0; background: #F6F4EE;
  box-shadow: 0 2px 0 rgba(45,44,42,0.08), 0 16px 30px rgba(45,44,42,0.16); }

/* BOUNDARY */
.m-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.m-bgrid button { min-height: 64px; box-sizing: border-box; padding: 7px 8px; display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; font: inherit; cursor: pointer; }
.m-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ticker */
.m-ticker { width: 100%; height: 40px; flex: none; overflow: hidden; background-color: #DCD8CC;
  background-image: repeating-linear-gradient(-38deg, rgba(45,44,42,0.06) 0 1.4px, transparent 1.4px 5px);
  border-top: 1px solid #2D2C2A; display: flex; align-items: center; position: relative; margin-top: auto; }
.m-ticker::before { content: ''; position: absolute; top: 4px; left: 0; right: 0; border-top: 1px dashed rgba(45,44,42,0.5); }
.m-ticker .ticker { font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }

/* portfolio pages stacked one under the other on phones */
.m-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.m-pages > div { position: relative !important; top: auto !important; left: auto !important; flex: none;
  background: #F6F4EE; box-shadow: 0 2px 0 rgba(45,44,42,0.08), 0 12px 24px rgba(45,44,42,0.14); }
@media (max-width: 370px) { .m-pages > div { zoom: 0.9; } }

/* main page on phones: everything on one screen (no scrolling) — the photo gets whatever height is left, so the rest stays compact */
.m-one { min-height: 100vh; min-height: 100svh; }
.m-one .m-strip { height: clamp(78px, 11svh, 108px); }
.m-one .m-strip .half { top: 14%; height: 82%; }
.m-one .m-strip .half .big { font-size: min(18.5vw, clamp(54px, 8.6svh, 92px)); }
.m-one-intro { flex: none; padding: clamp(8px, 1.6svh, 16px) 20px 0; display: flex; flex-direction: column; gap: 6px; }
.m-one-h { font-size: clamp(23px, 7vw, 31px); }
.m-one-p { display: none; }
.m-one-fig { flex: none; padding: clamp(8px, 1.6svh, 14px) 20px 0; display: flex; flex-direction: column; gap: 6px; }
.m-one-frame { display: block; }
.m-one-frame .front { aspect-ratio: 4 / 3; } /* fixed photo height: always 4:3 of the screen width */
.m-one-nav { flex: none; padding: 10px 20px 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.m-one-nav a { height: clamp(54px, 7svh, 64px); box-sizing: border-box; padding: 5px 7px; border: 1px dashed rgba(45,44,42,0.55);
  display: flex; flex-direction: column; justify-content: space-between; }
.m-one-nav .mono { font-size: 9px; color: #7A776F; line-height: 1; }
.m-one-nav .big { display: block; font-size: min(5.6vw, 24px); line-height: 1; }
.m-one-nav small { display: block; font-size: 9.5px; color: #4A4843; line-height: 1.2; margin-top: 2px; }
.m-one-nav a > span:last-child { display: flex; flex-direction: column; }
.m-one .m-ticker { margin-top: auto; height: 32px; }
.m-one .m-ticker .ticker { font-size: 10px; }

.m-portrait .front { aspect-ratio: 4 / 5; }
.m-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin: 8px 20px 28px; padding: 14px 0; border-top: 1px solid #2D2C2A; border-bottom: 1px dashed rgba(45,44,42,0.45); }
.m-next .mono { font-size: 10px; color: #7A776F; display: block; margin-bottom: 4px; }
.m-next .big { font-size: 34px; }

/* PROCESS (desktop): a long record scrolls inside its text box — thin scrollbar, soft fade, "더 읽기" until the end */
.pbody { scrollbar-width: thin; scrollbar-color: rgba(45,44,42,0.45) transparent; padding-bottom: 26px; box-sizing: border-box;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); }
.pmore::after { content: "\2193  더 읽기 · SCROLL"; position: absolute; right: 0; bottom: -14px; font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: 0.08em; color: #2C4A2E; background: #E8E6DE; padding: 2px 0 2px 8px; pointer-events: none; }

/* 쇳물 — the one hot point of the site: "today" on the PROCESS timeline + the LIVE dot on the main page.
   Hot at the top, cooling to red at the bottom, a small pool where it lands; breathes every 3.6 s. */
@keyframes mBreathe { 0%,100% { filter: brightness(1); opacity: .92 } 50% { filter: brightness(1.28); opacity: 1 } }
@keyframes mPool { 0%,100% { transform: translateX(-50%) scale(1); opacity: .75 } 50% { transform: translateX(-50%) scale(1.18); opacity: 1 } }
.molten { background: linear-gradient(180deg, #FFF1C4 0%, #FFC45A 28%, #F7821F 62%, #D9481A 88%, #A8301A 100%) !important;
  box-shadow: 0 0 4px 1px rgba(255,170,60,.65), 0 0 14px 3px rgba(240,100,30,.28); animation: mBreathe 3.6s ease-in-out infinite; overflow: visible; }
.molten::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 14px; height: 6px; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, #FFE9A8, #F7821F 55%, rgba(217,72,26,0) 100%); animation: mPool 3.6s ease-in-out infinite; pointer-events: none; }
.m-phase .molten::after { bottom: 3px; width: 12px; height: 5px; }
.molten-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px;
  background: radial-gradient(circle at 40% 35%, #FFF1C4, #FFB347 45%, #E0561C 100%); box-shadow: 0 0 6px 1px rgba(245,120,35,.6); animation: mBreathe 3.6s ease-in-out infinite; }
.molten-label { color: #B8461B !important; }
@media (prefers-reduced-motion: reduce) { .molten, .molten::after, .molten-dot { animation: none } }
