/* ============ BRAND FRAMES (kept exactly from the previous site) ============ */
.legacy {
  --l-paper: #ECE7DC; --l-ink: #0A0908;
  --l-muted: rgba(236,231,220,.65); --l-muted-low: rgba(236,231,220,.42);
  --l-line: rgba(236,231,220,.18); --l-accent: #B5915C;
  --l-display: 'Editorial New', 'Newsreader', Georgia, serif;
  --l-sans: 'Satoshi', 'Schibsted Grotesk', -apple-system, sans-serif;
  --gutter: clamp(24px, 4.5vw, 80px);
  background: var(--l-ink); color: var(--l-paper); font-family: var(--l-sans); font-weight: 300; font-size: 15px; line-height: 1.65;
}
.legacy .frame { position: relative; height: 100vh; min-height: 720px; width: 100%; overflow: hidden; z-index: 2; }
.legacy .frame-photo-real { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.legacy .frame-photo-real img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 35%; }
.legacy .frame-photo-real::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,.10) 30%, rgba(10,9,8,.20) 55%, rgba(10,9,8,.85) 90%, rgba(10,9,8,.95) 100%); }
.legacy .frame-photo-sijin img { object-position: 75% center; }
.legacy .frame-photo-sijin::after { background:
  linear-gradient(90deg, rgba(10,9,8,.78) 0%, rgba(10,9,8,.55) 30%, rgba(10,9,8,.25) 55%, rgba(10,9,8,.10) 80%, rgba(10,9,8,.20) 100%),
  linear-gradient(180deg, rgba(10,9,8,.45) 0%, rgba(10,9,8,0) 18%, rgba(10,9,8,0) 75%, rgba(10,9,8,.85) 100%); }
.legacy .frame-photo-sj20 img { object-position: 60% center; }
.legacy .frame-photo-sj20::after { background:
  linear-gradient(90deg, rgba(10,9,8,.82) 0%, rgba(10,9,8,.55) 28%, rgba(10,9,8,.18) 55%, rgba(10,9,8,.05) 80%, rgba(10,9,8,.20) 100%),
  linear-gradient(180deg, rgba(10,9,8,.5) 0%, rgba(10,9,8,0) 18%, rgba(10,9,8,0) 70%, rgba(10,9,8,.92) 100%); }
.legacy .frame-photo-dewa img { object-position: center center; filter: brightness(.82) saturate(.95); }
.legacy .frame-photo-dewa::after { background:
  linear-gradient(90deg, rgba(10,9,8,.86) 0%, rgba(10,9,8,.62) 30%, rgba(10,9,8,.22) 55%, rgba(10,9,8,.02) 75%, rgba(10,9,8,.05) 100%),
  linear-gradient(180deg, rgba(10,9,8,.45) 0%, rgba(10,9,8,0) 18%, rgba(10,9,8,0) 60%, rgba(10,9,8,.9) 100%); }
@media (max-width: 760px) {
  .legacy .frame-photo-dewa img { object-position: center top; }
  .legacy #b-dewa .frame-content { min-height: 125vh; }
  .legacy .frame-photo-dewa::after { background: linear-gradient(180deg, rgba(10,9,8,.35) 0%, rgba(10,9,8,0) 15%, rgba(10,9,8,.15) 38%, rgba(10,9,8,.88) 58%, rgba(10,9,8,.95) 100%); }
}
.legacy .brand-name.brand-name-32do { font-family: 'Montserrat', 'Outfit', sans-serif; font-weight: 700; font-size: clamp(56px, 6.5vw, 112px); letter-spacing: -.01em; line-height: 1; display: flex; align-items: flex-start; }
.legacy .brand-name-32do .do { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; font-weight: 700; font-size: .46em; line-height: 1; margin: .08em 0 0 .1em; }
.legacy .brand-name-32do .monkey { height: 1.15em; width: auto; margin: -.12em 0 0 .32em; transform-origin: 50% 0; animation: swing 6s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.legacy .brand-name.brand-name-younghee { font-family: 'Barlow Semi Condensed', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 56px); letter-spacing: .16em; margin-right: -.16em; line-height: 1; }
.legacy .brand-name.brand-name-younghee { display: flex; align-items: center; gap: .7em; }
.legacy .brand-name-younghee .yh-mark { height: 1.9em; width: auto; overflow: visible; }
.yh-mark .ls { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.yh-mark.play .ls0 { animation: draw 0.32s cubic-bezier(.45,.05,.35,1) 0.00s forwards; }
.yh-mark.play .ls1 { animation: draw 0.62s cubic-bezier(.45,.05,.35,1) 0.47s forwards; }
.yh-mark.play .ls2 { animation: draw 0.62s cubic-bezier(.45,.05,.35,1) 1.05s forwards; }
.yh-mark.play .ls3 { animation: draw 0.26s cubic-bezier(.45,.05,.35,1) 1.62s forwards; }
.yh-mark.play .ls4 { animation: draw 0.26s cubic-bezier(.45,.05,.35,1) 1.86s forwards; }
.yh-mark.play .ls5 { animation: draw 0.63s cubic-bezier(.45,.05,.35,1) 2.27s forwards; }
.yh-mark.play .ls6 { animation: draw 0.54s cubic-bezier(.45,.05,.35,1) 2.85s forwards; }
.yh-mark.play .ls7 { animation: draw 0.22s cubic-bezier(.45,.05,.35,1) 3.35s forwards; }
.yh-mark.play .ls8 { animation: draw 0.22s cubic-bezier(.45,.05,.35,1) 3.73s forwards; }
.yh-mark.play .ls9 { animation: draw 0.23s cubic-bezier(.45,.05,.35,1) 3.93s forwards; }
.yh-mark.play .ls10 { animation: draw 0.23s cubic-bezier(.45,.05,.35,1) 4.14s forwards; }
.yh-mark.play .ls11 { animation: draw 0.22s cubic-bezier(.45,.05,.35,1) 4.36s forwards; }
.yh-mark.play .ls12 { animation: draw 0.44s cubic-bezier(.45,.05,.35,1) 4.56s forwards; }
.yh-mark.play .ls13 { animation: draw 0.49s cubic-bezier(.45,.05,.35,1) 4.97s forwards; }
@media (prefers-reduced-motion: reduce) { .yh-mark .ls { stroke-dashoffset: 0; }  }
@media (prefers-reduced-motion: reduce) { .legacy .brand-name-32do .monkey { animation: none; } }
.legacy .brand-name.brand-name-sj { font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif; font-weight: 300; font-size: clamp(30px, 3.4vw, 56px); line-height: 1; letter-spacing: 0; display: flex; align-items: baseline; gap: .42em; }
.legacy .brand-name-sj .sj { letter-spacing: .3em; margin-right: -.3em; }
.legacy .brand-name-sj .v { letter-spacing: .02em; }
.legacy .brand-name.brand-name-sijin { line-height: 0; margin-bottom: 40px; }
.legacy .brand-name-sijin .sj-fire { display: block; height: clamp(34px, 4.2vw, 68px); -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  background-color: #ECE7DC;
  background-image:
    linear-gradient(0deg, rgba(226,110,52,0) 0%, rgba(226,96,40,.72) 28%, rgba(255,186,96,.55) 50%, rgba(226,110,52,0) 100%),
    linear-gradient(90deg, rgba(210,88,44,0) 0%, rgba(196,66,30,.55) 35%, rgba(255,170,80,.42) 60%, rgba(210,88,44,0) 100%);
  background-repeat: repeat;
  background-size: 100% 90px, 520px 100%;
  animation: embers 6s linear infinite; }
.legacy .brand-name.brand-name-sijin { animation: emberGlow 3.2s ease-in-out infinite; }
@keyframes emberGlow { 0%, 100% { filter: drop-shadow(0 0 .0em rgba(255,140,60,0)); } 50% { filter: drop-shadow(0 0 .22em rgba(255,130,50,.45)); } }
@keyframes embers { from { background-position: 0 0, 0 0; } to { background-position: 0 -270px, 520px 0; } }
@media (prefers-reduced-motion: reduce) { .legacy .brand-name-sijin .sj-fire, .legacy .brand-name.brand-name-sijin { animation: none; } }

/* Dewa Cafe title: two ways in. bounce: a ball bounces across and each letter appears where it lands.
   swish: the ball rides the swoosh, the swoosh stays behind it, then the letters drop in. */
.legacy .brand-name-dewa { position: relative; display: inline-block; }
.brand-name-dewa .dword { display: inline-block; white-space: nowrap; }
.brand-name-dewa .dl { display: inline-block; }
.brand-name-dewa .dl.sp { width: .3em; }
.brand-name-dewa.fx .dl { opacity: 0; }
.brand-name-dewa .dball { position: absolute; left: 0; top: 0; width: .3em; height: .3em; filter: drop-shadow(0 .04em .05em rgba(0,0,0,.45)); opacity: 0; pointer-events: none; z-index: 2; }
.brand-name-dewa .dshadow { position: absolute; left: 0; bottom: -.04em; width: .3em; height: .06em; border-radius: 50%; background: rgba(0,0,0,.45); filter: blur(2px); opacity: 0; pointer-events: none; }
.brand-name-dewa .dswish { position: absolute; left: -4%; width: 108%; top: -1.25em; height: 2.4em; overflow: visible; pointer-events: none; }
.brand-name-dewa .dswish path { fill: none; stroke: #ECE7DC; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .35; }
.brand-name-dewa[data-fx="bounce"] .dswish { display: none; }
@media (prefers-reduced-motion: reduce) { .brand-name-dewa.fx .dl { opacity: 1; } }

/* Dewa Cafe "run": a pack of kids sprints past, the dust they kick up settles into the name */
.brand-name-dewa[data-fx="run"] .dball, .brand-name-dewa[data-fx="run"] .dshadow, .brand-name-dewa[data-fx="run"] .dswish { display: none; }
.brand-name-dewa .kid { position: absolute; left: 0; bottom: 0; height: .78em; width: auto; overflow: visible; pointer-events: none; z-index: 3; opacity: 0; }
.brand-name-dewa .kid g { fill: none; stroke: #ECE7DC; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.brand-name-dewa .kid .torso { stroke-width: 9; }
.brand-name-dewa .kid .tail { stroke-width: 4.2; transform-origin: 18px 6px; animation: sway .36s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-14deg); } to { transform: rotate(12deg); } }
.brand-name-dewa .kball { position: absolute; left: 0; top: 0; width: .24em; height: .24em; pointer-events: none; z-index: 4; overflow: visible; }
.brand-name-dewa .kid circle { fill: #ECE7DC; stroke: none; }
.brand-name-dewa .kid .pa { animation: strideA .36s steps(1) infinite; }
.brand-name-dewa .kid .pd { opacity: 0; }
.brand-name-dewa .kid.air .pa, .brand-name-dewa .kid.air .pb { animation: none; opacity: 0; }
.brand-name-dewa .kid.air .pd { opacity: 1; }
.brand-name-dewa .hoop { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; opacity: 0; }
.brand-name-dewa .hoop g { fill: none; stroke: #ECE7DC; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name-dewa .hoop .net { stroke-width: 1.3; opacity: .8; transform-origin: 22px 35px; }
.brand-name-dewa .hoop .rim { transform-origin: 41px 35px; }
.brand-name-dewa .kid .pb { animation: strideB .36s steps(1) infinite; }
@keyframes strideA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes strideB { 0% { opacity: 0; } 50% { opacity: 1; } }
.brand-name-dewa .dust { position: absolute; left: 0; top: 0; width: .5em; height: .5em; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(236,231,220,.55) 0%, rgba(236,231,220,.22) 40%, rgba(236,231,220,0) 70%); filter: blur(3px); }
.legacy .brand-name.brand-name-dewa { font-family: 'Nanum Pen Script', 'Outfit', sans-serif; font-weight: 400; font-size: clamp(54px, 6.4vw, 108px); letter-spacing: .01em; line-height: .9; }
.legacy .frame-grain { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.legacy .frame-content { position: absolute; inset: 0; z-index: 3; padding: 0 var(--gutter); display: flex; align-items: flex-end; padding-bottom: 100px;
  opacity: 0; transform: translateY(24px); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.legacy .frame-content.is-visible { opacity: 1; transform: translateY(0); }
.legacy .brand-content { flex-direction: column; justify-content: flex-end; align-items: flex-start; padding-bottom: 110px; }
.legacy .brand-meta-top { position: absolute; z-index: 3; top: 110px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between;
  font-family: var(--l-sans); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--l-muted); }
.legacy .brand-meta-top .l { display: flex; align-items: center; gap: 14px; }
.legacy .brand-meta-top .l::before { content: ''; width: 36px; height: 1px; background: var(--l-accent); }
.legacy .brand-meta-top .num { font-family: var(--l-display); font-style: italic; font-weight: 300; font-size: 13px; color: var(--l-paper); letter-spacing: .04em; text-transform: none; }
.legacy .brand-name { font-family: var(--l-display); font-weight: 200; font-size: clamp(80px, 14vw, 260px); line-height: .86; letter-spacing: -.05em; color: var(--l-paper); margin-bottom: 36px; }
.legacy .italic { font-style: italic; }
.legacy .brand-name .italic { color: var(--l-muted); }
.legacy .brand-row { width: 100%; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: end; padding-top: 32px; border-top: 1px solid var(--l-line); }
.legacy .brand-text { font-family: var(--l-display); font-style: italic; font-weight: 300; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.55; color: var(--l-muted); max-width: 44ch; }
.legacy .brand-stat { display: flex; flex-direction: column; gap: 6px; }
.legacy .brand-stat-label { font-family: var(--l-sans); font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--l-muted-low); }
.legacy .brand-stat-value { font-family: var(--l-display); font-weight: 300; font-size: 17px; color: var(--l-paper); letter-spacing: .005em; }
.legacy .brand-stat-value .italic { color: var(--l-muted); }
.legacy .brand-link { justify-self: end; font-family: var(--l-sans); font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--l-paper);
  text-decoration: none; border-bottom: 1px solid var(--l-paper); padding-bottom: 6px; display: inline-flex; align-items: center; gap: 10px; transition: gap .5s cubic-bezier(.2,.7,.2,1); }
.legacy .brand-link:hover { gap: 18px; }
.legacy .brand-links { justify-self: end; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.legacy .brand-links .brand-link { justify-self: auto; }
.legacy .brand-link-sub { color: var(--l-muted) !important; border-bottom-color: var(--l-muted-low) !important; font-size: 9px; letter-spacing: .28em; }
.legacy .brand-link-sub:hover { color: var(--l-paper) !important; border-bottom-color: var(--l-paper) !important; }
@media (max-width: 1100px) {
  .legacy .brand-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .legacy .brand-link { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
  .legacy .brand-links { grid-column: 1 / -1; justify-self: start; align-items: flex-start; margin-top: 12px; }
}
@media (max-width: 760px) {
  .legacy .brand-meta-top { font-size: 9px; letter-spacing: .22em; }
  .legacy .brand-name { font-size: clamp(60px, 18vw, 120px); }
  .legacy .brand-row { grid-template-columns: 1fr; gap: 20px; }
  .legacy .frame { height: auto; min-height: 100vh; overflow: visible; }
  .legacy .frame-content { position: relative; inset: auto; min-height: 100vh; padding-top: 90px; padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { .legacy .frame-content { opacity: 1 !important; transform: none !important; } }
